Created
April 6, 2018 01:36
-
-
Save tjkang/62ce891ca69379a0e8ea3e8e9a204816 to your computer and use it in GitHub Desktop.
Fastfile for android
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
desc "Submit a new Beta Build to Crashlytics Beta" | |
lane :beta do |values| | |
# Adjust the `build_type` and `flavor` params as needed to build the right APK for your setup | |
emails = values[:test_email] ? values[:test_email] : ['tj@abc.com'] # You can list more emails here | |
groups = values[:test_email] ? nil : nil # You can define groups on the web and reference them here | |
gradle( | |
task: "assembleRelease", | |
# project_dir: "platforms/android/", | |
properties: { | |
'android.useDeprecatedNdk' => true, | |
'android.injected.signing.store.file' => 'app/rn-sample-key.keystore', | |
'android.injected.signing.store.password' => ENV["RNSAMPLE_RELEASE_STORE_PASSWORD"], | |
'android.injected.signing.key.alias'=> ENV["RNSAMPLE_RELEASE_KEY_ALIAS"], | |
'android.injected.signing.key.password' => ENV["RNSAMPLE_RELEASE_KEY_PASSWORD"] | |
} | |
) | |
# supply(track: 'beta') | |
crashlytics( | |
api_token: '[apiToken]', | |
build_secret: '[build_secret]', | |
emails: emails, | |
groups: groups, | |
debug: true, | |
notes: 'Distributed with fastlane', # Check out the changelog_from_git_commits action | |
notifications: true # Should this distribution notify your testers via email? | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment