Skip to content

Instantly share code, notes, and snippets.

@reza-ebrahimi
Forked from candostdagdeviren/Fastfile
Created October 22, 2018 12:25
Show Gist options
  • Save reza-ebrahimi/c06c49dfbe39ad59c1512a7ff8d2bb67 to your computer and use it in GitHub Desktop.
Save reza-ebrahimi/c06c49dfbe39ad59c1512a7ff8d2bb67 to your computer and use it in GitHub Desktop.
Android Fastfile Example for Flutter application Fastlane integration
default_platform(:android)
platform :android do
desc "Submit a new QA Build to Crashlytics Beta"
lane :qa do
crashlytics(
api_token: 'CRASHLYTICS_API_TOKEN',
build_secret: 'CRASHLYTICS_BUILD_SECRET',
notes_path: 'qa-change.log',
groups: ['QA'],
notifications: true,
apk_path: 'APK_PATH.apk'
)
slack(
message: 'Successfully distributed a new Android QA build!',
slack_url: 'SLACK_URL'
)
# You can also use other beta testing services here
end
lane:alpha_release do
upload_to_play_store(
package_name: 'com.jimdo.boost',
track: 'alpha',
json_key: 'JSON_KEY.json',
apk: 'APK_PATH.apk',
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true
)
slack(
message: 'Successfully distributed a new Android Alpha build to the Play Store!',
slack_url: 'SLACK_URL'
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment