Skip to content

Instantly share code, notes, and snippets.

@bbedward
Last active November 12, 2019 14:46
Show Gist options
  • Save bbedward/e59644e5d840a2d104c119d2c850475a to your computer and use it in GitHub Desktop.
Save bbedward/e59644e5d840a2d104c119d2c850475a to your computer and use it in GitHub Desktop.
Appditto Flutter+Fastlane+GitLab Tutorial
# 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