@runanywhere/core 0.16.4 → 0.16.6

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.
@@ -49,8 +49,18 @@ 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
- react {
53
- nodeExecutableAndArgs = [findNodeBinary()]
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
+ }
54
64
  }
55
65
 
56
66
  def getExtOrIntegerDefault(name) {
@@ -343,15 +353,18 @@ if (!useLocalBuild) {
343
353
  }
344
354
  }
345
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
346
358
  task cleanNativeLibs(type: Delete) {
347
- description = "Removes downloaded native libraries"
359
+ description = "Removes downloaded native libraries (use manually, not during normal clean)"
348
360
  group = "build"
349
- delete jniLibsDir
350
361
  delete downloadedLibsDir
351
362
  delete includeDir
363
+ // DO NOT delete jniLibsDir - it contains npm-bundled libraries
352
364
  }
353
365
 
354
- clean.dependsOn cleanNativeLibs
366
+ // DO NOT add: clean.dependsOn cleanNativeLibs
367
+ // This would delete bundled .so files from the npm package
355
368
 
356
369
  repositories {
357
370
  mavenCentral()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runanywhere/core",
3
- "version": "0.16.4",
3
+ "version": "0.16.6",
4
4
  "description": "Core SDK for RunAnywhere React Native - includes RACommons bindings, native bridges, and public API",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",