This method should work on both flutter
and react native
just replacing the build command to yours.
For react native, android license have to use the sdkmanager
command insteadof flutter doctor --android-licenses
.
- yes | /usr/lib/android-sdk/tools/bin/sdkmanager --license || true
- SSH_PRIVATE_KEY - private key for getting private packages ( optional )
- ANDROID_CLI_VERSION - Android sdkmanager tools version ( sdk-tools-linux-4333796 )
- AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY - Aws credentails ( optional )
- FLUTTER_VERSION - flutter sdk version ( flutter_linux_1.17.4-stable, can be found at https://flutter.dev/docs/development/tools/sdk/releases )
- ANDROID_KEYSTORE - Base64 encoded keystore binary ( you can get it using
openssl base64 -A -in filename.keystore
. )