-
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
Open
joe-p
wants to merge
40
commits into
algorandfoundation:main
Choose a base branch
from
joe-p:spike/kotlin
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
8e54d34
spike: add kotlin
joe-p 5e597cf
wip: add android project
joe-p 503ccd5
feat: add in library module
michaeltchuang f0f7677
add build scripts section
joe-p 3cf8657
use cargo ndk
joe-p 9587d18
fix: use working copy of transact rust function
michaeltchuang e6ba286
fix: clean up code
michaeltchuang 6a1aea2
ci: add in mavenLocal publish
michaeltchuang f157dc5
Merge branch 'main' into spike/kotlin
joe-p d9a75e2
wip: add kotlin build script
joe-p 308e03b
chore: update README
joe-p 5f03448
chore: update gitignore
joe-p 577b8df
Merge branch 'main' into spike/kotlin
joe-p 82ac644
fix: build errors from latest main changes
michaeltchuang 2ecf988
Merge pull request #6 from michaeltchuang/spike/kotlin
joe-p d6c122e
fix: replace message with error_msg for kotlin
joe-p 6490bcf
fix: change sample app function reference
michaeltchuang f2827b3
Merge pull request #7 from michaeltchuang/spike/kotlin
joe-p c7112db
build: rm kotlin out dir before generating kotlin file
joe-p 889a07f
wip: format swift
joe-p 2643459
wip: swift fix build issues
joe-p a8dba73
wip: update swift tests
joe-p 8bcd074
wip: new project dir
joe-p 0c09642
chore: fix script
joe-p af47c41
Merge branch 'main' into spike/kotlin
joe-p 5aa70da
chore: fix merge issues
joe-p d8a592e
docs: typo
joe-p e3912aa
chore: rebuild kt
joe-p 22719b7
ci: kotlin ci
joe-p 507817d
ci: specify ndk
joe-p 8dbf107
ci: use sh -c
joe-p 49a7036
ci: only publish on push
joe-p 978793e
ci: remove redundant AAR step
joe-p 919f6c8
chore: rename kotlin to android
joe-p e9a0056
ci: add test step
joe-p e6ff7b9
ci: set jdk to 21
joe-p 5800e17
ci: ensure JNA can find libs
joe-p 7690d36
wip: try android emulator test
joe-p e7d57ed
wip: specify api level
joe-p e135a9b
wip: specify arch
joe-p File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| name: Android CI | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| android: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Code | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Set up JDK 21 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '21' | ||
|
|
||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: 1.85.0 | ||
| targets: aarch64-linux-android, arm-linux-androideabi, armv7-linux-androideabi, i686-linux-android, thumbv7neon-linux-androideabi, x86_64-linux-android | ||
|
|
||
| - name: Install Cargo-NDK | ||
| run: cargo install cargo-ndk@^3.5 | ||
|
|
||
| - name: Install Android ndk | ||
| uses: nttld/setup-ndk@v1 | ||
| with: | ||
| ndk-version: r27d | ||
|
|
||
| - name: Build AAR | ||
| run: cargo pkg transact aar | ||
|
|
||
| - name: Host Test | ||
| working-directory: packages/android/algokit_transact | ||
| run: ./gradlew test | ||
|
|
||
| - name: Enable KVM | ||
| run: | | ||
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | ||
| sudo udevadm control --reload-rules | ||
| sudo udevadm trigger --name-match=kvm | ||
|
|
||
| - name: Android Test | ||
| uses: reactivecircus/android-emulator-runner@v2 | ||
| with: | ||
| api-level: 34 | ||
| arch: x86_64 | ||
| script: ./gradlew connectedAndroidTest | ||
| working-directory: packages/android/algokit_transact | ||
|
|
||
| - name: Archive Build Output | ||
| uses: actions/upload-artifact@v4 | ||
| if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | ||
| with: | ||
| name: algokit_transact.aar | ||
| path: packages/android/algokit_transact/build/outputs/aar/algokit_transact-release.aar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.