Skip to content

Commit 87cfdd7

Browse files
committed
fix: reduce apk size
1 parent d96132d commit 87cfdd7

39 files changed

+19
-18
lines changed

.github/workflows/build-pro.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,29 @@ jobs:
4242
- name: Build Notes Pro variant
4343
run: |
4444
chmod +x ./gradlew
45-
./gradlew assembleNotesPro
45+
./gradlew assembleNotesProRelease
4646
4747
- name: Build Calculator Pro variant
48-
run: ./gradlew assembleCalcPro
48+
run: ./gradlew assembleCalcProRelease
4949

5050
- name: Build Weather Pro variant
51-
run: ./gradlew assembleWeatherPro
51+
run: ./gradlew assembleWeatherProRelease
5252

5353
- name: Verify APKs were built
5454
run: |
5555
echo "✓ Checking built APKs..."
56-
ls -lh app/build/outputs/apk/notesPro/pro/app-notesPro-pro.apk
57-
ls -lh app/build/outputs/apk/calcPro/pro/app-calcPro-pro.apk
58-
ls -lh app/build/outputs/apk/weatherPro/pro/app-weatherPro-pro.apk
56+
ls -lh app/build/outputs/apk/notesPro/release/app-notesPro-release.apk
57+
ls -lh app/build/outputs/apk/calcPro/release/app-calcPro-release.apk
58+
ls -lh app/build/outputs/apk/weatherPro/release/app-weatherPro-release.apk
5959
6060
- name: Upload Pro variant artifacts
6161
uses: actions/upload-artifact@v4
6262
with:
6363
name: fadcam-pro-variants
6464
path: |
65-
app/build/outputs/apk/notesPro/pro/app-notesPro-pro.apk
66-
app/build/outputs/apk/calcPro/pro/app-calcPro-pro.apk
67-
app/build/outputs/apk/weatherPro/pro/app-weatherPro-pro.apk
65+
app/build/outputs/apk/notesPro/release/app-notesPro-release.apk
66+
app/build/outputs/apk/calcPro/release/app-calcPro-release.apk
67+
app/build/outputs/apk/weatherPro/release/app-weatherPro-release.apk
6868
retention-days: 1
6969

7070
- name: Build summary

app/build.gradle.kts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,19 @@ android {
137137
}
138138
}
139139

140-
// ./gradlew assembleNotesPro - Notes Pro variant
141-
// ./gradlew assembleCalcPro - Calculator Pro variant
142-
// ./gradlew assembleWeatherPro - Weather Pro variant
143-
// ./gradlew assembleProPlus -PcustomAppName="Custom Name" - Pro+ custom build (standalone)
140+
// ./gradlew assembleNotesProRelease - Notes Pro variant
141+
// ./gradlew assembleCalcProRelease - Calculator Pro variant
142+
// ./gradlew assembleWeatherProRelease - Weather Pro variant
143+
// ./gradlew assembleDefaultProPlusRelease -PcustomAppName="Custom Name" - Pro+ custom build (standalone)
144144

145145
// Variant filter: only build specific variants
146146
variantFilter {
147147
val isPreBuiltFlavor = name.contains("notesPro") || name.contains("calcPro") || name.contains("weatherPro")
148148
val isDefaultFlavor = name.contains("default")
149149

150150
if (isPreBuiltFlavor) {
151-
// Pre-built flavors: only 'pro' build type
152-
if (!name.endsWith("Pro")) {
151+
// Pre-built flavors: only 'release' build type
152+
if (!name.endsWith("Release")) {
153153
ignore = true
154154
}
155155
} else if (isDefaultFlavor) {
@@ -208,7 +208,8 @@ android {
208208
"META-INF/LGPL2.1",
209209
"**/*.kotlin_metadata",
210210
"**/*.kotlin_builtins",
211-
"**/*.proto"
211+
"**/*.proto",
212+
"assets/PSDs/**" // Exclude PSD source files from release APK
212213
)
213214
}
214215
}
-59 KB
Binary file not shown.
-34.4 KB
Binary file not shown.
-74.9 KB
Binary file not shown.
-110 KB
Binary file not shown.
-99.9 KB
Binary file not shown.
-54 KB
Binary file not shown.
-104 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)