xxxxxxxxxx
flutter build apk --release
// To test release apk with logs you can try below commands:
flutter devices // to check all available devices
flutter run -d [deviceID] --release
// This will run the app in release mode & you can check logs
xxxxxxxxxx
For apk (Android) you need to run the command :
flutter build apk --release
If you want to split the apks per abi (Split Apk) then run:
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
For ipa (iOS) you need to run the command :
flutter build ios --release
xxxxxxxxxx
create keystore
keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
xxxxxxxxxx
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
xxxxxxxxxx
keytool -genkey -v -keystore %userprofile%\upload-keystore.jks ^
-storetype JKS -keyalg RSA -keysize 2048 -validity 10000 ^
-alias upload