xiongzhu 4 tahun lalu
induk
melakukan
fcdeb83a7c

+ 4 - 7
config.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<widget id="vip.raex.test" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" ios-CFBundleVersion="80" android-versionCode="136">
+<widget id="vip.raex.test" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" ios-CFBundleVersion="86" android-versionCode="141">
 	<name>绿洲测试</name>
 	<description>
         A sample Apache Cordova application that responds to the deviceready event.
@@ -7,7 +7,7 @@
 	<author email="dev@cordova.apache.org" href="http://cordova.io">
         Apache Cordova Team
     </author>
-	<content src="index.html"/>
+	<content src="https://test.raex.vip"/>
 	<access origin="*"/>
 	<allow-intent href="http://*/*"/>
 	<allow-intent href="https://*/*"/>
@@ -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"/>
@@ -30,8 +31,6 @@
 		<allow-intent href="market:*"/>
 		<allow-intent href="alipays:*"/>
 		<allow-intent href="weixin:*"/>
-		<preference name="CodePushDeploymentKey" value="mpdt44lB67bQt7SWEF51zqmWg29G4ksvOXqog"/>
-		<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"/>
@@ -74,8 +73,6 @@
 		<allow-intent href="weixin:*"/>
 		<preference name="WKWebViewOnly" value="true"/>
 		<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine"/>
-		<preference name="CodePushDeploymentKey" value="Ep3tBEw541BgRWqqoFEfhppWqhO24ksvOXqog"/>
-		<preference name="CodePushServerUrl" value="http://120.78.171.194:3001/"/>
 		<preference name="StatusBarOverlaysWebView" value="false"/>
 		<feature name="CDVWKWebViewEngine">
 			<param name="ios-package" value="CDVWKWebViewEngine"/>

File diff ditekan karena terlalu besar
+ 5 - 754
package-lock.json


+ 2 - 11
package.json

@@ -13,25 +13,17 @@
   "author": "Apache Cordova Team",
   "license": "Apache-2.0",
   "devDependencies": {
-    "code-push": "^2.0.4",
     "cordova-android": "^9.1.0",
     "cordova-ios": "^6.2.0",
     "cordova-plugin-add-swift-support": "^2.0.2",
     "cordova-plugin-android-notch": "^1.0.3",
-    "cordova-plugin-code-push": "^1.11.7",
-    "cordova-plugin-compat": "^1.2.0",
-    "cordova-plugin-device": "^2.0.3",
-    "cordova-plugin-dialogs": "^2.0.2",
     "cordova-plugin-enable-cleartext-traffic": "^2.1.0",
-    "cordova-plugin-file": "git+https://github.com/apache/cordova-plugin-file.git#4.3.3",
-    "cordova-plugin-file-transfer": "git+https://github.com/apache/cordova-plugin-file-transfer.git#1.6.3",
     "cordova-plugin-network-information": "^3.0.0",
     "cordova-plugin-remote-injection": "git+https://github.com/x1ongzhu/cordova-plugin-remote-injection.git",
     "cordova-plugin-splashscreen": "^6.0.0",
     "cordova-plugin-statusbar": "^3.0.0",
     "cordova-plugin-whitelist": "^1.3.5",
     "cordova-plugin-wkwebview-engine": "^1.2.2",
-    "cordova-plugin-zip": "^3.1.0",
     "cordova-save-image-gallery": "git+https://github.com/agomezmoron/cordova-save-image-gallery.git"
   },
   "cordova": {
@@ -42,14 +34,13 @@
       "cordova-plugin-statusbar": {},
       "cordova-plugin-network-information": {},
       "cordova-plugin-splashscreen": {},
-      "cordova-plugin-code-push": {},
       "cordova-save-image-gallery": {},
       "cordova-plugin-remote-injection": {},
       "cordova-plugin-android-notch": {}
     },
     "platforms": [
-      "ios",
-      "android"
+      "android",
+      "ios"
     ]
   },
   "dependencies": {

+ 4 - 2
scripts/android/leftShift2doLast.js

@@ -6,7 +6,6 @@ module.exports = function (context) {
     const cordovaCommon = context.requireCordovaModule("cordova-common");
     const { ConfigParser } = cordovaCommon;
     const appConfig = new ConfigParser(path.resolve(projectRoot, "config.xml"));
-
     let projectName = appConfig.name();
 
     const file = path.resolve(
@@ -14,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(

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini