Skip to content

Commit

Permalink
chore(repo): dependencies update (#2022)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brazol authored Sep 19, 2024
1 parent 9bdf928 commit 7766873
Show file tree
Hide file tree
Showing 12 changed files with 112 additions and 122 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/legacy_version_analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: legacy_version_analyze
env:
# Note: The versions below should be manually updated after a new stable
# version comes out.
flutter_version: "3.19.6"
flutter_version: "3.22.3"

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stream_flutter_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: stream_flutter_workflow
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
flutter_channel: "stable"
flutter_version: "3.22.2"
flutter_version: "3.24.3"

on:
pull_request:
Expand Down
8 changes: 4 additions & 4 deletions packages/stream_chat/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues

environment:
sdk: '>=3.3.0 <4.0.0'
sdk: '>=3.4.0 <4.0.0'

dependencies:
async: ^2.11.0
Expand All @@ -21,13 +21,13 @@ dependencies:
meta: ^1.9.1
mime: ^1.0.5
rate_limiter: ^1.0.0
rxdart: ^0.27.7
rxdart: ^0.28.0
synchronized: ^3.1.0+1
uuid: ^4.4.0
web_socket_channel: ^2.4.5
web_socket_channel: ^3.0.1

dev_dependencies:
build_runner: ^2.4.6
build_runner: ^2.4.9
freezed: ^2.4.2
json_serializable: ^6.7.1
mocktail: ^1.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:io';

import 'package:file_picker/file_picker.dart';
import 'package:file_selector/file_selector.dart';
import 'package:image_gallery_saver/image_gallery_saver.dart';
import 'package:image_gallery_saver_plus/image_gallery_saver_plus.dart';
import 'package:image_picker/image_picker.dart';
import 'package:path_provider/path_provider.dart';
import 'package:stream_chat_flutter/src/attachment/handler/common.dart';
Expand Down Expand Up @@ -196,7 +196,7 @@ class StreamAttachmentHandler extends StreamAttachmentHandlerBase {

// Now that the file is saved, we need to copy it to the user's gallery
// because the gallery only shows files that are in the gallery folder.
await ImageGallerySaver.saveFile(path);
await ImageGallerySaverPlus.saveFile(path);

// Once the file is copied to the gallery, we can delete the temporary file.
await file.delete();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// ignore_for_file: prefer-trailing-comma, cascade_invocations, lines_longer_than_80_chars

import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle;

import 'package:flutter/cupertino.dart';
Expand Down Expand Up @@ -150,7 +148,8 @@ class StreamMessageTextField extends StatefulWidget {
!identical(textInputAction, TextInputAction.newline) ||
maxLines == 1 ||
!identical(keyboardType, TextInputType.text),
'Use keyboardType TextInputType.multiline when using TextInputAction.newline on a multiline TextField.',
'Use keyboardType TextInputType.multiline when using '
'TextInputAction.newline on a multiline TextField.',
),
keyboardType = keyboardType ??
(maxLines == 1 ? TextInputType.text : TextInputType.multiline),
Expand Down Expand Up @@ -509,6 +508,7 @@ class StreamMessageTextField extends StatefulWidget {
/// {@macro flutter.widgets.editableText.scribbleEnabled}
final bool scribbleEnabled;

// ignore: lines_longer_than_80_chars
/// {@macro flutter.services.TextInputConfiguration.enableIMEPersonalizedLearning}
final bool enableIMEPersonalizedLearning;

Expand All @@ -521,99 +521,87 @@ class StreamMessageTextField extends StatefulWidget {
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties.add(DiagnosticsProperty<StreamMessageInputController>(
'controller', controller,
defaultValue: null));
properties.add(DiagnosticsProperty<FocusNode>('focusNode', focusNode,
defaultValue: null));
properties
.add(DiagnosticsProperty<bool>('enabled', enabled, defaultValue: null));
properties.add(DiagnosticsProperty<InputDecoration>(
'decoration', decoration,
defaultValue: const InputDecoration()));
properties.add(DiagnosticsProperty<TextInputType>(
'keyboardType', keyboardType,
defaultValue: TextInputType.text));
properties.add(
DiagnosticsProperty<TextStyle>('style', style, defaultValue: null));
properties.add(
DiagnosticsProperty<bool>('autofocus', autofocus, defaultValue: false));
properties.add(DiagnosticsProperty<String>(
'obscuringCharacter', obscuringCharacter,
defaultValue: '•'));
properties.add(DiagnosticsProperty<bool>('obscureText', obscureText,
defaultValue: false));
properties.add(DiagnosticsProperty<bool>('autocorrect', autocorrect,
defaultValue: true));
properties.add(EnumProperty<SmartDashesType>(
'smartDashesType', smartDashesType,
defaultValue:
obscureText ? SmartDashesType.disabled : SmartDashesType.enabled));
properties.add(EnumProperty<SmartQuotesType>(
'smartQuotesType', smartQuotesType,
defaultValue:
obscureText ? SmartQuotesType.disabled : SmartQuotesType.enabled));
properties.add(DiagnosticsProperty<bool>(
'enableSuggestions', enableSuggestions,
defaultValue: true));
properties.add(IntProperty('maxLines', maxLines, defaultValue: 1));
properties.add(IntProperty('minLines', minLines, defaultValue: null));
properties.add(
DiagnosticsProperty<bool>('expands', expands, defaultValue: false));
properties.add(IntProperty('maxLength', maxLength, defaultValue: null));
properties.add(EnumProperty<MaxLengthEnforcement>(
'maxLengthEnforcement', maxLengthEnforcement,
defaultValue: null));
properties.add(EnumProperty<TextInputAction>(
'textInputAction', textInputAction,
defaultValue: null));
properties.add(EnumProperty<TextCapitalization>(
'textCapitalization', textCapitalization,
defaultValue: TextCapitalization.none));
properties.add(EnumProperty<TextAlign>('textAlign', textAlign,
defaultValue: TextAlign.start));
properties.add(DiagnosticsProperty<TextAlignVertical>(
'textAlignVertical', textAlignVertical,
defaultValue: null));
properties.add(EnumProperty<TextDirection>('textDirection', textDirection,
defaultValue: null));
properties
.add(DoubleProperty('cursorWidth', cursorWidth, defaultValue: 2.0));
properties
.add(DoubleProperty('cursorHeight', cursorHeight, defaultValue: null));
properties.add(DiagnosticsProperty<Radius>('cursorRadius', cursorRadius,
defaultValue: null));
properties
.add(ColorProperty('cursorColor', cursorColor, defaultValue: null));
properties.add(DiagnosticsProperty<Brightness>(
'keyboardAppearance', keyboardAppearance,
defaultValue: null));
properties.add(DiagnosticsProperty<EdgeInsetsGeometry>(
'scrollPadding', scrollPadding,
defaultValue: const EdgeInsets.all(20)));
properties.add(FlagProperty('selectionEnabled',
value: selectionEnabled,
defaultValue: true,
ifFalse: 'selection disabled'));
properties.add(DiagnosticsProperty<TextSelectionControls>(
'selectionControls', selectionControls,
defaultValue: null));
properties.add(DiagnosticsProperty<ScrollController>(
'scrollController', scrollController,
defaultValue: null));
properties.add(DiagnosticsProperty<ScrollPhysics>(
'scrollPhysics', scrollPhysics,
defaultValue: null));
properties.add(DiagnosticsProperty<Clip>('clipBehavior', clipBehavior,
defaultValue: Clip.hardEdge));
properties.add(DiagnosticsProperty<bool>('scribbleEnabled', scribbleEnabled,
defaultValue: true));
properties.add(DiagnosticsProperty<bool>(
'enableIMEPersonalizedLearning', enableIMEPersonalizedLearning,
defaultValue: true));
properties.add(DiagnosticsProperty<ContentInsertionConfiguration>(
'contentInsertionConfiguration', contentInsertionConfiguration,
defaultValue: null));
..add(DiagnosticsProperty<StreamMessageInputController>(
'controller', controller,
defaultValue: null))
..add(DiagnosticsProperty<FocusNode>('focusNode', focusNode,
defaultValue: null))
..add(DiagnosticsProperty<bool>('enabled', enabled, defaultValue: null))
..add(DiagnosticsProperty<InputDecoration>('decoration', decoration,
defaultValue: const InputDecoration()))
..add(DiagnosticsProperty<TextInputType>('keyboardType', keyboardType,
defaultValue: TextInputType.text))
..add(DiagnosticsProperty<TextStyle>('style', style, defaultValue: null))
..add(DiagnosticsProperty<bool>('autofocus', autofocus,
defaultValue: false))
..add(DiagnosticsProperty<String>(
'obscuringCharacter', obscuringCharacter,
defaultValue: '•'))
..add(DiagnosticsProperty<bool>('obscureText', obscureText,
defaultValue: false))
..add(DiagnosticsProperty<bool>('autocorrect', autocorrect,
defaultValue: true))
..add(EnumProperty<SmartDashesType>('smartDashesType', smartDashesType,
defaultValue:
obscureText ? SmartDashesType.disabled : SmartDashesType.enabled))
..add(EnumProperty<SmartQuotesType>('smartQuotesType', smartQuotesType,
defaultValue:
obscureText ? SmartQuotesType.disabled : SmartQuotesType.enabled))
..add(DiagnosticsProperty<bool>('enableSuggestions', enableSuggestions,
defaultValue: true))
..add(IntProperty('maxLines', maxLines, defaultValue: 1))
..add(IntProperty('minLines', minLines, defaultValue: null))
..add(DiagnosticsProperty<bool>('expands', expands, defaultValue: false))
..add(IntProperty('maxLength', maxLength, defaultValue: null))
..add(EnumProperty<MaxLengthEnforcement>(
'maxLengthEnforcement', maxLengthEnforcement,
defaultValue: null))
..add(EnumProperty<TextInputAction>('textInputAction', textInputAction,
defaultValue: null))
..add(EnumProperty<TextCapitalization>(
'textCapitalization', textCapitalization,
defaultValue: TextCapitalization.none))
..add(EnumProperty<TextAlign>('textAlign', textAlign,
defaultValue: TextAlign.start))
..add(DiagnosticsProperty<TextAlignVertical>(
'textAlignVertical', textAlignVertical,
defaultValue: null))
..add(EnumProperty<TextDirection>('textDirection', textDirection,
defaultValue: null))
..add(DoubleProperty('cursorWidth', cursorWidth, defaultValue: 2.0))
..add(DoubleProperty('cursorHeight', cursorHeight, defaultValue: null))
..add(DiagnosticsProperty<Radius>('cursorRadius', cursorRadius,
defaultValue: null))
..add(ColorProperty('cursorColor', cursorColor, defaultValue: null))
..add(DiagnosticsProperty<Brightness>(
'keyboardAppearance', keyboardAppearance,
defaultValue: null))
..add(DiagnosticsProperty<EdgeInsetsGeometry>(
'scrollPadding', scrollPadding,
defaultValue: const EdgeInsets.all(20)))
..add(FlagProperty('selectionEnabled',
value: selectionEnabled,
defaultValue: true,
ifFalse: 'selection disabled'))
..add(DiagnosticsProperty<TextSelectionControls>(
'selectionControls', selectionControls,
defaultValue: null))
..add(DiagnosticsProperty<ScrollController>(
'scrollController', scrollController,
defaultValue: null))
..add(DiagnosticsProperty<ScrollPhysics>('scrollPhysics', scrollPhysics,
defaultValue: null))
..add(DiagnosticsProperty<Clip>('clipBehavior', clipBehavior,
defaultValue: Clip.hardEdge))
..add(DiagnosticsProperty<bool>('scribbleEnabled', scribbleEnabled,
defaultValue: true))
..add(DiagnosticsProperty<bool>(
'enableIMEPersonalizedLearning', enableIMEPersonalizedLearning,
defaultValue: true))
..add(DiagnosticsProperty<ContentInsertionConfiguration>(
'contentInsertionConfiguration', contentInsertionConfiguration,
defaultValue: null));
}
}

Expand Down
12 changes: 6 additions & 6 deletions packages/stream_chat_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues

environment:
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"

dependencies:
cached_network_image: ^3.3.1
Expand All @@ -26,7 +26,7 @@ dependencies:
flutter_portal: ^1.1.4
flutter_svg: ^2.0.10+1
http_parser: ^4.0.2
image_gallery_saver: ^2.0.3
image_gallery_saver_plus: ^3.0.5
image_picker: ^1.1.2
image_size_getter: ^2.1.3
jiffy: ^6.2.1
Expand All @@ -38,8 +38,8 @@ dependencies:
path_provider: ^2.1.3
photo_manager: ^3.2.0
photo_view: ^0.15.0
rxdart: ^0.27.7
share_plus: ^8.0.3
rxdart: ^0.28.0
share_plus: ^10.0.2
shimmer: ^3.0.0
stream_chat_flutter_core: ^8.0.0
synchronized: ^3.1.0+1
Expand Down Expand Up @@ -77,4 +77,4 @@ dev_dependencies:
sdk: flutter
golden_toolkit: ^0.15.0
mocktail: ^1.0.0
path: ^1.8.3
path: ^1.8.3
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void main() {
child: StreamChannel(
channel: channel,
child: PopScope(
onPopInvoked: (bool didPop) async => false,
onPopInvokedWithResult: (bool didPop, res) async => false,
child: const Scaffold(
body: StreamGalleryFooter(
mediaAttachmentPackages: [],
Expand All @@ -94,7 +94,7 @@ void main() {
child: StreamChannel(
channel: channel,
child: PopScope(
onPopInvoked: (bool didPop) async => false,
onPopInvokedWithResult: (bool didPop, res) async => false,
child: const Scaffold(
body: StreamGalleryFooter(
mediaAttachmentPackages: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void main() {
child: StreamChannel(
channel: channel,
child: PopScope(
onPopInvoked: (bool didPop) async => false,
onPopInvokedWithResult: (bool didPop, res) async => false,
child: Scaffold(
appBar: StreamGalleryHeader(
attachment: MockAttachment(),
Expand All @@ -95,7 +95,7 @@ void main() {
child: StreamChannel(
channel: channel,
child: PopScope(
onPopInvoked: (bool didPop) async => false,
onPopInvokedWithResult: (bool didPop, res) async => false,
child: Scaffold(
appBar: StreamGalleryHeader(
userName: 'User',
Expand Down
8 changes: 4 additions & 4 deletions packages/stream_chat_flutter_core/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues

environment:
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"

dependencies:
collection: ^1.17.2
Expand All @@ -16,11 +16,11 @@ dependencies:
sdk: flutter
freezed_annotation: ^2.4.1
meta: ^1.9.1
rxdart: ^0.27.7
rxdart: ^0.28.0
stream_chat: ^8.0.0

dev_dependencies:
build_runner: ^2.4.6
build_runner: ^2.4.9
fake_async: ^1.3.1
flutter_test:
sdk: flutter
Expand Down
4 changes: 2 additions & 2 deletions packages/stream_chat_localizations/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues

environment:
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// coverage:ignore-file
// TODO: Replace with WASM implementation
// ignore: deprecated_member_use
import 'package:drift/web.dart';
import 'package:stream_chat_persistence/src/db/drift_chat_database.dart';
import 'package:stream_chat_persistence/src/stream_chat_persistence_client.dart';
Expand Down
Loading

0 comments on commit 7766873

Please sign in to comment.