From 91ff5e941d568a97891e84b647abb202341ea4de Mon Sep 17 00:00:00 2001 From: Wooyoung Chung Date: Thu, 22 Apr 2021 14:54:05 -0700 Subject: [PATCH] Updated docs and readme --- CHANGELOG.md | 6 +++++- README.md | 7 +------ analysis_options.yaml | 3 +-- lib/core/models/user.dart | 2 +- lib/sdk/internal/sendbird_sdk_internal.dart | 4 ++-- pubspec.lock | 2 +- pubspec.yaml | 5 +++-- 7 files changed, 14 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34e6035f..54f9e223 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [3.0.11] - Apr 22, 2021 +* Updated pubspec and README +* Fixed typo + ## [3.0.10] - Apr 19, 2021 * Fixed register token endpoint * Fixed typo @@ -79,4 +83,4 @@ * Improved stability ## [3.0.0] developer preview -* Developer preview \ No newline at end of file +* Developer preview diff --git a/README.md b/README.md index 7ce74c78..c17d29d7 100644 --- a/README.md +++ b/README.md @@ -66,12 +66,7 @@ Installing the Chat SDK is a simple process if you’re familiar with using exte - Add following dependency in `pubspec.yaml`. ```yaml dependencies: - ... - sendbird_sdk: - hosted: - name: sendbird_sdk - url: https://repo.sendbird.com/public/dart - version: ^3.0.6 + sendbird_sdk: ^3.0.11 ``` - Run `flutter pub get` command in your project directory. diff --git a/analysis_options.yaml b/analysis_options.yaml index 60b9fbbf..0d2be0de 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -13,5 +13,4 @@ linter: analyzer: exclude: - example - - lib/**/*.g.dart - - lib/params/message_change_logs_params.g.dart \ No newline at end of file + - lib/**/*.g.dart \ No newline at end of file diff --git a/lib/core/models/user.dart b/lib/core/models/user.dart index ded805b9..851103ba 100644 --- a/lib/core/models/user.dart +++ b/lib/core/models/user.dart @@ -130,7 +130,7 @@ class User { factory User.fromJson(Map json) { if (json['guest_id'] != null) json['user_id'] = json['guest_id']; if (json['session_tokens'] != null && - (json['session_tokens'] as List).isEmpty) { + (json['session_tokens'] as List).isNotEmpty) { final tokens = List.from(json['session_tokens'] as List); json['session_token'] = tokens?.first['session_token']; } diff --git a/lib/sdk/internal/sendbird_sdk_internal.dart b/lib/sdk/internal/sendbird_sdk_internal.dart index b00673a4..e7ef069b 100644 --- a/lib/sdk/internal/sendbird_sdk_internal.dart +++ b/lib/sdk/internal/sendbird_sdk_internal.dart @@ -24,8 +24,8 @@ import 'package:sendbird_sdk/utils/async/async_queue.dart'; import 'package:sendbird_sdk/utils/logger.dart'; import 'package:sendbird_sdk/utils/parsers.dart'; -const sdk_version = '3.0.10'; -const platform = 'flatter'; +const sdk_version = '3.0.11'; +const platform = 'flutter'; const platform_version = '1.22.5'; /// Internal implementation for main class. Do not directly access this class. diff --git a/pubspec.lock b/pubspec.lock index e459a9cd..7b487487 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -722,7 +722,7 @@ packages: source: hosted version: "0.1.2" yaml: - dependency: "direct main" + dependency: transitive description: name: yaml url: "https://pub.dartlang.org" diff --git a/pubspec.yaml b/pubspec.yaml index d62fc314..85891ed1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,9 @@ name: sendbird_sdk description: The Flutter SDK for Sendbird Chat brings modern messenger chat features to your iOS and Android deployments.. -version: 3.0.10 +version: 3.0.11 homepage: https://www.sendbird.com +repository: https://www.github.com/sendbird/sendbird-sdk-flutter +documentation: https://sendbird.com/docs/chat/v3/flutter/getting-started/about-chat-sdk environment: sdk: ">=2.7.0 <3.0.0" @@ -19,7 +21,6 @@ dependencies: device_info: ^1.0.0 logger: ^0.9.4 mime: ^0.9.7 - yaml: ^2.2.1 connectivity: ^2.0.2 meta: ^1.2.0 http_parser: ^3.1.0