Android Configuration
Last updated
Was this helpful?
Last updated
Was this helpful?
Open FlyWeb_Flutter/android
folder with Android Studio
Right-click the res folder and select New > Image Asset.
In the Icon Type field, select Launcher Icons (Adaptive & Legacy).
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.
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.
In the Legacy tab, review the default settings and confirm you want to generate legacy, round, and Google Play Store icons.
Click Next.
Click Finish.
Image Asset Studio adds the images to the mipmap folders for the different densities.
Open FlyWeb_Flutter/android
folder with Android Studio
Right-click the res folder and select New > Image Asset.
In the Icon Type field, select Notification Icons.
Change name notification to ic_stat_onesignal_default
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.
Click Next.
Click Finish.
Image Asset Studio adds the images in the drawable folders for the different densities and versions.
Open FlyWeb_Flutter/android/app/src/main/res/values/strings.xml
and change the Fly Web
with your name
Open FlyWeb_Flutter/android/app/build.gradle
and change the package name
Open /android/app/src/main/AndroidManifest.xml
and specify your PACKAGE NAME
OpenFlyWeb_Flutter/android/app/src/main/kotlin/<Your Package name folders>/MainActivity.kt
and change the package name
Copy the generated google-service.json
file in FlyWeb_Flutter/android/app/
folder, you can see this video tutorial, please refer to this.
Then in your android/app/src/main/AndroidManifest.xml
:
And then you can remove all the permissions fro location
:
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
2- Open FlyWeb_Flutter/android/gradle.properties
and edit the following attributes after that re-build your application:
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
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.
Open the console, go to your project folder and execute the following command to build your application
You should get the APK file in the FlyWeb_Flutter/build/app/output/apk
folder.
Open the console, go to your project folder and execute the following command to build your application
The release bundle for your app is created at FlyWeb_Flutter/build/app/outputs/bundle/release/app.aab
.