File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ def i18n = project.findProperty("i18n") ?: ""
11
11
def signingKey = project. findProperty(' signingKey' )
12
12
def signingPassword = project. findProperty(' signingPassword' )
13
13
14
+ def prefabHeadersDir = " ${ buildDir} /prefab-headers"
15
+
14
16
if (! distDir) throw new RuntimeException (" expecting --project-prop distDir=??? but was empty" )
15
17
if (! jniLibsDir) throw new RuntimeException (" expecting --project-prop jniLibsDir=??? but was empty" )
16
18
if (! version) throw new RuntimeException (" expecting --project-prop version=??? but was empty" )
@@ -56,7 +58,7 @@ android {
56
58
57
59
prefab {
58
60
jsc {
59
- headers file(headersDir ). absolutePath
61
+ headers file(prefabHeadersDir ). absolutePath
60
62
}
61
63
}
62
64
@@ -72,7 +74,17 @@ project.group = "io.github.react-native-community"
72
74
def artifactName = Boolean . valueOf(i18n) ? " jsc-android-intl" : " jsc-android"
73
75
project. version = " ${ version} "
74
76
77
+ tasks. register(' preparePrefabHeaders' , Copy ) {
78
+ from(" ${ headersDir} " )
79
+ filesMatching(' **/*.h' ) {
80
+ path = " JavaScriptCore/${ it.name} "
81
+ }
82
+ into(file(" ${ prefabHeadersDir} " ))
83
+ }
84
+
75
85
afterEvaluate {
86
+ preBuild. dependsOn(preparePrefabHeaders)
87
+
76
88
publishing {
77
89
publications {
78
90
release(MavenPublication ) {
You can’t perform that action at this time.
0 commit comments