From 01afccc78c28ecabba0f6a75ef7dd457673a549c Mon Sep 17 00:00:00 2001 From: Varakh Date: Mon, 8 Feb 2021 18:00:43 +0100 Subject: [PATCH] Use apks instead of appbundle for Play Store --- CHANGELOG.md | 3 +++ android/fastlane/Fastfile | 5 +++++ android/fastlane/README.md | 5 +++++ android/fastlane/buildAndroidProduction.sh | 10 ++++++++++ pubspec.yaml | 2 +- 5 files changed, 24 insertions(+), 1 deletion(-) create mode 100755 android/fastlane/buildAndroidProduction.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index d3af263..0b6dad2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## 1.0.0+3 +* Fixed launch bug + ## 1.0.0+2 * Automatic refresh history if something has been uploaded diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index 66b19c7..ee793ac 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -6,6 +6,11 @@ platform :android do sh("#{ENV['PWD']}/fastlane/buildAndroidDebug.sh") end + desc "Build Production" + lane :build_production do + sh("#{ENV['PWD']}/fastlane/buildAndroidProduction.sh") + end + desc "Build" lane :build do sh("#{ENV['PWD']}/fastlane/buildAndroid.sh") diff --git a/android/fastlane/README.md b/android/fastlane/README.md index 0eb400f..cf03cbb 100644 --- a/android/fastlane/README.md +++ b/android/fastlane/README.md @@ -21,6 +21,11 @@ or alternatively using `brew install fastlane` fastlane android build_debug ``` Build Debug +### android build_production +``` +fastlane android build_production +``` +Build Production ### android build ``` fastlane android build diff --git a/android/fastlane/buildAndroidProduction.sh b/android/fastlane/buildAndroidProduction.sh new file mode 100755 index 0000000..49952be --- /dev/null +++ b/android/fastlane/buildAndroidProduction.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env sh + +cd ../../; +flutter clean && \ +flutter pub get && +flutter packages pub run build_runner build --delete-conflicting-outputs; + +flutter build apk --debug +flutter build apk --profile +flutter build apk --release --target-platform android-arm,android-arm64,android-x64 --split-per-abi; \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index fe7264c..875c88e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: A mobile client for FileBin. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.0+2 +version: 1.0.0+3 environment: sdk: ">=2.7.0 <3.0.0"