diff options
author | cyberta <cyberta@riseup.net> | 2023-03-30 08:49:00 +0000 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2023-03-30 08:49:00 +0000 |
commit | 49adad2fabcee3077be729064409bfcfbc99fe01 (patch) | |
tree | 6017e01def3ab93167d2e3ddcaad34aaec97a6ff /fastlane/Fastfile | |
parent | 26c71bc66038924f07cfba2f578138acaf126b68 (diff) | |
parent | 93bb86626e68c9820b7f40eebfc71c959ed0f047 (diff) |
Merge branch 'fastlane' into 'master'
fastlane
See merge request leap/bitmask_android!241
Diffstat (limited to 'fastlane/Fastfile')
-rw-r--r-- | fastlane/Fastfile | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/fastlane/Fastfile b/fastlane/Fastfile new file mode 100644 index 00000000..99d540ed --- /dev/null +++ b/fastlane/Fastfile @@ -0,0 +1,99 @@ +# 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 + desc "Runs all the tests" + lane :test do + gradle(task: "test") + end + + desc "Build debug and test APK for screenshots" + lane :build_bitmask_for_screengrab do + gradle( + task: 'clean' + ) + gradle( + task: 'assemble', + build_type: 'Debug', + flavor: 'NormalProductionFat' + ) + gradle( + task: 'assemble', + build_type: 'DebugAndroidTest', + flavor: 'NormalProductionFat' + ) + end + + desc "Build debug and test APK for screenshots" + lane :build_custom_for_screengrab do + gradle( + task: 'clean' + ) + gradle( + task: 'assemble', + build_type: 'Debug', + flavor: 'CustomProductionFat' + ) + gradle( + task: 'assemble', + build_type: 'DebugAndroidTest', + flavor: 'CustomProductionFat' + ) + end + + lane :bitmask_screenshots do + # Prepare builds for Automatic UI Tests + build_bitmask_for_screengrab + capture_android_screenshots + Dir.chdir("../src/normal/fastlane/metadata") do + frameit( + white: true, + path: "." + ) + end + # deliver + end + + lane :custom_build_screenshots do + # Prepare builds for Automatic UI Tests + build_custom_for_screengrab + capture_android_screenshots + Dir.chdir("../src/custom/fastlane/metadata") do + frameit( + white: true, + path: "." + ) + end + + # deliver + 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 |