Skip to content

Commit e853dfc

Browse files
author
TC130精神扰乱装置
authored
Merge pull request #751 from jpush/dev
更新readme
2 parents 9ddee15 + e142b4c commit e853dfc

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
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

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,16 @@
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" />

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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"

0 commit comments

Comments
 (0)