expo 58.0.0-preview.8 → 58.0.1
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/android/build.gradle +2 -2
- package/android/proguard-rules.pro +4 -0
- package/android/src/main/java/expo/modules/fetch/NativeResponse.kt +5 -1
- package/android/src/main/java/expo/modules/fetch/OkHttpFileUrlInterceptor.kt +5 -1
- package/build/winter/runtime.native.js +0 -2
- package/build/winter/runtime.native.js.map +1 -1
- package/bundledNativeModules.json +89 -89
- package/package.json +25 -25
- package/scripts/spm/README.md +0 -3
- package/scripts/spm/__tests__/cli.test.js +57 -1
- package/scripts/spm/__tests__/diagnostics.test.js +181 -131
- package/scripts/spm/__tests__/flavored-frameworks.test.js +9 -0
- package/scripts/spm/__tests__/helpers.js +88 -0
- package/scripts/spm/__tests__/manifests.test.js +289 -74
- package/scripts/spm/__tests__/plugin.test.js +1101 -111
- package/scripts/spm/__tests__/podspec.test.js +27 -138
- package/scripts/spm/__tests__/spm-dependencies.test.js +344 -0
- package/scripts/spm/classify.js +28 -6
- package/scripts/spm/cli.js +23 -9
- package/scripts/spm/diagnostics.js +111 -91
- package/scripts/spm/flavored-frameworks.js +233 -21
- package/scripts/spm/manifests.js +85 -34
- package/scripts/spm/plugin.js +214 -55
- package/scripts/spm/podspec.js +10 -160
- package/src/winter/runtime.native.ts +0 -2
- package/template.tgz +0 -0
- package/build/winter/AbortSignal.d.ts +0 -3
- package/build/winter/AbortSignal.js +0 -96
- package/build/winter/AbortSignal.js.map +0 -1
- package/src/winter/AbortSignal.ts +0 -132
- package/src/winter/__tests__/AbortSignal.test.native.ts +0 -163
package/android/build.gradle
CHANGED
|
@@ -10,7 +10,7 @@ buildscript {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
group = 'host.exp.exponent'
|
|
13
|
-
version = '58.0.
|
|
13
|
+
version = '58.0.1'
|
|
14
14
|
|
|
15
15
|
expoModule {
|
|
16
16
|
// We can't prebuild the module because it depends on the generated files.
|
|
@@ -21,7 +21,7 @@ android {
|
|
|
21
21
|
namespace "expo.core"
|
|
22
22
|
defaultConfig {
|
|
23
23
|
versionCode 1
|
|
24
|
-
versionName "58.0.
|
|
24
|
+
versionName "58.0.1"
|
|
25
25
|
consumerProguardFiles("proguard-rules.pro")
|
|
26
26
|
}
|
|
27
27
|
testOptions {
|
|
@@ -32,3 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
# Workaround zstd-kmp R8 issue - https://github.com/square/zstd-kmp/issues/108
|
|
34
34
|
-keep class com.squareup.zstd.** { *; }
|
|
35
|
+
|
|
36
|
+
# Workaround Fresco R8 issue - https://github.com/facebook/fresco/issues/2867
|
|
37
|
+
-keep class com.facebook.animated.gif.GifImageDecoder { public <init>(...); }
|
|
38
|
+
-keep class com.facebook.animated.webp.WebPImageDecoder { public <init>(...); }
|
|
@@ -195,7 +195,11 @@ internal class NativeResponse(appContext: AppContext, private val coroutineScope
|
|
|
195
195
|
try {
|
|
196
196
|
while (true) {
|
|
197
197
|
val data = withContext(Dispatchers.IO) {
|
|
198
|
-
if (stream.exhausted())
|
|
198
|
+
if (stream.exhausted()) {
|
|
199
|
+
null
|
|
200
|
+
} else {
|
|
201
|
+
stream.buffer.readByteArray()
|
|
202
|
+
}
|
|
199
203
|
} ?: break
|
|
200
204
|
|
|
201
205
|
if (isInvalidState(
|
|
@@ -109,7 +109,11 @@ internal class OkHttpFileUrlInterceptor(context: Context) : Interceptor {
|
|
|
109
109
|
|
|
110
110
|
companion object {
|
|
111
111
|
fun handleFileUrl(url: URL): URL {
|
|
112
|
-
return if (url.protocol == "file")
|
|
112
|
+
return if (url.protocol == "file") {
|
|
113
|
+
URL(fakeHttpUrlPrefix + url.path)
|
|
114
|
+
} else {
|
|
115
|
+
url
|
|
116
|
+
}
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
119
|
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
// Otherwise we're relying on `getModulesRunBeforeMainModule` which is unstable or can be missing
|
|
5
5
|
import './setupReactNativeEnvironment';
|
|
6
6
|
import '../../types';
|
|
7
|
-
import { installAbortSignalPatch } from './AbortSignal';
|
|
8
7
|
import { installFormDataPatch } from './FormData';
|
|
9
8
|
import { installGlobal as install } from './installGlobal';
|
|
10
9
|
// https://encoding.spec.whatwg.org/#textdecoder
|
|
@@ -25,7 +24,6 @@ install('__ExpoImportMetaRegistry', ()=>require('./ImportMetaRegistry').ImportMe
|
|
|
25
24
|
// https://html.spec.whatwg.org/multipage/structured-data.html#structuredclone
|
|
26
25
|
install('structuredClone', ()=>require('@ungap/structured-clone').default);
|
|
27
26
|
installFormDataPatch(FormData);
|
|
28
|
-
installAbortSignalPatch(AbortSignal);
|
|
29
27
|
// Polyfill async iterator symbol for Hermes.
|
|
30
28
|
// @ts-expect-error: readonly property only applies when the engine supports it
|
|
31
29
|
Symbol.asyncIterator ??= Symbol.for('Symbol.asyncIterator');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["winter/runtime.native.ts"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"sources":["winter/runtime.native.ts"],"sourcesContent":[null],"names":["installFormDataPatch","installGlobal","install","require","TextDecoder","TextDecoderStream","TextEncoderStream","URL","URLSearchParams","DOMException","ImportMetaRegistry","default","FormData","Symbol","asyncIterator","for","useRnFetch","process","env","EXPO_PUBLIC_USE_RN_FETCH","globalThis","Headers","Error","fetch"],"mappings":"AAAA,wFAAwF;AACxF,wBAAwB;AAExB,+FAA+F;AAC/F,iGAAiG;AACjG,OAAO,gCAAgC;AACvC,OAAO,cAAc;AACrB,SAASA,oBAAoB,QAAQ,aAAa;AAClD,SAASC,iBAAiBC,OAAO,QAAQ,kBAAkB;AAE3D,gDAAgD;AAChDA,QAAQ,eAAe,IAAMC,QAAQ,iBAAiBC,WAAW;AACjE,gEAAgE;AAChEF,QAAQ,qBAAqB,IAAMC,QAAQ,uBAAuBE,iBAAiB;AACnF,gEAAgE;AAChEH,QAAQ,qBAAqB,IAAMC,QAAQ,uBAAuBG,iBAAiB;AACnF,mCAAmC;AACnCJ,QAAQ,OAAO,IAAMC,QAAQ,SAASI,GAAG;AACzC,+CAA+C;AAC/CL,QAAQ,mBAAmB,IAAMC,QAAQ,SAASK,eAAe;AACjE,mDAAmD;AACnDN,QAAQ,gBAAgB,IAAMC,QAAQ,kBAAkBM,YAAY;AACpE,sCAAsC;AACtC,kDAAkD;AAElDP,QAAQ,4BAA4B,IAAMC,QAAQ,wBAAwBO,kBAAkB;AAE5F,8EAA8E;AAC9ER,QAAQ,mBAAmB,IAAMC,QAAQ,2BAA2BQ,OAAO;AAE3EX,qBAAqBY;AAErB,6CAA6C;AAC7C,+EAA+E;AAC/EC,OAAOC,aAAa,KAAKD,OAAOE,GAAG,CAAC;AAEpC,MAAMC,aACJC,QAAQC,GAAG,CAACC,wBAAwB,KAAK,OAAOF,QAAQC,GAAG,CAACC,wBAAwB,KAAK;AAE3F,IAAI,CAACH,YAAY;IACf,sEAAsE;IACtE,sEAAsE;IACtE,IAAI,CAACI,WAAWC,OAAO,EAAE;QACvB,MAAM,IAAIC,MACR;IAEJ;IACApB,QAAQ,SAAS,IAAMC,QAAQ,WAAWoB,KAAK;AACjD"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"@expo/dom-webview": "~58.0.
|
|
3
|
-
"@expo/fingerprint": "~0.21.
|
|
4
|
-
"@expo/metro-runtime": "~58.0.
|
|
2
|
+
"@expo/dom-webview": "~58.0.2",
|
|
3
|
+
"@expo/fingerprint": "~0.21.2",
|
|
4
|
+
"@expo/metro-runtime": "~58.0.10",
|
|
5
5
|
"@expo/vector-icons": "^15.0.2",
|
|
6
|
-
"@expo/ui": "~58.0.
|
|
6
|
+
"@expo/ui": "~58.0.10",
|
|
7
7
|
"@react-native-async-storage/async-storage": "2.2.0",
|
|
8
8
|
"@react-native-community/datetimepicker": "9.2.1",
|
|
9
9
|
"@react-native-masked-view/masked-view": "0.3.2",
|
|
@@ -13,95 +13,95 @@
|
|
|
13
13
|
"@react-native-picker/picker": "2.11.4",
|
|
14
14
|
"@react-native-segmented-control/segmented-control": "2.5.7",
|
|
15
15
|
"@stripe/stripe-react-native": "0.76.0",
|
|
16
|
-
"eslint-config-expo": "~58.0.
|
|
16
|
+
"eslint-config-expo": "~58.0.4",
|
|
17
17
|
"expo-analytics-amplitude": "~11.3.0",
|
|
18
18
|
"expo-app-auth": "~11.1.0",
|
|
19
|
-
"expo-app-intents": "~0.4.
|
|
19
|
+
"expo-app-intents": "~0.4.8",
|
|
20
20
|
"expo-app-loader-provider": "~8.0.0",
|
|
21
|
-
"expo-app-metrics": "~58.0.
|
|
22
|
-
"expo-apple-authentication": "~58.0.
|
|
23
|
-
"expo-application": "~58.0.
|
|
24
|
-
"expo-asset": "~58.0.
|
|
25
|
-
"expo-audio": "~58.0.
|
|
26
|
-
"expo-auth-session": "~58.0.
|
|
27
|
-
"expo-background-fetch": "~58.0.
|
|
28
|
-
"expo-background-task": "~58.0.
|
|
29
|
-
"expo-battery": "~58.0.
|
|
30
|
-
"expo-blur": "~58.0.
|
|
31
|
-
"expo-brightness": "~58.0.
|
|
32
|
-
"expo-brownfield": "~58.0.
|
|
33
|
-
"expo-build-properties": "~58.0.
|
|
34
|
-
"expo-calendar": "~58.0.
|
|
35
|
-
"expo-camera": "~58.0.
|
|
36
|
-
"expo-cellular": "~58.0.
|
|
37
|
-
"expo-checkbox": "~58.0.
|
|
38
|
-
"expo-clipboard": "~58.0.
|
|
39
|
-
"expo-constants": "~58.0.
|
|
40
|
-
"expo-contacts": "~58.0.
|
|
41
|
-
"expo-crypto": "~58.0.
|
|
42
|
-
"expo-dev-client": "~58.0.
|
|
43
|
-
"expo-device": "~58.0.
|
|
44
|
-
"expo-document-picker": "~58.0.
|
|
45
|
-
"expo-eas-client": "~58.0.
|
|
46
|
-
"expo-file-system": "~58.0.
|
|
47
|
-
"expo-font": "~58.0.
|
|
48
|
-
"expo-gl": "~58.0.
|
|
49
|
-
"expo-glass-effect": "~58.0.
|
|
21
|
+
"expo-app-metrics": "~58.0.10",
|
|
22
|
+
"expo-apple-authentication": "~58.0.2",
|
|
23
|
+
"expo-application": "~58.0.2",
|
|
24
|
+
"expo-asset": "~58.0.9",
|
|
25
|
+
"expo-audio": "~58.0.3",
|
|
26
|
+
"expo-auth-session": "~58.0.6",
|
|
27
|
+
"expo-background-fetch": "~58.0.9",
|
|
28
|
+
"expo-background-task": "~58.0.9",
|
|
29
|
+
"expo-battery": "~58.0.2",
|
|
30
|
+
"expo-blur": "~58.0.2",
|
|
31
|
+
"expo-brightness": "~58.0.1",
|
|
32
|
+
"expo-brownfield": "~58.0.9",
|
|
33
|
+
"expo-build-properties": "~58.0.9",
|
|
34
|
+
"expo-calendar": "~58.0.5",
|
|
35
|
+
"expo-camera": "~58.0.6",
|
|
36
|
+
"expo-cellular": "~58.0.1",
|
|
37
|
+
"expo-checkbox": "~58.0.2",
|
|
38
|
+
"expo-clipboard": "~58.0.2",
|
|
39
|
+
"expo-constants": "~58.0.9",
|
|
40
|
+
"expo-contacts": "~58.0.3",
|
|
41
|
+
"expo-crypto": "~58.0.3",
|
|
42
|
+
"expo-dev-client": "~58.0.9",
|
|
43
|
+
"expo-device": "~58.0.4",
|
|
44
|
+
"expo-document-picker": "~58.0.3",
|
|
45
|
+
"expo-eas-client": "~58.0.2",
|
|
46
|
+
"expo-file-system": "~58.0.4",
|
|
47
|
+
"expo-font": "~58.0.4",
|
|
48
|
+
"expo-gl": "~58.0.2",
|
|
49
|
+
"expo-glass-effect": "~58.0.3",
|
|
50
50
|
"expo-google-app-auth": "~8.3.0",
|
|
51
|
-
"expo-haptics": "~58.0.
|
|
52
|
-
"expo-image": "~58.0.
|
|
53
|
-
"expo-image-loader": "~58.0.
|
|
54
|
-
"expo-image-manipulator": "~58.0.
|
|
55
|
-
"expo-image-picker": "~58.0.
|
|
56
|
-
"expo-intent-launcher": "~58.0.
|
|
57
|
-
"expo-insights": "~58.0.
|
|
58
|
-
"expo-keep-awake": "~58.0.
|
|
59
|
-
"expo-linear-gradient": "~58.0.
|
|
60
|
-
"expo-linking": "~58.0.
|
|
61
|
-
"expo-local-authentication": "~58.0.
|
|
62
|
-
"expo-localization": "~58.0.
|
|
63
|
-
"expo-location": "~58.0.
|
|
64
|
-
"expo-mail-composer": "~58.0.
|
|
65
|
-
"expo-manifests": "~58.0.
|
|
66
|
-
"expo-maps": "~58.0.
|
|
51
|
+
"expo-haptics": "~58.0.3",
|
|
52
|
+
"expo-image": "~58.0.9",
|
|
53
|
+
"expo-image-loader": "~58.0.2",
|
|
54
|
+
"expo-image-manipulator": "~58.0.10",
|
|
55
|
+
"expo-image-picker": "~58.0.9",
|
|
56
|
+
"expo-intent-launcher": "~58.0.2",
|
|
57
|
+
"expo-insights": "~58.0.10",
|
|
58
|
+
"expo-keep-awake": "~58.0.2",
|
|
59
|
+
"expo-linear-gradient": "~58.0.2",
|
|
60
|
+
"expo-linking": "~58.0.9",
|
|
61
|
+
"expo-local-authentication": "~58.0.1",
|
|
62
|
+
"expo-localization": "~58.0.2",
|
|
63
|
+
"expo-location": "~58.0.9",
|
|
64
|
+
"expo-mail-composer": "~58.0.2",
|
|
65
|
+
"expo-manifests": "~58.0.1",
|
|
66
|
+
"expo-maps": "~58.0.3",
|
|
67
67
|
"expo-mcp": "~0.2.1",
|
|
68
|
-
"expo-media-library": "~58.0.
|
|
69
|
-
"expo-mesh-gradient": "~58.0.
|
|
70
|
-
"expo-module-template": "~58.0.
|
|
71
|
-
"expo-modules-core": "~58.0.
|
|
72
|
-
"expo-navigation-bar": "~58.0.
|
|
73
|
-
"expo-network": "~58.0.
|
|
74
|
-
"expo-notifications": "~58.0.
|
|
75
|
-
"expo-observe": "~58.0.
|
|
76
|
-
"expo-print": "~58.0.
|
|
77
|
-
"expo-live-photo": "~58.0.
|
|
78
|
-
"expo-router": "~58.0.
|
|
79
|
-
"expo-screen-capture": "~58.0.
|
|
80
|
-
"expo-screen-orientation": "~58.0.
|
|
81
|
-
"expo-secure-store": "~58.0.
|
|
82
|
-
"expo-sensors": "~58.0.
|
|
83
|
-
"expo-server": "~58.0.
|
|
84
|
-
"expo-sharing": "~58.0.
|
|
85
|
-
"expo-sms": "~58.0.
|
|
86
|
-
"expo-speech": "~58.0.
|
|
87
|
-
"expo-splash-screen": "~58.0.
|
|
88
|
-
"expo-sqlite": "~58.0.
|
|
89
|
-
"expo-status-bar": "~58.0.
|
|
90
|
-
"expo-store-review": "~58.0.
|
|
91
|
-
"expo-symbols": "~58.0.
|
|
92
|
-
"expo-system-ui": "~58.0.
|
|
93
|
-
"expo-task-manager": "~58.0.
|
|
94
|
-
"expo-tracking-transparency": "~58.0.
|
|
95
|
-
"expo-updates": "~58.0.
|
|
96
|
-
"expo-video-thumbnails": "~58.0.
|
|
97
|
-
"expo-video": "~58.0.
|
|
98
|
-
"expo-web-browser": "~58.0.
|
|
99
|
-
"expo-widgets": "~58.0.
|
|
100
|
-
"jest-expo": "~58.0.
|
|
68
|
+
"expo-media-library": "~58.0.4",
|
|
69
|
+
"expo-mesh-gradient": "~58.0.2",
|
|
70
|
+
"expo-module-template": "~58.0.5",
|
|
71
|
+
"expo-modules-core": "~58.0.10",
|
|
72
|
+
"expo-navigation-bar": "~58.0.3",
|
|
73
|
+
"expo-network": "~58.0.2",
|
|
74
|
+
"expo-notifications": "~58.0.10",
|
|
75
|
+
"expo-observe": "~58.0.12",
|
|
76
|
+
"expo-print": "~58.0.3",
|
|
77
|
+
"expo-live-photo": "~58.0.2",
|
|
78
|
+
"expo-router": "~58.0.11",
|
|
79
|
+
"expo-screen-capture": "~58.0.4",
|
|
80
|
+
"expo-screen-orientation": "~58.0.1",
|
|
81
|
+
"expo-secure-store": "~58.0.1",
|
|
82
|
+
"expo-sensors": "~58.0.1",
|
|
83
|
+
"expo-server": "~58.0.2",
|
|
84
|
+
"expo-sharing": "~58.0.12",
|
|
85
|
+
"expo-sms": "~58.0.1",
|
|
86
|
+
"expo-speech": "~58.0.2",
|
|
87
|
+
"expo-splash-screen": "~58.0.3",
|
|
88
|
+
"expo-sqlite": "~58.0.7",
|
|
89
|
+
"expo-status-bar": "~58.0.2",
|
|
90
|
+
"expo-store-review": "~58.0.1",
|
|
91
|
+
"expo-symbols": "~58.0.3",
|
|
92
|
+
"expo-system-ui": "~58.0.4",
|
|
93
|
+
"expo-task-manager": "~58.0.10",
|
|
94
|
+
"expo-tracking-transparency": "~58.0.1",
|
|
95
|
+
"expo-updates": "~58.0.12",
|
|
96
|
+
"expo-video-thumbnails": "~58.0.1",
|
|
97
|
+
"expo-video": "~58.0.5",
|
|
98
|
+
"expo-web-browser": "~58.0.3",
|
|
99
|
+
"expo-widgets": "~58.0.10",
|
|
100
|
+
"jest-expo": "~58.0.5",
|
|
101
101
|
"lottie-react-native": "~7.5.0",
|
|
102
102
|
"react": "19.3.0",
|
|
103
103
|
"react-dom": "19.3.0",
|
|
104
|
-
"react-native": "0.88.0-rc.
|
|
104
|
+
"react-native": "0.88.0-rc.3",
|
|
105
105
|
"react-native-web": "~0.21.0",
|
|
106
106
|
"react-native-gesture-handler": "~3.2.1",
|
|
107
107
|
"react-native-keyboard-controller": "1.22.4",
|
|
@@ -116,10 +116,10 @@
|
|
|
116
116
|
"react-native-webview": "14.0.1",
|
|
117
117
|
"react-server-dom-webpack": "~19.3.0",
|
|
118
118
|
"sentry-expo": "~7.0.0",
|
|
119
|
-
"unimodules-app-loader": "~58.0.
|
|
119
|
+
"unimodules-app-loader": "~58.0.1",
|
|
120
120
|
"unimodules-image-loader-interface": "~6.1.0",
|
|
121
|
-
"@shopify/react-native-skia": "2.
|
|
122
|
-
"@shopify/flash-list": "2.
|
|
123
|
-
"@sentry/react-native": "~
|
|
121
|
+
"@shopify/react-native-skia": "2.13.1",
|
|
122
|
+
"@shopify/flash-list": "2.3.2",
|
|
123
|
+
"@sentry/react-native": "~8.28.0",
|
|
124
124
|
"react-native-bootsplash": "^6.3.10"
|
|
125
125
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.1",
|
|
4
4
|
"description": "The Expo SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"expo"
|
|
@@ -201,40 +201,40 @@
|
|
|
201
201
|
},
|
|
202
202
|
"dependencies": {
|
|
203
203
|
"@babel/runtime": "^7.20.0",
|
|
204
|
-
"@expo/cli": "^58.0
|
|
205
|
-
"@expo/config": "~58.0.
|
|
206
|
-
"@expo/config-plugins": "~58.0.
|
|
207
|
-
"@expo/devtools": "~58.0.
|
|
208
|
-
"@expo/dom-webview": "~58.0.
|
|
209
|
-
"@expo/fingerprint": "^0.21.
|
|
210
|
-
"@expo/local-build-cache-provider": "^58.0.
|
|
211
|
-
"@expo/log-box": "^58.0.
|
|
212
|
-
"@expo/log-box-utils": "^58.0.
|
|
204
|
+
"@expo/cli": "^58.1.0",
|
|
205
|
+
"@expo/config": "~58.0.1",
|
|
206
|
+
"@expo/config-plugins": "~58.0.4",
|
|
207
|
+
"@expo/devtools": "~58.0.2",
|
|
208
|
+
"@expo/dom-webview": "~58.0.2",
|
|
209
|
+
"@expo/fingerprint": "^0.21.2",
|
|
210
|
+
"@expo/local-build-cache-provider": "^58.0.1",
|
|
211
|
+
"@expo/log-box": "^58.0.8",
|
|
212
|
+
"@expo/log-box-utils": "^58.0.1",
|
|
213
213
|
"@expo/metro": "~58.0.0-rc.0",
|
|
214
|
-
"@expo/metro-config": "~58.0.
|
|
214
|
+
"@expo/metro-config": "~58.0.6",
|
|
215
215
|
"@ungap/structured-clone": "^1.3.0",
|
|
216
|
-
"babel-preset-expo": "~58.0.
|
|
217
|
-
"expo-asset": "~58.0.
|
|
218
|
-
"expo-constants": "~58.0.
|
|
219
|
-
"expo-file-system": "~58.0.
|
|
220
|
-
"expo-font": "~58.0.
|
|
221
|
-
"expo-keep-awake": "~58.0.
|
|
222
|
-
"expo-modules-autolinking": "~58.0.
|
|
223
|
-
"expo-modules-core": "~58.0.
|
|
216
|
+
"babel-preset-expo": "~58.0.7",
|
|
217
|
+
"expo-asset": "~58.0.9",
|
|
218
|
+
"expo-constants": "~58.0.9",
|
|
219
|
+
"expo-file-system": "~58.0.4",
|
|
220
|
+
"expo-font": "~58.0.4",
|
|
221
|
+
"expo-keep-awake": "~58.0.2",
|
|
222
|
+
"expo-modules-autolinking": "~58.0.6",
|
|
223
|
+
"expo-modules-core": "~58.0.10",
|
|
224
224
|
"pretty-format": "^29.7.0",
|
|
225
225
|
"react-refresh": "^0.14.2",
|
|
226
226
|
"whatwg-url-minimum": "^0.2.0"
|
|
227
227
|
},
|
|
228
228
|
"devDependencies": {
|
|
229
|
-
"@expo/dom-webview": "58.0.
|
|
230
|
-
"@expo/metro-runtime": "58.0.
|
|
229
|
+
"@expo/dom-webview": "58.0.2",
|
|
230
|
+
"@expo/metro-runtime": "58.0.10",
|
|
231
231
|
"@types/node": "^22.14.0",
|
|
232
232
|
"@types/react": "~19.3.0",
|
|
233
|
-
"expo-updates": "58.0.
|
|
233
|
+
"expo-updates": "58.0.12",
|
|
234
234
|
"npm-run-all2": "^8.0.4",
|
|
235
235
|
"react": "19.3.0",
|
|
236
236
|
"react-dom": "19.3.0",
|
|
237
|
-
"react-native": "0.88.0-rc.
|
|
237
|
+
"react-native": "0.88.0-rc.3",
|
|
238
238
|
"rimraf": "^6.1.2",
|
|
239
239
|
"web-streams-polyfill": "^3.3.2"
|
|
240
240
|
},
|
|
@@ -270,14 +270,14 @@
|
|
|
270
270
|
"engines": {
|
|
271
271
|
"node": "^22.13.0 || ^24.3.0 || ^26.0.0 || >=27.0.0"
|
|
272
272
|
},
|
|
273
|
-
"gitHead": "74f6d2b90bc50bd8df7b160d6e6b2204b37a8ce7",
|
|
274
273
|
"scripts": {
|
|
275
274
|
"build": "../expo-module-scripts/bin/expo-build src",
|
|
276
275
|
"clean": "rimraf build",
|
|
277
276
|
"lint": "oxlint --config oxlint.config.mjs .",
|
|
278
277
|
"format": "expo-module format",
|
|
279
|
-
"test": "jest && jest --config scripts/spm/jest.config.js",
|
|
278
|
+
"test": "jest && jest --config scripts/spm/jest.config.js && pnpm test:templates",
|
|
280
279
|
"test:spm-plugin": "jest --config scripts/spm/jest.config.js",
|
|
280
|
+
"test:templates": "et check-template-packages",
|
|
281
281
|
"depscheck": "expo-module depscheck",
|
|
282
282
|
"typecheck": "tsc -p tsconfig.json"
|
|
283
283
|
}
|
package/scripts/spm/README.md
CHANGED
|
@@ -95,9 +95,6 @@ surfaces as a build error, naming the fix:
|
|
|
95
95
|
Ruby: a misread link line fails in a shipped app, not here. Declare it as
|
|
96
96
|
`linkerSettings` in a `Package.swift`, which the plugin mirrors verbatim, or
|
|
97
97
|
ship an `spm.config.json` and prebuild the module.
|
|
98
|
-
- **An iOS deployment floor that is not a literal** — the plugin reads
|
|
99
|
-
`s.platforms = { :ios => '16.4' }` and `s.ios.deployment_target = '16.4'` as
|
|
100
|
-
text; anything computed would need the podspec to be run.
|
|
101
98
|
- **No precompiled ExpoModulesCore** — a single project-level fault reported
|
|
102
99
|
once, not per module, since every source module compiles against its interface
|
|
103
100
|
tree.
|
|
@@ -7,7 +7,7 @@ const path = require('path');
|
|
|
7
7
|
jest.mock('child_process', () => ({ execFileSync: jest.fn(() => '') }));
|
|
8
8
|
|
|
9
9
|
const { execFileSync } = require('child_process');
|
|
10
|
-
const { generateModulesProvider } = require('../cli');
|
|
10
|
+
const { generateModulesProvider, prebuiltMetadata, resolveExpoModules } = require('../cli');
|
|
11
11
|
|
|
12
12
|
function argvFor(options) {
|
|
13
13
|
execFileSync.mockClear();
|
|
@@ -78,3 +78,59 @@ describe('generateModulesProvider', () => {
|
|
|
78
78
|
expect(execFileSync).not.toHaveBeenCalled();
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
|
+
|
|
82
|
+
describe('prebuiltMetadata', () => {
|
|
83
|
+
const document = {
|
|
84
|
+
ExpoModulesCore: {
|
|
85
|
+
type: 'internal',
|
|
86
|
+
npmPackage: 'expo-modules-core',
|
|
87
|
+
packageRoot: '/app/node_modules/expo-modules-core',
|
|
88
|
+
podspecDir: '/app/node_modules/expo-modules-core/ios',
|
|
89
|
+
productName: 'ExpoModulesCore',
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
it('asks the autolinking CLI for the metadata document, from the app root', () => {
|
|
94
|
+
execFileSync.mockClear();
|
|
95
|
+
execFileSync.mockReturnValue(JSON.stringify(document));
|
|
96
|
+
|
|
97
|
+
expect(prebuiltMetadata('/app')).toEqual(document);
|
|
98
|
+
const [, argv, options] = execFileSync.mock.calls[0];
|
|
99
|
+
expect(argv.slice(1)).toEqual(['prebuilt-metadata', '--json']);
|
|
100
|
+
expect(options).toMatchObject({ cwd: '/app', encoding: 'utf8' });
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
describe('resolveExpoModules', () => {
|
|
105
|
+
const resolve = (payload) => {
|
|
106
|
+
execFileSync.mockClear();
|
|
107
|
+
execFileSync.mockReturnValue(JSON.stringify(payload));
|
|
108
|
+
return resolveExpoModules('/app');
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
it('returns the resolved modules and the extra pods declared beside them', () => {
|
|
112
|
+
const modules = [{ packageName: 'expo-camera', pods: [] }];
|
|
113
|
+
const extraDependencies = [{ name: 'MyLocalPod', path: '../vendor/MyLocalPod' }];
|
|
114
|
+
|
|
115
|
+
expect(resolve({ modules, extraDependencies, coreFeatures: [] })).toEqual({
|
|
116
|
+
modules,
|
|
117
|
+
extraDependencies,
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
// Every caller reads `extraDependencies.length`, so it is an array in every shape
|
|
122
|
+
// the CLI answers with.
|
|
123
|
+
it('reports no extra pods when the app declares none', () => {
|
|
124
|
+
expect(resolve({ modules: [] })).toEqual({ modules: [], extraDependencies: [] });
|
|
125
|
+
expect(resolve({ modules: [], extraDependencies: null })).toEqual({
|
|
126
|
+
modules: [],
|
|
127
|
+
extraDependencies: [],
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it('reads the legacy top-level array as modules alone', () => {
|
|
132
|
+
const modules = [{ packageName: 'expo-camera', pods: [] }];
|
|
133
|
+
|
|
134
|
+
expect(resolve(modules)).toEqual({ modules, extraDependencies: [] });
|
|
135
|
+
});
|
|
136
|
+
});
|