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 | |
parent | 26c71bc66038924f07cfba2f578138acaf126b68 (diff) | |
parent | 93bb86626e68c9820b7f40eebfc71c959ed0f047 (diff) |
Merge branch 'fastlane' into 'master'
fastlane
See merge request leap/bitmask_android!241
Diffstat (limited to 'fastlane')
-rw-r--r-- | fastlane/.env.custom | 4 | ||||
-rw-r--r-- | fastlane/.env.default | 4 | ||||
-rw-r--r-- | fastlane/Appfile | 2 | ||||
-rw-r--r-- | fastlane/Fastfile | 99 | ||||
-rw-r--r-- | fastlane/README.md | 80 | ||||
-rw-r--r-- | fastlane/Screengrabfile | 17 |
6 files changed, 206 insertions, 0 deletions
diff --git a/fastlane/.env.custom b/fastlane/.env.custom new file mode 100644 index 00000000..5ec9ffd0 --- /dev/null +++ b/fastlane/.env.custom @@ -0,0 +1,4 @@ +SCREENGRAB_APP_PACKAGE_NAME="se.leap.riseupvpn" +SCREENGRAB_APP_APK_PATH="app/build/outputs/apk/customProductionFat/debug/RiseupVPN_debug.apk" +SCREENGRAB_TESTS_APK_PATH="app/build/outputs/apk/androidTest/customProductionFat/debug/app-custom-production-fat-debug-androidTest.apk" +SCREENGRAB_OUTPUT_DIRECTORY="src/custom/fastlane/metadata/android"
\ No newline at end of file diff --git a/fastlane/.env.default b/fastlane/.env.default new file mode 100644 index 00000000..1362c5f1 --- /dev/null +++ b/fastlane/.env.default @@ -0,0 +1,4 @@ +SCREENGRAB_APP_PACKAGE_NAME="se.leap.bitmaskclient" +SCREENGRAB_APP_APK_PATH="app/build/outputs/apk/normalProductionFat/debug/Bitmask_debug.apk" +SCREENGRAB_TESTS_APK_PATH="app/build/outputs/apk/androidTest/normalProductionFat/debug/app-normal-production-fat-debug-androidTest.apk" +SCREENGRAB_OUTPUT_DIRECTORY="src/normal/fastlane/metadata/android"
\ No newline at end of file diff --git a/fastlane/Appfile b/fastlane/Appfile new file mode 100644 index 00000000..97be5207 --- /dev/null +++ b/fastlane/Appfile @@ -0,0 +1,2 @@ +json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one +package_name("se.leap.bitmaskclient") # e.g. com.krausefx.app 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 diff --git a/fastlane/README.md b/fastlane/README.md new file mode 100644 index 00000000..a41fc4c9 --- /dev/null +++ b/fastlane/README.md @@ -0,0 +1,80 @@ +fastlane documentation +---- + +# Installation + +Make sure you have the latest version of the Xcode command line tools installed: + +```sh +xcode-select --install +``` + +For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) + +# Available Actions + +## Android + +### android test + +```sh +[bundle exec] fastlane android test +``` + +Runs all the tests + +### android build_bitmask_for_screengrab + +```sh +[bundle exec] fastlane android build_bitmask_for_screengrab +``` + +Build debug and test APK for screenshots + +### android build_custom_for_screengrab + +```sh +[bundle exec] fastlane android build_custom_for_screengrab +``` + +Build debug and test APK for screenshots + +### android bitmask_screenshots + +```sh +[bundle exec] fastlane android bitmask_screenshots +``` + + + +### android custom_build_screenshots + +```sh +[bundle exec] fastlane android custom_build_screenshots +``` + + + +### android beta + +```sh +[bundle exec] fastlane android beta +``` + +Submit a new Beta Build to Crashlytics Beta + +### android deploy + +```sh +[bundle exec] fastlane android deploy +``` + +Deploy a new version to the Google Play + +---- + +This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. + +More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). + +The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools). diff --git a/fastlane/Screengrabfile b/fastlane/Screengrabfile new file mode 100644 index 00000000..317583b0 --- /dev/null +++ b/fastlane/Screengrabfile @@ -0,0 +1,17 @@ +# remove the leading '#' to uncomment lines + +use_tests_in_packages(['se.leap.bitmaskclient.suite']) +use_timestamp_suffix(false) + +# all locales +# locales(['ar', 'az', 'bg', 'bn', 'br', 'ca', 'cs', 'de', 'el', 'es', 'es-AR', 'et', 'eu', 'fa-IR', 'fi', 'fr', 'gl', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'my', 'nl', 'no', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', 'tr', 'ug', 'uk', 'vi', 'zh-CN', 'zh-TW']) +# prioritized locales +# locales(['ar', 'bn', 'de', 'es', 'fa-IR', 'fr', 'he', 'hu', 'id', 'it', 'ja', 'my', 'nl', 'pt-BR', 'pt-PT', 'ru', 'tr', 'ug', 'uk', 'zh-CN', 'zh-TW']) +# development locales +locales(['ar', 'de', 'ru']) + +# clear all previously generated screenshots in your local output directory before creating new ones +clear_previous_screenshots(true) + +# For more information about all available options run +# fastlane screengrab --help |