File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ val reactNativeDir = findNodePackageDir("react-native")
14
14
val reactNativeManifest = file(" ${reactNativeDir} /package.json" )
15
15
val reactNativeManifestAsJson = JsonSlurper ().parseText(reactNativeManifest.readText()) as Map <* , * >
16
16
val reactNativeVersion = reactNativeManifestAsJson[" version" ] as String
17
- val (major, minor, patch) = reactNativeVersion.split(" ." )
17
+ val (major, minor, patch) = reactNativeVersion.split(" - " )[ 0 ].split( " ." )
18
18
val rnMinorVersion = minor.toInt()
19
19
val rnPatchVersion = patch.toInt()
20
20
val prefabHeadersDir = file(" ${layout.buildDirectory.get()} /prefab-headers" )
@@ -105,8 +105,11 @@ dependencies {
105
105
}
106
106
107
107
val createPrefabHeadersDir by
108
- tasks.registering {
109
- prefabHeadersDir.mkdirs()
108
+ tasks.registering(Copy ::class ) {
109
+ from(" src/main/cpp" )
110
+ from(" ../common" )
111
+ include(" *.h" )
112
+ into(prefabHeadersDir)
110
113
}
111
114
112
115
tasks.named(" preBuild" ).dependsOn(createPrefabHeadersDir)
You can’t perform that action at this time.
0 commit comments