xiongzhu hace 4 años
padre
commit
c21b5aa700

+ 3 - 6
config.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<widget id="vip.raex.nft" version="1.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" ios-CFBundleVersion="87" android-versionCode="110">
+<widget id="vip.raex.nft" version="1.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" ios-CFBundleVersion="88" android-versionCode="115">
 	<name>绿洲宇宙</name>
 	<description>
         A sample Apache Cordova application that responds to the deviceready event.
@@ -15,7 +15,8 @@
 	<allow-intent href="sms:*"/>
 	<allow-intent href="mailto:*"/>
 	<allow-intent href="geo:*"/>
-	<allow-navigation href="*"/>
+	<allow-navigation href="https://www.raex.vip/*"/>
+	<allow-navigation href="https://test.raex.vip/*"/>
 	<preference name="AppendUserAgent" value="#cordova#"/>
 	<preference name="BackgroundColor" value="#000000"/>
 	<preference name="DisallowOverscroll" value="true"/>
@@ -29,8 +30,6 @@
 		<allow-intent href="market:*"/>
 		<allow-intent href="alipays:*"/>
 		<allow-intent href="weixin:*"/>
-		<preference name="CodePushDeploymentKey" value="NGQKYMLl1CeCuNyTZevqo0FN4XhC4ksvOXqog"/>
-		<preference name="CodePushServerUrl" value="http://120.78.171.194:3001/"/>
 		<preference name="StatusBarOverlaysWebView" value="false"/>
 		<preference name="StatusBarStyle" value="lightcontent"/>
 		<preference name="StatusBarBackgroundColor" value="#0F0F0F"/>
@@ -73,8 +72,6 @@
 		<allow-intent href="weixin:*"/>
 		<preference name="WKWebViewOnly" value="true"/>
 		<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine"/>
-		<preference name="CodePushDeploymentKey" value="mPvlw1rQkbSqLdICxg0rrZyDBg1h4ksvOXqog"/>
-		<preference name="CodePushServerUrl" value="http://120.78.171.194:3001/"/>
 		<preference name="StatusBarOverlaysWebView" value="false"/>
 		<feature name="CDVWKWebViewEngine">
 			<param name="ios-package" value="CDVWKWebViewEngine"/>

+ 4 - 1
scripts/android/leftShift2doLast.js

@@ -13,8 +13,11 @@ module.exports = function (context) {
         "platforms",
         "android",
         "cordova-plugin-code-push",
-        `${appConfig.packageName().split('.').slice(-1)[0]}-build-extras.gradle`
+        `${appConfig.packageName().split(".").slice(-1)[0]}-build-extras.gradle`
     );
+    if (!fs.existsSync(file)) {
+        return;
+    }
     let content = fs.readFileSync(file).toString();
     let lines = content.split("\n");
     let index = lines.findIndex(

+ 3 - 0
scripts/ios/fixCodePush.js

@@ -17,6 +17,9 @@ module.exports = function (context) {
         let projectName = appConfig.name();
 
         function replaceFile(src, dst) {
+            if (!fs.existsSync(src)) {
+                return Promise.resolve();
+            }
             return new Promise((resolve, reject) => {
                 https.get(src, (resp) => {
                     var stream = resp.pipe(

+ 3 - 0
scripts/ios/fixFileTransfer.js

@@ -18,6 +18,9 @@ module.exports = function (context) {
         "cordova-plugin-file-transfer",
         "CDVFileTransfer.m"
     );
+    if (!fs.existsSync(cdvFileTransfer)) {
+        return;
+    }
     let content = fs.readFileSync(cdvFileTransfer).toString();
     let lines = content.split("\n");
     let index = lines.findIndex(