react-native-update 10.18.0 → 10.19.1
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/.yarnrc.yml +1 -0
- package/android/src/main/java/cn/reactnative/modules/update/UpdateModuleImpl.java +6 -4
- package/android/src/oldarch/cn/reactnative/modules/update/UpdateModule.java +6 -4
- package/package.json +1 -1
- package/android/.project +0 -28
- package/android/bin/.project +0 -34
- package/android/bin/.settings/org.eclipse.buildship.core.prefs +0 -13
- package/android/bin/jni/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/CRC.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZ/BinTree.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZ/InWindow.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZ/OutWindow.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Base.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Decoder$LenDecoder.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Decoder$LiteralDecoder$Decoder2.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Decoder$LiteralDecoder.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Decoder.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Encoder$LenEncoder.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Encoder$LenPriceTableEncoder.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Encoder$LiteralEncoder$Encoder2.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Encoder$LiteralEncoder.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Encoder$Optimal.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Encoder.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeDecoder.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeEncoder.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/RangeCoder/Decoder.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/Compression/RangeCoder/Encoder.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/ICodeProgress.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/LzmaAlone$CommandLine.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/LzmaAlone.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/LzmaBench$CBenchRandomGenerator.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/LzmaBench$CBitRandomGenerator.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/LzmaBench$CProgressInfo.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/LzmaBench$CRandomGenerator.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/LzmaBench$CrcOutStream.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/LzmaBench$MyInputStream.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/LzmaBench$MyOutputStream.class +0 -0
- package/android/bin/jni/lzma/Java/SevenZip/LzmaBench.class +0 -0
- package/android/bin/src/main/java/cn/reactnative/modules/update/DownloadTask.class +0 -0
- package/android/bin/src/main/java/cn/reactnative/modules/update/DownloadTaskParams.class +0 -0
- package/android/bin/src/main/java/cn/reactnative/modules/update/PushyFileProvider.class +0 -0
- package/android/bin/src/main/java/cn/reactnative/modules/update/SafeZipFile$SafeZipEntryIterator.class +0 -0
- package/android/bin/src/main/java/cn/reactnative/modules/update/SafeZipFile.class +0 -0
- package/android/bin/src/main/java/cn/reactnative/modules/update/UpdateContext$DownloadFileListener.class +0 -0
- package/android/bin/src/main/java/cn/reactnative/modules/update/UpdateContext.class +0 -0
- package/android/bin/src/main/java/cn/reactnative/modules/update/UpdateModuleImpl.class +0 -0
- package/android/bin/src/main/java/cn/reactnative/modules/update/UpdatePackage.class +0 -0
- package/android/bin/src/newarch/cn/reactnative/modules/update/UpdateModule.class +0 -0
- package/android/bin/src/oldarch/cn/reactnative/modules/update/UpdateModule.class +0 -0
package/.yarnrc.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nodeLinker: node-modules
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
package cn.reactnative.modules.update;
|
|
2
2
|
|
|
3
3
|
import android.app.Activity;
|
|
4
|
-
import android.
|
|
4
|
+
import android.content.Context;
|
|
5
5
|
import android.util.Log;
|
|
6
6
|
import com.facebook.react.ReactApplication;
|
|
7
7
|
import com.facebook.react.ReactInstanceManager;
|
|
@@ -117,8 +117,7 @@ public class UpdateModuleImpl {
|
|
|
117
117
|
public void run() {
|
|
118
118
|
try {
|
|
119
119
|
updateContext.switchVersion(hash);
|
|
120
|
-
|
|
121
|
-
Application application = activity.getApplication();
|
|
120
|
+
final Context application = mContext.getApplicationContext();
|
|
122
121
|
ReactInstanceManager instanceManager = updateContext.getCustomReactInstanceManager();
|
|
123
122
|
|
|
124
123
|
if (instanceManager == null) {
|
|
@@ -142,7 +141,10 @@ public class UpdateModuleImpl {
|
|
|
142
141
|
promise.resolve(true);
|
|
143
142
|
} catch (Throwable err) {
|
|
144
143
|
promise.reject("pushy:"+err.getMessage());
|
|
145
|
-
activity.
|
|
144
|
+
final Activity activity = mContext.getCurrentActivity();
|
|
145
|
+
if (activity != null) {
|
|
146
|
+
activity.recreate();
|
|
147
|
+
}
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
} catch (Throwable err) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
package cn.reactnative.modules.update;
|
|
2
2
|
|
|
3
3
|
import android.app.Activity;
|
|
4
|
-
import android.
|
|
4
|
+
import android.content.Context;
|
|
5
5
|
import android.content.Intent;
|
|
6
6
|
import android.net.Uri;
|
|
7
7
|
import android.os.Build;
|
|
@@ -176,8 +176,7 @@ public class UpdateModule extends ReactContextBaseJavaModule {
|
|
|
176
176
|
public void run() {
|
|
177
177
|
try {
|
|
178
178
|
updateContext.switchVersion(hash);
|
|
179
|
-
|
|
180
|
-
Application application = activity.getApplication();
|
|
179
|
+
final Context application = getReactApplicationContext().getApplicationContext();
|
|
181
180
|
ReactInstanceManager instanceManager = updateContext.getCustomReactInstanceManager();
|
|
182
181
|
|
|
183
182
|
if (instanceManager == null) {
|
|
@@ -200,7 +199,10 @@ public class UpdateModule extends ReactContextBaseJavaModule {
|
|
|
200
199
|
instanceManager.recreateReactContextInBackground();
|
|
201
200
|
promise.resolve(null);
|
|
202
201
|
} catch (Throwable err) {
|
|
203
|
-
activity
|
|
202
|
+
final Activity activity = getCurrentActivity();
|
|
203
|
+
if (activity != null) {
|
|
204
|
+
activity.recreate();
|
|
205
|
+
}
|
|
204
206
|
promise.reject(err);
|
|
205
207
|
}
|
|
206
208
|
|
package/package.json
CHANGED
package/android/.project
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<projectDescription>
|
|
3
|
-
<name>react-native-update</name>
|
|
4
|
-
<comment>Project react-native-update created by Buildship.</comment>
|
|
5
|
-
<projects>
|
|
6
|
-
</projects>
|
|
7
|
-
<buildSpec>
|
|
8
|
-
<buildCommand>
|
|
9
|
-
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
|
|
10
|
-
<arguments>
|
|
11
|
-
</arguments>
|
|
12
|
-
</buildCommand>
|
|
13
|
-
</buildSpec>
|
|
14
|
-
<natures>
|
|
15
|
-
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
|
|
16
|
-
</natures>
|
|
17
|
-
<filteredResources>
|
|
18
|
-
<filter>
|
|
19
|
-
<id>1727963310481</id>
|
|
20
|
-
<name></name>
|
|
21
|
-
<type>30</type>
|
|
22
|
-
<matcher>
|
|
23
|
-
<id>org.eclipse.core.resources.regexFilterMatcher</id>
|
|
24
|
-
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
|
|
25
|
-
</matcher>
|
|
26
|
-
</filter>
|
|
27
|
-
</filteredResources>
|
|
28
|
-
</projectDescription>
|
package/android/bin/.project
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<projectDescription>
|
|
3
|
-
<name>react-native-update</name>
|
|
4
|
-
<comment>Project react-native-update created by Buildship.</comment>
|
|
5
|
-
<projects>
|
|
6
|
-
</projects>
|
|
7
|
-
<buildSpec>
|
|
8
|
-
<buildCommand>
|
|
9
|
-
<name>org.eclipse.jdt.core.javabuilder</name>
|
|
10
|
-
<arguments>
|
|
11
|
-
</arguments>
|
|
12
|
-
</buildCommand>
|
|
13
|
-
<buildCommand>
|
|
14
|
-
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
|
|
15
|
-
<arguments>
|
|
16
|
-
</arguments>
|
|
17
|
-
</buildCommand>
|
|
18
|
-
</buildSpec>
|
|
19
|
-
<natures>
|
|
20
|
-
<nature>org.eclipse.jdt.core.javanature</nature>
|
|
21
|
-
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
|
|
22
|
-
</natures>
|
|
23
|
-
<filteredResources>
|
|
24
|
-
<filter>
|
|
25
|
-
<id>1727963310481</id>
|
|
26
|
-
<name></name>
|
|
27
|
-
<type>30</type>
|
|
28
|
-
<matcher>
|
|
29
|
-
<id>org.eclipse.core.resources.regexFilterMatcher</id>
|
|
30
|
-
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
|
|
31
|
-
</matcher>
|
|
32
|
-
</filter>
|
|
33
|
-
</filteredResources>
|
|
34
|
-
</projectDescription>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
arguments=--init-script /var/folders/l6/0fn3x28s5s585ld3p04gsy1h0000gn/T/db3b08fc4a9ef609cb16b96b200fa13e563f396e9bb1ed0905fdab7bc3bc513b.gradle --init-script /var/folders/l6/0fn3x28s5s585ld3p04gsy1h0000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
|
|
2
|
-
auto.sync=false
|
|
3
|
-
build.scans.enabled=false
|
|
4
|
-
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(8.9))
|
|
5
|
-
connection.project.dir=
|
|
6
|
-
eclipse.preferences.version=1
|
|
7
|
-
gradle.user.home=
|
|
8
|
-
java.home=/Users/sunny/.sdkman/candidates/java/17.0.9-zulu/zulu-17.jdk/Contents/Home
|
|
9
|
-
jvm.arguments=
|
|
10
|
-
offline.mode=false
|
|
11
|
-
override.workspace.settings=true
|
|
12
|
-
show.console.view=true
|
|
13
|
-
show.executions.view=true
|
package/android/bin/jni/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.class
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Decoder$LiteralDecoder$Decoder2.class
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Encoder$LenPriceTableEncoder.class
DELETED
|
Binary file
|
package/android/bin/jni/lzma/Java/SevenZip/Compression/LZMA/Encoder$LiteralEncoder$Encoder2.class
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|