diff --git a/crates/bitwarden-uniffi/kotlin/publish-local.sh b/crates/bitwarden-uniffi/kotlin/publish-local.sh index 68e67455..3f77e3b7 100755 --- a/crates/bitwarden-uniffi/kotlin/publish-local.sh +++ b/crates/bitwarden-uniffi/kotlin/publish-local.sh @@ -2,12 +2,13 @@ set -e cd "$(dirname "$0")" +SDK_REPO_ROOT="$(git rev-parse --show-toplevel)" mkdir -p ./sdk/src/main/jniLibs/{arm64-v8a,armeabi-v7a,x86_64,x86} # Build arm64 for emulator cross build -p bitwarden-uniffi --release --target=aarch64-linux-android -mv ../../target/aarch64-linux-android/release/libbitwarden_uniffi.so ./sdk/src/main/jniLibs/arm64-v8a/libbitwarden_uniffi.so +mv $SDK_REPO_ROOT/target/aarch64-linux-android/release/libbitwarden_uniffi.so ./sdk/src/main/jniLibs/arm64-v8a/libbitwarden_uniffi.so # Generate latest bindings ./build-schemas.sh