Skip to content

Commit 6891fef

Browse files
authored
0.0.1 alpha.5 (#10)
* 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.
1 parent e532a5b commit 6891fef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2352
-4278
lines changed

.npmignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
**/.*
2+
**/__fixtures__
3+
**/__mocks__
4+
**/__tests__
5+
android/build
6+
android/gradle
7+
android/gradlew
8+
android/gradlew.bat
9+
android/local.properties
10+
build
11+
/example/
12+
ios/build
13+
node_modules

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ building for 'iOS-simulator', but linking in object file (${SRC_ROOT}/ios/Framew
115115
2. Select your project in the left sidebar
116116
3. Select `Build Phases` tab
117117
4. Expand `Link Binary With Libraries`
118-
5. Add `RapidSnark.xcframework` from `Workspace/Pods` folder.
118+
5. Add `Rapidsnark.xcframework` from `Workspace/Pods` folder.
119119

120120
## Example App
121121

android/build.gradle

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,10 @@ android {
6767
externalNativeBuild {
6868
cmake {
6969
cppFlags "-O2 -frtti -fexceptions -Wall -fstack-protector-all"
70-
// abiFilters "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
7170
abiFilters "x86_64", "arm64-v8a"
7271
}
7372
}
7473
}
75-
sourceSets {
76-
main.jniLibs.srcDirs += "src/jniLibs"
77-
}
78-
externalNativeBuild {
79-
cmake {
80-
path "src/main/cpp/CMakeLists.txt"
81-
}
82-
}
8374
buildTypes {
8475
release {
8576
minifyEnabled false
@@ -108,6 +99,9 @@ dependencies {
10899
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
109100
//noinspection GradleDynamicVersion
110101
implementation "com.facebook.react:react-native:+"
102+
// implementation 'com.facebook.react:react-android:0.74.2'
103+
104+
implementation "io.iden3:rapidsnark:0.0.1-alpha.1"
111105
}
112106

113107
if (isNewArchitectureEnabled()) {

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Rapidsnark_kotlinVersion=1.7.0
2-
Rapidsnark_minSdkVersion=21
2+
Rapidsnark_minSdkVersion=24
33
Rapidsnark_targetSdkVersion=31
44
Rapidsnark_compileSdkVersion=31
55
Rapidsnark_ndkversion=21.4.7075529
-1.9 MB
Binary file not shown.

android/src/jniLibs/prover.h

Lines changed: 0 additions & 70 deletions
This file was deleted.

android/src/jniLibs/verifier.h

Lines changed: 0 additions & 34 deletions
This file was deleted.
-1.74 MB
Binary file not shown.

android/src/main/cpp/CMakeLists.txt

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)