Android Configuration

Open Image Asset from Android Studio

  1. Open FlyWeb_Flutter/android folder with Android Studio

  2. Right-click the res folder and select New > Image Asset.

Change icon application

  1. In the Icon Type field, select Launcher Icons (Adaptive & Legacy).

  2. In the Foreground Layer tab, select an Asset Type, and then specify the asset in the field underneath:

    • Select Image to specify the path for an image file.

    • Select Clip Art to specify an image from the material design icon set.

    • Select Text to specify a text string and select a font.

  3. In the Background Layer tab, select an Asset Type, and then specify the asset in the field underneath. You can either select a color or specify an image to use as the background layer.

  4. In the Legacy tab, review the default settings and confirm you want to generate legacy, round, and Google Play Store icons.

  5. Click Next.

  6. Click Finish.

Image Asset Studio adds the images to the mipmap folders for the different densities.

Change notification icon

  1. Open FlyWeb_Flutter/android folder with Android Studio

  2. Right-click the res folder and select New > Image Asset.

  3. In the Icon Type field, select Notification Icons.

  4. Change name notification to ic_stat_onesignal_default

  5. Select an Asset Type, and then specify the asset in the field underneath:

    • In the Clip Art field, click the button.

      In the Select Icon dialog, select a material icon and then click OK.

    • In the Path field, specify the path and file name of the image. Click ... to use a dialog.

    • In the Text field, type a text string and select a font.

    The icon appears in the Source Asset area on the right side, and in the preview area at the bottom of the wizard.

  6. Click Next.

  7. Click Finish.

Image Asset Studio adds the images in the drawable folders for the different densities and versions.

Change Application Name

  1. Open FlyWeb_Flutter/android/app/src/main/res/values/strings.xml and change the Fly Web with your name

<resources>
    <string name="app_name"><REPLACE WITH YOUR NAME></string>
</resources>

Change Package Name

  1. Open FlyWeb_Flutter/android/app/build.gradle and change the package name

    ...
    defaultConfig {
            applicationId "<REPLACE WITH YOUR PACKAGE NAME>"
           ...
    }
    ...
  2. Open /android/app/src/main/AndroidManifest.xml and specify your PACKAGE NAME

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="<YOUR PACKAGE NAME>">
...
  1. OpenFlyWeb_Flutter/android/app/src/main/kotlin/<Your Package name folders>/MainActivity.kt and change the package name

  2. Copy the generated google-service.json file in FlyWeb_Flutter/android/app/ folder, you can see this video tutorial, please refer to this.

Remove The Permissions from Android Manifest XML file

Then in your android/app/src/main/AndroidManifest.xml:

And then you can remove all the permissions fro location :

1. Method : Signing Application ( Android Studio )

2. Method : Signing Application ( CMD )

1- To upload your application on Google Play you need to sign it before uploading

Generate a signing key by running the following command:

NB: Open terminal in folder FlyWeb_Flutter

Don't forget to remove old key.jks file from android/app/key.jks

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

2- Open FlyWeb_Flutter/android/gradle.properties and edit the following attributes after that re-build your application:

storePassword_=<Your Key Password>
keyPassword_=<Your Key Password>
keyAlias_=key
storeFile_=key.jks

Update Key with my Old-Key

If you have an old app,Just change this like your old version :

1- Change this file key.jks

2- Change this with your old information key

storePassword_=<Your Key Password>
keyPassword_=<Your Key Password>
keyAlias_=key
storeFile_=key.jks

Changing App Name and Version Number

Changing versionName and versionCode in pubspec.yaml file.

Whenever we release the app for the first time it by default will take up version 1.0.0 and if we want to change it in next release we can simply type in the build name(version name) and build number(version code) of our choice.

Generate APK

Open the console, go to your project folder and execute the following command to build your application

flutter build apk --release

You should get the APK file in the FlyWeb_Flutter/build/app/output/apk folder.

Generate App Bundle

Open the console, go to your project folder and execute the following command to build your application

flutter build appbundle

The release bundle for your app is created at FlyWeb_Flutter/build/app/outputs/bundle/release/app.aab.

Last updated