From f19071bd5e0007fc823f99cdfa0196391827da1e Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 11 五月 2022 18:46:35 +0800 Subject: [PATCH] 'android项目完善' --- src/main/resources/code/android/app/src/main/AndroidManifest.xml | 67 ++++++++++++++++++++++++++++++--- 1 files changed, 61 insertions(+), 6 deletions(-) diff --git a/src/main/resources/code/android/app/src/main/AndroidManifest.xml b/src/main/resources/code/android/app/src/main/AndroidManifest.xml index 65dc70b..0a8e19d 100644 --- a/src/main/resources/code/android/app/src/main/AndroidManifest.xml +++ b/src/main/resources/code/android/app/src/main/AndroidManifest.xml @@ -1,18 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" - package="com.demo.app"> + package="com.demo"> <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission> <application - android:name="com.demo.app.MyApplication" + android:name=".app.MyApplication" android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" - tools:replace="android:allowBackup,android:theme" - android:theme="@style/Theme.Android"> + android:theme="@style/Theme.Android" + tools:replace="android:allowBackup,android:theme"> <meta-data android:name="UMENG_CHANNEL" @@ -22,7 +22,7 @@ <activity - android:name="com.demo.app.ui.SplashActivity" + android:name=".app.ui.SplashActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> @@ -32,10 +32,65 @@ </activity> <activity - android:name="com.demo.app.ui.MainActivity" + android:name=".app.ui.MainActivity" android:configChanges="keyboard|orientation|screenSize" android:exported="true" android:launchMode="singleTask"></activity> + + + <activity + android:name=".wxapi.WXEntryActivity" + android:exported="true" + android:label="@string/app_name" + android:launchMode="singleTask" + android:screenOrientation="portrait" + android:taskAffinity="${applicationId}" + android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity> + + <!-- 鏋佸厜鎺ㄩ��--> + <service + android:name=".app.push.MyJpushService" + android:enabled="true" + android:exported="false" + android:process=":pushcore"> + <intent-filter> + <action android:name="cn.jiguang.user.service.action" /> + </intent-filter> + </service> + + <receiver + android:name=".app.push.MyJpushReceiver" + android:enabled="true" + android:exported="false"> + <intent-filter> + <!--Required 鐢ㄦ埛娉ㄥ唽 SDK 鐨� intent--> + <action android:name="cn.jpush.android.intent.REGISTRATION" /> + <!--Required 鐢ㄦ埛鎺ユ敹 SDK 娑堟伅鐨� intent--> + <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" /> + <!--Required 鐢ㄦ埛鎺ユ敹 SDK 閫氱煡鏍忎俊鎭殑 intent--> + <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" /> + <!--Required 鐢ㄦ埛鎵撳紑鑷畾涔夐�氱煡鏍忕殑 intent--> + <action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" /> + <!-- 鎺ユ敹缃戠粶鍙樺寲 杩炴帴/鏂紑 since 1.6.3 --> + <action android:name="cn.jpush.android.intent.CONNECTION" /> + + <category android:name="${applicationId}" /> + </intent-filter> + </receiver> + + <activity + android:name=".app.push.PushOpenClickActivity" + android:exported="true"> + + <intent-filter> + <action android:name="cn.jpush.android.intent.JNotifyActivity" /> + <category android:name="android.intent.category.DEFAULT" /><!--Required SDK鏍稿績鍔熻兘 since 4.2.2--> + <category android:name="${applicationId}" /> + </intent-filter> + + </activity> + + </application> </manifest> \ No newline at end of file -- Gitblit v1.8.0