Skip to content

Commit

Permalink
Merge pull request #952 from huangshuni/master
Browse files Browse the repository at this point in the history
更新安卓demo
  • Loading branch information
huangshuni authored Jul 9, 2024
2 parents 9a32604 + 5d71b6a commit 355ac46
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 532 deletions.
7 changes: 6 additions & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,16 @@ android {

namespace "com.example"
defaultConfig {
applicationId "com.example"
applicationId "cn.allpublic"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"

manifestPlaceholders = [
JPUSH_APPKEY: "32f266ea08c3b3d7a059b378", //在此替换你的APPKey
JPUSH_CHANNEL: "test" //在此替换你的channel
]
}
signingConfigs {
debug {
Expand Down
8 changes: 8 additions & 0 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,13 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<meta-data
android:name="JPUSH_CHANNEL"
android:value="${JPUSH_CHANNEL}" />
<meta-data
android:name="JPUSH_APPKEY"
android:value="${JPUSH_APPKEY}" />

</application>
</manifest>
Loading

0 comments on commit 355ac46

Please sign in to comment.