Files
salvium-rs/ios/ExpoSalviumCrypto.podspec
T
Matt Hess 01bcb742ae ● Restructure native module for Expo auto-discovery, fix 3 test failures
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)
2026-02-09 22:50:15 +00:00

31 lines
1.2 KiB
Ruby

Pod::Spec.new do |s|
s.name = "ExpoSalviumCrypto"
s.version = "0.1.0"
s.summary = "Native JSI crypto module for salvium-js (iOS)"
s.description = "Exposes Rust curve25519-dalek crypto via JSI for high-performance wallet scanning on iOS."
s.homepage = "https://github.com/salvium/salvium-js"
s.license = { :type => "MIT" }
s.author = "Salvium Contributors"
s.platforms = { :ios => "13.0" }
s.source = { :git => "https://github.com/salvium/salvium-js.git", :tag => s.version.to_s }
# C++ JSI source (shared between iOS and Android)
s.source_files = "../cpp/SalviumCryptoModule.{h,cpp}"
s.header_dir = "SalviumCrypto"
# Rust static library (prebuilt universal binary)
s.vendored_libraries = "../prebuilt/ios/libsalvium_crypto.a"
# C header search path for salvium_crypto.h
s.preserve_paths = "../crates/salvium-crypto/include/**"
s.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/../crates/salvium-crypto/include\"",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
"OTHER_LDFLAGS" => "-lsalvium_crypto"
}
# React Native JSI dependency
s.dependency "React-jsi"
s.dependency "React-Core"
end