flutter/dev/integration_tests/flutter_gallery/android/fastlane/Fastfile
Michael Thomsen e167181444
Move flutter_gallery to the testing folder (#52532)
Move Flutter Gallery to dev/integration_tests/ as it is an older copy used only for testing. The current version of the Flutter Gallery now lives in https://github.com/flutter/gallery.
2020-03-16 10:31:42 +01:00

26 lines
828 B
Ruby

# Prevent Fastlane from overwriting README.md
skip_docs
default_platform(:android)
# This should be run after running
# flutter build apk --release
# to build the app using the Flutter toolchain.
platform :android do
desc 'Push the built release APK to alpha or beta depending on current branch'
lane :deploy_play_store do
begin
upload_to_play_store(
track: 'alpha',
apk: '../build/app/outputs/apk/release/app-release.apk',
json_key_data: ENV['GOOGLE_DEVELOPER_SERVICE_ACCOUNT_ACTOR_FASTLANE'],
skip_upload_screenshots: true,
skip_upload_images: true
)
rescue => exception
raise exception unless exception.message.include?('apkUpgradeVersionConflict')
puts 'Current version already present on the Play Store. Omitting this upload.'
end
end
end