expo-build-properties 0.14.1 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/android.js +4 -0
- package/build/pluginConfig.d.ts +8 -0
- package/build/pluginConfig.js +1 -0
- package/package.json +2 -2
- package/src/android.ts +4 -0
- package/src/pluginConfig.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.14.2 — 2025-04-11
|
|
14
|
+
|
|
15
|
+
### 🎉 New features
|
|
16
|
+
|
|
17
|
+
- Add `android.enableBundleCompression` option ([#36071](https://github.com/expo/expo/pull/36071) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
|
18
|
+
|
|
13
19
|
## 0.14.1 — 2025-04-09
|
|
14
20
|
|
|
15
21
|
_This version does not introduce any user-facing changes._
|
package/build/android.js
CHANGED
|
@@ -93,6 +93,10 @@ exports.withAndroidBuildProperties = createBuildGradlePropsConfigPlugin([
|
|
|
93
93
|
propName: 'android.useDayNightTheme',
|
|
94
94
|
propValueGetter: (config) => config.android?.useDayNightTheme?.toString(),
|
|
95
95
|
},
|
|
96
|
+
{
|
|
97
|
+
propName: 'android.enableBundleCompression',
|
|
98
|
+
propValueGetter: (config) => config.android?.enableBundleCompression?.toString(),
|
|
99
|
+
},
|
|
96
100
|
], 'withAndroidBuildProperties');
|
|
97
101
|
/**
|
|
98
102
|
* Appends `props.android.extraProguardRules` content into `android/app/proguard-rules.pro`
|
package/build/pluginConfig.d.ts
CHANGED
|
@@ -139,6 +139,14 @@ export interface PluginConfigTypeAndroid {
|
|
|
139
139
|
* @see [Android documentation](https://developer.android.com/develop/ui/views/theming/darktheme)
|
|
140
140
|
*/
|
|
141
141
|
useDayNightTheme?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Enable JavaScript Bundle compression. Turning this on will result in a smaller APK size but may have slower app startup times.
|
|
144
|
+
*
|
|
145
|
+
* @see [Faster App Startup](https://reactnative.dev/blog/2025/04/08/react-native-0.79#android-faster-app-startup)
|
|
146
|
+
*
|
|
147
|
+
* @default false
|
|
148
|
+
*/
|
|
149
|
+
enableBundleCompression?: boolean;
|
|
142
150
|
}
|
|
143
151
|
/**
|
|
144
152
|
* @platform android
|
package/build/pluginConfig.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-build-properties",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "Config plugin to customize native build properties on prebuild",
|
|
5
5
|
"main": "build/withBuildProperties.js",
|
|
6
6
|
"types": "build/withBuildProperties.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"expo": "*"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "c81263062bf24ad09e51e019f1d7dc29fa651c55"
|
|
44
44
|
}
|
package/src/android.ts
CHANGED
|
@@ -104,6 +104,10 @@ export const withAndroidBuildProperties = createBuildGradlePropsConfigPlugin<Plu
|
|
|
104
104
|
propName: 'android.useDayNightTheme',
|
|
105
105
|
propValueGetter: (config) => config.android?.useDayNightTheme?.toString(),
|
|
106
106
|
},
|
|
107
|
+
{
|
|
108
|
+
propName: 'android.enableBundleCompression',
|
|
109
|
+
propValueGetter: (config) => config.android?.enableBundleCompression?.toString(),
|
|
110
|
+
},
|
|
107
111
|
],
|
|
108
112
|
'withAndroidBuildProperties'
|
|
109
113
|
);
|
package/src/pluginConfig.ts
CHANGED
|
@@ -163,6 +163,15 @@ export interface PluginConfigTypeAndroid {
|
|
|
163
163
|
* @see [Android documentation](https://developer.android.com/develop/ui/views/theming/darktheme)
|
|
164
164
|
*/
|
|
165
165
|
useDayNightTheme?: boolean;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Enable JavaScript Bundle compression. Turning this on will result in a smaller APK size but may have slower app startup times.
|
|
169
|
+
*
|
|
170
|
+
* @see [Faster App Startup](https://reactnative.dev/blog/2025/04/08/react-native-0.79#android-faster-app-startup)
|
|
171
|
+
*
|
|
172
|
+
* @default false
|
|
173
|
+
*/
|
|
174
|
+
enableBundleCompression?: boolean;
|
|
166
175
|
}
|
|
167
176
|
|
|
168
177
|
// @docsMissing
|
|
@@ -601,6 +610,7 @@ const schema: JSONSchemaType<PluginConfigType> = {
|
|
|
601
610
|
},
|
|
602
611
|
nullable: true,
|
|
603
612
|
},
|
|
613
|
+
enableBundleCompression: { type: 'boolean', nullable: true },
|
|
604
614
|
},
|
|
605
615
|
nullable: true,
|
|
606
616
|
},
|