GOLDTV IPTV DOCUMMENTS
  • Introduction
    • Required
    • Start
  • Android
    • Icons
    • Get dependencies
    • Change Package name
  • Settings
    • Colors
    • Text App
    • Language
  • Firebase
    • Install Firebase CLI
    • Firebase Flutter Project
    • Admin Panel Firebase
  • Build app
    • Run app
    • Build and install the application
Powered by GitBook
On this page
  1. Build app

Build and install the application

PreviousRun app

Last updated 5 months ago

1- After making all your changes and modifications, save all your projects, open the console, navigate to your project file and execute the following command to build your application

flutter build apk --release

If you are publishing the app in the Play Store, it is recommended to use app bundles or split APK to reduce the size of the app. To create the application package, run:

flutter build appbundle --target-platform android-arm,android-arm64,android-x64

Learn more: To split APKs per ABI, run:

flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi

Learn more:

You should get the apk file inbuild/output/apk file, to install your application on your connected device, follow the command below:

flutter install

2- If you want to upload your app to Google Play, you must sign it before uploading, generate the sign it key by running the following command:

keytool -genkey -v -keystore android/app/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key

3- Open /android/key.propertiesAnd modify the following attributes to rebuild your application:

storePassword=<Your Key Password>
keyPassword=<Your Key Password>
keyAlias=key
storeFile=key.jks
https://developer.android.com/guide/app-bundle
https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split