2025-10-16 23:06:20 +05:30
|
|
|
# This file contains the fastlane.tools configuration
|
|
|
|
|
# You can find the documentation at https://docs.fastlane.tools
|
|
|
|
|
#
|
|
|
|
|
# For a list of all available actions, check out
|
|
|
|
|
#
|
|
|
|
|
# https://docs.fastlane.tools/actions
|
|
|
|
|
#
|
|
|
|
|
# For a list of all available plugins, check out
|
|
|
|
|
#
|
|
|
|
|
# https://docs.fastlane.tools/plugins/available-plugins
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# Uncomment the line if you want fastlane to automatically update itself
|
|
|
|
|
# update_fastlane
|
|
|
|
|
|
|
|
|
|
default_platform(:android)
|
|
|
|
|
|
2025-10-17 01:27:23 +05:30
|
|
|
def write_android_changelog
|
|
|
|
|
require 'yaml'
|
|
|
|
|
pubspec_path = File.expand_path('../../pubspec.yaml', __dir__)
|
|
|
|
|
pubspec = YAML.load_file(pubspec_path)
|
|
|
|
|
version = pubspec['version']
|
|
|
|
|
semver, build = version.split('+', 2)
|
|
|
|
|
tag = "v#{semver}"
|
|
|
|
|
link = "https://github.com/cogwheel0/conduit/releases/tag/#{tag}"
|
|
|
|
|
|
|
|
|
|
changelog_dir = File.expand_path('metadata/android/en-US/changelogs', __dir__)
|
|
|
|
|
Dir.mkdir(changelog_dir) unless Dir.exist?(changelog_dir)
|
|
|
|
|
changelog_file = File.join(changelog_dir, "#{build}.txt")
|
|
|
|
|
File.write(changelog_file, link + "\n")
|
|
|
|
|
end
|
|
|
|
|
|
2025-10-16 23:06:20 +05:30
|
|
|
desc "Push a new release build to the Google Play"
|
|
|
|
|
lane :release do
|
2025-10-17 01:27:23 +05:30
|
|
|
write_android_changelog
|
2025-10-16 23:06:20 +05:30
|
|
|
upload_to_play_store(
|
2025-10-17 01:27:23 +05:30
|
|
|
json_key: ENV['FASTLANE_JSON_KEY_PATH'],
|
|
|
|
|
track: 'production',
|
|
|
|
|
aab: '../build/app/outputs/bundle/release/app-release.aab',
|
|
|
|
|
skip_upload_apk: true,
|
|
|
|
|
skip_upload_images: true,
|
|
|
|
|
skip_upload_screenshots: true,
|
|
|
|
|
skip_upload_metadata: false,
|
|
|
|
|
skip_upload_changelogs: false,
|
|
|
|
|
skip_upload_aab: false,
|
|
|
|
|
)
|
2025-10-16 23:06:20 +05:30
|
|
|
end
|