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")
1414val reactNativeManifest = file(" ${reactNativeDir} /package.json" )
1515val reactNativeManifestAsJson = JsonSlurper ().parseText(reactNativeManifest.readText()) as Map <* , * >
1616val reactNativeVersion = reactNativeManifestAsJson[" version" ] as String
17- val (major, minor, patch) = reactNativeVersion.split(" ." )
17+ val (major, minor, patch) = reactNativeVersion.split(" - " )[ 0 ].split( " ." )
1818val rnMinorVersion = minor.toInt()
1919val rnPatchVersion = patch.toInt()
2020val prefabHeadersDir = file(" ${layout.buildDirectory.get()} /prefab-headers" )
@@ -105,8 +105,11 @@ dependencies {
105105}
106106
107107val 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)
110113 }
111114
112115tasks.named(" preBuild" ).dependsOn(createPrefabHeadersDir)
You can’t perform that action at this time.
0 commit comments