@hot-updater/react-native 0.1.3 → 0.1.4
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.
|
@@ -271,14 +271,14 @@ class HotUpdater internal constructor(context: Context, reactNativeHost: ReactNa
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
val extractedDirectory = File(extractedPath)
|
|
274
|
-
val indexFile = extractedDirectory.walk().find { it.name == "index.android.bundle
|
|
274
|
+
val indexFile = extractedDirectory.walk().find { it.name == "index.android.bundle" }
|
|
275
275
|
|
|
276
276
|
if (indexFile != null) {
|
|
277
277
|
val bundlePath = indexFile.path
|
|
278
278
|
Log.d("HotUpdater", "Setting bundle URL: $bundlePath")
|
|
279
279
|
setBundleURL(bundlePath)
|
|
280
280
|
} else {
|
|
281
|
-
Log.d("HotUpdater", "index.android.bundle
|
|
281
|
+
Log.d("HotUpdater", "index.android.bundle not found.")
|
|
282
282
|
return false
|
|
283
283
|
}
|
|
284
284
|
|
|
@@ -146,7 +146,7 @@ RCT_EXPORT_MODULE();
|
|
|
146
146
|
NSDirectoryEnumerator *enumerator = [fileManager enumeratorAtPath:extractedPath];
|
|
147
147
|
NSString *filename = nil;
|
|
148
148
|
for (NSString *file in enumerator) {
|
|
149
|
-
if ([file isEqualToString:@"index.ios.bundle
|
|
149
|
+
if ([file isEqualToString:@"index.ios.bundle"]) {
|
|
150
150
|
filename = file;
|
|
151
151
|
break;
|
|
152
152
|
}
|
|
@@ -157,7 +157,7 @@ RCT_EXPORT_MODULE();
|
|
|
157
157
|
NSLog(@"Setting bundle URL: %@", bundlePath);
|
|
158
158
|
[self setBundleURL:bundlePath];
|
|
159
159
|
} else {
|
|
160
|
-
NSLog(@"index.ios.bundle
|
|
160
|
+
NSLog(@"index.ios.bundle not found.");
|
|
161
161
|
return NO;
|
|
162
162
|
}
|
|
163
163
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"react-native": "^0.72.6"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@hot-updater/utils": "0.1.
|
|
62
|
+
"@hot-updater/utils": "0.1.4"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|