Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
feat(release): 5.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-song committed Nov 29, 2021
1 parent 849bf74 commit 4cd7b01
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 5.1.6

**SDK:**
* 1.升级 SDK 版本到 5.1.6


## 5.1.5

**SDK:**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
flutter:
sdk: flutter
rongcloud_im_plugin: ^5.1.5
rongcloud_im_plugin: ^5.1.6
```
2. 在项目路径下,下载插件:
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ android {
}

dependencies {
api 'cn.rongcloud.sdk:im_libcore:5.1.5'
api 'cn.rongcloud.sdk:im_chatroom:5.1.5'
api 'cn.rongcloud.sdk:im_libcore:5.1.6'
api 'cn.rongcloud.sdk:im_chatroom:5.1.6'
}
2 changes: 1 addition & 1 deletion android/src/main/java/io/rong/flutter/imlib/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
* @date 2021/9/7
*/
public class Version {
public static final String SDK_VERSION = "5.1.5";
public static final String SDK_VERSION = "5.1.6";
}
3 changes: 3 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
.pub-cache/
.pub/
/build/
pubspec.lock

# Android related
**/android/**/gradle-wrapper.jar
Expand Down Expand Up @@ -58,10 +59,12 @@
**/ios/.generated/
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Flutter.podspec
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

Expand Down
2 changes: 1 addition & 1 deletion example/lib/im/pages/sight/video_record_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class _VideoRecordPageState extends State<VideoRecordPage> implements VideoBotto
targetDes = cameras[1];
}

cameraController?.dispose();
await cameraController?.dispose();

cameraController = CameraController(targetDes, ResolutionPreset.medium);

Expand Down
6 changes: 3 additions & 3 deletions ios/rongcloud_im_plugin.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ A new flutter plugin project.
s.static_framework = true
s.dependency 'Flutter'

s.dependency 'RongCloudIM/IMLibCore', '5.1.5.2'
s.dependency 'RongCloudIM/ChatRoom', '5.1.5.2'
s.dependency 'RongCloudIM/PublicService', '5.1.5.2'
s.dependency 'RongCloudIM/IMLibCore', '5.1.6'
s.dependency 'RongCloudIM/ChatRoom', '5.1.6'
s.dependency 'RongCloudIM/PublicService', '5.1.6'

s.ios.deployment_target = '8.0'
end
Expand Down
10 changes: 5 additions & 5 deletions lib/src/rong_im_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RongIMClient {
static final MethodChannel _channel = const MethodChannel('rongcloud_im_plugin');

static Map sendMessageCallbacks = Map();
static final String sdkVersion = "5.1.5";
static final String sdkVersion = "5.1.6";

static Map<String, MessageDecoder> messageDecoders = Map<String, MessageDecoder>();

Expand Down Expand Up @@ -2251,12 +2251,12 @@ class RongIMClient {
case RCMethodCallBackKey.SendMessage:
{
Map argMap = call.arguments;
int? msgId = argMap["messageId"];
int? status = argMap["status"];
int? code = argMap["code"];
int msgId = argMap["messageId"];
int status = argMap["status"];
int code = argMap["code"];
int? timestamp = argMap["timestamp"];
if (timestamp != null && timestamp > 0) {
Function(int? messageId, int? status, int? code)? finished = sendMessageCallbacks[timestamp];
Function(int messageId, int status, int code)? finished = sendMessageCallbacks[timestamp];
if (finished != null) {
finished(msgId, status, code);
sendMessageCallbacks.remove(timestamp);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: rongcloud_im_plugin
description: RongCloud IM Flutter Plugin.
version: 5.1.5
version: 5.1.6
homepage: https://www.rongcloud.cn/

environment:
Expand Down

0 comments on commit 4cd7b01

Please sign in to comment.