Publishing Flutter app
Reference
https://flutter.dev/docs/deployment/android
https://flutter.dev/docs/deployment/android
Making release build to the device
flutter run --release -d <YourDeviceID from adb devices>Building app bundles with code obfuscations
flutter build appbundle --obfuscate --split-debug-info=/debug_infoBuilding universal apk
flutter build apk --obfuscate --split-debug-info=/debug_infoBuilding apk for 32bit
flutter build apk --target-platform=android-arm --obfuscate --split-debug-info=/debug_infoBuilding apk for 64bit
flutter build apk --target-platform=android-arm64 --obfuscate --split-debug-info=/debug_infoSpliting apk
flutter build apk --split-per-abi --obfuscate --split-debug-info=/debug_info
Building for web
Switch to beta channel
flutter channel beta
Note : If the blank screen error occur, go to dev channel
flutter channel dev
Upgrade to get the latest build
flutter upgrade
Enable web support
flutter config --enable-web
Check whether the required chrome debugger is installed
flutter doctor -v
Add web support on the project
flutter create .
Run on chrome
flutter run -d chrome
flutter run --release -d chrome
Building html package
flutter build web
Uploading aab file to the playstore
- Select new release to beta in app releases section
- Choose Let Google manage and protect your app signing key
- Download pepk tool and save it in any directory
- Select export and upload a key from java keystore
Then run it
$ java -jar pepk.jar --keystore=foo.keystore --alias=foo --output=encrypted_private_key_path --encryptionkey=your_encryption key
and you will get encrypted_private_key_path file and upload that file!
Click Finish and you'll be able to upload aab files for publishings!
Comments
Post a Comment