@runanywhere/llamacpp 0.16.5 → 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.
- 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/runanywherellama+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("[RunAnywhereLlama] 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)) {
|
|
@@ -315,14 +326,17 @@ if (!useLocalBuild) {
|
|
|
315
326
|
}
|
|
316
327
|
}
|
|
317
328
|
|
|
329
|
+
// NOTE: cleanNativeLibs is NOT attached to clean task because npm-bundled libs should persist
|
|
330
|
+
// Only use this task manually when needed during development
|
|
318
331
|
task cleanNativeLibs(type: Delete) {
|
|
319
|
-
description = "Removes downloaded native libraries"
|
|
332
|
+
description = "Removes downloaded native libraries (use manually, not during normal clean)"
|
|
320
333
|
group = "build"
|
|
321
|
-
delete jniLibsDir
|
|
322
334
|
delete downloadedLibsDir
|
|
335
|
+
// DO NOT delete jniLibsDir - it contains npm-bundled libraries
|
|
323
336
|
}
|
|
324
337
|
|
|
325
|
-
clean.dependsOn cleanNativeLibs
|
|
338
|
+
// DO NOT add: clean.dependsOn cleanNativeLibs
|
|
339
|
+
// This would delete bundled .so files from the npm package
|
|
326
340
|
|
|
327
341
|
repositories {
|
|
328
342
|
mavenCentral()
|
package/package.json
CHANGED