The command is:
/opt/reyboz/android/bin/publish-latest-branch-build.sh ${buildable.revision}
Source code:
This step will copy the built .apk to an indexed HTTP directory exposed by Apache:
Passed |
The command is:
/opt/reyboz/android/bin/publish-latest-branch-build.sh ${buildable.revision}
Source code:
This step will copy the built .apk to an indexed HTTP directory exposed by Apache:
1 | Current directory: |
---|---|
2 | /var/drydock/workingcopy-112/repo/libre-busto |
3 | Calculating sha256sum of: |
4 | ./app/build/outputs/apk/gitpull/app-gitpull-signed.apk |
5 | File info |
6 | -rw-r--r-- 1 phabricator-android-builder phabricator-android-builder 8557522 Jan 21 18:04 ./app/build/outputs/apk/gitpull/app-gitpull-signed.apk |
7 | Cleaning old builds |
8 | Update checksums |
9 | Published here: |
10 | https://lab.reyboz.it/builds/libre-busto/HEAD-libre-busto.apk |
11 | Cleaning |
12 | Done |
13 |
Passed |
This script is available here on gargantua.reyboz.it accessible to the Unix user phabricator-android-builder:
/opt/reyboz/android/bin/align-sign-fabione.sh
In general it does that:
#!/bin/sh # https://gitpull.it/harbormaster/step/view/16/ BASEDIR="app/build/outputs/apk/gitpull" OUT="app-gitpull-signed.apk" APK_UNSIGNED="app-gitpull-unsigned.apk" APK_ALIGNED="app-gitpull-unsigned-aligned.apk" KEYSTORE="/home/phabricator-android-builder/private-resources/gitpullkeystore-libre-busto.jks" PASSPHRASE="<omissis> echo "Entering in $BASEDIR" cd "$BASEDIR" echo "Aligning zip" ~/bin/zipalign -v -p 4 "$APK_UNSIGNED" "$APK_ALIGNED" echo "Signing APK" # NOTE: keep keystore unsescaped ~/bin/apksigner sign --ks "$KEYSTORE" --out "$OUT" --ks-pass pass:"$PASSPHRASE" "$APK_ALIGNED" echo "Sign concluded with exit status $?"
1193 | 7062159 res/x1.xml (OK - compressed) |
---|---|
1194 | 7062444 res/x5.9.png (OK) |
1195 | 7062832 res/xB.png (OK) |
1196 | 7064128 res/xC.png (OK) |
1197 | 7064284 res/xD.png (OK) |
1198 | 7064947 res/xF.xml (OK - compressed) |
1199 | 7065284 res/xH.png (OK) |
1200 | 7081648 res/xM.png (OK) |
1201 | 7085516 res/xR.png (OK) |
1202 | 7086379 res/xT.xml (OK - compressed) |
1203 | 7086956 res/xW.png (OK) |
1204 | 7087380 res/xc.xml (OK - compressed) |
1205 | 7087974 res/xd.xml (OK - compressed) |
1206 | 7088268 res/xp.png (OK) |
1207 | 7094963 res/xs.xml (OK - compressed) |
1208 | 7095392 res/xw.xml (OK - compressed) |
1209 | 7095814 res/xy.xml (OK - compressed) |
1210 | 7096364 res/yC.xml (OK - compressed) |
1211 | 7097432 res/yO.9.png (OK) |
1212 | 7097693 res/yP.xml (OK - compressed) |
1213 | 7098284 res/yR.xml (OK - compressed) |
1214 | 7099284 res/yX.png (OK) |
1215 | 7103634 res/ya.xml (OK - compressed) |
1216 | 7104709 res/yf.xml (OK - compressed) |
1217 | 7105044 res/yg.webp (OK) |
1218 | 7146384 res/yq.png (OK) |
1219 | 7147596 res/yw.png (OK) |
1220 | 7149400 res/yx.xml (OK - compressed) |
1221 | 7149920 res/z1.xml (OK - compressed) |
1222 | 7150161 res/z11.xml (OK - compressed) |
1223 | 7150516 res/z12.xml (OK - compressed) |
1224 | 7150843 res/z3.xml (OK - compressed) |
1225 | 7151112 res/z6.png (OK) |
1226 | 7152016 res/z61.png (OK) |
1227 | 7153200 res/zB.xml (OK - compressed) |
1228 | 7153562 res/zH.xml (OK - compressed) |
1229 | 7154126 res/zL.xml (OK - compressed) |
1230 | 7154449 res/zN.xml (OK - compressed) |
1231 | 7154804 res/zZ.png (OK) |
1232 | 7155161 res/z_.xml (OK - compressed) |
1233 | 7155412 res/zq.xml (OK - compressed) |
1234 | 7155875 res/zs.ttf (OK - compressed) |
1235 | 7204276 res/zt.png (OK) |
1236 | 7208752 res/zw.png (OK) |
1237 | 7209260 res/zy.png (OK) |
1238 | 7209504 resources.arsc (OK) |
1239 | Verification succesful |
1240 | Signing APK |
1241 | Sign concluded with exit status 0 |
1242 |
Passed |
This step will build an .apk using Gradle.
sudo apt install openjdk-11-jre-headless
Then aliased this gradle:
https://gitlab.com/fdroid/fdroidserver/-/blob/master/gradlew-fdroid
1 | Note: Some input files use or override a deprecated API. |
---|---|
2 | Note: Recompile with -Xlint:deprecation for details. |
3 | e: /home/phabricator-android-builder/.gradle/caches/transforms-3/3233d6ddde389e715b15b715970cb3ed/transformed/paho.mqtt.android-4.1/jars/classes.jar!/META-INF/serviceLibrary_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. |
4 | /var/drydock/workingcopy-112/repo/libre-busto/app/src/gitpull/AndroidManifest.xml:4: Error: Mock locations should only be requested in a test or debug-specific manifest file (typically src/debug/AndroidManifest.xml) [MockLocation] |
5 | <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/> |
6 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
7 | |
8 | Explanation for issues of type "MockLocation": |
9 | Using a mock location provider (by requiring the permission |
10 | android.permission.ACCESS_MOCK_LOCATION) should only be done in debug |
11 | builds (or from tests). In Gradle projects, that means you should only |
12 | request this permission in a test or debug source set specific manifest |
13 | file. |
14 | |
15 | To fix this, create a new manifest file in the debug folder and move the |
16 | <uses-permission> element there. A typical path to a debug manifest |
17 | override file in a Gradle project is src/debug/AndroidManifest.xml. |
18 | |
19 | 1 errors, 0 warnings |
20 | |
21 |
55 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/backend/mato/MQTTMatoClient.kt:223:62 No cast needed |
---|---|
56 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/backend/mato/MQTTMatoClient.kt:263:17 Variable 'valid' is assigned but never accessed |
57 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/data/MatoPatternsDownloadWorker.kt:58:13 Variable 'notificationManager' is never used |
58 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/data/MatoTripsDownloadWorker.kt:96:13 Variable 'notificationManager' is never used |
59 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/IntroFragment.kt:169:43 'setColorFilter(Int, PorterDuff.Mode): Unit' is deprecated. Deprecated in Java |
60 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/IntroFragment.kt:175:66 Parameter 'maxDpToScale' is never used |
61 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/IntroFragment.kt:210:24 'setColorFilter(Int, PorterDuff.Mode): Unit' is deprecated. Deprecated in Java |
62 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:129:16 Condition 'fragmentListener == null' is always 'false' |
63 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:149:63 Parameter 'stopName' is never used, could be renamed to _ |
64 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:269:23 Unnecessary safe call on a non-null receiver of type MapView |
65 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:513:36 Condition 'map == null' is always 'false' |
66 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:582:66 Parameter 'polyline' is never used, could be renamed to _ |
67 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:582:76 Parameter 'mapView' is never used, could be renamed to _ |
68 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:582:85 Parameter 'eventPos' is never used, could be renamed to _ |
69 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:604:13 Variable 'numStops' is never used |
70 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:666:35 Variable 'marker' initializer is redundant |
71 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:715:21 Condition 'busPositionsOverlay != null' is always 'true' |
72 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:770:46 'getter for zoomLevel: Int' is deprecated. Deprecated in Java |
73 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesGridShowingFragment.kt:203:13 Variable 'durArrow' is never used |
74 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/TestRealtimeGtfsFragment.kt:84:27 Parameter 'cont' is never used, could be renamed to _ |
75 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt:45:36 Parameter 'view' is never used, could be renamed to _ |
76 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt:45:42 Parameter 'motionEvent' is never used, could be renamed to _ |
77 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt:88:17 Variable 'layPars' is never used |
78 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:182:27 'LocationProvider' is deprecated. Deprecated in Java |
79 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:182:44 'OUT_OF_SERVICE: Int' is deprecated. Deprecated in Java |
80 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:182:72 'LocationProvider' is deprecated. Deprecated in Java |
81 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:182:89 'TEMPORARILY_UNAVAILABLE: Int' is deprecated. Deprecated in Java |
82 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:184:34 'LocationProvider' is deprecated. Deprecated in Java |
83 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:184:51 'AVAILABLE: Int' is deprecated. Deprecated in Java |
84 | |
85 | > Task :app:compileGitpullJavaWithJavac |
86 | |
87 | > Task :app:lintVitalAnalyzeGitpull |
88 | |
89 | > Task :app:dexBuilderGitpull |
90 | > Task :app:mergeGitpullJavaResource |
91 | > Task :app:mergeDexGitpull |
92 | > Task :app:compileGitpullArtProfile |
93 | > Task :app:packageGitpull |
94 | > Task :app:createGitpullApkListingFileRedirect |
95 | > Task :app:lintVitalReportGitpull |
96 | |
97 | > Task :app:lintVitalGitpull |
98 | |
99 | > Task :app:assembleGitpull |
100 | |
101 | BUILD SUCCESSFUL in 2m 33s |
102 | 40 actionable tasks: 40 executed |
103 | Daemon will be stopped at the end of the build after running out of JVM memory |
104 |
Passed |
Clean Gradle directory to avoid nasty errors like:
1 | Found 7.6 via distributionUrl |
---|---|
2 | Running /home/phabricator-android-builder/versions/7.6/bin/gradle clean |
3 | Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details |
4 | > Task :app:clean |
5 | |
6 | BUILD SUCCESSFUL in 16s |
7 | 1 actionable task: 1 executed |
8 |
Passed |
Passed |