Among the components it has are:
- rust
- gradle
- java jdk
- ndk
- bundletool
- buildtools
- command line tools
- platform tools
Command Line:
Note: for more information, consider looking at examples
# Debug
docker run --rm -it -v "$(pwd)/:/src" -w /src sergioribera/rust-android:180-sdk-33 assembleDebug -p gradle
# Release
docker run --rm -it -v "$(pwd)/:/src" -w /src sergioribera/rust-android:180-sdk-33 assembleRelease -p gradle
Github Action:
Note: for more information, consider looking at my project kill errors
env:
APP_NAME: my_application
jobs:
native_build:
container: sergioribera/rust-android:180-sdk-33
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Load .env file
uses: xom9ikk/dotenv@v2
# Start to build
- name: build apk
run: gradle assembleRelease -p launchers/mobile/android
- name: Rename APK
run: |
cp launchers/mobile/android/build/outputs/apk/release/android-release.apk ${{ env.APP_NAME }}.apk
- name: build aab
run: |
apk2aab ${{ env.APP_NAME }}.apk ${{ env.APP_NAME }}.aab