Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.02 KB

Deployment.md

File metadata and controls

30 lines (22 loc) · 1.02 KB

Deployment

A guide to prepare a release

Build app bundle

This section describes how to build a release app bundle. If you completed the signing steps, the app bundle will be signed. At this point, you might consider obfuscating your Dart code to make it more difficult to reverse engineer. Obfuscating your code involves adding a couple flags to your build command, and maintaining additional files to de-obfuscate stack traces.

flutter build appbundle

Build an APK

Although app bundles are preferred over APKs, there are stores that don’t yet support app bundles. In this case, build a release APK for each target ABI (Application Binary Interface).

flutter build apk --split-per-abi

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.

flutter build apk