Last active
November 12, 2019 14:46
-
-
Save bbedward/e59644e5d840a2d104c119d2c850475a to your computer and use it in GitHub Desktop.
Appditto Flutter+Fastlane+GitLab Tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update fastlane automatically | |
update_fastlane | |
default_platform(:android) | |
platform :android do | |
desc "Build android aab and apk" | |
lane :build_android do |options| | |
sh "./flutter_test.sh" | |
# Build AAB | |
sh "./flutter_build.sh --clean" | |
# Build APK | |
sh "./flutter_build.sh --apk" | |
end | |
desc "Deploy (Upload to play store)" | |
lane :deploy_android do |options| | |
upload_to_play_store( | |
track: options[:production] ? 'production' : options[:internal] ? 'internal' : options[:alpha] ? 'alpha' : 'beta', | |
aab: '../build/app/outputs/bundle/release/app.aab', | |
skip_upload_images: true, | |
skip_upload_screenshots: true, | |
) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment