Skip to content

Commit 64235ef

Browse files
committed
update demo
1 parent 7430356 commit 64235ef

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

example/ios/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- HyphenateChat (4.0.3)
3+
- HyphenateChat (4.1.1)
44
- im_flutter_sdk (0.0.1):
55
- Flutter
6-
- HyphenateChat (= 4.0.3)
6+
- HyphenateChat (= 4.1.1)
77

88
DEPENDENCIES:
99
- Flutter (from `Flutter`)
@@ -21,8 +21,8 @@ EXTERNAL SOURCES:
2121

2222
SPEC CHECKSUMS:
2323
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
24-
HyphenateChat: 35826ebaa42ebac897b39e29a06f2215a060011a
25-
im_flutter_sdk: bbcfbe596ef4682c9518604e1cb319e967f6b163
24+
HyphenateChat: 95aa4abbad0e763f513acbe21ff9543f50b886cd
25+
im_flutter_sdk: 9242a0d080c2f4ade4a0247a21b034036320233e
2626

2727
PODFILE CHECKSUM: 7368163408c647b7eb699d0d788ba6718e18fb8d
2828

example/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import 'package:flutter/material.dart';
22
import 'package:im_flutter_sdk/im_flutter_sdk.dart';
33

4-
var appKey = "easemob-demo#flutter";
4+
var appKey = "";
55

66
void main() async {
77
WidgetsFlutterBinding.ensureInitialized();
8+
assert(appKey.isNotEmpty, "appKey is empty");
89
EMOptions options =
910
EMOptions(appKey: appKey, autoLogin: false, debugModel: true);
1011
await EMClient.getInstance.init(options);
@@ -297,7 +298,7 @@ class _MyHomePageState extends State<MyHomePage> {
297298
content: _messageContent,
298299
);
299300

300-
EMClient.getInstance.chatManager.sendMessage(msg);
301+
await EMClient.getInstance.chatManager.sendMessage(msg);
301302
}
302303

303304
void _addLogToConsole(String log) {

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ packages:
9797
path: ".."
9898
relative: true
9999
source: path
100-
version: "4.0.3"
100+
version: "4.1.3"
101101
js:
102102
dependency: transitive
103103
description:

0 commit comments

Comments
 (0)