Skip to content

Commit da23e15

Browse files
author
dongxl
committed
解决冲突
1 parent da4707c commit da23e15

4 files changed

Lines changed: 26 additions & 6 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
android:roundIcon="@mipmap/ic_launcher_round"
1212
android:supportsRtl="true"
1313
android:theme="@style/AppTheme"
14+
tools:replace="android:name,android:allowBackup,android:label,android:icon"
1415
>
1516
<service
1617
android:name=".service.PushReceiveService"

dongxlpush/build.gradle

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,31 @@ android {
1010
versionCode 1
1111
versionName "1.0"
1212

13-
/*华为推送 如果您的应用不需要设置只支持某些特定语言,则请忽略此步骤。如果您的应用需要设置只支持某些特定语言,请最少要支持en(英文) 和 zh-rCN(简体中文)两种语言*/
14-
// resConfigs "en", "zh-rCN"
13+
manifestPlaceholders = [
14+
JPUSH_PKGNAME : "${jpush_pkgname}",//值来自开发者平台取得的AppKey
15+
JPUSH_APPKEY : "${jpush_appkey}",//值来自开发者平台取得的AppKey
16+
JPUSH_CHANNEL : "${jpush_channel}",
17+
18+
HUAWEIPUSH_APPID: "${huaweipush_appid}", //
1519

20+
VIVOPUSH_APPKEY : "${vivopush_appkey}",
21+
VIVOPUSH_APPID : "${vivopush_appid}"
22+
]
23+
buildConfigField "String", "MAIN_PACKAGENAME", "${main_packagename}"
24+
buildConfigField "String", "PUSHRECEIVESERVICE", "${pushreceiveservice}"
1625

26+
buildConfigField 'String', 'XIAOMIPUSH_APPID', "${xiaomipush_appid}"
27+
buildConfigField 'String', 'XIAOMIPUSH_APPKEY', "${xiaomipush_appkey}"
1728

29+
buildConfigField "String", "OPPOPUSH_APPID", "${oppopush_appid}"
30+
buildConfigField "String", "OPPOPUSH_APPKEY", "${oppopush_appkey}"
31+
buildConfigField "String", "OPPOPUSH_APPSECRET", "${oppopush_appsecret}"
1832

33+
buildConfigField "String", "MEIZUPUSH_APPKEY", "${meizupush_appkey}"
34+
buildConfigField "String", "MEIZUPUSH_APPID", "${meizupush_appid}"
35+
36+
/*华为推送 如果您的应用不需要设置只支持某些特定语言,则请忽略此步骤。如果您的应用需要设置只支持某些特定语言,请最少要支持en(英文) 和 zh-rCN(简体中文)两种语言*/
37+
// resConfigs "en", "zh-rCN"
1938

2039
ndk {
2140
//选择要添加的对应 cpu 类型的 .so 库。

dongxlpush/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@
6565
<!-- Required -->
6666
<uses-permission android:name="${applicationId}.permission.JPUSH_MESSAGE" />
6767

68-
<application
69-
tools:replace="android:name,android:allowBackup,android:label,android:icon,android:value">
68+
<application>
7069

7170
<!-- xiaomipush ===start -->
7271
<!-- 这里将XMPushService和PingReceiver定义在了pushservice进程中,您也可以配置其运行在任意进程。如果没有配置android:process这个属性,那么它们将运行在应用的主进程中。 -->

settings.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
rootProject.name = 'pushdemo'
2-
include ':app'
1+
rootProject.name = 'PushAll'
2+
include ':app','dongxlpush'
3+

0 commit comments

Comments
 (0)