Skip to content

Commit 5d71b6a

Browse files
committed
更新安卓demo
1 parent 9a32604 commit 5d71b6a

File tree

4 files changed

+16
-532
lines changed

4 files changed

+16
-532
lines changed

example/android/app/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,16 @@ android {
7676

7777
namespace "com.example"
7878
defaultConfig {
79-
applicationId "com.example"
79+
applicationId "cn.allpublic"
8080
minSdkVersion rootProject.ext.minSdkVersion
8181
targetSdkVersion rootProject.ext.targetSdkVersion
8282
versionCode 1
8383
versionName "1.0"
84+
85+
manifestPlaceholders = [
86+
JPUSH_APPKEY: "32f266ea08c3b3d7a059b378", //在此替换你的APPKey
87+
JPUSH_CHANNEL: "test" //在此替换你的channel
88+
]
8489
}
8590
signingConfigs {
8691
debug {

example/android/app/src/main/AndroidManifest.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,13 @@
2121
<category android:name="android.intent.category.LAUNCHER" />
2222
</intent-filter>
2323
</activity>
24+
25+
<meta-data
26+
android:name="JPUSH_CHANNEL"
27+
android:value="${JPUSH_CHANNEL}" />
28+
<meta-data
29+
android:name="JPUSH_APPKEY"
30+
android:value="${JPUSH_APPKEY}" />
31+
2432
</application>
2533
</manifest>

0 commit comments

Comments
 (0)