react-native-nobodywho 1.0.0 → 1.0.1

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/Nobodywho.podspec CHANGED
@@ -8,35 +8,33 @@ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1
8
8
 
9
9
  framework_name = "NobodywhoFramework.xcframework"
10
10
  framework_dir = File.join(__dir__, framework_name)
11
+ zip_name = "#{framework_name}.zip"
12
+ zip_path = File.join(__dir__, zip_name)
13
+ url = "https://github.com/nobodywho-ooo/nobodywho/releases/download/nobodywho-react-native-#{version}/#{zip_name}"
11
14
 
12
- # Download the xcframework from GitHub Releases if not already present
13
- unless File.exist?(framework_dir)
14
- zip_name = "#{framework_name}.zip"
15
- zip_path = File.join(__dir__, zip_name)
16
- url = "https://github.com/nobodywho-ooo/nobodywho/releases/download/nobodywho-react-native-#{version}/#{zip_name}"
17
-
18
- puts "[NobodyWho] Downloading xcframework from #{url}"
15
+ # Always download a fresh xcframework to ensure it matches the package version.
16
+ FileUtils.rm_rf(framework_dir) if File.exist?(framework_dir)
19
17
 
20
- # Download using curl (available on all macOS systems)
21
- system("curl", "-L", "-f", "-o", zip_path, url) or
22
- raise "Failed to download NobodyWho xcframework.\n" \
23
- "URL: #{url}\n" \
24
- "Check that the release exists: https://github.com/nobodywho-ooo/nobodywho/releases/tag/nobodywho-react-native-#{version}\n" \
25
- "For local development, manually place the xcframework at: #{framework_dir}"
18
+ puts "[NobodyWho] Downloading xcframework from #{url}"
26
19
 
27
- puts "[NobodyWho] Extracting xcframework..."
28
- system("unzip", "-o", "-q", zip_path, "-d", __dir__) or
29
- raise "Failed to extract #{zip_name}"
20
+ system("curl", "-L", "-f", "-o", zip_path, url) or
21
+ raise "Failed to download NobodyWho xcframework.\n" \
22
+ "URL: #{url}\n" \
23
+ "Check that the release exists: https://github.com/nobodywho-ooo/nobodywho/releases/tag/nobodywho-react-native-#{version}\n" \
24
+ "For local development, manually place the xcframework at: #{framework_dir}"
30
25
 
31
- File.delete(zip_path) if File.exist?(zip_path)
26
+ puts "[NobodyWho] Extracting xcframework..."
27
+ system("unzip", "-o", "-q", zip_path, "-d", __dir__) or
28
+ raise "Failed to extract #{zip_name}"
32
29
 
33
- unless File.exist?(framework_dir)
34
- raise "xcframework not found after extraction: #{framework_dir}"
35
- end
30
+ File.delete(zip_path) if File.exist?(zip_path)
36
31
 
37
- puts "[NobodyWho] xcframework ready at #{framework_dir}"
32
+ unless File.exist?(framework_dir)
33
+ raise "xcframework not found after extraction: #{framework_dir}"
38
34
  end
39
35
 
36
+ puts "[NobodyWho] xcframework ready at #{framework_dir}"
37
+
40
38
  Pod::Spec.new do |s|
41
39
  s.name = "Nobodywho"
42
40
  s.version = package["version"]
@@ -63,7 +63,7 @@ def nobodywhoVersion = packageJson.version
63
63
  // Directory for downloaded native shared libraries.
64
64
  // These .so files are fully linked at CI time with a known-good NDK, eliminating
65
65
  // NDK version coupling for consumers.
66
- def nativeLibsDir = new File(buildDir, "nobodywho-native")
66
+ def nativeLibsDir = new File(buildDir, "nobodywho-native/${nobodywhoVersion}")
67
67
 
68
68
  // Download native shared libraries from GitHub Releases if not already present.
69
69
  task resolveNativeLibraries {
@@ -7,10 +7,10 @@
7
7
  namespace jsi = facebook::jsi;
8
8
  namespace react = facebook::react;
9
9
 
10
- // Automated testing checks Java_com_nobodywho_NobodywhoModule and nobodywho
10
+ // Automated testing checks Java_ooo_nobodywho_NobodywhoModule and nobodywho
11
11
  // by comparing the whole line here.
12
12
  /*
13
- Java_com_nobodywho_NobodywhoModule_nativeMultiply(JNIEnv *env, jclass type, jdouble a, jdouble b) {
13
+ Java_ooo_nobodywho_NobodywhoModule_nativeMultiply(JNIEnv *env, jclass type, jdouble a, jdouble b) {
14
14
  return nobodywho::multiply(a, b);
15
15
  }
16
16
  */
@@ -18,7 +18,7 @@ Java_com_nobodywho_NobodywhoModule_nativeMultiply(JNIEnv *env, jclass type, jdou
18
18
  // Installer coming from NobodywhoModule
19
19
  extern "C"
20
20
  JNIEXPORT jboolean JNICALL
21
- Java_com_nobodywho_NobodywhoModule_nativeInstallRustCrate(
21
+ Java_ooo_nobodywho_NobodywhoModule_nativeInstallRustCrate(
22
22
  JNIEnv *env,
23
23
  jclass type,
24
24
  jlong rtPtr,
@@ -37,7 +37,7 @@ Java_com_nobodywho_NobodywhoModule_nativeInstallRustCrate(
37
37
 
38
38
  extern "C"
39
39
  JNIEXPORT jboolean JNICALL
40
- Java_com_nobodywho_NobodywhoModule_nativeCleanupRustCrate(JNIEnv *env, jclass type, jlong rtPtr) {
40
+ Java_ooo_nobodywho_NobodywhoModule_nativeCleanupRustCrate(JNIEnv *env, jclass type, jlong rtPtr) {
41
41
  auto runtime = reinterpret_cast<jsi::Runtime *>(rtPtr);
42
42
  return nobodywho::cleanupRustCrate(*runtime);
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nobodywho",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Run LLMs locally with offline inference — React Native bindings",
5
5
  "main": "src/wrapper.ts",
6
6
  "types": "src/wrapper.ts",