Created
October 8, 2019 08:56
-
-
Save halcyonmobiledev/cad55105d927b77e80c0c6592463fecf to your computer and use it in GitHub Desktop.
Fastlane config file
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
# This file contains the fastlane.tools configuration | |
# You can find the documentation at https://docs.fastlane.tools | |
# | |
# For a list of all available actions, check out | |
# | |
# https://docs.fastlane.tools/actions | |
# | |
# For a list of all available plugins, check out | |
# | |
# https://docs.fastlane.tools/plugins/available-plugins | |
# | |
# Uncomment the line if you want fastlane to automatically update itself | |
# update_fastlane | |
default_platform(:android) | |
platform :android do | |
before_all do | |
ENV["SLACK_URL"] = "" | |
ENV["CRASHLYTICS_API_TOKEN"] = "" | |
ENV["CRASHLYTICS_BUILD_SECRET"] = "" | |
end | |
desc "Run build" | |
lane :build do | |
gradle(task: 'assemble', build_type: 'debug') | |
end | |
desc "Deploy a new nightly version to Beta by Crashlytics" | |
lane :nightly do | |
# Build staging APK | |
gradle(task: 'assemble', build_type: 'internal') | |
# Beta by crashlytics deploy | |
nightly_apk = lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].find{ |i| i["app-*-internal-*.apk"] } | |
crashlytics( | |
groups: ['halcyon-team'], | |
apk_path: nightly_apk | |
) | |
# Post message on slack | |
slack(message: "New nightly build was deployed to Beta", success: true) | |
end | |
error do |lane, exception| | |
slack(message: exception.message, success: false) | |
end | |
# desc "Runs all the tests" | |
# lane :test do | |
# gradle(task: "test") | |
# end | |
# desc "Submit a new Beta Build to Crashlytics Beta" | |
# lane :beta do | |
# gradle(task: "clean assembleRelease") | |
# crashlytics | |
# # sh "your_script.sh" | |
# # You can also use other beta testing services here | |
# end | |
# desc "Deploy a new version to the Google Play" | |
# lane :deploy do | |
# gradle(task: "clean assembleRelease") | |
# upload_to_play_store | |
# end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment