Skip to content

Commit

Permalink
0.0.1 alpha.5 (#10)
Browse files Browse the repository at this point in the history
* Made ios part depend on rapidsnark pod.
Updated example RN version to 0.74.2.

* Refactored Android to use rapidsnark android lib.
Updated Android example.

* Added new architecture support.

* Fixed old architecture support.
  • Loading branch information
5eeman authored Aug 1, 2024
1 parent e532a5b commit 6891fef
Show file tree
Hide file tree
Showing 65 changed files with 2,352 additions and 4,278 deletions.
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**/.*
**/__fixtures__
**/__mocks__
**/__tests__
android/build
android/gradle
android/gradlew
android/gradlew.bat
android/local.properties
build
/example/
ios/build
node_modules
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ building for 'iOS-simulator', but linking in object file (${SRC_ROOT}/ios/Framew
2. Select your project in the left sidebar
3. Select `Build Phases` tab
4. Expand `Link Binary With Libraries`
5. Add `RapidSnark.xcframework` from `Workspace/Pods` folder.
5. Add `Rapidsnark.xcframework` from `Workspace/Pods` folder.

## Example App

Expand Down
12 changes: 3 additions & 9 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,10 @@ android {
externalNativeBuild {
cmake {
cppFlags "-O2 -frtti -fexceptions -Wall -fstack-protector-all"
// abiFilters "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
abiFilters "x86_64", "arm64-v8a"
}
}
}
sourceSets {
main.jniLibs.srcDirs += "src/jniLibs"
}
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
}
}
buildTypes {
release {
minifyEnabled false
Expand Down Expand Up @@ -108,6 +99,9 @@ dependencies {
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
// implementation 'com.facebook.react:react-android:0.74.2'

implementation "io.iden3:rapidsnark:0.0.1-alpha.1"
}

if (isNewArchitectureEnabled()) {
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Rapidsnark_kotlinVersion=1.7.0
Rapidsnark_minSdkVersion=21
Rapidsnark_minSdkVersion=24
Rapidsnark_targetSdkVersion=31
Rapidsnark_compileSdkVersion=31
Rapidsnark_ndkversion=21.4.7075529
Binary file removed android/src/jniLibs/arm64-v8a/librapidsnark.so
Binary file not shown.
70 changes: 0 additions & 70 deletions android/src/jniLibs/prover.h

This file was deleted.

34 changes: 0 additions & 34 deletions android/src/jniLibs/verifier.h

This file was deleted.

Binary file removed android/src/jniLibs/x86_64/librapidsnark.so
Binary file not shown.
46 changes: 0 additions & 46 deletions android/src/main/cpp/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 6891fef

Please sign in to comment.