summaryrefslogtreecommitdiff
path: root/fastlane/Fastfile
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2023-01-23 19:47:56 +0100
committercyberta <cyberta@riseup.net>2023-01-23 19:47:56 +0100
commit7d0a1f8d8057faa74035de0cee262a46c6fbbe00 (patch)
treebeb7ae926be396c9faff6978677d74c466d3e20f /fastlane/Fastfile
parenta800ef1e82c25207a842c197190b614e43739051 (diff)
setup fastlane to create screenshots for Bitmask and custom branded clients, refactor Tests accordingly and create a script and environment variables to run fastlane screenshotting without thinking
Diffstat (limited to 'fastlane/Fastfile')
-rw-r--r--fastlane/Fastfile46
1 files changed, 45 insertions, 1 deletions
diff --git a/fastlane/Fastfile b/fastlane/Fastfile
index d985984d..a0e25930 100644
--- a/fastlane/Fastfile
+++ b/fastlane/Fastfile
@@ -21,12 +21,56 @@ platform :android do
gradle(task: "test")
end
- lane :screenshots do
+ 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
frameit(white: true)
# deliver
end
+ lane :custom_build_screenshots do
+ # Prepare builds for Automatic UI Tests
+ build_custom_for_screengrab
+ capture_android_screenshots
+ frameit(white: true)
+ # deliver
+ end
+
desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
gradle(task: "clean assembleRelease")