diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2019-06-26 15:38:00 +0300 |
---|---|---|
committer | tobiasKaminsky <tobias@kaminsky.me> | 2019-08-01 09:17:35 +0300 |
commit | a2cf6bc40880c28394d3b0219ad1286234a55c99 (patch) | |
tree | acf953d50e6461abe2eb8a357388ddcf5c3243bf /fastlane | |
parent | 92e9fabf4bb7095d4074dd36815753c3a5718881 (diff) |
Improve app store screenshot designs
Separate app store screenshot text into bold heading and regular subline
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Diffstat (limited to 'fastlane')
-rw-r--r-- | fastlane/Fastfile | 37 | ||||
-rw-r--r-- | fastlane/Screengrabfile | 9 |
2 files changed, 38 insertions, 8 deletions
diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 7c6988adc2..79dff8fc44 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -1,6 +1,39 @@ # This is the minimum version number required. fastlane_version "2.58.0" -lane :screenshots do - screengrab +lane :screenshotsPhone do + build_for_screengrab() + + screengrab( + device_type: "phone", + app_apk_path: APK_LOCATION, + tests_apk_path: TEST_APK_LOCATION + ) +end + +lane :screenshotsTablet do + build_for_screengrab() + + screengrab( + device_type: "sevenInch", + app_apk_path: APK_LOCATION, + tests_apk_path: TEST_APK_LOCATION + ) +end + +desc "Build debug and test APK for screenshots" +private_lane :build_for_screengrab do + build_android_app( + task: 'assemble', + flavor: 'Generic', + build_type: 'Debug' + ) + APK_LOCATION = lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].select{ |i| i[/00/] }[0] + + build_android_app( + task: 'assemble', + flavor: 'Generic', + build_type: 'DebugAndroidTest' + ) + TEST_APK_LOCATION = lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].select{ |i| i[/androidTest/] }[0] end diff --git a/fastlane/Screengrabfile b/fastlane/Screengrabfile index 3e4077a10d..0de5fc53bf 100644 --- a/fastlane/Screengrabfile +++ b/fastlane/Screengrabfile @@ -1,12 +1,9 @@ app_package_name 'com.nextcloud.client' use_tests_in_packages ['com.owncloud.android.screenshots'] +test_instrumentation_runner 'androidx.test.runner.AndroidJUnitRunner' -app_apk_path 'build/outputs/apk/generic/debug/android4-generic-debug.apk' -tests_apk_path 'build/outputs/apk/androidTest/generic/debug/android4-generic-debug-androidTest.apk' - -# locales ['en-US'] -# locales ['pt-PT', 'sv-SE', 'sq-AL', 'sq-MK', 'iw-IL', 'ar-AR', 'bg-BG', 'da-DK', 'fi-FI', 'gl-ES', 'uk-UK', 'vi-VI', 'ro-RO', 'pl-PL', 'el-GR', ja-JP', 'eu-ES', 'lt-LT', 'es-419', 'zh-HK', 'zk-CN', 'is-IS', 'sr-SR', 'id-ID', 'cs-CZ', 'sl-SL', 'fa-FA' ] -locales ['en-GB', 'de-DE', 'es-MX', 'es-ES', 'fr-FR', 'hu-HU', 'it-IT', 'ka-GE', 'ko-KR', 'no-NO', 'nl-NL', 'pt-BR', 'ru-RU', 'sr-SR', 'tr-TR', 'en-US'] +locales(['en-US']) +# locales(['en-GB', 'de-DE', 'es-MX', 'es-ES', 'fr-FR', 'hu-HU', 'it-IT', 'ka-GE', 'ko-KR', 'no-NO', 'nl-NL', 'pt-BR', 'ru-RU', 'sr-SR', 'tr-TR', 'en-US', 'pt-PT', 'sv-SE', 'sq-AL', 'sq-MK', 'iw-IL', 'ar-AR', 'bg-BG', 'da-DK', 'fi-FI', 'gl-ES', 'uk-UK', 'vi-VI', 'ro-RO', 'pl-PL', 'el-GR', 'ja-JP', 'eu-ES', 'lt-LT', 'es-419', 'zh-HK', 'zk-CN', 'is-IS', 'sr-SR', 'id-ID', 'cs-CZ', 'sl-SL']) # clear all previously generated screenshots in your local output directory before creating new ones clear_previous_screenshots true |