Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dovgopoly committed Dec 18, 2024
1 parent ad16642 commit ce53e08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aptos-mobile/build-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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_mobile.dylib --language kotlin --out-dir ./android/src/main/com/example
cargo run --bin uniffi_bindgen generate --library ../target/debug/libaptos_mobile.dylib --language kotlin --out-dir ./android/src/main/com/example
6 changes: 3 additions & 3 deletions aptos-mobile/build-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rm -rf ./ios
cargo build

# Generate bindings
cargo run --bin uniffi_bindgen generate --library ./target/debug/libaptos_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 \
Expand All @@ -31,8 +31,8 @@ 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_mobile.a -headers ./bindings \
-library ./target/aarch64-apple-ios/release/libaptos_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
Expand Down

0 comments on commit ce53e08

Please sign in to comment.