@runanywhere/core 0.16.5 → 0.16.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +19 -5
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -49,8 +49,19 @@ apply from: '../nitrogen/generated/android/runanywherecore+autolinking.gradle'
|
|
|
49
49
|
apply plugin: 'com.facebook.react'
|
|
50
50
|
|
|
51
51
|
// Configure node path for Android Studio builds
|
|
52
|
-
//
|
|
53
|
-
|
|
52
|
+
// Set the react extension's nodeExecutableAndArgs after plugin is applied
|
|
53
|
+
def nodeBinary = findNodeBinary()
|
|
54
|
+
logger.lifecycle("[RunAnywhereCore] Using node binary: ${nodeBinary}")
|
|
55
|
+
|
|
56
|
+
// Configure all codegen tasks to use the detected node binary
|
|
57
|
+
afterEvaluate {
|
|
58
|
+
tasks.withType(com.facebook.react.tasks.GenerateCodegenSchemaTask).configureEach {
|
|
59
|
+
nodeExecutableAndArgs.set([nodeBinary])
|
|
60
|
+
}
|
|
61
|
+
tasks.withType(com.facebook.react.tasks.GenerateCodegenArtifactsTask).configureEach {
|
|
62
|
+
nodeExecutableAndArgs.set([nodeBinary])
|
|
63
|
+
}
|
|
64
|
+
}
|
|
54
65
|
|
|
55
66
|
def getExtOrIntegerDefault(name) {
|
|
56
67
|
if (rootProject.ext.has(name)) {
|
|
@@ -342,15 +353,18 @@ if (!useLocalBuild) {
|
|
|
342
353
|
}
|
|
343
354
|
}
|
|
344
355
|
|
|
356
|
+
// NOTE: cleanNativeLibs is NOT attached to clean task because npm-bundled libs should persist
|
|
357
|
+
// Only use this task manually when needed during development
|
|
345
358
|
task cleanNativeLibs(type: Delete) {
|
|
346
|
-
description = "Removes downloaded native libraries"
|
|
359
|
+
description = "Removes downloaded native libraries (use manually, not during normal clean)"
|
|
347
360
|
group = "build"
|
|
348
|
-
delete jniLibsDir
|
|
349
361
|
delete downloadedLibsDir
|
|
350
362
|
delete includeDir
|
|
363
|
+
// DO NOT delete jniLibsDir - it contains npm-bundled libraries
|
|
351
364
|
}
|
|
352
365
|
|
|
353
|
-
clean.dependsOn cleanNativeLibs
|
|
366
|
+
// DO NOT add: clean.dependsOn cleanNativeLibs
|
|
367
|
+
// This would delete bundled .so files from the npm package
|
|
354
368
|
|
|
355
369
|
repositories {
|
|
356
370
|
mavenCentral()
|
package/package.json
CHANGED