mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-12-17 02:22:33 +08:00
v10.36.3
This commit is contained in:
@@ -1,8 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<network-security-config>
|
<network-security-config>
|
||||||
<domain-config cleartextTrafficPermitted="true">
|
<base-config cleartextTrafficPermitted="true" />
|
||||||
<domain includeSubdomains="true">10.0.2.2</domain>
|
|
||||||
<domain includeSubdomains="true">localhost</domain>
|
|
||||||
<domain includeSubdomains="true">cos.pgyer.com</domain>
|
|
||||||
</domain-config>
|
|
||||||
</network-security-config>
|
</network-security-config>
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ import {
|
|||||||
TextInput,
|
TextInput,
|
||||||
Button,
|
Button,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
SafeAreaView,
|
|
||||||
Text,
|
Text,
|
||||||
View,
|
View,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
|
import { SafeAreaView } from 'react-native-safe-area-context';
|
||||||
|
|
||||||
import {PushyModule} from 'react-native-update/src/core';
|
import {PushyModule} from 'react-native-update/src/core';
|
||||||
const Hash = '9D5CE6EBA420717BE7E7D308B11F8207681B066C951D68F3994D19828F342474';
|
const Hash = '9D5CE6EBA420717BE7E7D308B11F8207681B066C951D68F3994D19828F342474';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update",
|
"name": "react-native-update",
|
||||||
"version": "10.36.2",
|
"version": "10.36.3",
|
||||||
"description": "react-native hot update",
|
"description": "react-native hot update",
|
||||||
"main": "src/index",
|
"main": "src/index",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
11
src/utils.ts
11
src/utils.ts
@@ -111,17 +111,6 @@ export const enhancedFetch = async (
|
|||||||
isRetry = false,
|
isRetry = false,
|
||||||
): Promise<Response> => {
|
): Promise<Response> => {
|
||||||
return fetch(url, params)
|
return fetch(url, params)
|
||||||
.then(r => {
|
|
||||||
if (r.ok) {
|
|
||||||
return r;
|
|
||||||
}
|
|
||||||
throw Error(
|
|
||||||
i18n.t('error_http_status', {
|
|
||||||
status: r.status,
|
|
||||||
statusText: r.statusText,
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
})
|
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
log('fetch error', url, e);
|
log('fetch error', url, e);
|
||||||
if (isRetry) {
|
if (isRetry) {
|
||||||
|
|||||||
Reference in New Issue
Block a user