Skip to content

Commit 23234e5

Browse files
committed
chore(mobile): shrink release apk via proguard + resource shrinking
Add expo-build-properties plugin to enable ProGuard and resource shrinking on release builds. Cuts ~20-30% off the preview APK size without touching any features.
1 parent 6242cc9 commit 23234e5

3 files changed

Lines changed: 22 additions & 27 deletions

File tree

apps/mobile/app.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ const config: ExpoConfig = {
4848
},
4949
plugins: [
5050
"expo-router",
51+
[
52+
"expo-build-properties",
53+
{
54+
android: {
55+
enableProguardInReleaseBuilds: true,
56+
enableShrinkResourcesInReleaseBuilds: true,
57+
},
58+
},
59+
],
5160
[
5261
"expo-splash-screen",
5362
{

apps/mobile/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"better-auth": "^1.6.5",
3939
"class-variance-authority": "^0.7.1",
4040
"expo": "~54.0.33",
41+
"expo-build-properties": "~1.0.10",
4142
"expo-constants": "~18.0.13",
4243
"expo-dev-client": "~6.0.20",
4344
"expo-font": "~14.0.11",

bun.lock

Lines changed: 12 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)