expo 54.0.0-preview.15 → 54.0.0-preview.16
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
CHANGED
|
@@ -32,7 +32,7 @@ buildscript {
|
|
|
32
32
|
def reactNativeVersion = project.extensions.getByType(ExpoModuleExtension).reactNativeVersion
|
|
33
33
|
|
|
34
34
|
group = 'host.exp.exponent'
|
|
35
|
-
version = '54.0.0-preview.
|
|
35
|
+
version = '54.0.0-preview.16'
|
|
36
36
|
|
|
37
37
|
expoModule {
|
|
38
38
|
// We can't prebuild the module because it depends on the generated files.
|
|
@@ -43,7 +43,7 @@ android {
|
|
|
43
43
|
namespace "expo.core"
|
|
44
44
|
defaultConfig {
|
|
45
45
|
versionCode 1
|
|
46
|
-
versionName "54.0.0-preview.
|
|
46
|
+
versionName "54.0.0-preview.16"
|
|
47
47
|
consumerProguardFiles("proguard-rules.pro")
|
|
48
48
|
}
|
|
49
49
|
testOptions {
|
|
@@ -14,6 +14,8 @@ import java.net.URL
|
|
|
14
14
|
|
|
15
15
|
private data class RequestHolder(var request: Request?)
|
|
16
16
|
|
|
17
|
+
internal val METHODS_REQUIRING_BODY = arrayOf("POST", "PUT", "PATCH")
|
|
18
|
+
|
|
17
19
|
internal class NativeRequest(appContext: AppContext, internal val response: NativeResponse) :
|
|
18
20
|
SharedObject(appContext) {
|
|
19
21
|
private val requestHolder = RequestHolder(null)
|
|
@@ -34,9 +36,20 @@ internal class NativeRequest(appContext: AppContext, internal val response: Nati
|
|
|
34
36
|
|
|
35
37
|
val headers = requestInit.headers.toHeaders()
|
|
36
38
|
val mediaType = headers["Content-Type"]?.toMediaTypeOrNull()
|
|
39
|
+
val reqBody = requestBody?.toRequestBody(mediaType) ?: run {
|
|
40
|
+
// OkHttp requires a non-null body for POST, PATCH, and PUT requests.
|
|
41
|
+
// WinterTC fetch, however, does not have this limitation.
|
|
42
|
+
// Provide an empty body to make OkHttp behave like WinterTC fetch.
|
|
43
|
+
// Ref: https://github.com/expo/expo/issues/35950#issuecomment-3245173248
|
|
44
|
+
if (requestInit.method in METHODS_REQUIRING_BODY) {
|
|
45
|
+
byteArrayOf(0).toRequestBody(mediaType)
|
|
46
|
+
} else {
|
|
47
|
+
null
|
|
48
|
+
}
|
|
49
|
+
}
|
|
37
50
|
val request = Request.Builder()
|
|
38
51
|
.headers(headers)
|
|
39
|
-
.method(requestInit.method,
|
|
52
|
+
.method(requestInit.method, reqBody)
|
|
40
53
|
.url(OkHttpFileUrlInterceptor.handleFileUrl(url))
|
|
41
54
|
.build()
|
|
42
55
|
this.requestHolder.request = request
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"expo-apple-authentication": "~8.0.6",
|
|
20
20
|
"expo-application": "~7.0.6",
|
|
21
21
|
"expo-asset": "~12.0.7",
|
|
22
|
-
"expo-audio": "~1.0.
|
|
22
|
+
"expo-audio": "~1.0.10",
|
|
23
23
|
"expo-auth-session": "~7.0.7",
|
|
24
24
|
"expo-av": "~16.0.6",
|
|
25
25
|
"expo-background-fetch": "~14.0.6",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"expo-dev-client": "~6.0.10",
|
|
40
40
|
"expo-device": "~8.0.6",
|
|
41
41
|
"expo-document-picker": "~14.0.6",
|
|
42
|
-
"expo-file-system": "~19.0.
|
|
42
|
+
"expo-file-system": "~19.0.10",
|
|
43
43
|
"expo-font": "~14.0.7",
|
|
44
44
|
"expo-gl": "~16.0.6",
|
|
45
45
|
"expo-google-app-auth": "~8.3.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"expo-image": "~3.0.7",
|
|
48
48
|
"expo-image-loader": "~6.0.0",
|
|
49
49
|
"expo-image-manipulator": "~14.0.6",
|
|
50
|
-
"expo-image-picker": "~17.0.
|
|
50
|
+
"expo-image-picker": "~17.0.7",
|
|
51
51
|
"expo-intent-launcher": "~13.0.6",
|
|
52
52
|
"expo-insights": "~0.10.6",
|
|
53
53
|
"expo-keep-awake": "~15.0.6",
|
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
"expo-mail-composer": "~15.0.6",
|
|
60
60
|
"expo-manifests": "~1.0.7",
|
|
61
61
|
"expo-maps": "~0.12.6",
|
|
62
|
-
"expo-media-library": "~18.0
|
|
62
|
+
"expo-media-library": "~18.1.0",
|
|
63
63
|
"expo-mesh-gradient": "~0.4.6",
|
|
64
|
-
"expo-module-template": "~11.0.
|
|
65
|
-
"expo-modules-core": "~3.0.
|
|
64
|
+
"expo-module-template": "~11.0.10",
|
|
65
|
+
"expo-modules-core": "~3.0.14",
|
|
66
66
|
"expo-navigation-bar": "~5.0.7",
|
|
67
67
|
"expo-network": "~8.0.6",
|
|
68
68
|
"expo-notifications": "~0.32.10",
|
|
69
69
|
"expo-print": "~15.0.6",
|
|
70
70
|
"expo-live-photo": "~1.0.6",
|
|
71
|
-
"expo-router": "~6.0.0-preview.
|
|
71
|
+
"expo-router": "~6.0.0-preview.16",
|
|
72
72
|
"expo-screen-capture": "~8.0.6",
|
|
73
73
|
"expo-screen-orientation": "~9.0.6",
|
|
74
74
|
"expo-secure-store": "~15.0.6",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"react-native-pager-view": "6.9.1",
|
|
102
102
|
"react-native-worklets": "~0.5.0",
|
|
103
103
|
"react-native-reanimated": "~4.1.0",
|
|
104
|
-
"react-native-screens": "~4.
|
|
104
|
+
"react-native-screens": "~4.16.0",
|
|
105
105
|
"react-native-safe-area-context": "~5.6.0",
|
|
106
106
|
"react-native-svg": "15.12.1",
|
|
107
107
|
"react-native-view-shot": "4.0.3",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo",
|
|
3
|
-
"version": "54.0.0-preview.
|
|
3
|
+
"version": "54.0.0-preview.16",
|
|
4
4
|
"description": "The Expo SDK",
|
|
5
5
|
"main": "src/Expo.ts",
|
|
6
6
|
"module": "src/Expo.ts",
|
|
@@ -75,23 +75,23 @@
|
|
|
75
75
|
"homepage": "https://github.com/expo/expo/tree/main/packages/expo",
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@babel/runtime": "^7.20.0",
|
|
78
|
-
"@expo/cli": "0.26.
|
|
78
|
+
"@expo/cli": "0.26.9",
|
|
79
79
|
"@expo/config": "~12.0.7",
|
|
80
80
|
"@expo/config-plugins": "~11.0.7",
|
|
81
81
|
"@expo/devtools": "0.1.6",
|
|
82
82
|
"@expo/fingerprint": "0.14.6",
|
|
83
83
|
"@expo/metro": "~0.1.1",
|
|
84
|
-
"@expo/metro-config": "0.21.
|
|
84
|
+
"@expo/metro-config": "0.21.11",
|
|
85
85
|
"@expo/vector-icons": "^15.0.2",
|
|
86
86
|
"@ungap/structured-clone": "^1.3.0",
|
|
87
87
|
"babel-preset-expo": "~14.0.6",
|
|
88
88
|
"expo-asset": "~12.0.7",
|
|
89
89
|
"expo-constants": "~18.0.7",
|
|
90
|
-
"expo-file-system": "~19.0.
|
|
90
|
+
"expo-file-system": "~19.0.10",
|
|
91
91
|
"expo-font": "~14.0.7",
|
|
92
92
|
"expo-keep-awake": "~15.0.6",
|
|
93
|
-
"expo-modules-autolinking": "3.0.
|
|
94
|
-
"expo-modules-core": "3.0.
|
|
93
|
+
"expo-modules-autolinking": "3.0.8",
|
|
94
|
+
"expo-modules-core": "3.0.14",
|
|
95
95
|
"pretty-format": "^29.7.0",
|
|
96
96
|
"react-refresh": "^0.14.2",
|
|
97
97
|
"whatwg-url-without-unicode": "8.0.0-3"
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"optional": true
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "d087a2182086089f23bcee65e27434f21db50128"
|
|
128
128
|
}
|
package/template.tgz
CHANGED
|
Binary file
|