react-native-update 10.20.0 → 10.21.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/README.md
CHANGED
|
@@ -144,8 +144,24 @@ public class UpdateModuleImpl {
|
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
146
|
try {
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
// Try to get getReactDelegate method using reflection
|
|
148
|
+
java.lang.reflect.Method getReactDelegateMethod =
|
|
149
|
+
ReactActivity.class.getMethod("getReactDelegate");
|
|
150
|
+
if (getReactDelegateMethod != null) {
|
|
151
|
+
ReactDelegate reactDelegate = (ReactDelegate)
|
|
152
|
+
getReactDelegateMethod.invoke(currentActivity);
|
|
153
|
+
|
|
154
|
+
// Try to get reload method using reflection
|
|
155
|
+
java.lang.reflect.Method reloadMethod =
|
|
156
|
+
ReactDelegate.class.getMethod("reload");
|
|
157
|
+
if (reloadMethod != null) {
|
|
158
|
+
reloadMethod.invoke(reactDelegate);
|
|
159
|
+
} else {
|
|
160
|
+
throw new NoSuchMethodException();
|
|
161
|
+
}
|
|
162
|
+
} else {
|
|
163
|
+
throw new NoSuchMethodException();
|
|
164
|
+
}
|
|
149
165
|
} catch (Throwable e) {
|
|
150
166
|
currentActivity.runOnUiThread(new Runnable() {
|
|
151
167
|
@Override
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -205,7 +205,11 @@ export class Pushy {
|
|
|
205
205
|
// @ts-ignore
|
|
206
206
|
delete fetchBody.buildTime;
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
// harmony fetch body is not string
|
|
209
|
+
let body: any = fetchBody;
|
|
210
|
+
if (Platform.OS === 'ios' || Platform.OS === 'android') {
|
|
211
|
+
body = JSON.stringify(fetchBody);
|
|
212
|
+
}
|
|
209
213
|
const fetchPayload = {
|
|
210
214
|
method: 'POST',
|
|
211
215
|
headers: {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"Name": "react-native-netinfo",
|
|
4
|
-
"License": "MIT License",
|
|
5
|
-
"License File": "https://github.com/react-native-netinfo/react-native-netinfo/blob/master/LICENSE",
|
|
6
|
-
"Version Number": "11.1.0",
|
|
7
|
-
"Owner" : "Matt Oakes <hello@mattoakes.net>"
|
|
8
|
-
"Upstream URL": "https://github.com/react-native-netinfo/react-native-netinfo",
|
|
9
|
-
"Description": "React Native Network Info API for Android, iOS, macOS, Windows & Web. It allows you to get information on:Connection type,Connection quality"
|
|
10
|
-
}
|
|
11
|
-
]
|
package/harmony/README.md
DELETED
|
File without changes
|