Skip to content

Commit

Permalink
Update Fastfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kebekus committed Feb 22, 2025
1 parent 2f699cb commit a87be28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ platform :android 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
version_code = 100000 * major + 1000 * minor + 10 * patch
File.write("metadata/android/en-US/#{version_code}.txt", changelog_text.strip)
end

Expand All @@ -74,8 +74,8 @@ platform :android 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)
version_code = 100000 * major + 1000 * minor + 10 * patch
upload_to_play_store(track: 'beta', track_promote_to: 'production', version_code: "#{version_code}")
end
end

Expand Down

0 comments on commit a87be28

Please sign in to comment.