Skip to content

Commit

Permalink
ffi: rename android command to aar
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
  • Loading branch information
yukibtc committed Nov 2, 2024
1 parent e2c2fba commit d54b31c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bindings/nostr-sdk-ffi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ just kotlin
This command will build an AAR file in `ffi/android/lib-release.aar`:

```bash
just android
just aar
```

See [Add your AAR or JAR as a dependency](https://developer.android.com/studio/projects/android-library#psd-add-aar-jar-dependency) in Android's docs for more information on how to integrate such an archive into your project.
Expand Down
5 changes: 3 additions & 2 deletions bindings/nostr-sdk-ffi/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ kotlin: clean-android android
cargo run -p uniffi-bindgen generate --library ../../target/x86_64-linux-android/release/libnostr_sdk_ffi.so --language kotlin --no-format -o ffi/kotlin

# Copy required modules and libs and assemble AAR
[private]
assemble-aar:
rm -rf android/lib/src/main/jniLibs
rm -rf android/lib/src/main/kotlin
Expand All @@ -66,11 +67,11 @@ assemble-aar:
cp android/lib/build/outputs/aar/lib-release.aar ffi/android

# Compile and build Android Archive (AAR)
android: sdk-root kotlin assemble-aar
aar: sdk-root kotlin assemble-aar

# Publish android bindings
[confirm]
publish-android: android
publish-android: aar
cd android && ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache

[private]
Expand Down

0 comments on commit d54b31c

Please sign in to comment.