This session shows you the way to delivery your app to Google Play (Android), update your app name, app icon, bundle id (package name), generate APK file.

When installing, if you get issue, please go to Common Questions or Common Issues to find the solutions.

1. Update name/icon, Bundle ID

In order to release the app, you need to change your own App name, icon and Bundle ID. Please check following guide to know how to change it.

For Fluxstore Pro and Fluxstore Woocommerce, if using Mac, you can refer to this video guide for running the script to change bundle id, rename working folder, and change app name. For other apps, we will update asap.

1.1. Change the app name:

  • Open android/app/src/main/res/values/strings.xml and replace Fluxstore with your app name:

    <string name="app_name">FluxStore</string>
  • Open android/app/src/main/AndroidManifest.xml and replace Fluxstore with your app name:

    <application android:label="Fluxstore"

1.2. Change the app Bundle ID (package name):

Android app: Search on android folder and replace the following file - https://tppr.me/bWCvp

  • android/app/build.gradle
  • android/app/src/main/AndroidManifest.xml
  • android/app/src/main/kotlin/com/inspireui/fluxstore/MainActivity.kt
  • Rename the Android folder Path:

    • Fluxstore app: android/app/src/main/kotlin/com/inspireui/fluxstore to your own bundle Path, example: if you bunndle id is com.ins.flux, it will be android/app/src/main/kotlin/com/ins/flux
    • Fluxnews app: android/app/src/main/kotlin/com/inspireui/fluxnews to your own bundle Path, example: if you bunndle id iscom.ins.flux, it will beandroid/app/src/main/kotlin/com/ins/flux`
    • FluxListing app: android/app/src/main/java/com/inspireui/fluxlisting to your own bundle Path, example: if you bunndle id is com.ins.flux, it will be android/app/src/main/java/com/ins/flux
  • Please note that the file android/app/google-services.json should be download again from Firebase to match your new bundle id. Otherwise the app will crash.

1.3. Change the App Icon

Replace your own icon file assets/images/app_icon.png Run this script to generate the app icon for both iOS and Android: (To run flutter pub - you need to install flutter from terminal - pls check https://flutter.dev/docs/get-started/install/macos)

flutter pub run flutter_launcher_icons:main

2. Generate APK file

To generate the apk, you need to create the keystore file and save to android/app folder, make sure to save this file to reuse for other version upgrade.

On Mac/Linux, use the following command:

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

On Windows, use the following command:

keytool -genkey -v -keystore c:/Users/USER_NAME/key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias key

Create a file named /android/key.properties that contains a reference to your keystore:

storePassword=<password from previous step>
keyPassword=<password from previous step>
keyAlias=key
storeFile=<location of the key store file, such as /Users/<user name>/key.jks>

Then build the apk with this script:

flutter build apk --split-per-abi

This command results in three APK files:

  • /build/app/outputs/apk/release/app-armeabi-v7a-release.apk
  • /build/app/outputs/apk/release/app-arm64-v8a-release.apk
  • /build/app/outputs/apk/release/app-x86_64-release.apk

3. Upload to Google Play Store

You can refer to these videos for publishing a Flutter app to the Play Store:

For more information about the Fluxstore app demo, go to our release on Appstore and Google Play store.

There are the detailed guide from Flutter guide, please go through these pages - Build and release for Android