Merge pull request #25 from hrxiang/android

Android
main
hrxiang 4 years ago committed by GitHub
commit 97dfabe851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      example/pubspec.yaml
  2. 2
      lib/src/manager/im_conversation_manager.dart
  3. 5
      lib/src/manager/im_message_manager.dart
  4. 5
      pubspec.yaml

@ -3,7 +3,7 @@ description: Demonstrates how to use the flutter_openim_sdk plugin.
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
#publish_to: 'none' # Remove this line if you wish to publish to pub.dev
environment:
sdk: ">=2.12.0 <3.0.0"

@ -40,7 +40,7 @@ class ConversationManager {
}))
.then((value) => _toObj(value));
/// get conversation by id
/// get conversation list by id list
///
Future<List<ConversationInfo>> getMultipleConversation({
required List<String> conversationIDList,

@ -195,6 +195,7 @@ class MessageManager {
.then((value) => _toObj(value));
}
///
Future<Message> createImageMessageFromFullPath({required String imagePath}) {
return _channel
.invokeMethod(
@ -217,6 +218,7 @@ class MessageManager {
.then((value) => _toObj(value));
}
///
Future<Message> createSoundMessageFromFullPath({
required String soundPath,
required int duration,
@ -248,6 +250,7 @@ class MessageManager {
.then((value) => _toObj(value));
}
///
Future<Message> createVideoMessageFromFullPath({
required String videoPath,
required String videoType,
@ -309,6 +312,7 @@ class MessageManager {
.then((value) => _toObj(value));
}
///
Future<Message> createLocationMessage({
required double latitude,
required double longitude,
@ -325,6 +329,7 @@ class MessageManager {
.then((value) => _toObj(value));
}
///
Future<Message> createCustomMessage({
required Uint8List data,
required Uint8List extension,

@ -1,7 +1,8 @@
name: flutter_openim_sdk
description: A new Flutter project.
description: openim flutter plugin.
version: 0.0.1
homepage: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter
homepage: https://www.rentsoft.cn
repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter
environment:
sdk: ">=2.12.0 <3.0.0"

Loading…
Cancel
Save