Skip to content

Commit e7af0d6

Browse files
committed
Update example
1 parent 81229f3 commit e7af0d6

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

example/android/app/build.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,17 @@ android {
9898
buildToolsVersion "26.0.2"
9999

100100
defaultConfig {
101-
applicationId "com.pushdemo"
101+
applicationId "com.test.josh" //替换包名:
102102
minSdkVersion 16
103103
targetSdkVersion 23
104104
versionCode 1
105105
versionName "1.0"
106+
106107
ndk {
107108
abiFilters "armeabi-v7a", "x86"
108109
}
109110
manifestPlaceholders = [
110-
JPUSH_APPKEY: "d4ee2375846bc30fa51334f5", //在此替换你的APPKey
111+
JPUSH_APPKEY: "7b4b94cca0d185d611e53cca", //在此替换你的APPKey
111112
APP_CHANNEL : "developer-default" //应用渠道号
112113
]
113114
}
@@ -141,11 +142,12 @@ android {
141142
}
142143

143144
dependencies {
144-
compile fileTree(include: ['*.jar'], dir: 'libs')
145-
api project(':jpush-react-native')
146-
api project(':jcore-react-native')
147-
compile 'com.android.support:appcompat-v7:25.3.1'
148-
compile 'com.facebook.react:react-native:+'
145+
146+
implementation fileTree(include: ['*.jar'], dir: 'libs')
147+
implementation project(':jcore-react-native')
148+
implementation project(':jpush-react-native')
149+
implementation 'com.android.support:appcompat-v7:25.3.1'
150+
implementation 'com.facebook.react:react-native:+'
149151
// From node_modules
150152
}
151153

0 commit comments

Comments
 (0)