expo 58.0.17 → 58.0.20
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/src/main/java/expo/modules/ExpoModulesPackage.kt +1 -1
- package/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt +1 -1
- package/build/winter/fetch/RequestUtils.d.ts +1 -0
- package/build/winter/fetch/RequestUtils.js +4 -2
- package/build/winter/fetch/RequestUtils.js.map +1 -1
- package/build/winter/fetch/fetch.js +4 -2
- package/build/winter/fetch/fetch.js.map +1 -1
- package/bundledNativeModules.json +19 -19
- package/package.json +12 -12
- package/scripts/spm/README.md +43 -3
- package/scripts/spm/__tests__/cli.test.js +17 -2
- package/scripts/spm/__tests__/commands.test.js +61 -0
- package/scripts/spm/__tests__/diagnostics.test.js +210 -9
- package/scripts/spm/__tests__/direct.test.js +387 -0
- package/scripts/spm/__tests__/flavored-frameworks.test.js +127 -0
- package/scripts/spm/__tests__/helpers.js +9 -0
- package/scripts/spm/__tests__/manifests.test.js +38 -50
- package/scripts/spm/__tests__/plugin.test.js +1238 -53
- package/scripts/spm/__tests__/precompiled-sources.test.js +139 -0
- package/scripts/spm/classify.js +8 -6
- package/scripts/spm/cli.js +11 -4
- package/scripts/spm/commands.js +18 -1
- package/scripts/spm/diagnostics.js +112 -8
- package/scripts/spm/direct.js +215 -0
- package/scripts/spm/flavored-frameworks.js +125 -40
- package/scripts/spm/manifests.js +4 -3
- package/scripts/spm/plugin.js +432 -82
- package/src/winter/fetch/RequestUtils.ts +8 -4
- package/src/winter/fetch/__tests__/fetch-test.native.ts +56 -0
- package/src/winter/fetch/fetch.ts +8 -2
- package/template.tgz +0 -0
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.20'
|
|
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.20"
|
|
25
25
|
consumerProguardFiles("proguard-rules.pro")
|
|
26
26
|
}
|
|
27
27
|
testOptions {
|
|
@@ -23,7 +23,7 @@ class ExpoModulesPackage : ReactPackage {
|
|
|
23
23
|
val expoModules = Class.forName("expo.modules.ExpoModulesPackageList")
|
|
24
24
|
val getPackageList = expoModules.getMethod("getPackageList")
|
|
25
25
|
(getPackageList.invoke(null) as List<Package>)
|
|
26
|
-
.sortedByDescending { ModulePriorities.get(it
|
|
26
|
+
.sortedByDescending { ModulePriorities.get(it.javaClass.canonicalName) }
|
|
27
27
|
} catch (e: Exception) {
|
|
28
28
|
Log.e("ExpoModulesPackage", "Couldn't get expo package list.", e)
|
|
29
29
|
emptyList()
|
|
@@ -8,6 +8,7 @@ export declare function convertReadableStreamToUint8ArrayAsync(stream: ReadableS
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function normalizeBodyInitAsync(body: BodyInit | null | undefined): Promise<{
|
|
10
10
|
body: Uint8Array | null;
|
|
11
|
+
defaultHeaders?: NativeHeadersType;
|
|
11
12
|
overriddenHeaders?: NativeHeadersType;
|
|
12
13
|
}>;
|
|
13
14
|
/**
|
|
@@ -60,12 +60,14 @@ function isBlob(obj) {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
if (body instanceof Blob || isBlob(body)) {
|
|
63
|
+
// An empty type still sets the header.
|
|
64
|
+
// On iOS, URLSession sends `application/x-www-form-urlencoded` for a POST body without a Content-Type.
|
|
63
65
|
return {
|
|
64
66
|
body: new Uint8Array(await blobToArrayBufferAsync(body)),
|
|
65
|
-
|
|
67
|
+
defaultHeaders: [
|
|
66
68
|
[
|
|
67
69
|
'Content-Type',
|
|
68
|
-
body.type
|
|
70
|
+
body.type ?? ''
|
|
69
71
|
]
|
|
70
72
|
]
|
|
71
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["winter/fetch/RequestUtils.ts"],"sourcesContent":[null],"names":["blobToArrayBufferAsync","convertFormDataAsync","convertReadableStreamToUint8ArrayAsync","stream","reader","getReader","chunks","totalLength","done","value","read","push","length","result","Uint8Array","offset","chunk","set","isBlob","obj","normalizeBodyInitAsync","body","encoder","TextEncoder","encode","ArrayBuffer","isView","buffer","byteOffset","byteLength","Blob","
|
|
1
|
+
{"version":3,"sources":["winter/fetch/RequestUtils.ts"],"sourcesContent":[null],"names":["blobToArrayBufferAsync","convertFormDataAsync","convertReadableStreamToUint8ArrayAsync","stream","reader","getReader","chunks","totalLength","done","value","read","push","length","result","Uint8Array","offset","chunk","set","isBlob","obj","normalizeBodyInitAsync","body","encoder","TextEncoder","encode","ArrayBuffer","isView","buffer","byteOffset","byteLength","Blob","defaultHeaders","type","URLSearchParams","toString","ReadableStream","FormData","boundary","overriddenHeaders","TypeError","normalizeHeadersInit","headers","Array","isArray","Headers","results","forEach","key","Object","entries","overrideHeaders","newHeaders","newKeySet","Set","map","toLocaleLowerCase","has","normalizeMethod","method","normalized","toUpperCase"],"mappings":"AAAA,SAASA,sBAAsB,QAAQ,wBAAwB;AAE/D,SAASC,oBAAoB,QAAQ,oBAAoB;AAEzD;;CAEC,GACD,OAAO,eAAeC,uCACpBC,MAAkC;IAElC,MAAMC,SAASD,OAAOE,SAAS;IAC/B,MAAMC,SAAuB,EAAE;IAC/B,IAAIC,cAAc;IAElB,kCAAkC;IAClC,MAAO,KAAM;QACX,MAAM,EAAEC,IAAI,EAAEC,KAAK,EAAE,GAAG,MAAML,OAAOM,IAAI;QACzC,IAAIF,MAAM;QACVF,OAAOK,IAAI,CAACF;QACZF,eAAeE,MAAMG,MAAM;IAC7B;IAEA,kDAAkD;IAClD,MAAMC,SAAS,IAAIC,WAAWP;I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D,OAAOE,WAAW;IACrC,OAAQF,OAAOE,WAAW;QACxB,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;YACH,OAAOD;QACT;YACE,OAAOD;IACX;AACF"}
|
|
@@ -36,8 +36,10 @@ export async function fetch(input, init) {
|
|
|
36
36
|
abortSubscription?.();
|
|
37
37
|
});
|
|
38
38
|
const request = new ExpoFetchModule.NativeRequest(response);
|
|
39
|
-
const { body: requestBody, overriddenHeaders } = await normalizeBodyInitAsync(body);
|
|
40
|
-
if (
|
|
39
|
+
const { body: requestBody, defaultHeaders, overriddenHeaders } = await normalizeBodyInitAsync(body);
|
|
40
|
+
if (defaultHeaders) {
|
|
41
|
+
headers = overrideHeaders(defaultHeaders, headers);
|
|
42
|
+
} else if (overriddenHeaders) {
|
|
41
43
|
headers = overrideHeaders(headers, overriddenHeaders);
|
|
42
44
|
}
|
|
43
45
|
const nativeRequestInit = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["winter/fetch/fetch.ts"],"sourcesContent":[null],"names":["ExpoFetchModule","FetchError","FetchResponse","normalizeBodyInitAsync","normalizeHeadersInit","overrideHeaders","normalizeMethod","isRequest","input","Request","Symbol","toStringTag","dangerouslyGetBodyFromRequest","_noBody","_bodyInit","body","fetch","init","initFromRequest","url","signal","undefined","redirect","method","credentials","headers","abortSubscription","response","request","NativeRequest","requestBody","overriddenHeaders","nativeRequestInit","aborted","cause","reason","addAbortSignalListener","abort","cancel","start","e","Error","createFromError","String","listener","addEventListener","removeEventListener"],"mappings":"AAAA,SAASA,eAAe,QAAQ,oBAAoB;AACpD,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,SAASC,aAAa,QAA+C,kBAAkB;AAEvF,SACEC,sBAAsB,EACtBC,oBAAoB,EACpBC,eAAe,EACfC,eAAe,QACV,iBAAiB;AAGxB,2CAA2C,GAC3C,MAAMC,YAAY,CAACC;IACjB,IAAIA,SAAS,QAAQ,OAAOA,UAAU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ExpoFetchModule","FetchError","FetchResponse","normalizeBodyInitAsync","normalizeHeadersInit","overrideHeaders","normalizeMethod","isRequest","input","Request","Symbol","toStringTag","dangerouslyGetBodyFromRequest","_noBody","_bodyInit","body","fetch","init","initFromRequest","url","signal","undefined","redirect","method","credentials","headers","abortSubscription","response","request","NativeRequest","requestBody","defaultHeaders","overriddenHeaders","nativeRequestInit","aborted","cause","reason","addAbortSignalListener","abort","cancel","start","e","Error","createFromError","String","listener","addEventListener","removeEventListener"],"mappings":"AAAA,SAASA,eAAe,QAAQ,oBAAoB;AACpD,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,SAASC,aAAa,QAA+C,kBAAkB;AAEvF,SACEC,sBAAsB,EACtBC,oBAAoB,EACpBC,eAAe,EACfC,eAAe,QACV,iBAAiB;AAGxB,2CAA2C,GAC3C,MAAMC,YAAY,CAACC;IACjB,IAAIA,SAAS,QAAQ,OAAOA,UAAU,UAAU;QAC9C,OAAO;IACT,OAAO;QACL,OAAO,UAAUA,SAASA,iBAAiBC,WAAWD,KAAK,CAACE,OAAOC,WAAW,CAAC,KAAK;IACtF;AACF;AAEA,MAAMC,gCAAgC,CACpCJ;IAEA,IAAIA,SAAS,QAAQA,iBAAiBC,WAAW,eAAeD,OAAO;QACrE,uEAAuE;QACvE,qEAAqE;QACrE,OAAO,AAACA,MAAcK,OAAO,KAAK,OAAO,AAACL,MAAcM,SAAS,GAAG;IACtE,OAAO;QACL,OAAON,OAAOO,QAAQ;IACxB;AACF;AAEA,2EAA2E;AAC3E,OAAO,eAAeC,MACpBR,KAAsC,EACtCS,IAAuB;IAEvB,MAAMC,kBAAkBX,UAAUC;IAClC,MAAMW,MAAMD,kBAAkBV,MAAMW,GAAG,GAAGX;IAC1C,MAAMO,OACJH,8BAA8BK,SAC7BC,CAAAA,kBAAkBN,8BAA8BJ,SAAS,IAAG;IAC/D,MAAMY,SAASH,MAAMG,UAAWF,CAAAA,kBAAkBV,MAAMY,MAAM,GAAGC,SAAQ;IACzE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e,CAACF;QACnC,OAAO;YACL,MAAM,IAAIxC,WAAW2C,OAAOH;QAC9B;IACF;IACA,OAAOd;AACT;AAEA;;CAEC,GACD,SAASU,uBACPjB,MAA+B,EAC/ByB,QAAwD;IAExDzB,QAAQ0B,iBAAiB,SAASD;IAClC,OAAO;QACLzB,QAAQ2B,oBAAoB,SAASF;IACvC;AACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@expo/dom-webview": "~58.0.2",
|
|
3
|
-
"@expo/fingerprint": "~0.21.
|
|
3
|
+
"@expo/fingerprint": "~0.21.7",
|
|
4
4
|
"@expo/metro-runtime": "~58.0.15",
|
|
5
5
|
"@expo/vector-icons": "^15.0.2",
|
|
6
|
-
"@expo/ui": "~58.0.
|
|
6
|
+
"@expo/ui": "~58.0.24",
|
|
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",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
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.5.
|
|
19
|
+
"expo-app-intents": "~0.5.13",
|
|
20
20
|
"expo-app-loader-provider": "~8.0.0",
|
|
21
21
|
"expo-app-metrics": "~58.0.14",
|
|
22
22
|
"expo-apple-authentication": "~58.0.2",
|
|
23
23
|
"expo-application": "~58.1.2",
|
|
24
24
|
"expo-asset": "~58.0.18",
|
|
25
25
|
"expo-audio": "~58.0.10",
|
|
26
|
-
"expo-auth-session": "~58.0.
|
|
26
|
+
"expo-auth-session": "~58.0.15",
|
|
27
27
|
"expo-background-fetch": "~58.0.11",
|
|
28
28
|
"expo-background-task": "~58.0.11",
|
|
29
29
|
"expo-battery": "~58.0.3",
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
"expo-brownfield": "~58.0.16",
|
|
33
33
|
"expo-build-properties": "~58.0.11",
|
|
34
34
|
"expo-calendar": "~58.0.6",
|
|
35
|
-
"expo-camera": "~58.0.
|
|
35
|
+
"expo-camera": "~58.0.13",
|
|
36
36
|
"expo-cellular": "~58.0.3",
|
|
37
37
|
"expo-checkbox": "~58.0.2",
|
|
38
38
|
"expo-clipboard": "~58.0.4",
|
|
39
39
|
"expo-constants": "~58.0.13",
|
|
40
|
-
"expo-contacts": "~58.0.
|
|
40
|
+
"expo-contacts": "~58.0.9",
|
|
41
41
|
"expo-crypto": "~58.0.7",
|
|
42
|
-
"expo-dev-client": "~58.0.
|
|
42
|
+
"expo-dev-client": "~58.0.16",
|
|
43
43
|
"expo-device": "~58.0.5",
|
|
44
44
|
"expo-document-picker": "~58.0.4",
|
|
45
45
|
"expo-eas-client": "~58.0.2",
|
|
46
|
-
"expo-file-system": "~58.0.
|
|
47
|
-
"expo-font": "~58.0.
|
|
46
|
+
"expo-file-system": "~58.0.12",
|
|
47
|
+
"expo-font": "~58.0.10",
|
|
48
48
|
"expo-gl": "~58.0.3",
|
|
49
|
-
"expo-glass-effect": "~58.0.
|
|
49
|
+
"expo-glass-effect": "~58.0.5",
|
|
50
50
|
"expo-google-app-auth": "~8.3.0",
|
|
51
51
|
"expo-haptics": "~58.0.7",
|
|
52
52
|
"expo-hinge": "~58.0.2",
|
|
53
|
-
"expo-image": "~58.0.
|
|
53
|
+
"expo-image": "~58.0.17",
|
|
54
54
|
"expo-image-loader": "~58.0.3",
|
|
55
55
|
"expo-image-manipulator": "~58.0.15",
|
|
56
56
|
"expo-image-picker": "~58.0.10",
|
|
@@ -61,32 +61,32 @@
|
|
|
61
61
|
"expo-linking": "~58.0.14",
|
|
62
62
|
"expo-local-authentication": "~58.0.2",
|
|
63
63
|
"expo-localization": "~58.0.5",
|
|
64
|
-
"expo-location": "~58.0.
|
|
64
|
+
"expo-location": "~58.0.19",
|
|
65
65
|
"expo-mail-composer": "~58.0.3",
|
|
66
66
|
"expo-manifests": "~58.0.1",
|
|
67
67
|
"expo-maps": "~58.0.10",
|
|
68
68
|
"expo-mcp": "~0.2.1",
|
|
69
|
-
"expo-media-library": "~58.0.
|
|
69
|
+
"expo-media-library": "~58.0.12",
|
|
70
70
|
"expo-mesh-gradient": "~58.0.3",
|
|
71
71
|
"expo-module-template": "~58.0.8",
|
|
72
|
-
"expo-modules-core": "~58.0.
|
|
72
|
+
"expo-modules-core": "~58.0.27",
|
|
73
73
|
"expo-navigation-bar": "~58.0.4",
|
|
74
74
|
"expo-network": "~58.0.4",
|
|
75
75
|
"expo-notifications": "~58.1.6",
|
|
76
76
|
"expo-observe": "~58.0.16",
|
|
77
77
|
"expo-print": "~58.0.7",
|
|
78
78
|
"expo-live-photo": "~58.0.6",
|
|
79
|
-
"expo-router": "~58.0.
|
|
79
|
+
"expo-router": "~58.0.27",
|
|
80
80
|
"expo-screen-capture": "~58.0.6",
|
|
81
81
|
"expo-screen-orientation": "~58.0.3",
|
|
82
82
|
"expo-secure-store": "~58.0.2",
|
|
83
83
|
"expo-sensors": "~58.0.4",
|
|
84
|
-
"expo-server": "~58.0.
|
|
84
|
+
"expo-server": "~58.0.6",
|
|
85
85
|
"expo-sharing": "~58.0.20",
|
|
86
86
|
"expo-sms": "~58.0.2",
|
|
87
87
|
"expo-speech": "~58.0.3",
|
|
88
88
|
"expo-splash-screen": "~58.0.11",
|
|
89
|
-
"expo-sqlite": "~58.0.
|
|
89
|
+
"expo-sqlite": "~58.0.14",
|
|
90
90
|
"expo-status-bar": "~58.0.4",
|
|
91
91
|
"expo-store-review": "~58.0.2",
|
|
92
92
|
"expo-symbols": "~58.0.4",
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
"expo-updates": "~58.0.18",
|
|
97
97
|
"expo-video-thumbnails": "~58.0.2",
|
|
98
98
|
"expo-video": "~58.0.12",
|
|
99
|
-
"expo-web-browser": "~58.0.
|
|
100
|
-
"expo-widgets": "~58.0.
|
|
99
|
+
"expo-web-browser": "~58.0.7",
|
|
100
|
+
"expo-widgets": "~58.0.24",
|
|
101
101
|
"jest-expo": "~58.0.12",
|
|
102
102
|
"lottie-react-native": "~7.5.0",
|
|
103
103
|
"react": "19.3.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.20",
|
|
4
4
|
"description": "The Expo SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"expo"
|
|
@@ -212,27 +212,27 @@
|
|
|
212
212
|
},
|
|
213
213
|
"dependencies": {
|
|
214
214
|
"@babel/runtime": "^7.20.0",
|
|
215
|
-
"@expo/cli": "^58.1.
|
|
216
|
-
"@expo/config": "~58.0.
|
|
215
|
+
"@expo/cli": "^58.1.16",
|
|
216
|
+
"@expo/config": "~58.0.8",
|
|
217
217
|
"@expo/config-plugins": "~58.0.10",
|
|
218
218
|
"@expo/devtools": "~58.0.2",
|
|
219
219
|
"@expo/dom-webview": "~58.0.2",
|
|
220
|
-
"@expo/fingerprint": "^0.21.
|
|
221
|
-
"@expo/local-build-cache-provider": "^58.0.
|
|
220
|
+
"@expo/fingerprint": "^0.21.7",
|
|
221
|
+
"@expo/local-build-cache-provider": "^58.0.8",
|
|
222
222
|
"@expo/log-box": "^58.0.13",
|
|
223
223
|
"@expo/log-box-utils": "^58.0.2",
|
|
224
224
|
"@expo/metro": "~58.0.0",
|
|
225
|
-
"@expo/metro-config": "~58.0.
|
|
225
|
+
"@expo/metro-config": "~58.0.18",
|
|
226
226
|
"@ungap/structured-clone": "^1.3.0",
|
|
227
|
-
"babel-preset-expo": "~58.0.
|
|
227
|
+
"babel-preset-expo": "~58.0.21",
|
|
228
228
|
"expo-asset": "~58.0.18",
|
|
229
229
|
"expo-constants": "~58.0.13",
|
|
230
|
-
"expo-file-system": "~58.0.
|
|
231
|
-
"expo-font": "~58.0.
|
|
230
|
+
"expo-file-system": "~58.0.12",
|
|
231
|
+
"expo-font": "~58.0.10",
|
|
232
232
|
"expo-keep-awake": "~58.0.3",
|
|
233
|
-
"expo-modules-autolinking": "~58.0.
|
|
234
|
-
"expo-modules-cli": "~0.3.
|
|
235
|
-
"expo-modules-core": "~58.0.
|
|
233
|
+
"expo-modules-autolinking": "~58.0.15",
|
|
234
|
+
"expo-modules-cli": "~0.3.3",
|
|
235
|
+
"expo-modules-core": "~58.0.27",
|
|
236
236
|
"pretty-format": "^29.7.0",
|
|
237
237
|
"react-refresh": "^0.14.2",
|
|
238
238
|
"whatwg-url-minimum": "^0.2.0"
|
package/scripts/spm/README.md
CHANGED
|
@@ -39,7 +39,9 @@ prebuild for an app that consumes the SwiftPM plugin.
|
|
|
39
39
|
Lookup runs for **every** resolved pod except ExpoModulesJSI (see below), not
|
|
40
40
|
just the core frameworks. Any module with a `spm.config.json` product is
|
|
41
41
|
consumed as a precompiled framework the moment its artifact exists — no
|
|
42
|
-
`Package.swift` is generated for it, and none is needed.
|
|
42
|
+
`Package.swift` is generated for it, and none is needed. The exception is a
|
|
43
|
+
module the app lists in its `buildFromSource` autolinking option (see below).
|
|
44
|
+
Path 3 is the
|
|
43
45
|
published-package case: a module shipping
|
|
44
46
|
`prebuilds/output/<flavor>/xcframeworks` is picked up with no local build.
|
|
45
47
|
|
|
@@ -81,6 +83,43 @@ build folder, then copies it to where the app links and embeds it. When the
|
|
|
81
83
|
headers carry an `expo-package.json` version stamp, sync fails if that version differs
|
|
82
84
|
from the installed `expo-modules-jsi` or from the copy the phase builds.
|
|
83
85
|
|
|
86
|
+
## Modules built from their checked-in Package.swift
|
|
87
|
+
|
|
88
|
+
The plugin decides each module in this order:
|
|
89
|
+
|
|
90
|
+
1. When a precompiled artifact exists, the module is linked precompiled, unless
|
|
91
|
+
the app lists it in `buildFromSource`.
|
|
92
|
+
2. Otherwise, when its `Package.swift` depends on the `ExpoModulesCoreHeaders`
|
|
93
|
+
product, the plugin builds it from that manifest as it stands. The manifest
|
|
94
|
+
compiles against the `ExpoModulesCoreHeaders` and `ExpoModulesJSIHeaders`
|
|
95
|
+
xcframeworks.
|
|
96
|
+
3. Otherwise its `Package.swift` is mirrored into a generated package, or a
|
|
97
|
+
pure-Swift module gets a generated package over its sources.
|
|
98
|
+
|
|
99
|
+
A manifest built as it stands is linked at `<outDir>/direct/<npm package name>`,
|
|
100
|
+
a symlink to the module root, next to the `ExpoModulesCoreHeaders` package the
|
|
101
|
+
plugin emits in `direct/`. Link names are not flattened, so a scoped package
|
|
102
|
+
lands at `direct/@scope/pkg`. SwiftPM resolves the manifest's relative paths
|
|
103
|
+
from the link, not from the module's real directory, so the path to the headers
|
|
104
|
+
package depends on that depth: `../ExpoModulesCoreHeaders` for an unscoped
|
|
105
|
+
package, `../../ExpoModulesCoreHeaders` for a scoped one.
|
|
106
|
+
|
|
107
|
+
`buildFromSource` is the option CocoaPods reads, from
|
|
108
|
+
`"expo": { "autolinking": { "buildFromSource": [...] } }` or its `"ios"`
|
|
109
|
+
section in the app's package.json. Each entry is a regular expression that must
|
|
110
|
+
match the whole pod name or npm package name. Under SwiftPM the entries are
|
|
111
|
+
JavaScript regular expressions, so Ruby-only syntax differs: `(?i)` fails the
|
|
112
|
+
sync with an error that names the invalid entry, and `\A` matches a literal `A`.
|
|
113
|
+
An entry that is a
|
|
114
|
+
module's pod name or npm package name, character for character, names it
|
|
115
|
+
exactly; any other entry is a pattern. An exact entry for ExpoModulesCore fails
|
|
116
|
+
the sync, because every module built from source compiles against the
|
|
117
|
+
precompiled ExpoModulesCore. A module named exactly that has an artifact but no
|
|
118
|
+
way to be built from source is reported with the reason, and the report asks to
|
|
119
|
+
remove the entry so the artifact is used. A module that only a pattern matches,
|
|
120
|
+
ExpoModulesCore included, is linked precompiled in that case, and one warning
|
|
121
|
+
names each such module and its entry.
|
|
122
|
+
|
|
84
123
|
## Unsupported modules
|
|
85
124
|
|
|
86
125
|
A module the plugin cannot contribute aborts autolinking. Dropping it would not
|
|
@@ -90,8 +129,9 @@ surfaces as a build error, naming the fix:
|
|
|
90
129
|
|
|
91
130
|
- **A prebuildable product with no built artifact** — the module declares a
|
|
92
131
|
product in its `spm.config.json`, so it needs no `Package.swift`; the artifact
|
|
93
|
-
is simply missing.
|
|
94
|
-
|
|
132
|
+
is simply missing. From the Expo repository root,
|
|
133
|
+
`node tools/bin/expotools.js prebuild <package>` (both flavors, so omit
|
|
134
|
+
`--flavor`) fixes it. This is the preferred route for a mixed-language module: the prebuild
|
|
95
135
|
pipeline compiles Swift, Objective-C, and C++ targets into one XCFramework, so
|
|
96
136
|
no source split is required.
|
|
97
137
|
- **Mixed Swift and Objective-C/C++ sources with neither manifest** — SwiftPM
|
|
@@ -116,22 +116,37 @@ describe('resolveExpoModules', () => {
|
|
|
116
116
|
expect(resolve({ modules, extraDependencies, coreFeatures: [] })).toEqual({
|
|
117
117
|
modules,
|
|
118
118
|
extraDependencies,
|
|
119
|
+
buildFromSource: [],
|
|
119
120
|
});
|
|
120
121
|
});
|
|
121
122
|
|
|
122
123
|
// Every caller reads `extraDependencies.length`, so it is an array in every shape
|
|
123
124
|
// the CLI answers with.
|
|
124
125
|
it('reports no extra pods when the app declares none', () => {
|
|
125
|
-
expect(resolve({ modules: [] })).toEqual({
|
|
126
|
+
expect(resolve({ modules: [] })).toEqual({
|
|
127
|
+
modules: [],
|
|
128
|
+
extraDependencies: [],
|
|
129
|
+
buildFromSource: [],
|
|
130
|
+
});
|
|
126
131
|
expect(resolve({ modules: [], extraDependencies: null })).toEqual({
|
|
127
132
|
modules: [],
|
|
128
133
|
extraDependencies: [],
|
|
134
|
+
buildFromSource: [],
|
|
129
135
|
});
|
|
130
136
|
});
|
|
131
137
|
|
|
138
|
+
// The same option CocoaPods reads from this output, in autolinking_manager.rb.
|
|
139
|
+
it("returns the app's buildFromSource patterns", () => {
|
|
140
|
+
const configuration = { buildFromSource: ['expo-haptics', 'ExpoCamera.*'] };
|
|
141
|
+
expect(resolve({ modules: [], configuration }).buildFromSource).toEqual([
|
|
142
|
+
'expo-haptics',
|
|
143
|
+
'ExpoCamera.*',
|
|
144
|
+
]);
|
|
145
|
+
});
|
|
146
|
+
|
|
132
147
|
it('reads the legacy top-level array as modules alone', () => {
|
|
133
148
|
const modules = [{ packageName: 'expo-camera', pods: [] }];
|
|
134
149
|
|
|
135
|
-
expect(resolve(modules)).toEqual({ modules, extraDependencies: [] });
|
|
150
|
+
expect(resolve(modules)).toEqual({ modules, extraDependencies: [], buildFromSource: [] });
|
|
136
151
|
});
|
|
137
152
|
});
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const os = require('os');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
|
|
3
7
|
const { configureSpmUpdateCommand, spmUpdateCommand } = require('../commands');
|
|
4
8
|
|
|
5
9
|
describe('spmUpdateCommand', () => {
|
|
@@ -21,6 +25,48 @@ describe('spmUpdateCommand', () => {
|
|
|
21
25
|
);
|
|
22
26
|
});
|
|
23
27
|
|
|
28
|
+
it('runs the script of a hoisted react-native when the app root is reached through a symlink', () => {
|
|
29
|
+
const root = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'expo-spm-commands-')));
|
|
30
|
+
try {
|
|
31
|
+
const reactNativeRoot = path.join(root, 'deep', 'repo', 'node_modules', 'react-native');
|
|
32
|
+
fs.mkdirSync(reactNativeRoot, { recursive: true });
|
|
33
|
+
fs.mkdirSync(path.join(root, 'deep', 'repo', 'apps', 'mobile'), { recursive: true });
|
|
34
|
+
fs.symlinkSync(path.join(root, 'deep', 'repo'), path.join(root, 'link'));
|
|
35
|
+
|
|
36
|
+
configureSpmUpdateCommand({
|
|
37
|
+
appRoot: path.join(root, 'link', 'apps', 'mobile'),
|
|
38
|
+
reactNativeRoot,
|
|
39
|
+
});
|
|
40
|
+
expect(spmUpdateCommand()).toBe(
|
|
41
|
+
'node ../../node_modules/react-native/scripts/setup-apple-spm.js update'
|
|
42
|
+
);
|
|
43
|
+
} finally {
|
|
44
|
+
fs.rmSync(root, { recursive: true, force: true });
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it('keeps the name of a react-native that is itself a symlink, as pnpm installs it', () => {
|
|
49
|
+
const root = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'expo-spm-commands-')));
|
|
50
|
+
try {
|
|
51
|
+
const store = path.join(root, 'node_modules', '.pnpm', 'react-native@0.88.0', 'node_modules');
|
|
52
|
+
fs.mkdirSync(path.join(store, 'react-native'), { recursive: true });
|
|
53
|
+
fs.symlinkSync(
|
|
54
|
+
path.join(store, 'react-native'),
|
|
55
|
+
path.join(root, 'node_modules', 'react-native')
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
configureSpmUpdateCommand({
|
|
59
|
+
appRoot: root,
|
|
60
|
+
reactNativeRoot: path.join(root, 'node_modules', 'react-native'),
|
|
61
|
+
});
|
|
62
|
+
expect(spmUpdateCommand()).toBe(
|
|
63
|
+
'node node_modules/react-native/scripts/setup-apple-spm.js update'
|
|
64
|
+
);
|
|
65
|
+
} finally {
|
|
66
|
+
fs.rmSync(root, { recursive: true, force: true });
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
24
70
|
it('returns to the default when configured with nothing', () => {
|
|
25
71
|
configureSpmUpdateCommand({
|
|
26
72
|
appRoot: '/repo/apps/mobile',
|
|
@@ -32,3 +78,18 @@ describe('spmUpdateCommand', () => {
|
|
|
32
78
|
);
|
|
33
79
|
});
|
|
34
80
|
});
|
|
81
|
+
|
|
82
|
+
describe('rerunSpmUpdate', () => {
|
|
83
|
+
afterEach(() => configureSpmUpdateCommand());
|
|
84
|
+
|
|
85
|
+
it('names the command of the react-native configured after it was loaded', () => {
|
|
86
|
+
const { rerunSpmUpdate } = require('../diagnostics');
|
|
87
|
+
configureSpmUpdateCommand({
|
|
88
|
+
appRoot: '/repo/apps/mobile',
|
|
89
|
+
reactNativeRoot: '/repo/node_modules/react-native',
|
|
90
|
+
});
|
|
91
|
+
expect(rerunSpmUpdate()).toBe(
|
|
92
|
+
'Then run `node ../../node_modules/react-native/scripts/setup-apple-spm.js update` from your app directory again.'
|
|
93
|
+
);
|
|
94
|
+
});
|
|
95
|
+
});
|