expo-updates 0.18.2 → 0.18.3
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
CHANGED
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.18.3 — 2023-06-24
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [Android] fix instrumentation tests. ([#23037](https://github.com/expo/expo/pull/23037) by [@douglowder](https://github.com/douglowder))
|
|
18
|
+
- [iOS] Fix crash when dev-client and updates used together. ([#23070](https://github.com/expo/expo/pull/23070) by [@douglowder](https://github.com/douglowder))
|
|
19
|
+
|
|
13
20
|
## 0.18.2 — 2023-06-23
|
|
14
21
|
|
|
15
22
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -4,7 +4,7 @@ apply plugin: 'kotlin-kapt'
|
|
|
4
4
|
apply plugin: 'maven-publish'
|
|
5
5
|
|
|
6
6
|
group = 'host.exp.exponent'
|
|
7
|
-
version = '0.18.
|
|
7
|
+
version = '0.18.3'
|
|
8
8
|
|
|
9
9
|
def ex_updates_native_debug = System.getenv("EX_UPDATES_NATIVE_DEBUG") == "1" ? "true" : "false"
|
|
10
10
|
|
|
@@ -70,7 +70,7 @@ android {
|
|
|
70
70
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
71
71
|
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
|
72
72
|
versionCode 31
|
|
73
|
-
versionName '0.18.
|
|
73
|
+
versionName '0.18.3'
|
|
74
74
|
consumerProguardFiles("proguard-rules.pro")
|
|
75
75
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
76
76
|
|
|
@@ -147,7 +147,7 @@ public final class DevLauncherController: NSObject, UpdatesExternalInterface {
|
|
|
147
147
|
let controller = AppController.sharedInstance
|
|
148
148
|
var updatesConfiguration: UpdatesConfig
|
|
149
149
|
do {
|
|
150
|
-
updatesConfiguration = try UpdatesConfig.configWithExpoPlist(mergingOtherDictionary:
|
|
150
|
+
updatesConfiguration = try UpdatesConfig.configWithExpoPlist(mergingOtherDictionary: configuration as? [String: Any] ?? [:])
|
|
151
151
|
} catch {
|
|
152
152
|
errorBlock(NSError(
|
|
153
153
|
domain: DevLauncherController.ErrorDomain,
|
|
@@ -239,3 +239,5 @@ public final class DevLauncherController: NSObject, UpdatesExternalInterface {
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
+
|
|
243
|
+
// swiftlint:enable force_unwrapping
|
|
@@ -46,10 +46,10 @@ internal final class LegacyUpdate: Update {
|
|
|
46
46
|
|
|
47
47
|
var runtimeVersion: String
|
|
48
48
|
let manifestRuntimeVersion = manifest.runtimeVersion()
|
|
49
|
-
if let manifestRuntimeVersion = manifestRuntimeVersion {
|
|
50
|
-
runtimeVersion =
|
|
49
|
+
if let manifestRuntimeVersion = manifestRuntimeVersion as? String {
|
|
50
|
+
runtimeVersion = manifestRuntimeVersion
|
|
51
51
|
} else {
|
|
52
|
-
runtimeVersion = manifest.expoGoSDKVersion().require("Manifest JSON must have a valid sdkVersion property
|
|
52
|
+
runtimeVersion = manifest.expoGoSDKVersion().require("Manifest JSON must have either a valid runtimeVersion property or a valid sdkVersion property")
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
let bundleUrl = URL(string: bundleUrlString).require("Manifest JSON must have a valid URL as the bundleUrl property")
|
|
@@ -135,13 +135,13 @@ internal final class LegacyUpdate: Update {
|
|
|
135
135
|
// The URL is valid and constant, so it'll never throw
|
|
136
136
|
// swiftlint:disable:next force_unwrapping
|
|
137
137
|
return URL(string: EXUpdatesExpoAssetBaseUrl)!
|
|
138
|
-
} else {
|
|
139
|
-
let assetsPathOrUrl = withManifest.assetUrlOverride() ?? "assets"
|
|
140
|
-
// assetUrlOverride may be an absolute or relative URL
|
|
141
|
-
// if relative, we should resolve with respect to the manifest URL
|
|
142
|
-
return URL(string: assetsPathOrUrl, relativeTo: manifestUrl).require(
|
|
143
|
-
"Invalid assetUrlOverride"
|
|
144
|
-
).absoluteURL.standardized
|
|
145
138
|
}
|
|
139
|
+
|
|
140
|
+
let assetsPathOrUrl = withManifest.assetUrlOverride() ?? "assets"
|
|
141
|
+
// assetUrlOverride may be an absolute or relative URL
|
|
142
|
+
// if relative, we should resolve with respect to the manifest URL
|
|
143
|
+
return URL(string: assetsPathOrUrl, relativeTo: manifestUrl).require(
|
|
144
|
+
"Invalid assetUrlOverride"
|
|
145
|
+
).absoluteURL.standardized
|
|
146
146
|
}
|
|
147
147
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-updates",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3",
|
|
4
4
|
"description": "Fetches and manages remotely-hosted assets and updates to your app's JS bundle.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"expo": "*"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "0efde1d91bcf609c94a9f9b57f47afd9ef315e2d"
|
|
69
69
|
}
|