From e4802c94029b1364a2fa8963d90acd009af2de3a Mon Sep 17 00:00:00 2001 From: mueller-ma Date: Sun, 6 May 2018 16:36:39 +0200 Subject: [PATCH] Check length of descriptions for F-Droid (#1083) * Check length of descriptions for F-Droid Fixes #1080 * Shorten en-US string --- .travis.yml | 4 ++- config/travis/validate_fastlane_metadata.sh | 25 +++++++++++++++++++ .../android/en-US/short_description.txt | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 config/travis/validate_fastlane_metadata.sh diff --git a/.travis.yml b/.travis.yml index df7aabf36..cf293dad1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,4 +33,6 @@ android: before_install: - yes | sdkmanager "platforms;android-27" -script: ./gradlew build connectedCheck --stacktrace +script: + - ./gradlew build connectedCheck --stacktrace + - bash config/travis/validate_fastlane_metadata.sh diff --git a/config/travis/validate_fastlane_metadata.sh b/config/travis/validate_fastlane_metadata.sh new file mode 100644 index 000000000..e65c144b5 --- /dev/null +++ b/config/travis/validate_fastlane_metadata.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +exitcode=0 + +for file in fastlane/metadata/android/*/full_description.txt +do + chars=$(cat $file | wc -m) + if [ "$chars" -gt 4000 ] + then + echo "$file too long" + let exitcode++ + fi +done + +for file in fastlane/metadata/android/*/short_description.txt +do + chars=$(cat $file | wc -m) + if [ "$chars" -gt 80 ] + then + echo "$file too long" + let exitcode++ + fi +done + +exit $exitcode diff --git a/fastlane/metadata/android/en-US/short_description.txt b/fastlane/metadata/android/en-US/short_description.txt index adf9d848d..c473b0c0f 100644 --- a/fastlane/metadata/android/en-US/short_description.txt +++ b/fastlane/metadata/android/en-US/short_description.txt @@ -1 +1 @@ -Use your Pebble/Mi Band/Amazfit Bip/Hplus device without the vendor's closed source application and without the need to create an account and transmit any of your data to the vendor's servers. +Use your wearable without the need to create an account and transmit your data