Skip to content

Commit e659751

Browse files
authored
Update README.md
1 parent c58f7b8 commit e659751

File tree

1 file changed

+2
-42
lines changed

1 file changed

+2
-42
lines changed

README.md

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ React Native的网易云信插件
1212
### 1.首先安装npm包
1313

1414
```bash
15-
npm install react-native-netease-im --save
15+
npm install react-native-netease-im --save 或者 yarn add react-native-netease-im
1616
```
1717

1818
### 2.link
@@ -114,15 +114,11 @@ public class MainApplication extends Application implements ReactApplication {
114114
#### iOS配置
115115
install with CocoaPods
116116
```
117-
pod 'NIMSDK', '5.6.0'
117+
pod 'NIMSDK', '6.2.0'
118118
pod 'CocoaLumberjack', '~> 2.0.0-rc2'
119119
```
120120
Run `pod install`
121121

122-
在工程target的`Build Phases->Link Binary with Libraries`中加入`、libsqlite3.0.tbd、libc++.tbd、libz.tbd、CoreTelephony.framework、AVFoundation.framework、CoreMedia.framework、CoreMotion.framework`
123-
124-
125-
126122
在你工程的`AppDelegate.m`文件中添加如下代码:
127123

128124
```
@@ -198,43 +194,7 @@ manifestPlaceholders = [
198194
NIM_KEY: "云信的APPID" //在此修改云信APPID
199195
]
200196
```
201-
`AndroidManifest.xml`里,添加如下代码:
202-
```
203-
< manifest
204-
205-
......
206-
207-
<!-- SDK 权限申明, 第三方 APP 接入时,请将 com.im.demo 替换为自己的包名 -->
208-
<!-- 和下面的 uses-permission 一起加入到你的 AndroidManifest 文件中。 -->
209-
<permission
210-
android:name="com.im.demo.permission.RECEIVE_MSG"
211-
android:protectionLevel="signature"/>
212-
<!-- 接收 SDK 消息广播权限, 第三方 APP 接入时,请将 com.im.demo 替换为自己的包名 -->
213-
<uses-permission android:name="com.im.demo.permission.RECEIVE_MSG"/>
214-
<!-- 小米推送 -->
215-
<permission
216-
android:name="com.im.demo.permission.MIPUSH_RECEIVE"
217-
android:protectionLevel="signature"/>
218-
<uses-permission android:name="com.im.demo.permission.MIPUSH_RECEIVE"/>
219-
220-
......
221-
< application
222-
......
223-
<!-- 设置你的网易聊天App Key -->
224-
<meta-data
225-
android:name="com.netease.nim.appKey"
226-
android:value="App Key" />
227-
<!--添加新的 IPC 数据共享机制,替换不安全的多进程读写 SharedPreference-->
228-
<provider
229-
android:name="com.netease.nimlib.ipc.NIMContentProvider"
230-
android:authorities="com.im.demo.ipc.provider"
231-
android:exported="false"
232-
android:process=":core" />
233-
234-
```
235-
236197
## 如何使用
237-
238198
### 引入包
239199

240200
```

0 commit comments

Comments
 (0)