Fastfile (1784B)
1 # Customize this file, documentation can be found here: 2 # https://docs.fastlane.tools/actions/ 3 # All available actions: https://docs.fastlane.tools/actions/ 4 # can also be listed using the `fastlane actions` command 5 6 # Change the syntax highlighting to Ruby 7 # All lines starting with a # are ignored when running `fastlane` 8 9 # If you want to automatically update fastlane if a new version is available: 10 # update_fastlane 11 12 # This is the minimum version number required. 13 # Update this, if you use features of a newer version 14 fastlane_version "2.115.0" 15 16 default_platform :android 17 18 platform :android do 19 before_all do 20 # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..." 21 end 22 23 desc "Runs all the tests" 24 lane :test do 25 gradle(task: "test") 26 end 27 28 desc "Submit a new Beta Build to Crashlytics Beta" 29 lane :beta do 30 gradle(task: "assembleDebug") 31 crashlytics 32 33 # sh "your_script.sh" 34 # You can also use other beta testing services here 35 end 36 37 desc "Deploy a new version to Google Play" 38 lane :deploy do 39 gradle(task: "assembleRelease") 40 upload_to_play_store 41 end 42 43 # You can define as many lanes as you want 44 45 after_all do |lane| 46 # This block is called, only if the executed lane was successful 47 48 # slack( 49 # message: "Successfully deployed the new app update." 50 # ) 51 end 52 53 error do |lane, exception| 54 # slack( 55 # message: exception.message, 56 # success: false 57 # ) 58 end 59 end 60 61 # More information about multiple platforms in fastlane: https://docs.fastlane.tools/advanced/lanes/#control-configuration-by-lane-and-by-platform 62 # All available actions: https://docs.fastlane.tools/actions/ 63 64 # fastlane reports which actions are used. No personal data is recorded. 65 # Learn more at https://docs.fastlane.tools/#metrics