Mike 7 years ago
parent
commit
783f6c78ef

+ 0 - 2
miaomiao/config.xml

xqd
@@ -9,8 +9,6 @@
   </author>
   <content src="index.html"/>
   <access origin="*"/>
-  <allow-intent href="*"/>
-  <allow-navigation href="*"/>
   <preference name="webviewbounce" value="false"/>
   <preference name="UIWebViewBounce" value="false"/>
   <preference name="DisallowOverscroll" value="true"/>

+ 2 - 1
miaomiao/package.json

xqd
@@ -48,7 +48,8 @@
     "cordova-plugin-whitelist"
   ],
   "cordovaPlatforms": [
-    "android"
+    "android",
+    "ios"
   ],
   "cordova": {
     "plugins": {

+ 3 - 0
miaomiao/plugins/android.json

xqd
@@ -19,6 +19,9 @@
         },
         "cordova-plugin-whitelist": {
             "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-console": {
+            "PACKAGE_NAME": "com.miaomiao.app"
         }
     },
     "dependent_plugins": {}

+ 21 - 0
miaomiao/plugins/cordova-plugin-jcore/LICENSE

xqd
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 极光开发者
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 33 - 0
miaomiao/plugins/cordova-plugin-jcore/README.md

xqd
@@ -0,0 +1,33 @@
+# Cordova Plugin JCore
+
+[![release](https://img.shields.io/badge/release-1.1.8-blue.svg)](https://github.com/jpush/jpush-phonegap-plugin/releases)
+[![platforms](https://img.shields.io/badge/platforms-iOS%7CAndroid-lightgrey.svg)](https://github.com/jpush/jpush-phonegap-plugin)
+[![weibo](https://img.shields.io/badge/weibo-JPush-blue.svg)](http://weibo.com/jpush?refer_flag=1001030101_&is_all=1)
+
+极光各种开发者服务的核心依赖 JCore SDK 的 Cordova 插件。
+
+极光开发者服务及对应的 Cordova 插件如下:
+
+- 极光推送(JPush)- [jpush-phonegap-plugin](https://github.com/jpush/jpush-phonegap-plugin)
+- 极光 IM(JMessage)- [jmessage-phonegap-plugin](https://github.com/jpush/jmessage-phonegap-plugin)
+- 极光统计(JAnalytics)- [cordova-plugn-janalytics](https://github.com/jpush/cordova-plugin-janalytics)
+- 极光短信验证码(JSMS)- [cordova-plugin-jsms](https://github.com/jpush/cordova-plugin-jsms)
+
+## 什么是 JCore
+
+极光开发者服务 SDK 采用了模块化的使用模式,即一个核心(JCore)+ N 种服务(JPush,JMessage...)的使用方式,方便开发者使用某一项服务或多项服务,极大的优化了多模块同时使用时功能模块重复的问题。如下图:
+
+![](doc/sdk_model.png)
+
+## Install
+
+cordova-plugin-jcore 作为其他极光 Cordova 插件的依赖,在安装其他插件时会自动安装。
+
+## Support
+
+- [极光社区](http://community.jiguang.cn/)
+- QQ 交流群:413602425
+
+## License
+
+MIT © [JiGuang](/license)

BIN
miaomiao/plugins/cordova-plugin-jcore/doc/sdk_model.png


+ 29 - 0
miaomiao/plugins/cordova-plugin-jcore/package.json

xqd
@@ -0,0 +1,29 @@
+{
+  "name": "cordova-plugin-jcore",
+  "version": "1.1.8",
+  "description": "jcore for cordova plugin",
+  "cordova": {
+    "id": "cordova-plugin-jcore",
+    "platforms": [
+      "android",
+      "ios"
+    ]
+  },
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/jpush/cordova-plugin-jcore"
+  },
+  "keywords": [
+    "jcore",
+    "jpush",
+    "ecosystem:cordova",
+    "cordova-android",
+    "cordova-ios"
+  ],
+  "author": "wilhantian, jiguang",
+  "license": "MIT License",
+  "bugs": {
+    "url": "https://github.com/jpush/cordova-plugin-jcore/issues"
+  },
+  "homepage": "https://github.com/jpush/cordova-plugin-jcore#readme"
+}

+ 32 - 0
miaomiao/plugins/cordova-plugin-jcore/plugin.xml

xqd
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
+     xmlns:android="http://schemas.android.com/apk/res/android"
+     id="cordova-plugin-jcore"
+     version="1.1.8">
+
+    <name>JCore</name>
+    <description>Cordova plugin for jcore</description>
+    <author>WilhanTian, JiGuang</author>
+    <keywords>jcore,jpush</keywords>
+    <license>MIT License</license>
+
+    <engines>
+        <engine name="cordova" version=">=3.0.0"/>
+    </engines>
+
+    <platform name="android">
+        <source-file src="src/android/arm64-v8a/libjcore116.so" target-dir="libs/arm64-v8a"/>
+        <source-file src="src/android/armeabi/libjcore116.so" target-dir="libs/armeabi"/>
+        <source-file src="src/android/armeabi-v7a/libjcore116.so" target-dir="libs/armeabi-v7a"/>
+        <source-file src="src/android/mips/libjcore116.so" target-dir="libs/mips"/>
+        <source-file src="src/android/mips64/libjcore116.so" target-dir="libs/mips64"/>
+        <source-file src="src/android/x86/libjcore116.so" target-dir="libs/x86"/>
+        <source-file src="src/android/x86_64/libjcore116.so" target-dir="libs/x86_64"/>
+
+        <source-file src="src/android/jcore-android-1.1.6.jar" target-dir="libs"/>
+    </platform>
+
+    <platform name="ios">
+        <source-file src="src/ios/jcore-ios-1.1.5.a" framework="true" />
+    </platform>
+</plugin>

BIN
miaomiao/plugins/cordova-plugin-jcore/src/android/arm64-v8a/libjcore116.so


BIN
miaomiao/plugins/cordova-plugin-jcore/src/android/armeabi-v7a/libjcore116.so


BIN
miaomiao/plugins/cordova-plugin-jcore/src/android/armeabi/libjcore116.so


BIN
miaomiao/plugins/cordova-plugin-jcore/src/android/jcore-android-1.1.6.jar


BIN
miaomiao/plugins/cordova-plugin-jcore/src/android/mips/libjcore116.so


BIN
miaomiao/plugins/cordova-plugin-jcore/src/android/mips64/libjcore116.so


BIN
miaomiao/plugins/cordova-plugin-jcore/src/android/x86/libjcore116.so


BIN
miaomiao/plugins/cordova-plugin-jcore/src/android/x86_64/libjcore116.so


BIN
miaomiao/plugins/cordova-plugin-jcore/src/ios/jcore-ios-1.1.5.a


+ 5 - 0
miaomiao/plugins/cordova-plugin-jcore/www/jcore.js

xqd
@@ -0,0 +1,5 @@
+var exec = require('cordova/exec')
+
+exports.coolMethod = function (arg0, success, error) {
+  exec(success, error, 'jcore', 'coolMethod', [arg0])
+}

+ 1 - 3
miaomiao/plugins/fetch.json

xqd
@@ -122,9 +122,7 @@
             "id": "cordova-plugin-wechat@^1.4.0"
         },
         "is_top_level": true,
-        "variables": {
-            "WECHATAPPID": "wxc5181c0d406023e6"
-        }
+        "variables": {}
     },
     "jpush-phonegap-plugin": {
         "source": {

+ 14 - 0
miaomiao/plugins/ios.json

xqd xqd
@@ -45,6 +45,17 @@
         },
         "cordova-plugin-whitelist": {
             "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "ionic-plugin-keyboard": {
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "jpush-phonegap-plugin": {
+            "APP_KEY": "69838317211448192366f9d8",
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "phonegap-plugin-barcodescanner": {
+            "CAMERA_USAGE_DESCRIPTION": " ",
+            "PACKAGE_NAME": "com.miaomiao.app"
         }
     },
     "dependent_plugins": {
@@ -53,6 +64,9 @@
         },
         "cordova-plugin-file": {
             "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-jcore": {
+            "PACKAGE_NAME": "com.miaomiao.app"
         }
     }
 }

+ 4 - 4
miaomiao/www/js/app.js

xqd xqd
@@ -50,10 +50,10 @@
                   StatusBar.styleLightContent();
                }
                var receiveNotification = function (event) {
-                   alert("receiveMessageIniOSCallback是" + +JSON.stringify(event));
+                   // alert("receiveMessageIniOSCallback是" + +JSON.stringify(event));
                };
                var setTagsWithAliasCallback = function (event) {
-                   window.alert('result code:' + event.resultCode + ' tags:' + event.tags + ' alias:' + event.alias);
+                   // window.alert('result code:' + event.resultCode + ' tags:' + event.tags + ' alias:' + event.alias);
                };
                if (window.cordova) {
                    jpushService.init({
@@ -67,11 +67,11 @@
                            if (registrationID.length == 0) {
                                var t1 = window.setTimeout(getRegistrationID, 1000);
                            } else {
-                               alert("RegistrationID是" + registrationID);
+                               // alert("RegistrationID是" + registrationID);
                                localStorage.setItem('jpush', registrationID);
                            }
                        } catch (exception) {
-                           alert("onGetRegistrationID err:" + JSON.stringify(exception));
+                           // alert("onGetRegistrationID err:" + JSON.stringify(exception));
                        }
                    };
                    var getRegistrationID = function () {

+ 1 - 1
miaomiao/www/js/controllers/account.js

xqd
@@ -75,7 +75,7 @@
                 }, function (error) {
                     $scope.vm.waitSeconds = "获取验证码";
                     wait(0);
-                    alert(JSON.stringify(error));
+                    // alert(JSON.stringify(error));
                     // msg.error(error.data.message);
                 });
             };