Add a new CI workflow that can be triggered manually to record screenshots.
GitHub-hosted Linux runners support hardware acceleration for Android SDK tools, which makes running Android tests much faster and consumes fewer minutes. For more information on Android hardware acceleration, see Configure hardware acceleration for the Android Emulator in the Android Developers documentation.
Read api-level from sdk-target in gradle/libs.versions.toml.
AVD snapshot caching is not necessary as this workflow with be use every few months/yearly at the most.
Should install main app from https://github.com/mtransitapps/mtransit-for-android/releases/latest
Before installing the current project release build.
Then should use commons-android/#65 or commons-android/pub/module-app-screenshot.sh
To grant location permission:
- use
adb install -g file.apk
- use
adb shell pm grant org.mtransit.android android.permission.ACCESS_FINE_LOCATION/ACCESS_COARSE_LOCATION
Links:
Add a new CI workflow that can be triggered manually to record screenshots.
Read api-level from
sdk-targetingradle/libs.versions.toml.AVD snapshot caching is not necessary as this workflow with be use every few months/yearly at the most.
Should install main app from https://github.com/mtransitapps/mtransit-for-android/releases/latest
Before installing the current project release build.
Then should use commons-android/#65 or commons-android/pub/module-app-screenshot.sh
To grant location permission:
adb install -g file.apkadb shell pm grant org.mtransit.android android.permission.ACCESS_FINE_LOCATION/ACCESS_COARSE_LOCATIONLinks: