@umbra-privacy/rn-zk-prover 2.0.2 → 2.1.0

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/MoproFfi.podspec CHANGED
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.source = { :git => "https://github.com/zkmopro/react-native-app.git", :tag => "#{s.version}" }
17
17
 
18
18
  # Download xcframework from CloudFront
19
- xcframework_url = "https://d3j9fjdkre529f.cloudfront.net/v1/static/MoproBindings.xcframework.zip"
19
+ xcframework_url = "https://d3j9fjdkre529f.cloudfront.net/v2/static/MoproBindings.xcframework.zip"
20
20
  s.prepare_command = <<-CMD
21
21
  set -e
22
22
 
@@ -38,7 +38,7 @@ Pod::Spec.new do |s|
38
38
 
39
39
  echo "▶︎ Downloading MoproBindings.xcframework…"
40
40
  curl -L -o MoproBindings.xcframework.zip \
41
- "https://d3j9fjdkre529f.cloudfront.net/v1/static/MoproBindings.xcframework.zip"
41
+ "https://d3j9fjdkre529f.cloudfront.net/v2/static/MoproBindings.xcframework.zip"
42
42
 
43
43
  echo "▶︎ Unzipping…"
44
44
  unzip -o MoproBindings.xcframework.zip
@@ -1,7 +1,7 @@
1
1
  // Generated by uniffi-bindgen-react-native
2
2
 
3
3
  // Download prebuilt jniLibs from CloudFront
4
- def androidJniLibsUrl = "https://d3j9fjdkre529f.cloudfront.net/v1/static/MoproBindings-android-jniLibs.zip"
4
+ def androidJniLibsUrl = "https://d3j9fjdkre529f.cloudfront.net/v2/static/MoproBindings-android-jniLibs.zip"
5
5
  def jniLibsDir = file("${projectDir}/src/main/jniLibs")
6
6
 
7
7
 
@@ -84,7 +84,7 @@ android {
84
84
  }
85
85
  }
86
86
  ndk {
87
- abiFilters "arm64-v8a", "armeabi-v7a", "x86", "x86_64"
87
+ abiFilters "arm64-v8a"
88
88
  }
89
89
  }
90
90
 
@@ -7,5 +7,5 @@ set -e
7
7
  ANDROID_DIR="$(cd "$(dirname "$0")" && pwd)"
8
8
  ZIP_OUT="$ANDROID_DIR/MoproBindings-android-jniLibs.zip"
9
9
  cd "$ANDROID_DIR/src/main/jniLibs"
10
- zip -r "$ZIP_OUT" arm64-v8a
10
+ zip -r "$ZIP_OUT" arm64-v8a x86_64
11
11
  echo "Created $ZIP_OUT"
package/android/zip.sh ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env sh
2
+ # Create MoproBindings-android-jniLibs.zip for upload to CloudFront.
3
+ # Run from anywhere: android/create-android-jnilibs-zip.sh
4
+ # Output: android/MoproBindings-android-jniLibs.zip
5
+
6
+ set -e
7
+ ANDROID_DIR="$(cd "$(dirname "$0")" && pwd)"
8
+ ZIP_OUT="$ANDROID_DIR/MoproBindings-android-jniLibs.zip"
9
+ cd "$ANDROID_DIR/src/main/jniLibs"
10
+ zip -r "$ZIP_OUT" arm64-v8a
11
+ echo "Created $ZIP_OUT"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbra-privacy/rn-zk-prover",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "description": "ZK Prover bindings for React Native for Umbra Privacy ZKs",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",