01bcb742ae
Move native code from native/ to Expo-compatible layout with android/
and ios/ at package root. Add Android JNI bridge (OnLoad.cpp,
ExpoSalviumCryptoModule.java, ExpoSalviumCryptoPackage.java).
Prebuilt binaries now go in prebuilt/ instead of native/lib/.
Test fixes:
- wallet-sync: update stale DEFAULT_BATCH_SIZE assertion (10 -> 100)
- bulletproofs+: fix hashToPoint -> hashToPointMonero rename in test,
fix serializeProof to include V array matching parseProof format
- transaction-builder: expect 2 outputs for exact-amount tx (zero-change
output is always added for privacy)
52 lines
980 B
Groovy
52 lines
980 B
Groovy
// ExpoSalviumCrypto — Android build config
|
|
// Links the Rust-compiled .so + C++ JSI module
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "com.android.tools.build:gradle:8.1.0"
|
|
}
|
|
}
|
|
|
|
apply plugin: "com.android.library"
|
|
|
|
android {
|
|
namespace "com.salvium.crypto"
|
|
compileSdkVersion 34
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
targetSdkVersion 34
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
cppFlags "-std=c++17 -fexceptions"
|
|
arguments "-DANDROID_STL=c++_shared"
|
|
}
|
|
}
|
|
|
|
ndk {
|
|
abiFilters "arm64-v8a", "armeabi-v7a", "x86_64"
|
|
}
|
|
}
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
path "CMakeLists.txt"
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ["../prebuilt/android"]
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation "com.facebook.react:react-android"
|
|
}
|