From e155bd3871c74a1b9934faf3246db4fa4d3ae42b Mon Sep 17 00:00:00 2001 From: Anton Stubenbord <79228196+astubenbord@users.noreply.github.com> Date: Fri, 11 Nov 2022 10:39:17 +0100 Subject: [PATCH] Added release build instructions --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index d87b241..6a915da 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,35 @@ To get a local copy up and running follow these simple steps. ```sh flutter pub run intl_utils:generate ``` + +### Build release version +In order to build a release version, you have to... +1. Exchange the signing configuration in android/app/build.gradle from +```gradle +buildTypes { + release { + signingConfig signingConfigs.release + } +} +``` +to +```gradle +buildTypes { + release { + signingConfig signingConfigs.debug + } +} +``` +2. Build the app with release profile (here for android): +```sh +flutter build apk --split-per-abi +``` +(the --release flag is implicit for the build command) +3. Install the app to your device +```sh +flutter install +```