From 43421dbe42aca67918b0109d6ea3aa67a818b9d8 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期二, 09 十月 2018 10:59:55 +0800
Subject: [PATCH] update 极速sdk相关

---
 Project/js_sdk/src/main/AndroidManifest.xml |  151 ++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 139 insertions(+), 12 deletions(-)

diff --git a/Project/js_sdk/src/main/AndroidManifest.xml b/Project/js_sdk/src/main/AndroidManifest.xml
index 8a457e6..13fd6e6 100644
--- a/Project/js_sdk/src/main/AndroidManifest.xml
+++ b/Project/js_sdk/src/main/AndroidManifest.xml
@@ -27,6 +27,10 @@
     <uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />
     <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
 
+    <permission android:name="${appId}.permission.JPUSH_MESSAGE" />
+    <uses-permission android:name="${appId}.permission.JPUSH_MESSAGE" />
+    <uses-permission android:name="android.permission.RESTART_PACKAGES"/>
+
     <application
         android:allowBackup="true"
         android:icon="@drawable/app_icon"
@@ -63,8 +67,7 @@
             android:screenOrientation="sensorLandscape">
             <intent-filter>
                 <action android:name="${appId}.MAIN" />
-
-                <category android:name="android.intent.category.LAUNCHER" />
+                <category android:name="android.intent.category.DEFAULT" />
                 <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
             </intent-filter>
 
@@ -89,16 +92,140 @@
 
         </activity>
 
-        <!-- 閽堝7.0浠ヤ笂鐨刟pi寮�鏀剧殑鏂囦欢鏉冮檺 -->
-        <!--<provider-->
-        <!--android:name="android.support.v4.content.FileProvider"-->
-        <!--android:authorities="${appId}.fileProvider"-->
-        <!--android:grantUriPermissions="true"-->
-        <!--android:exported="false">-->
-        <!--<meta-data-->
-        <!--android:name="android.support.FILE_PROVIDER_PATHS"-->
-        <!--android:resource="@xml/file_paths" />-->
-        <!--</provider>-->
+        <!-- Required SDK 鏍稿績鍔熻兘-->
+        <!-- 鍙厤缃產ndroid:process鍙傛暟灏哖ushService鏀惧湪鍏朵粬杩涚▼涓� -->
+        <service
+            android:name="cn.jpush.android.service.PushService"
+            android:exported="false"
+            android:process=":mult">
+            <intent-filter>
+                <action android:name="cn.jpush.android.intent.REGISTER" />
+                <action android:name="cn.jpush.android.intent.REPORT" />
+                <action android:name="cn.jpush.android.intent.PushService" />
+                <action android:name="cn.jpush.android.intent.PUSH_TIME" />
+            </intent-filter>
+        </service>
+
+        <!-- since 3.0.9 Required SDK 鏍稿績鍔熻兘-->
+        <provider
+            android:name="cn.jpush.android.service.DataProvider"
+            android:authorities="${appId}.DataProvider"
+            android:exported="true" />
+
+        <!-- since 1.8.0 option 鍙�夐」銆傜敤浜庡悓涓�璁惧涓笉鍚屽簲鐢ㄧ殑JPush鏈嶅姟鐩镐簰鎷夎捣鐨勫姛鑳姐�� -->
+        <!-- 鑻ヤ笉鍚敤璇ュ姛鑳藉彲鍒犻櫎璇ョ粍浠讹紝灏嗕笉鎷夎捣鍏朵粬搴旂敤涔熶笉鑳借鍏朵粬搴旂敤鎷夎捣 -->
+        <service
+            android:name="cn.jpush.android.service.DaemonService"
+            android:enabled="true"
+            android:exported="true">
+            <intent-filter>
+                <action android:name="cn.jpush.android.intent.DaemonService" />
+                <category android:name="${appId}" />
+            </intent-filter>
+        </service>
+
+        <!-- since 3.1.0 Required SDK 鏍稿績鍔熻兘-->
+        <provider
+            android:name="cn.jpush.android.service.DownloadProvider"
+            android:authorities="${appId}.DownloadProvider"
+            android:exported="true" />
+
+        <!-- Required SDK鏍稿績鍔熻兘-->
+        <receiver
+            android:name="cn.jpush.android.service.PushReceiver"
+            android:enabled="true">
+            <intent-filter android:priority="1000">
+                <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" />
+                <category android:name="${appId}" />
+            </intent-filter>
+            <intent-filter>
+                <action android:name="android.intent.action.USER_PRESENT" />
+                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
+            </intent-filter>
+            <!-- Optional -->
+            <intent-filter>
+                <action android:name="android.intent.action.PACKAGE_ADDED" />
+                <action android:name="android.intent.action.PACKAGE_REMOVED" />
+
+                <data android:scheme="package" />
+            </intent-filter>
+        </receiver>
+
+        <!-- Required SDK鏍稿績鍔熻兘-->
+        <activity
+            android:name="cn.jpush.android.ui.PushActivity"
+            android:configChanges="orientation|keyboardHidden"
+            android:exported="false"
+            android:theme="@android:style/Theme.NoTitleBar">
+            <intent-filter>
+                <action android:name="cn.jpush.android.ui.PushActivity" />
+
+                <category android:name="android.intent.category.DEFAULT" />
+                <category android:name="${appId}" />
+            </intent-filter>
+        </activity>
+        <!-- SDK鏍稿績鍔熻兘-->
+        <activity
+            android:name="cn.jpush.android.ui.PopWinActivity"
+            android:configChanges="orientation|keyboardHidden"
+            android:exported="false"
+            android:theme="@style/MyDialogStyle">
+            <intent-filter>
+                <category android:name="android.intent.category.DEFAULT" />
+                <category android:name="${appId}" />
+            </intent-filter>
+        </activity>
+
+        <!-- Required SDK鏍稿績鍔熻兘-->
+        <service
+            android:name="cn.jpush.android.service.DownloadService"
+            android:enabled="true"
+            android:exported="false"></service>
+
+        <!-- Required SDK鏍稿績鍔熻兘-->
+        <receiver android:name="cn.jpush.android.service.AlarmReceiver" />
+
+        <!-- Required since 3.0.7 -->
+        <!-- 鏂扮殑tag/alias鎺ュ彛缁撴灉杩斿洖闇�瑕佸紑鍙戣�呴厤缃竴涓嚜瀹氱殑骞挎挱 -->
+        <!-- 璇ュ箍鎾渶瑕佺户鎵縅Push鎻愪緵鐨凧PushMessageReceiver绫�, 骞跺涓嬫柊澧炰竴涓� Intent-Filter -->
+        <!--<receiver-->
+        <!--android:name="鑷畾涔� Receiver"-->
+        <!--android:enabled="true" >-->
+        <!--<intent-filter>-->
+        <!--<action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />-->
+        <!--<category android:name="鎮ㄥ簲鐢ㄧ殑鍖呭悕" />-->
+        <!--</intent-filter>-->
+        <!--</receiver>-->
+
+        <!--&lt;!&ndash; User defined. 鐢ㄦ埛鑷畾涔夌殑骞挎挱鎺ユ敹鍣�&ndash;&gt;-->
+        <receiver
+            android:name="com.secondworld.univeralsdk.JPushReceiver"
+            android:enabled="true">
+            <intent-filter>
+                <!--Required 鐢ㄦ埛娉ㄥ唽SDK鐨刬ntent-->
+                <action android:name="cn.jpush.android.intent.REGISTRATION" />
+                <!--Required 鐢ㄦ埛鎺ユ敹SDK娑堟伅鐨刬ntent-->
+                <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" />
+                <!--Required 鐢ㄦ埛鎺ユ敹SDK閫氱煡鏍忎俊鎭殑intent-->
+                <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" />
+                <!-- 鎺ユ敹缃戠粶鍙樺寲 杩炴帴/鏂紑 since 1.6.3 -->
+                <action android:name="cn.jpush.android.intent.CONNECTION" />
+                <category android:name="${appId}" />
+            </intent-filter>
+        </receiver>
+
+        <!-- Required. For publish channel feature -->
+        <!-- JPUSH_CHANNEL 鏄负浜嗘柟渚垮紑鍙戣�呯粺璁PK鍒嗗彂娓犻亾銆�-->
+        <!-- 渚嬪: -->
+        <!-- 鍙戝埌 Google Play 鐨凙PK鍙互璁剧疆涓� google-play; -->
+        <!-- 鍙戝埌鍏朵粬甯傚満鐨� APK 鍙互璁剧疆涓� xxx-market銆� -->
+        <meta-data
+            android:name="JPUSH_CHANNEL"
+            android:value="developer-default" />
+        <!-- Required. AppKey copied from Portal -->
+        <meta-data
+            android:name="JPUSH_APPKEY"
+            android:value="${JpushAppKey}" />
 
     </application>
 

--
Gitblit v1.8.0