@oxy.so/app-preset 3.2.2 → 3.3.0
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/README.md +26 -2
- package/package.json +2 -2
- package/plugin/withOxyAndroidRelease.js +2 -0
package/README.md
CHANGED
|
@@ -55,6 +55,25 @@ The iOS and build-property pieces are overridable:
|
|
|
55
55
|
}]
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
##### Dropping React Native's GIF / WebP decoders (opt-in, Expo SDK 58+)
|
|
59
|
+
|
|
60
|
+
An app that renders no GIF and no animated WebP through react-native's own
|
|
61
|
+
`Image`/`ImageBackground` (Bloom included — `expo-image` decodes on its own) can
|
|
62
|
+
leave Fresco's GIF and WebP decoders out of the Android build, about 340 KB of
|
|
63
|
+
download and 870 KB installed with R8:
|
|
64
|
+
|
|
65
|
+
```js
|
|
66
|
+
['@oxy.so/app-preset', {
|
|
67
|
+
android: { gifEnabled: false, webpEnabled: false }, // deep-merges over the defaults
|
|
68
|
+
}]
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
The keys pass straight through to `expo-build-properties`, which writes
|
|
72
|
+
`expo.gif.enabled=false` / `expo.webp.enabled=false` to `gradle.properties`. This
|
|
73
|
+
is **not a default**: an app that still shows a GIF or an animated WebP through
|
|
74
|
+
react-native's `Image` renders nothing for it, with no error. The keys exist from
|
|
75
|
+
`expo-build-properties` 58 (Expo SDK 58); older versions ignore them silently.
|
|
76
|
+
|
|
58
77
|
The `sharedUserId` and `sharedIdentityReader` options were removed in 3.0.0 and
|
|
59
78
|
throw if passed. `@oxy.so/services` 11+ is a required peer.
|
|
60
79
|
|
|
@@ -215,5 +234,10 @@ factories throw a clear, actionable error if a required peer is missing.
|
|
|
215
234
|
|
|
216
235
|
## Compatibility
|
|
217
236
|
|
|
218
|
-
Requires **Expo SDK 56+**; validated against **Expo SDK
|
|
219
|
-
(the current Oxy ecosystem target)
|
|
237
|
+
Requires **Expo SDK 56+**; validated against **Expo SDK 58 / React Native 0.88**
|
|
238
|
+
(the current Oxy ecosystem target) with a clean `expo prebuild` of `test-app-expo`,
|
|
239
|
+
`accounts` and `commons` (Android and iOS). SDK 58's Android template already
|
|
240
|
+
uses `proguard-android-optimize.txt` and turns R8 on through `gradle.properties`
|
|
241
|
+
(`android.enableMinifyInReleaseBuilds`), so on SDK 58 `withOxyAndroidRelease`
|
|
242
|
+
only adds the release signing config; on SDK 56/57 it also swaps in the
|
|
243
|
+
`-optimize` ProGuard file.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/app-preset",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "The Oxy distro of Expo — centralized Expo config plugin, Metro/Babel/ESLint factories, Tailwind base CSS and TypeScript bases shared by every Oxy app (Mention, Homiio, Allo, accounts, …). A zero-build package: apps replace copy-pasted config with a single dependency bump.",
|
|
5
5
|
"main": "./app.plugin.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"tailwindcss": ">=4.0.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"expo": "
|
|
83
|
+
"expo": "~58.0.14",
|
|
84
84
|
"nativewind": "5.0.0-preview.3",
|
|
85
85
|
"tailwindcss": "4.3.3"
|
|
86
86
|
},
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
* only meaningful line is `-dontoptimize`. Swapping to the `-optimize`
|
|
16
16
|
* variant drops that and adds `-allowaccessmodification`, which is what lets
|
|
17
17
|
* R8 inline and merge classes. Worth a few MB of dex on a typical Oxy app.
|
|
18
|
+
* Expo SDK 58's template already generates the `-optimize` file, so on SDK
|
|
19
|
+
* 58 this step is a no-op and only the signing config below changes.
|
|
18
20
|
*
|
|
19
21
|
* 2. Release signing
|
|
20
22
|
* Expo generates `signingConfig signingConfigs.debug` for release, and Play
|