xiongzhu преди 3 години
родител
ревизия
e02e446588
променени са 5 файла, в които са добавени 97 реда и са изтрити 8 реда
  1. 3 2
      config.xml
  2. 50 1
      package-lock.json
  3. 21 2
      package.json
  4. 1 1
      www/index.html
  5. 22 2
      yarn.lock

+ 3 - 2
config.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<widget id="vip.raex.nft" version="1.0.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" ios-CFBundleIdentifier="new.raex.meta" ios-CFBundleVersion="161" android-versionCode="1182">
+<widget id="vip.raex.nft" version="1.0.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" ios-CFBundleIdentifier="new.raex.meta" ios-CFBundleVersion="161" android-versionCode="1187">
 	<name>RAEX宇宙</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="http://192.168.50.144:8082/"/>
+	<content src="http://192.168.6.215:8082/"/>
 	<access origin="*"/>
 	<allow-intent href="http://*/*"/>
 	<allow-intent href="https://*/*"/>
@@ -47,6 +47,7 @@
 		<preference name="StatusBarStyle" value="lightcontent"/>
 		<preference name="StatusBarBackgroundColor" value="#0F0F0F"/>
 		<preference name="SplashMaintainAspectRatio" value="true"/>
+        <preference name="AndroidLaunchMode" value="singleInstance" />
 		<icon src="res/icon/android/icon.png"/>
 		<icon src="res/icon/android/mipmap-ldpi/ic_launcher.png" density="ldpi"/>
 		<icon src="res/icon/android/mipmap-mdpi/ic_launcher.png" density="mdpi"/>

+ 50 - 1
package-lock.json

@@ -38,7 +38,8 @@
         "cordova-plugin-x-socialsharing": "^6.0.3",
         "cordova-plugin-zip": "^3.1.0",
         "cordova-save-image-gallery": "git+https://github.com/agomezmoron/cordova-save-image-gallery.git",
-        "es6-promise-plugin": "^4.2.2"
+        "es6-promise-plugin": "^4.2.2",
+        "ionic-plugin-deeplinks": "^1.0.24"
       }
     },
     "../UmengPlugin": {
@@ -1505,6 +1506,18 @@
         "node": ">= 0.10"
       }
     },
+    "node_modules/ionic-plugin-deeplinks": {
+      "version": "1.0.24",
+      "resolved": "https://registry.npmmirror.com/ionic-plugin-deeplinks/-/ionic-plugin-deeplinks-1.0.24.tgz",
+      "integrity": "sha512-fdJonEWybxwSvt3+LzEMTqSPSVuzRxedhJSMTkHUrx/NkTAipkztzcCRj8CHvbQwQMlTUYrMO2fris9ZYytKow==",
+      "dev": true,
+      "dependencies": {
+        "mkpath": ">=1.0.0",
+        "node-version-compare": ">=1.0.1",
+        "plist": ">=1.2.0",
+        "xml2js": ">=0.4"
+      }
+    },
     "node_modules/ios-sim": {
       "version": "8.0.2",
       "resolved": "https://registry.npmmirror.com/ios-sim/-/ios-sim-8.0.2.tgz",
@@ -1783,6 +1796,12 @@
       "resolved": "https://registry.nlark.com/mkdirp-classic/download/mkdirp-classic-0.5.3.tgz",
       "integrity": "sha1-+hDJEVzG2IZb4iG6R+6b7XhgERM="
     },
+    "node_modules/mkpath": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmmirror.com/mkpath/-/mkpath-1.0.0.tgz",
+      "integrity": "sha512-PbNHr7Y/9Y/2P5pKFv5XOGBfNQqZ+fdiHWcuf7swLACN5ZW5LU7J5tMU8LSBjpluAxAxKYGD9nnaIbdRy9+m1w==",
+      "dev": true
+    },
     "node_modules/ms": {
       "version": "2.0.0",
       "resolved": "https://registry.npmmirror.com/ms/download/ms-2.0.0.tgz",
@@ -1819,6 +1838,12 @@
       "resolved": "https://registry.nlark.com/node-addon-api/download/node-addon-api-4.2.0.tgz",
       "integrity": "sha1-EXy7WpWd/wmS4cWGrgOTVz5NKoc="
     },
+    "node_modules/node-version-compare": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmmirror.com/node-version-compare/-/node-version-compare-1.0.3.tgz",
+      "integrity": "sha512-unO5GpBAh5YqeGULMLpmDT94oanSDMwtZB8KHTKCH/qrGv8bHN0mlDj9xQDAicCYXv2OLnzdi67lidCrcVotVw==",
+      "dev": true
+    },
     "node_modules/nopt": {
       "version": "5.0.0",
       "resolved": "https://registry.npmmirror.com/nopt/-/nopt-5.0.0.tgz",
@@ -4130,6 +4155,18 @@
       "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==",
       "dev": true
     },
+    "ionic-plugin-deeplinks": {
+      "version": "1.0.24",
+      "resolved": "https://registry.npmmirror.com/ionic-plugin-deeplinks/-/ionic-plugin-deeplinks-1.0.24.tgz",
+      "integrity": "sha512-fdJonEWybxwSvt3+LzEMTqSPSVuzRxedhJSMTkHUrx/NkTAipkztzcCRj8CHvbQwQMlTUYrMO2fris9ZYytKow==",
+      "dev": true,
+      "requires": {
+        "mkpath": ">=1.0.0",
+        "node-version-compare": ">=1.0.1",
+        "plist": ">=1.2.0",
+        "xml2js": ">=0.4"
+      }
+    },
     "ios-sim": {
       "version": "8.0.2",
       "resolved": "https://registry.npmmirror.com/ios-sim/-/ios-sim-8.0.2.tgz",
@@ -4345,6 +4382,12 @@
       "resolved": "https://registry.nlark.com/mkdirp-classic/download/mkdirp-classic-0.5.3.tgz",
       "integrity": "sha1-+hDJEVzG2IZb4iG6R+6b7XhgERM="
     },
+    "mkpath": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmmirror.com/mkpath/-/mkpath-1.0.0.tgz",
+      "integrity": "sha512-PbNHr7Y/9Y/2P5pKFv5XOGBfNQqZ+fdiHWcuf7swLACN5ZW5LU7J5tMU8LSBjpluAxAxKYGD9nnaIbdRy9+m1w==",
+      "dev": true
+    },
     "ms": {
       "version": "2.0.0",
       "resolved": "https://registry.npmmirror.com/ms/download/ms-2.0.0.tgz",
@@ -4375,6 +4418,12 @@
       "resolved": "https://registry.nlark.com/node-addon-api/download/node-addon-api-4.2.0.tgz",
       "integrity": "sha1-EXy7WpWd/wmS4cWGrgOTVz5NKoc="
     },
+    "node-version-compare": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmmirror.com/node-version-compare/-/node-version-compare-1.0.3.tgz",
+      "integrity": "sha512-unO5GpBAh5YqeGULMLpmDT94oanSDMwtZB8KHTKCH/qrGv8bHN0mlDj9xQDAicCYXv2OLnzdi67lidCrcVotVw==",
+      "dev": true
+    },
     "nopt": {
       "version": "5.0.0",
       "resolved": "https://registry.npmmirror.com/nopt/-/nopt-5.0.0.tgz",

+ 21 - 2
package.json

@@ -38,7 +38,8 @@
     "cordova-plugin-x-socialsharing": "^6.0.3",
     "cordova-plugin-zip": "^3.1.0",
     "cordova-save-image-gallery": "git+https://github.com/agomezmoron/cordova-save-image-gallery.git",
-    "es6-promise-plugin": "^4.2.2"
+    "es6-promise-plugin": "^4.2.2",
+    "ionic-plugin-deeplinks": "^1.0.24"
   },
   "cordova": {
     "plugins": {
@@ -59,7 +60,25 @@
         "PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly."
       },
       "cordova-plugin-qrscanner": {},
-      "cordova-plugin-umeng": {}
+      "cordova-plugin-umeng": {},
+      "ionic-plugin-deeplinks": {
+        "URL_SCHEME": "raex",
+        "DEEPLINK_SCHEME": "https",
+        "DEEPLINK_HOST": "www.raex.vip",
+        "ANDROID_PATH_PREFIX": "/",
+        "ANDROID_2_PATH_PREFIX": "/",
+        "ANDROID_3_PATH_PREFIX": "/",
+        "ANDROID_4_PATH_PREFIX": "/",
+        "ANDROID_5_PATH_PREFIX": "/",
+        "DEEPLINK_2_SCHEME": " ",
+        "DEEPLINK_2_HOST": " ",
+        "DEEPLINK_3_SCHEME": " ",
+        "DEEPLINK_3_HOST": " ",
+        "DEEPLINK_4_SCHEME": " ",
+        "DEEPLINK_4_HOST": " ",
+        "DEEPLINK_5_SCHEME": " ",
+        "DEEPLINK_5_HOST": " "
+      }
     },
     "platforms": [
       "ios",

+ 1 - 1
www/index.html

@@ -28,7 +28,7 @@
 
         var version = '1.0.2';
         var iosCFBundleVersion = '161';
-        var androidVersionCode = '1181';
+        var androidVersionCode = '1186';
         document.addEventListener('deviceready', function () {
             axios.get('https://www.raex.vip/appVersion/getVersion?version=' + version + '&platform=' + cordova.platformId)
                 .then(function (res) {

+ 22 - 2
yarn.lock

@@ -863,6 +863,16 @@
   "resolved" "https://registry.npmmirror.com/interpret/-/interpret-1.4.0.tgz"
   "version" "1.4.0"
 
+"ionic-plugin-deeplinks@^1.0.24":
+  "integrity" "sha512-fdJonEWybxwSvt3+LzEMTqSPSVuzRxedhJSMTkHUrx/NkTAipkztzcCRj8CHvbQwQMlTUYrMO2fris9ZYytKow=="
+  "resolved" "https://registry.npmmirror.com/ionic-plugin-deeplinks/-/ionic-plugin-deeplinks-1.0.24.tgz"
+  "version" "1.0.24"
+  dependencies:
+    "mkpath" ">=1.0.0"
+    "node-version-compare" ">=1.0.1"
+    "plist" ">=1.2.0"
+    "xml2js" ">=0.4"
+
 "ios-sim@^8.0.2":
   "integrity" "sha512-P7nEG771bfd+JoMRjnis1gpZOkjTUUxu+4Ek1Z+eoaEEoT9byllU9pxfQ8Df7hL3gSkIQxNwTSLhos2I8tWUQA=="
   "resolved" "https://registry.npmmirror.com/ios-sim/-/ios-sim-8.0.2.tgz"
@@ -1043,6 +1053,11 @@
   "resolved" "https://registry.nlark.com/mkdirp-classic/download/mkdirp-classic-0.5.3.tgz"
   "version" "0.5.3"
 
+"mkpath@>=1.0.0":
+  "integrity" "sha512-PbNHr7Y/9Y/2P5pKFv5XOGBfNQqZ+fdiHWcuf7swLACN5ZW5LU7J5tMU8LSBjpluAxAxKYGD9nnaIbdRy9+m1w=="
+  "resolved" "https://registry.npmmirror.com/mkpath/-/mkpath-1.0.0.tgz"
+  "version" "1.0.0"
+
 "ms@^2.1.1":
   "integrity" "sha1-V0yBOM4dK1hh8LRFedut1gxmFbI="
   "resolved" "https://registry.npmmirror.com/ms/download/ms-2.1.3.tgz"
@@ -1075,6 +1090,11 @@
   "resolved" "https://registry.nlark.com/node-addon-api/download/node-addon-api-4.2.0.tgz"
   "version" "4.2.0"
 
+"node-version-compare@>=1.0.1":
+  "integrity" "sha512-unO5GpBAh5YqeGULMLpmDT94oanSDMwtZB8KHTKCH/qrGv8bHN0mlDj9xQDAicCYXv2OLnzdi67lidCrcVotVw=="
+  "resolved" "https://registry.npmmirror.com/node-version-compare/-/node-version-compare-1.0.3.tgz"
+  "version" "1.0.3"
+
 "nopt@^4.0.3":
   "integrity" "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg=="
   "resolved" "https://registry.npmmirror.com/nopt/-/nopt-4.0.3.tgz"
@@ -1233,7 +1253,7 @@
   "resolved" "https://registry.nlark.com/pify/download/pify-4.0.1.tgz"
   "version" "4.0.1"
 
-"plist@^3.0.1", "plist@^3.0.4":
+"plist@^3.0.1", "plist@^3.0.4", "plist@>=1.2.0":
   "integrity" "sha1-pi34N+Ou0rs7c1iZ1RDE8YYBnL4="
   "resolved" "https://registry.nlark.com/plist/download/plist-3.0.4.tgz"
   "version" "3.0.4"
@@ -1869,7 +1889,7 @@
   "resolved" "https://registry.npm.taobao.org/xml-writer/download/xml-writer-1.7.0.tgz"
   "version" "1.7.0"
 
-"xml2js@^0.4.10":
+"xml2js@^0.4.10", "xml2js@>=0.4":
   "integrity" "sha1-oMaVFnUkIesqx1juTUzPWIQ+rGY="
   "resolved" "https://registry.nlark.com/xml2js/download/xml2js-0.4.23.tgz"
   "version" "0.4.23"