expo-updates 0.18.12 → 0.18.13
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,14 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.18.13 — 2023-09-15
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [iOS] remove force unwrap in download handler. ([#24299](https://github.com/expo/expo/pull/24299) by [@douglowder](https://github.com/douglowder))
|
|
18
|
+
- Fix updates enabled defaulting on iOS. ([#24327](https://github.com/expo/expo/pull/24327) by [@wschurman](https://github.com/wschurman))
|
|
19
|
+
- [Android] Make scopekey only required when getting database entity. ([#24466](https://github.com/expo/expo/pull/24466) by [@wschurman](https://github.com/wschurman))
|
|
20
|
+
|
|
13
21
|
## 0.18.12 — 2023-08-22
|
|
14
22
|
|
|
15
23
|
### 🐛 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.13'
|
|
8
8
|
|
|
9
9
|
// Utility method to derive boolean values from the environment or from Java properties,
|
|
10
10
|
// and return them as strings to be used in BuildConfig fields
|
|
@@ -95,7 +95,7 @@ android {
|
|
|
95
95
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
96
96
|
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
|
97
97
|
versionCode 31
|
|
98
|
-
versionName '0.18.
|
|
98
|
+
versionName '0.18.13'
|
|
99
99
|
consumerProguardFiles("proguard-rules.pro")
|
|
100
100
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
101
101
|
|
|
@@ -22,13 +22,13 @@ import java.util.*
|
|
|
22
22
|
class BareUpdateManifest private constructor(
|
|
23
23
|
override val manifest: BareManifest,
|
|
24
24
|
private val mId: UUID,
|
|
25
|
-
private val mScopeKey: String
|
|
25
|
+
private val mScopeKey: String?,
|
|
26
26
|
private val mCommitTime: Date,
|
|
27
27
|
private val mRuntimeVersion: String,
|
|
28
28
|
private val mAssets: JSONArray?
|
|
29
29
|
) : UpdateManifest {
|
|
30
30
|
override val updateEntity: UpdateEntity by lazy {
|
|
31
|
-
UpdateEntity(mId, mCommitTime, mRuntimeVersion, mScopeKey).apply {
|
|
31
|
+
UpdateEntity(mId, mCommitTime, mRuntimeVersion, mScopeKey!!).apply {
|
|
32
32
|
status = UpdateStatus.EMBEDDED
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -94,7 +94,7 @@ class BareUpdateManifest private constructor(
|
|
|
94
94
|
return BareUpdateManifest(
|
|
95
95
|
manifest,
|
|
96
96
|
id,
|
|
97
|
-
configuration.scopeKey
|
|
97
|
+
configuration.scopeKey,
|
|
98
98
|
commitTime,
|
|
99
99
|
runtimeVersion,
|
|
100
100
|
assets
|
|
@@ -463,11 +463,14 @@ public class AppController: NSObject, AppLoaderTaskDelegate, ErrorRecoveryDelega
|
|
|
463
463
|
updateId: update.loggingId(),
|
|
464
464
|
assetId: nil
|
|
465
465
|
)
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
466
|
+
// Ensure manifest is non-null before sending events
|
|
467
|
+
if let manifest = update.manifest {
|
|
468
|
+
stateMachine?.processEvent(UpdatesStateEventDownloadCompleteWithUpdate(manifest: manifest.rawManifestJSON()))
|
|
469
|
+
// Send UpdateEvents to JS
|
|
470
|
+
sendLegacyUpdateEventToBridge(AppController.UpdateAvailableEventName, body: [
|
|
471
|
+
"manifest": manifest.rawManifestJSON()
|
|
472
|
+
])
|
|
473
|
+
}
|
|
471
474
|
case .noUpdateAvailable:
|
|
472
475
|
remoteLoadStatus = .Idle
|
|
473
476
|
logger.info(
|
|
@@ -145,7 +145,7 @@ public final class UpdatesConfig: NSObject {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
public static func config(fromDictionary config: [String: Any]) -> UpdatesConfig {
|
|
148
|
-
let isEnabled = config.optionalValue(forKey: EXUpdatesConfigEnabledKey) ??
|
|
148
|
+
let isEnabled = config.optionalValue(forKey: EXUpdatesConfigEnabledKey) ?? true
|
|
149
149
|
let expectsSignedManifest = config.optionalValue(forKey: EXUpdatesConfigExpectsSignedManifestKey) ?? false
|
|
150
150
|
let updateUrl: URL? = config.optionalValue(forKey: EXUpdatesConfigUpdateUrlKey).let { it in
|
|
151
151
|
URL(string: it)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-updates",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.13",
|
|
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",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"expo": "*"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "0fa20c9cbad0c73a30089ffc09073e6d94a6dabb"
|
|
68
68
|
}
|