diff --git a/fastlane/.env.custom b/fastlane/.env.custom index 9b65f5d41eb9d2eab7977af0639c4e65cd2d682b..5ec9ffd02d14f0aa8e93e1407e01bc1555b740c2 100644 --- a/fastlane/.env.custom +++ b/fastlane/.env.custom @@ -1,3 +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 index bdb771ce43c776438dd192fbbd6528132f0e40c9..1362c5f1609a9c8cc19d6d173ea7793d20ac4859 100644 --- a/fastlane/.env.default +++ b/fastlane/.env.default @@ -1,3 +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/Fastfile b/fastlane/Fastfile index a0e259305f73e785b056170302fb18ecd404cb59..99d540ede7d758aad138df478c945f2c8ef63842 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -59,7 +59,12 @@ platform :android do # Prepare builds for Automatic UI Tests build_bitmask_for_screengrab capture_android_screenshots - frameit(white: true) + Dir.chdir("../src/normal/fastlane/metadata") do + frameit( + white: true, + path: "." + ) + end # deliver end @@ -67,7 +72,13 @@ platform :android do # Prepare builds for Automatic UI Tests build_custom_for_screengrab capture_android_screenshots - frameit(white: true) + Dir.chdir("../src/custom/fastlane/metadata") do + frameit( + white: true, + path: "." + ) + end + # deliver end diff --git a/fastlane/Screengrabfile b/fastlane/Screengrabfile index 8534db2a62f76f7ab3f2958d0272b66996a59172..317583b017d3a89a6b4b0304bc0b689aa519fe4f 100644 --- a/fastlane/Screengrabfile +++ b/fastlane/Screengrabfile @@ -1,6 +1,7 @@ # 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']) diff --git a/src/README.md b/src/README.md new file mode 100644 index 0000000000000000000000000000000000000000..dfdcf286377fa0d253e525d0d8e45f8dcc1df0f9 --- /dev/null +++ b/src/README.md @@ -0,0 +1,7 @@ +# F-Droid compatible fastlane metadata directory + +This source folder only contains the generated metadata for f-droid builds for both Bitmask and a custom flavored client. +Currently neither F-Droid nor Fastlane support metadata dirs directly within build flavor dirs of a module, like +`/<module>/src/<buildFlavor>/fastlane/metadata/android/` (which would be preferable). + +Keep an eye on this [issue](https://gitlab.com/fdroid/fdroidserver/-/issues/829) to track the state of the fastlane improvements for F-Droid. diff --git a/src/custom/fastlane/metadata/android/README.md b/src/custom/fastlane/metadata/android/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/normal/fastlane/metadata/android/README.md b/src/normal/fastlane/metadata/android/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391