diff --git a/Cargo.lock b/Cargo.lock index 4f6efad..eb7d05a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,7 +58,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1fd03a028ef38ba2276dce7e33fcd6369c158a1bca17946c4b1b701891c1ff7" [[package]] -name = "aptos-mobile" +name = "aptos_mobile" version = "0.2.5" dependencies = [ "bulletproofs", diff --git a/aptos-mobile/Cargo.toml b/aptos-mobile/Cargo.toml index e4676fe..76d41ae 100644 --- a/aptos-mobile/Cargo.toml +++ b/aptos-mobile/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "aptos-mobile" +name = "aptos_mobile" version = "0.2.5" edition = "2021" diff --git a/aptos-mobile/build-android.sh b/aptos-mobile/build-android.sh index 7cd83a6..0dccc25 100644 --- a/aptos-mobile/build-android.sh +++ b/aptos-mobile/build-android.sh @@ -19,4 +19,4 @@ cargo ndk -o ./android/src/main/jniLibs \ build --release # Create Kotlin bindings -cargo run --bin uniffi_bindgen generate --library ./target/debug/libaptos_rp_mobile.dylib --language kotlin --out-dir ./android/src/main/com/example \ No newline at end of file +cargo run --bin uniffi_bindgen generate --library ./target/debug/libaptos_mobile.dylib --language kotlin --out-dir ./android/src/main/com/example \ No newline at end of file diff --git a/aptos-mobile/build-ios.sh b/aptos-mobile/build-ios.sh index 6be504d..f9115c8 100644 --- a/aptos-mobile/build-ios.sh +++ b/aptos-mobile/build-ios.sh @@ -6,7 +6,7 @@ rm -rf ./ios cargo build # Generate bindings -cargo run --bin uniffi_bindgen generate --library ./target/debug/libaptos_rp_mobile.dylib --language swift --out-dir ./bindings +cargo run --bin uniffi_bindgen generate --library ./target/debug/libaptos_mobile.dylib --language swift --out-dir ./bindings # Add the iOS targets and build for TARGET in \ @@ -21,18 +21,18 @@ do done # Rename *.modulemap to module.modulemap -mv ./bindings/aptos_rp_mobileFFI.modulemap ./bindings/module.modulemap +mv ./bindings/aptos_mobileFFI.modulemap ./bindings/module.modulemap # Move the Swift file to the project mkdir ios mkdir ./ios/bindings -mv ./bindings/aptos_rp_mobile.swift ./ios/bindings/aptos_rp_mobile.swift +mv ./bindings/aptos_mobile.swift ./ios/bindings/aptos_mobile.swift # Recreate XCFramework rm -rf "ios/Mobile.xcframework" xcodebuild -create-xcframework \ - -library ./target/aarch64-apple-ios-sim/release/libaptos_rp_mobile.a -headers ./bindings \ - -library ./target/aarch64-apple-ios/release/libaptos_rp_mobile.a -headers ./bindings \ + -library ./target/aarch64-apple-ios-sim/release/libaptos_mobile.a -headers ./bindings \ + -library ./target/aarch64-apple-ios/release/libaptos_mobile.a -headers ./bindings \ -output "ios/AptosWasmBindings.xcframework" # Cleanup