From ca336b266e3f09f7ba525be9fbbe0b9958b53221 Mon Sep 17 00:00:00 2001 From: Alexander Menk Date: Sun, 8 Oct 2023 16:58:02 +0200 Subject: [PATCH] Target Android 13, bump version --- DEVELOPMENT.md | 17 +++++++++++++++-- android/app/build.gradle | 2 +- .../metadata/android/en-US/changelogs/6.txt | 3 --- .../metadata/android/en-US/changelogs/7.txt | 4 ++++ pubspec.yaml | 2 +- 5 files changed, 21 insertions(+), 7 deletions(-) delete mode 100644 android/fastlane/metadata/android/en-US/changelogs/6.txt create mode 100644 android/fastlane/metadata/android/en-US/changelogs/7.txt diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 2460ffa..c90ea0a 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -32,11 +32,24 @@ sudo apt install ruby ruby-dev sudo gem install fastlane ``` -### Uploading +### Releasing / Uploading to Google Play +1. Bump version in pubspec.yaml +2. Add changelog in `fastlane/metadata/android/en-US/changelogs` +2. Push to GitHub, merge to master, make a new tag + +#### GitHub Release +3. `flutter build apk --analyze-size --target-platform android-arm` +4. Upload apk to GitHub + +### Playstore Release + +5. Build an use fastlane supply ``` -cd android && fastlane supply --track internal --version-code 2 +flutter build appbundle +cd android && fastlane supply --track internal --aab ../build/app/outputs/bundle/release/app-release.aab --version-code x # replace by the version code from pubspec.yaml ``` +6. Go to [playstore](https://play.google.com/console/u/0/developers/?pli=1), check everything and promote from the internal to the the public track ### Taking Screenshots diff --git a/android/app/build.gradle b/android/app/build.gradle index 1d76815..be099ed 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -51,7 +51,7 @@ android { defaultConfig { applicationId "com.addismaptransit.app" minSdkVersion flutter.minSdkVersion - targetSdkVersion flutter.targetSdkVersion + targetSdkVersion 33 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/android/fastlane/metadata/android/en-US/changelogs/6.txt b/android/fastlane/metadata/android/en-US/changelogs/6.txt deleted file mode 100644 index 64ff4f6..0000000 --- a/android/fastlane/metadata/android/en-US/changelogs/6.txt +++ /dev/null @@ -1,3 +0,0 @@ -- Updated Search Data -- Notification Function -- More Amharic Translations \ No newline at end of file diff --git a/android/fastlane/metadata/android/en-US/changelogs/7.txt b/android/fastlane/metadata/android/en-US/changelogs/7.txt new file mode 100644 index 0000000..cf696bd --- /dev/null +++ b/android/fastlane/metadata/android/en-US/changelogs/7.txt @@ -0,0 +1,4 @@ +- Updated Search Data +- Notification Function +- More Amharic Translations +- Target SDK: Android 13 (API-Level 33) \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 698aecc..66a4da7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # 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.1+6 +version: 1.0.2+7 environment: sdk: ">=2.15.0 <3.0.0"