File tree Expand file tree Collapse file tree
android-project/app/src/main/res Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 ANDROID_HOME : ${{ github.workspace }}/android-sdk
1818 # ANDROID_NDK_VERSION: 26.1.10909125
1919 ANDROID_NDK_VERSION : 29.0.14033849
20- JAVA_VERSION : " 21 "
20+ JAVA_VERSION : " 23 "
2121 ANDROID_API_LEVEL : " 34"
2222 GRADLE_OPTS : -Dorg.gradle.jvmargs="-Xmx4g -XX:+UseParallelGC"
2323
2626 uses : actions/checkout@v4
2727 with :
2828 submodules : recursive
29+ fetch-depth : 0 # fetch full history including tags
2930
3031 - name : Patch source
3132 run : |
9293 # working-directory: android-project
9394 # run: ./gradlew assembleDebug -Pandroid.ndkVersion=${{ env.ANDROID_NDK_VERSION }}
9495
95- - name : Build Release APK (unsigned)
96+ - name : Build Release APK / AAB (unsigned)
9697 working-directory : android-project
9798 run : ./gradlew assembleRelease bundleRelease -Pandroid.ndkVersion=${{ env.ANDROID_NDK_VERSION }}
9899
@@ -126,3 +127,4 @@ jobs:
126127 path : |
127128 android-project/app/build/outputs/apk/**/app-*.apk
128129 android-project/app/build/outputs/bundle/**/app-*.aab
130+ retention-days : 7
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ SOURCE=packages/data/macos/icon512.png
6+ echo " Resizing $SOURCE ..."
7+ echo " Resized images to android-project/app/src/main/res/mipmap-*/ic_launcher2.png"
8+
9+ DEST=android-project/app/src/main/res/mipmap-hdpi/ic_launcher.png
10+ magick $SOURCE -resize 72x72 $DEST
11+ DEST=android-project/app/src/main/res/mipmap-mdpi/ic_launcher.png
12+ magick $SOURCE -resize 48x48 $DEST
13+ DEST=android-project/app/src/main/res/mipmap-xhdpi/ic_launcher.png
14+ magick $SOURCE -resize 96x96 $DEST
15+ DEST=android-project/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
16+ magick $SOURCE -resize 144x144 $DEST
17+ DEST=android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
18+ magick $SOURCE -resize 192x192 $DEST
19+ echo " Done."
You can’t perform that action at this time.
0 commit comments