Merge branch 'develop' into dependabot/github_actions/amannn/action-semantic-pull-request-5.4.0
This commit is contained in:
@@ -3,6 +3,7 @@ name: stream_flutter_workflow
|
|||||||
env:
|
env:
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
||||||
flutter_channel: "stable"
|
flutter_channel: "stable"
|
||||||
|
flutter_version: "3.10.6"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -36,6 +37,7 @@ jobs:
|
|||||||
- name: "Install Flutter"
|
- name: "Install Flutter"
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
|
flutter-version: ${{ env.flutter_version }}
|
||||||
cache: true
|
cache: true
|
||||||
channel: ${{ env.flutter_channel }}
|
channel: ${{ env.flutter_channel }}
|
||||||
- name: "Install Tools"
|
- name: "Install Tools"
|
||||||
@@ -63,6 +65,7 @@ jobs:
|
|||||||
- name: "Install Flutter"
|
- name: "Install Flutter"
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
|
flutter-version: ${{ env.flutter_version }}
|
||||||
cache: true
|
cache: true
|
||||||
channel: ${{ env.flutter_channel }}
|
channel: ${{ env.flutter_channel }}
|
||||||
- name: "Install Tools"
|
- name: "Install Tools"
|
||||||
@@ -88,6 +91,7 @@ jobs:
|
|||||||
- name: "Install Flutter"
|
- name: "Install Flutter"
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
|
flutter-version: ${{ env.flutter_version }}
|
||||||
cache: true
|
cache: true
|
||||||
channel: ${{ env.flutter_channel }}
|
channel: ${{ env.flutter_channel }}
|
||||||
- name: "Install Tools"
|
- name: "Install Tools"
|
||||||
@@ -106,27 +110,27 @@ jobs:
|
|||||||
token: ${{secrets.CODECOV_TOKEN}}
|
token: ${{secrets.CODECOV_TOKEN}}
|
||||||
files: packages/*/coverage/lcov.info
|
files: packages/*/coverage/lcov.info
|
||||||
- name: "Stream Chat Coverage Check"
|
- name: "Stream Chat Coverage Check"
|
||||||
uses: VeryGoodOpenSource/very_good_coverage@v2.1.0
|
uses: VeryGoodOpenSource/very_good_coverage@v2.2.0
|
||||||
with:
|
with:
|
||||||
path: packages/stream_chat/coverage/lcov.info
|
path: packages/stream_chat/coverage/lcov.info
|
||||||
min_coverage: 79
|
min_coverage: 79
|
||||||
- name: "Stream Chat Localizations Coverage Check"
|
- name: "Stream Chat Localizations Coverage Check"
|
||||||
uses: VeryGoodOpenSource/very_good_coverage@v2.1.0
|
uses: VeryGoodOpenSource/very_good_coverage@v2.2.0
|
||||||
with:
|
with:
|
||||||
path: packages/stream_chat_localizations/coverage/lcov.info
|
path: packages/stream_chat_localizations/coverage/lcov.info
|
||||||
min_coverage: 100
|
min_coverage: 100
|
||||||
- name: "Stream Chat Persistence Coverage Check"
|
- name: "Stream Chat Persistence Coverage Check"
|
||||||
uses: VeryGoodOpenSource/very_good_coverage@v2.1.0
|
uses: VeryGoodOpenSource/very_good_coverage@v2.2.0
|
||||||
with:
|
with:
|
||||||
path: packages/stream_chat_persistence/coverage/lcov.info
|
path: packages/stream_chat_persistence/coverage/lcov.info
|
||||||
min_coverage: 95
|
min_coverage: 95
|
||||||
- name: "Stream Chat Flutter Core Coverage Check"
|
- name: "Stream Chat Flutter Core Coverage Check"
|
||||||
uses: VeryGoodOpenSource/very_good_coverage@v2.1.0
|
uses: VeryGoodOpenSource/very_good_coverage@v2.2.0
|
||||||
with:
|
with:
|
||||||
path: packages/stream_chat_flutter_core/coverage/lcov.info
|
path: packages/stream_chat_flutter_core/coverage/lcov.info
|
||||||
min_coverage: 30
|
min_coverage: 30
|
||||||
- name: "Stream Chat Flutter Coverage Check"
|
- name: "Stream Chat Flutter Coverage Check"
|
||||||
uses: VeryGoodOpenSource/very_good_coverage@v2.1.0
|
uses: VeryGoodOpenSource/very_good_coverage@v2.2.0
|
||||||
with:
|
with:
|
||||||
path: packages/stream_chat_flutter/coverage/lcov.info
|
path: packages/stream_chat_flutter/coverage/lcov.info
|
||||||
min_coverage: 44
|
min_coverage: 44
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# 6.10.0
|
||||||
|
|
||||||
|
🐞 Fixed
|
||||||
|
|
||||||
|
- [[#1753]](https://github.com/GetStream/stream-chat-flutter/issues/1753) Fixed Unhandled null
|
||||||
|
check operator exception when user is removed from a channel.
|
||||||
|
|
||||||
## 6.9.0
|
## 6.9.0
|
||||||
|
|
||||||
🐞 Fixed
|
🐞 Fixed
|
||||||
|
|||||||
@@ -1658,7 +1658,7 @@ class ClientState {
|
|||||||
)
|
)
|
||||||
.listen((event) async {
|
.listen((event) async {
|
||||||
final isCurrentUser = event.user!.id == currentUser!.id;
|
final isCurrentUser = event.user!.id == currentUser!.id;
|
||||||
if (isCurrentUser) {
|
if (isCurrentUser && event.channel != null) {
|
||||||
final eventChannel = event.channel!;
|
final eventChannel = event.channel!;
|
||||||
await _client.chatPersistenceClient
|
await _client.chatPersistenceClient
|
||||||
?.deleteChannels([eventChannel.cid]);
|
?.deleteChannels([eventChannel.cid]);
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ import 'package:stream_chat/src/client/client.dart';
|
|||||||
/// Current package version
|
/// Current package version
|
||||||
/// Used in [StreamChatClient] to build the `x-stream-client` header
|
/// Used in [StreamChatClient] to build the `x-stream-client` header
|
||||||
// ignore: constant_identifier_names
|
// ignore: constant_identifier_names
|
||||||
const PACKAGE_VERSION = '6.9.0';
|
const PACKAGE_VERSION = '6.10.0';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat
|
name: stream_chat
|
||||||
homepage: https://getstream.io/
|
homepage: https://getstream.io/
|
||||||
description: The official Dart client for Stream Chat, a service for building chat applications.
|
description: The official Dart client for Stream Chat, a service for building chat applications.
|
||||||
version: 6.9.0
|
version: 6.10.0
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
|
|||||||
@@ -164,7 +164,8 @@ void main() {
|
|||||||
expect(
|
expect(
|
||||||
e.message,
|
e.message,
|
||||||
"The connection errored: Dio can't establish a new connection"
|
"The connection errored: Dio can't establish a new connection"
|
||||||
' after it was closed.',
|
' after it was closed. This indicates an error which most likely'
|
||||||
|
' cannot be solved by the library.',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Upcoming
|
# 6.12.0
|
||||||
|
|
||||||
🐞 Fixed
|
🐞 Fixed
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
// ignore_for_file: public_member_api_docs
|
||||||
|
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||||
|
|
||||||
|
import 'package:stream_chat_flutter_example/debug/error_dialog.dart';
|
||||||
|
|
||||||
|
class DebugAddUser extends StatelessWidget {
|
||||||
|
const DebugAddUser({
|
||||||
|
super.key,
|
||||||
|
required this.client,
|
||||||
|
required this.channel,
|
||||||
|
});
|
||||||
|
|
||||||
|
final StreamChatClient client;
|
||||||
|
final Channel channel;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Padding(
|
||||||
|
padding: const EdgeInsets.all(8),
|
||||||
|
child: TextField(
|
||||||
|
decoration: const InputDecoration(
|
||||||
|
labelText: 'Add User',
|
||||||
|
hintText: 'User Id',
|
||||||
|
isDense: true,
|
||||||
|
border: OutlineInputBorder(),
|
||||||
|
),
|
||||||
|
onSubmitted: (value) async {
|
||||||
|
final userId = value.trim();
|
||||||
|
try {
|
||||||
|
debugPrint('[addUser] userId: $userId');
|
||||||
|
final result = await client.addChannelMembers(
|
||||||
|
channel.id!,
|
||||||
|
channel.type,
|
||||||
|
[userId],
|
||||||
|
);
|
||||||
|
debugPrint('[addUser] result: $result');
|
||||||
|
} catch (e) {
|
||||||
|
debugPrint('[addUser] failed: $e');
|
||||||
|
showErrorDialog(context, e, 'Add User');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
// ignore_for_file: public_member_api_docs
|
||||||
|
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||||
|
|
||||||
|
import 'package:stream_chat_flutter_example/debug/error_dialog.dart';
|
||||||
|
|
||||||
|
class DebugRemoveUser extends StatelessWidget {
|
||||||
|
const DebugRemoveUser({
|
||||||
|
super.key,
|
||||||
|
required this.client,
|
||||||
|
required this.channel,
|
||||||
|
});
|
||||||
|
|
||||||
|
final StreamChatClient client;
|
||||||
|
final Channel channel;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Padding(
|
||||||
|
padding: const EdgeInsets.all(8),
|
||||||
|
child: TextField(
|
||||||
|
decoration: const InputDecoration(
|
||||||
|
labelText: 'Remove User',
|
||||||
|
hintText: 'User Id',
|
||||||
|
isDense: true,
|
||||||
|
border: OutlineInputBorder(),
|
||||||
|
),
|
||||||
|
onSubmitted: (value) async {
|
||||||
|
final userId = value.trim();
|
||||||
|
try {
|
||||||
|
debugPrint('[removeUser] userId: $userId');
|
||||||
|
final result = await client.removeChannelMembers(
|
||||||
|
channel.id!,
|
||||||
|
channel.type,
|
||||||
|
[userId],
|
||||||
|
);
|
||||||
|
debugPrint('[removeUser] result: $result');
|
||||||
|
} catch (e) {
|
||||||
|
debugPrint('[removeUser] failed: $e');
|
||||||
|
showErrorDialog(context, e, 'Remove User');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -4,9 +4,11 @@ import 'dart:async';
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||||
|
import 'package:stream_chat_flutter_example/debug/actions/add_user.dart';
|
||||||
import 'package:stream_chat_flutter_example/debug/actions/ban_user.dart';
|
import 'package:stream_chat_flutter_example/debug/actions/ban_user.dart';
|
||||||
import 'package:stream_chat_flutter_example/debug/actions/mute_user.dart';
|
import 'package:stream_chat_flutter_example/debug/actions/mute_user.dart';
|
||||||
import 'package:stream_chat_flutter_example/debug/actions/remove_shadow_ban.dart';
|
import 'package:stream_chat_flutter_example/debug/actions/remove_shadow_ban.dart';
|
||||||
|
import 'package:stream_chat_flutter_example/debug/actions/remove_user.dart';
|
||||||
import 'package:stream_chat_flutter_example/debug/actions/shadow_ban.dart';
|
import 'package:stream_chat_flutter_example/debug/actions/shadow_ban.dart';
|
||||||
import 'package:stream_chat_flutter_example/debug/actions/unban_user.dart';
|
import 'package:stream_chat_flutter_example/debug/actions/unban_user.dart';
|
||||||
import 'package:stream_chat_flutter_example/debug/actions/unmute_user.dart';
|
import 'package:stream_chat_flutter_example/debug/actions/unmute_user.dart';
|
||||||
@@ -82,6 +84,10 @@ class _DebugChannelPageState extends State<DebugChannelPage> {
|
|||||||
DebugShadowBan(client: _channel.client),
|
DebugShadowBan(client: _channel.client),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
DebugRemoveShadowBan(client: _channel.client),
|
DebugRemoveShadowBan(client: _channel.client),
|
||||||
|
const SizedBox(height: 8),
|
||||||
|
DebugAddUser(client: _channel.client, channel: _channel),
|
||||||
|
const SizedBox(height: 8),
|
||||||
|
DebugRemoveUser(client: _channel.client, channel: _channel),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_flutter
|
name: stream_chat_flutter
|
||||||
homepage: https://github.com/GetStream/stream-chat-flutter
|
homepage: https://github.com/GetStream/stream-chat-flutter
|
||||||
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
|
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
|
||||||
version: 6.11.0
|
version: 6.12.0
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ dependencies:
|
|||||||
rxdart: ^0.27.7
|
rxdart: ^0.27.7
|
||||||
share_plus: ^7.1.0
|
share_plus: ^7.1.0
|
||||||
shimmer: ^3.0.0
|
shimmer: ^3.0.0
|
||||||
stream_chat_flutter_core: ^6.10.0
|
stream_chat_flutter_core: ^6.11.0
|
||||||
synchronized: ^3.1.0
|
synchronized: ^3.1.0
|
||||||
thumblr: ^0.0.4
|
thumblr: ^0.0.4
|
||||||
url_launcher: ^6.1.12
|
url_launcher: ^6.1.12
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
## UNRELEASED
|
## 6.11.0
|
||||||
|
|
||||||
🐞 Fixed
|
🐞 Fixed
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_flutter_core
|
name: stream_chat_flutter_core
|
||||||
homepage: https://github.com/GetStream/stream-chat-flutter
|
homepage: https://github.com/GetStream/stream-chat-flutter
|
||||||
description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter.
|
description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter.
|
||||||
version: 6.10.0
|
version: 6.11.0
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ dependencies:
|
|||||||
freezed_annotation: ^2.4.1
|
freezed_annotation: ^2.4.1
|
||||||
meta: ^1.9.1
|
meta: ^1.9.1
|
||||||
rxdart: ^0.27.7
|
rxdart: ^0.27.7
|
||||||
stream_chat: ^6.9.0
|
stream_chat: ^6.10.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
build_runner: ^2.4.6
|
build_runner: ^2.4.6
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
## 5.12.0
|
||||||
|
|
||||||
|
* Updated `stream_chat_flutter` dependency to [`6.12.0`](https://pub.dev/packages/stream_chat_flutter/changelog).
|
||||||
|
|
||||||
## 5.11.0
|
## 5.11.0
|
||||||
|
|
||||||
* Updated `stream_chat_flutter` dependency to [`6.11.0`](https://pub.dev/packages/stream_chat_flutter/changelog).
|
* Updated `stream_chat_flutter` dependency to [`6.11.0`](https://pub.dev/packages/stream_chat_flutter/changelog).
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: stream_chat_localizations
|
name: stream_chat_localizations
|
||||||
description: The Official localizations for Stream Chat Flutter, a service for building chat applications
|
description: The Official localizations for Stream Chat Flutter, a service for building chat applications
|
||||||
version: 5.11.0
|
version: 5.12.0
|
||||||
homepage: https://github.com/GetStream/stream-chat-flutter
|
homepage: https://github.com/GetStream/stream-chat-flutter
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
@@ -14,7 +14,7 @@ dependencies:
|
|||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_localizations:
|
flutter_localizations:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
stream_chat_flutter: ^6.11.0
|
stream_chat_flutter: ^6.12.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
## 6.10.0
|
||||||
|
|
||||||
|
- Updated `stream_chat` dependency to [`6.10.0`](https://pub.dev/packages/stream_chat/changelog).
|
||||||
|
|
||||||
## 6.9.0
|
## 6.9.0
|
||||||
|
|
||||||
- Updated `stream_chat` dependency to [`6.9.0`](https://pub.dev/packages/stream_chat/changelog).
|
- Updated `stream_chat` dependency to [`6.9.0`](https://pub.dev/packages/stream_chat/changelog).
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_persistence
|
name: stream_chat_persistence
|
||||||
homepage: https://github.com/GetStream/stream-chat-flutter
|
homepage: https://github.com/GetStream/stream-chat-flutter
|
||||||
description: Official Stream Chat Persistence library. Build your own chat experience using Dart and Flutter.
|
description: Official Stream Chat Persistence library. Build your own chat experience using Dart and Flutter.
|
||||||
version: 6.9.0
|
version: 6.10.0
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ dependencies:
|
|||||||
path: ^1.8.3
|
path: ^1.8.3
|
||||||
path_provider: ^2.1.0
|
path_provider: ^2.1.0
|
||||||
sqlite3_flutter_libs: ^0.5.15
|
sqlite3_flutter_libs: ^0.5.15
|
||||||
stream_chat: ^6.9.0
|
stream_chat: ^6.10.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
build_runner: ^2.4.6
|
build_runner: ^2.4.6
|
||||||
|
|||||||
Reference in New Issue
Block a user