diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 36988fb298a54bf6c7fab29679b61ca5f6707bdd..2f9508dc9d83d4bd4d381ed74baf64c7ae763328 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -93,8 +93,8 @@ screenshot: - ./scripts/fastlane.sh custom artifacts: paths: - - src/custom/ - - src/normal/ + - src/customProductionFat/ + - src/normalProductionFat/ when: always expire_in: 3 days allow_failure: true diff --git a/.tx/config b/.tx/config index 1cb3557ee972b9fc234f3139eaf988d3ac2299c9..a92c71849d80c49b523218ce732ef52baaa17313 100644 --- a/.tx/config +++ b/.tx/config @@ -22,16 +22,16 @@ resource_name = RiseupVPN Android [o:otf:p:bitmask:r:bitmask-playstore-listing] lang_map = en: en-US, es_AR: es-AR, es_CU: es-CU, fa_IR: fa-IR, kn_IN: kn-IN, pt_BR: pt-BR, pt_PT: pt-PT, zh_TW: zh-TW, nb: no -source_file = src/normal/fastlane/metadata/android/en-US/store-meta-en-US.json +source_file = src/normalProductionFat/fastlane/metadata/android/en-US/store-meta-en-US.json type = KEYVALUEJSON resource_name = Bitmask details in Appstore -file_filter = src/normal/fastlane/metadata/android/<lang>/store-meta-<lang>.json +file_filter = src/normalProductionFat/fastlane/metadata/android/<lang>/store-meta-<lang>.json minimum_perc = 98 [o:otf:p:bitmask:r:riseupvpn-playstore-listing] lang_map = en: en-US, es_AR: es-AR, es_CU: es-CU, fa_IR: fa-IR, kn_IN: kn-IN, pt_BR: pt-BR, pt_PT: pt-PT, zh_TW: zh-TW, nb: no -source_file = src/custom/fastlane/metadata/android/en-US/store-meta-en-US.json +source_file = src/customProductionFat/fastlane/metadata/android/en-US/store-meta-en-US.json type = KEYVALUEJSON resource_name = RiseupVPN details in Appstore -file_filter = src/custom/fastlane/metadata/android/<lang>/store-meta-<lang>.json +file_filter = src/customProductionFat/fastlane/metadata/android/<lang>/store-meta-<lang>.json minimum_perc = 98 diff --git a/fastlane/.env.custom b/fastlane/.env.custom index 5ec9ffd02d14f0aa8e93e1407e01bc1555b740c2..5b984b445588afdc2f75fc72bccbeca6080bdb84 100644 --- a/fastlane/.env.custom +++ b/fastlane/.env.custom @@ -1,4 +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 +SCREENGRAB_OUTPUT_DIRECTORY="src/customProductionFat/fastlane/metadata/android" diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 99d540ede7d758aad138df478c945f2c8ef63842..6e6ff88d088e66cba09ecb85b21e74fe2bb4fce6 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -59,7 +59,7 @@ platform :android do # Prepare builds for Automatic UI Tests build_bitmask_for_screengrab capture_android_screenshots - Dir.chdir("../src/normal/fastlane/metadata") do + Dir.chdir("../src/normalProductionFat/fastlane/metadata") do frameit( white: true, path: "." @@ -72,7 +72,7 @@ platform :android do # Prepare builds for Automatic UI Tests build_custom_for_screengrab capture_android_screenshots - Dir.chdir("../src/custom/fastlane/metadata") do + Dir.chdir("../src/customProductionFat/fastlane/metadata") do frameit( white: true, path: "." diff --git a/scripts/fetch-play-metadata.py b/scripts/fetch-play-metadata.py index 309c3795cc19fa4675334316b11b23b460716968..e94f4c7318fa93df3447a5240b885c9467f6f9b0 100644 --- a/scripts/fetch-play-metadata.py +++ b/scripts/fetch-play-metadata.py @@ -30,9 +30,9 @@ service = build('androidpublisher', 'v3', credentials=credentials, cache_discove # Base path for Fastlane metadata def get_metadata_path(package_name): if package_name == "se.leap.bitmaskclient": - return 'src/normal/fastlane/metadata/android' + return 'src/normalProductionFat/fastlane/metadata/android' elif package_name == "se.leap.riseupvpn": - return 'src/custom/fastlane/metadata/android' + return 'src/customProductionFat/fastlane/metadata/android' else: raise ValueError(f"Unknown package name: {package_name}") diff --git a/scripts/pullTranslations.py b/scripts/pullTranslations.py index edfd57189c28d09f5ca11bc5597a15c6a48dbafa..e688862a67ec9f2720835db9741302edd930b702 100755 --- a/scripts/pullTranslations.py +++ b/scripts/pullTranslations.py @@ -46,9 +46,9 @@ def list_locales(app_type): # If there's no file, tx will skip the translations def create_metadata_files(locales, app_type): if app_type == "main": - metadata_dir = get_script_path() + "/../src/normal/fastlane/metadata/android" + metadata_dir = get_script_path() + "/../src/normalProductionFat/fastlane/metadata/android" elif app_type == "custom": - metadata_dir = get_script_path() + "/../src/custom/fastlane/metadata/android" + metadata_dir = get_script_path() + "/../src/customProductionFat/fastlane/metadata/android" else: raise ValueError("Invalid app type. Use 'main' or 'custom'.") for locale_code in locales: @@ -138,9 +138,9 @@ if __name__ == "__main__": args = parser.parse_args() if args.app_type == "main": - metadata_dir = get_script_path() + "/../src/normal/fastlane/metadata/android" + metadata_dir = get_script_path() + "/../src/normalProductionFat/fastlane/metadata/android" elif args.app_type == "custom": - metadata_dir = get_script_path() + "/../src/custom/fastlane/metadata/android" + metadata_dir = get_script_path() + "/../src/customProductionFat/fastlane/metadata/android" else: raise ValueError("Invalid app type. Use 'main' or 'custom'.") diff --git a/src/README.md b/src/README.md index 5d217ad5f0d8ace198d9b55289e10fa530b51368..8875966b23296da6e7cb45a79f317c9cf60b617e 100644 --- a/src/README.md +++ b/src/README.md @@ -8,7 +8,7 @@ Any string that will be changed in the source language (en_US) in the master br # Metadata: F-Droid compatible fastlane metadata directory -The src/<flavor>/fastlande/metadata folder contains the generated metadata for f-droid builds for both Bitmask and a custom flavored client. +The src/<flavor>/fastlane/metadata folder 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). Transifex wants 1 file, play store wants 1 file, fastlane uses text files. @@ -46,7 +46,7 @@ This will fetch the existing metadata. If you updated something through your bro You can also use this when adding a new provider. You need an API token from the Google Play store. If you don't have one yet, we have some links below that should help you get started. -fastlane supply init -j <YOUR-API-DETAILS.json> -p se.leap.<PROJECTNAME> -m src/custom/fastlane/metadata/ +fastlane supply init -j <YOUR-API-DETAILS.json> -p se.leap.<PROJECTNAME> -m src/customProductionFat/fastlane/metadata/ apt install pythong3-babel