@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.
@@ -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
- // Access the react extension and set nodeExecutableAndArgs
53
- project.extensions.findByName('react')?.nodeExecutableAndArgs?.set([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
+ }
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runanywhere/core",
3
- "version": "0.16.5",
3
+ "version": "0.16.7",
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",