Active eCommerce Flutter App Documentation
- How to run Flutter Application in Android Studio?
- How to configure the App according to your setup?
- How to change the package name ?
- How to Build the app for testing (build an apk) ?
- How to generate play store uploadable files for release?
- How to run IOS? **Read all the points carefully before doing anything
- How to generate app store uploadable files?
- How to update for android? **Read all the points carefully before doing anything
- How to configure social login?
- How to configure push notification?
- How to configure google map? (Read the whole thing before implementing)
- How to configure the default language for mobile apps?
- How to configure multiple languages for mobile app? (Read the whole thing before implementing)
- How to remove cache data.
How to generate play store uploadable files for release?
https://flutter.dev/docs/deployment/android see the doc for reference
Signing the app:
To publish on the Play Store, you need to give your app a digital signature. Use the following instructions to sign your app.
Go through the screenshots below carefully to understand how to generate key and and use it for the released signed app:
Setup environment for keytool:
Run this command in your system terminal: flutter doctor -v
Find the Java binary at: copy this path except the “java” folder.
Change your terminal path by running this command : cd “past here your copied path” then press enter. Example: cd C:\Program Files\Android\Android Studio\jre\bin
Run the keytool.exe file. Example: C:\Program Files\Android\Android Studio\jre\bin>keytool.exe
Create jks file for uploading app on playstore:
Open your project path and run this command: keytool -genkey -v -keystore android/app/key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 100000 -alias key
Provide all information.
Your created JKS file is located your project->android->app folder
** If you lose the jks file , you will not be able to release a new update your app in playstore**
Enter the information in the file key.properties in the android folder.
storePassword.
keyPassword.
keyAlise.
storeFile
Read this
in app/build.gradle do necessary changes
Note: You may need to run flutter clean after changing the gradle file. This prevents cached builds from affecting the signing process.
Now you are almost done
In your terminal run : flutter build appbundle
The release bundle for your app is created at <your app dir>/build/app/outputs/bundle/release/app.aab.
Upload this app.aab file to your google play console