-
Notifications
You must be signed in to change notification settings - Fork 7
build(android): preliminary Android support for algokit_transact #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
fix: build errors from latest main changes
fix: change sample app function reference
wip: android test with README
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces preliminary Kotlin/Android support for algokit_transact by adding build infrastructure and test coverage. The changes include a new Kotlin build module, updates to existing Swift FFI bindings to reflect API changes, and refactoring of error message field names from message to error_msg across the Rust codebase.
- New Kotlin build support with Android-specific configurations
- Refactored error handling field naming for consistency
- Updated Swift package tests to align with API changes
Reviewed Changes
Copilot reviewed 45 out of 59 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/build_pkgs/src/kotlin.rs | New build script for Kotlin/Android packages with multi-target compilation |
| tools/build_pkgs/src/main.rs | Added Kotlin language variant and integrated kotlin build module |
| tools/build_pkgs/src/python.rs | Updated to use new dylib(None) signature |
| packages/android/algokit_transact/* | New Gradle-based Android library with unit and instrumented tests |
| crates/algokit_transact_ffi/src/lib.rs | Renamed error field from message to error_msg |
| crates/algokit_transact/src/error.rs | Renamed error message field for consistency |
| packages/swift/AlgoKitTransact/* | Updated tests and FFI headers to reflect API changes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Closes #289
Closes #291
See the README in packages/android/algokit_transact for build and test steps.
Note that this PR is specifically targeted towards android and building an AAR. In the future we eventually should publish a multi-platform package for algokit_transact on maven central.
Will need #292 to merge first