From f194c6d1e9f4d2001e2a5468091ed3b0a60e317b Mon Sep 17 00:00:00 2001 From: Stefan Kebekus Date: Sun, 22 Dec 2024 20:18:26 +0100 Subject: [PATCH] Done. --- CHANGELOG.md | 5 +++++ fastlane/Fastfile | 13 +++++++++++-- fastlane/metadata/android/en-US/104006.txt | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 fastlane/metadata/android/en-US/104006.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 5278df1..a544f06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.4.6 - 2024-12-22 + +- Updates in the underlying libaries. + + ## 1.4.4 - 2024-07-27 - Minor improvements in the user interface, the app now targets Android API 34. diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 6371665..efaa558 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -49,7 +49,7 @@ platform :android do lane :metadata do # Update Changelog files matches = File.read("../CHANGELOG.md").scan(/^## \s*\[?(.*?)\]?\s*-\s*.*?\n(.*?)(?=^## |\z)/m) - latest_version, changelog_text = matches.last + latest_version, changelog_text = matches.first major, minor, patch = latest_version.split('.').map(&:to_i) version_code = 100000 * major + 1000 * minor + patch File.write("metadata/android/en-US/#{version_code}.txt", changelog_text.strip) @@ -68,6 +68,15 @@ platform :android do metadata upload_to_play_store(aab: 'build/addhoursandminutes.aab', track: 'beta') end + + desc "Promote Beta to Release" + lane :promoteBetaToRelease do + matches = File.read("../CHANGELOG.md").scan(/^## \s*\[?(.*?)\]?\s*-\s*.*?\n(.*?)(?=^## |\z)/m) + latest_version, changelog_text = matches.first + major, minor, patch = latest_version.split('.').map(&:to_i) + version_code = 100000 * major + 1000 * minor + patch + upload_to_play_store(track: 'beta', track_promote_to: 'production', version_code: version_code) + end end platform :linux do @@ -96,7 +105,7 @@ platform :linux do end -platform :macos do +platform :mac do desc "Build macOS Bundle" lane :build do # Clean up previous builds diff --git a/fastlane/metadata/android/en-US/104006.txt b/fastlane/metadata/android/en-US/104006.txt new file mode 100644 index 0000000..4a65629 --- /dev/null +++ b/fastlane/metadata/android/en-US/104006.txt @@ -0,0 +1 @@ +- Updates in the underlying libaries. \ No newline at end of file