File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 ANDROID_KEY_ALIAS : ${{ secrets.ANDROID_KEY_ALIAS }}
3939 ANDROID_KEY_PASSWORD : ${{ secrets.ANDROID_KEY_PASSWORD }}
4040
41+ - name : Align APK with latest build-tools
42+ run : |
43+ # Find latest build-tools version
44+ BUILD_TOOLS_VERSION=$(ls -1 ${ANDROID_HOME}/build-tools | sort -V | tail -n 1)
45+ echo "Using build-tools version: $BUILD_TOOLS_VERSION"
46+
47+ ${ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION}/zipalign -v 4 \
48+ app/build/outputs/apk/release/app-release-unsigned.apk \
49+ app/build/outputs/apk/release/app-release.apk
50+
4151 - name : Sign Release APK (if keystore exists)
4252 id : sign_app
4353 uses : ilharp/sign-android-release@v1.0.4
4858 keyAlias : ${{ secrets.ANDROID_KEY_ALIAS }}
4959 keyStorePassword : ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
5060 keyPassword : ${{ secrets.ANDROID_KEY_PASSWORD }}
51-
52- - name : Align APK with latest build-tools
53- run : |
54- # Find latest build-tools version
55- BUILD_TOOLS_VERSION=$(ls -1 ${ANDROID_HOME}/build-tools | sort -V | tail -n 1)
56- echo "Using build-tools version: $BUILD_TOOLS_VERSION"
57-
58- ${ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION}/zipalign -v 4 \
59- app/build/outputs/apk/release/app-release-unsigned.apk \
60- app/build/outputs/apk/release/app-release.apk
6161
6262 - name : Get commit info
6363 id : commit_info
Original file line number Diff line number Diff line change 5050 - name : Build Debug APK
5151 run : ./gradlew assembleDebug
5252
53+ - name : Align APK with latest build-tools
54+ run : |
55+ # Find latest build-tools version
56+ BUILD_TOOLS_VERSION=$(ls -1 ${ANDROID_HOME}/build-tools | sort -V | tail -n 1)
57+ echo "Using build-tools version: $BUILD_TOOLS_VERSION"
58+
59+ ${ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION}/zipalign -v 4 \
60+ app/build/outputs/apk/release/app-release-unsigned.apk \
61+ app/build/outputs/apk/release/app-release.apk
62+
5363 - name : Sign Release APK (if keystore exists)
5464 id : sign_app
5565 uses : ilharp/sign-android-release@v1.0.4
6070 keyAlias : ${{ secrets.ANDROID_KEY_ALIAS }}
6171 keyStorePassword : ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
6272 keyPassword : ${{ secrets.ANDROID_KEY_PASSWORD }}
63-
64- - name : Align APK with latest build-tools
65- run : |
66- # Find latest build-tools version
67- BUILD_TOOLS_VERSION=$(ls -1 ${ANDROID_HOME}/build-tools | sort -V | tail -n 1)
68- echo "Using build-tools version: $BUILD_TOOLS_VERSION"
69-
70- ${ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION}/zipalign -v 4 \
71- app/build/outputs/apk/release/app-release-unsigned.apk \
72- app/build/outputs/apk/release/app-release.apk
7373
7474 - name : Get build info
7575 id : build_info
You can’t perform that action at this time.
0 commit comments