Skip to content

Deployment: Mobile Client

This guide covers the essential pre-release tasks for building and deploying the Flutter News App Mobile Client to the Google Play Store and Apple App Store.

  1. Update the Package ID

    The Android package ID is a unique identifier for your app. You must change it from the default.

    • Open android/app/build.gradle.
    • Locate the applicationId field and change its value to your own unique ID (e.g., com.yourcompany.newsapp).
  2. Change the App Display Name

    • Open android/app/src/main/AndroidManifest.xml.
    • Find the android:label attribute within the <application> tag and update its value to your app’s name.
  3. Generate App Icons

    The project uses the flutter_launcher_icons package to generate app icons.

    • Replace the placeholder icon file in your project’s assets folder with your own icon (1024x1024 recommended).
    • Update the flutter_launcher_icons.yaml file if your icon has a different name.
    • Run the following command to generate the icons:
      Terminal window
      flutter pub run flutter_launcher_icons
  4. Create a Production Keystore

    You must sign your Android app with a private key before uploading it to the Play Store.

  5. Configure Gradle for Signing

    • Create a file named android/key.properties (this file is in .gitignore and should not be committed).
    • Add your keystore information to this file:
      storePassword=YOUR_STORE_PASSWORD
      keyPassword=YOUR_KEY_PASSWORD
      keyAlias=YOUR_KEY_ALIAS
      storeFile=path/to/your/keystore.jks
    • Open android/app/build.gradle and ensure the signing configuration section is set up to read from this key.properties file.
  6. Build the Release Bundle

    Generate a production-ready Android App Bundle (.aab):

    Terminal window
    flutter build appbundle

    The output file will be located at build/app/outputs/bundle/release/app-release.aab. You can now upload this file to the Google Play Console.