This session shows you the way to delivery your app to Apple Store (iOS) and Google Play (Android).

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 Flutter Corona Traker Pro and Flutter Corona Traker, you also refer 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:

IOS app:

  • Open ios/Runner/Info.plist and replace the Flutter Corona Traker with your App Name.
<key>CFBundleDisplayName</key>
	<string>Flutter Corona Traker</string>
  • Make sure to clean up the cache by running the following script to clean the previous cache.

    flutter clean
    flutter build ios

It's possible to change via XCode - https://tppr.me/Mfu5F. The Facebook app name and App ID could be changed from this file as well.

Android app:

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

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

    <application android:label="Flutter Corona Traker"

1.2 Change the app Bundle ID (package name):

Android app: Search on android folder and replace the following file -

  • android/app/build.gradle
  • android/app/src/main/AndroidManifest.xml
  • android/app/src/main/kotlin/com/smaertwebye/Flutter Corona Traker/MainActivity.kt
  • Rename the Android folder Path:

    • Flutter Corona Traker app: android/app/src/main/kotlin/com/smaertwebye/Flutter Corona Traker to your own bundle Path, example: if you bunndle id is com.smartwebye.coronaviroises, it will be android/app/src/main/kotlin/com/ins/flux
    • smaertwebyeapp: android/app/src/main/kotlin/com/smaertwebye/smaertwebyeto your own bundle Path, example: if you bunndle id iscom.smartwebye.coronaviroises, it will beandroid/app/src/main/kotlin/com/ins/flux`
    • FluxListing app: android/app/src/main/java/com/smaertwebye/fluxlisting to your own bundle Path, example: if you bunndle id is com.smartwebye.coronaviroises, 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.

iOS app: Open XCode and replace following this screenshot - https://tppr.me/Mfu5F

To get more detailed document, go to this link - https://flutter.dev/docs/deployment/ios

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