Skip to content

E2517/flutter-mobile-appcenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build and release an Android app in appcenter

1- Signing the app

  • Go to java/jdk/bin and inside execute this code changing USER_NAME for your user

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

  • Go to your flutter project /android/app/build.gradle and apply the changes that Flutter

2- Building the app for release (two options).

  • flutter build appbundle (recommended however not supported for some stores)
  • 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

Removing the --split-per-abi flag results in a fat APK that contains your code compiled for all the target ABIs. Such APKs are larger in size than their split counterparts, causing the user to download native binaries that are not applicable to their device’s architecture.


Appcenter: two options

1- Build the flutter app directly after signing the app you do not need to run flutter build appbundle appcenter (complex)

This projects is about building the flutter app directly in appcenter.

2- Generate the apk with flutter build apk --split-per-abi after signing the app and release it in appcenter (simple)

About

Build and release an Android app in appcenter (cross-platform)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published