@hot-updater/react-native 0.6.7 → 0.7.0
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.
|
@@ -59,6 +59,11 @@ class HotUpdater : ReactPackage {
|
|
|
59
59
|
putString("HotUpdaterBundleURL", bundleURL)
|
|
60
60
|
apply()
|
|
61
61
|
}
|
|
62
|
+
|
|
63
|
+
if (bundleURL == null) {
|
|
64
|
+
return
|
|
65
|
+
}
|
|
66
|
+
|
|
62
67
|
val reactIntegrationManager = ReactIntegrationManager(context)
|
|
63
68
|
|
|
64
69
|
val activity: Activity? = getCurrentActivity(context)
|
|
@@ -133,11 +138,11 @@ class HotUpdater : ReactPackage {
|
|
|
133
138
|
fun updateBundle(
|
|
134
139
|
context: Context,
|
|
135
140
|
bundleId: String,
|
|
136
|
-
zipUrl: String
|
|
141
|
+
zipUrl: String?,
|
|
137
142
|
progressCallback: ((Double) -> Unit),
|
|
138
143
|
): Boolean {
|
|
139
144
|
Log.d("HotUpdater", "updateBundle bundleId $bundleId zipUrl $zipUrl")
|
|
140
|
-
if (zipUrl.
|
|
145
|
+
if (zipUrl.isNullOrEmpty()) {
|
|
141
146
|
setBundleURL(context, null)
|
|
142
147
|
return true
|
|
143
148
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "React Native OTA solution for self-hosted",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"react-native-builder-bob": "^0.33.1"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@hot-updater/js": "0.
|
|
82
|
-
"@hot-updater/core": "0.
|
|
81
|
+
"@hot-updater/js": "0.7.0",
|
|
82
|
+
"@hot-updater/core": "0.7.0"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"build": "rslib build",
|