File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 22
33## ChangeLog
44
5- 1 . 从RN-JCore1.6.0开始,Android集成插件时不需要在AndroidManifest.xml中添加配置代码
6- 2 . 从RN-JPush2 .7.5开始,重新支持TypeScript
5+ 1 . 从RN-JPush2.7.5开始,重新支持TypeScript
6+ 2 . 由于RN-JCore1.6.0存在编译问题, 从RN-JCore1 .7.0开始,还是需要在AndroidManifest.xml中添加配置代码,具体参考 配置-2.1 Android
77
88
99## 1. 安装
@@ -54,6 +54,17 @@ npm install jpush-react-native --save
5454 project(':jcore-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/jcore-react-native/android')
5555 ```
5656
57+ * AndroidManifest.xml
58+
59+ ```
60+ <meta-data
61+ android:name="JPUSH_CHANNEL"
62+ android:value="${JPUSH_CHANNEL}" />
63+ <meta-data
64+ android:name="JPUSH_APPKEY"
65+ android:value="${JPUSH_APPKEY}" />
66+ ```
67+
5768### 2.2 iOS
5869
5970### 2.2.1 pod
Original file line number Diff line number Diff line change 2020 <category android : name =" android.intent.category.LAUNCHER" />
2121 </intent-filter >
2222 </activity >
23+
2324 <activity android : name =" com.facebook.react.devsupport.DevSettingsActivity" />
2425
26+ <meta-data
27+ android : name =" JPUSH_CHANNEL"
28+ android : value =" ${JPUSH_CHANNEL}" />
29+ <meta-data
30+ android : name =" JPUSH_APPKEY"
31+ android : value =" ${JPUSH_APPKEY}" />
32+
2533 </application >
2634
2735 <uses-permission android : name =" android.permission.INTERNET" />
Original file line number Diff line number Diff line change 77 "test" : " jest"
88 },
99 "dependencies" : {
10- "jcore-react-native" : " 1.6 .0" ,
10+ "jcore-react-native" : " 1.7 .0" ,
1111 "jpush-react-native" : " 2.7.5" ,
1212 "react" : " 16.8.6" ,
1313 "react-native" : " 0.60.5"
You can’t perform that action at this time.
0 commit comments