Free as in Freedom: Codeberg.org. Create your repos and join us!
Join Donate
Browse Source

Check length of descriptions for F-Droid (#1083)

* Check length of descriptions for F-Droid

Fixes #1080

* Shorten en-US string
mueller-ma 9 months ago
parent
commit
e4802c9402

+ 3
- 1
.travis.yml View File

@@ -33,4 +33,6 @@ android:
33 33
 before_install:
34 34
   - yes | sdkmanager "platforms;android-27"
35 35
 
36
-script: ./gradlew build connectedCheck --stacktrace
36
+script:
37
+  - ./gradlew build connectedCheck --stacktrace
38
+  - bash config/travis/validate_fastlane_metadata.sh

+ 25
- 0
config/travis/validate_fastlane_metadata.sh View File

@@ -0,0 +1,25 @@
1
+#!/usr/bin/env bash
2
+
3
+exitcode=0
4
+
5
+for file in fastlane/metadata/android/*/full_description.txt
6
+do
7
+    chars=$(cat $file | wc -m)
8
+    if [ "$chars" -gt 4000 ]
9
+    then
10
+        echo "$file too long"
11
+        let exitcode++
12
+    fi
13
+done
14
+
15
+for file in fastlane/metadata/android/*/short_description.txt
16
+do
17
+    chars=$(cat $file | wc -m)
18
+    if [ "$chars" -gt 80 ]
19
+    then
20
+        echo "$file too long"
21
+        let exitcode++
22
+    fi
23
+done
24
+
25
+exit $exitcode

+ 1
- 1
fastlane/metadata/android/en-US/short_description.txt View File

@@ -1 +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.
1
+Use your wearable without the need to create an account and transmit your data

Loading…
Cancel
Save