diff --git a/.fvmrc b/.fvmrc index 3a62807c6a..62fcd3217c 100644 --- a/.fvmrc +++ b/.fvmrc @@ -1,3 +1,3 @@ { - "flutter": "3.38.1" + "flutter": "3.41.0" } diff --git a/.github/workflows/legacy_version_analyze.yml b/.github/workflows/legacy_version_analyze.yml index 0fa5b5b26a..94c3d9aeaa 100644 --- a/.github/workflows/legacy_version_analyze.yml +++ b/.github/workflows/legacy_version_analyze.yml @@ -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.38.1" + flutter_version: "3.41.0" on: push: diff --git a/docs/docs_screenshots/pubspec.yaml b/docs/docs_screenshots/pubspec.yaml index 224d1c77d7..92bfa69a1c 100644 --- a/docs/docs_screenshots/pubspec.yaml +++ b/docs/docs_screenshots/pubspec.yaml @@ -11,8 +11,8 @@ publish_to: none # 2. Run `melos bootstrap` to apply changes. environment: - sdk: ^3.10.0 - flutter: ">=3.38.1" + sdk: ^3.11.0 + flutter: ">=3.41.0" dependencies: flutter: diff --git a/melos.yaml b/melos.yaml index 70607b0fd7..ea9832bb69 100644 --- a/melos.yaml +++ b/melos.yaml @@ -24,9 +24,9 @@ command: # Dart and Flutter environment used in the project. environment: - sdk: ^3.10.0 + sdk: ^3.11.0 # We are not using carat '^' syntax here because flutter don't follow semantic versioning. - flutter: ">=3.38.1" + flutter: ">=3.41.0" # List of all the dependencies used in the project. dependencies: diff --git a/packages/stream_chat/CHANGELOG.md b/packages/stream_chat/CHANGELOG.md index e9914e8c5a..f321298d01 100644 --- a/packages/stream_chat/CHANGELOG.md +++ b/packages/stream_chat/CHANGELOG.md @@ -16,6 +16,7 @@ 🔄 Changed - Raised minimum versions of bundled Dart dependencies (`async`, `collection`, `dio`, `equatable`, `http_parser`, `json_annotation`, `logging`, `synchronized`, `uuid`, `web_socket_channel`) to current resolved versions. +- Raised minimum Dart SDK to `^3.11.0`. - Tightened `Channel.isGroup` from `memberCount != 2` to `memberCount > 2 || !isDistinct`. Two-member non-distinct channels now correctly report as groups, and 1-member distinct channels no longer do. Migrate via `!channel.isOneToOne` or `channel.memberCount != 2`. - Tightened `Channel.isDistinct` to require the `!members-` prefix (with trailing dash), matching the backend's `DistinctChannelPrefix` constant. Real server-generated ids always include the dash; only malformed/test ids that previously matched the looser `!members` check are affected. - Renamed `SortedListX.merge` (added in 9.24.0) → `SortedListX.mergeSorted` and moved the unsorted/iterable variant to `IterableMergeX.merge`. Callers on `List` that want sorted output should switch to `mergeSorted`; callers on `Iterable` keep using `merge`. diff --git a/packages/stream_chat/example/pubspec.yaml b/packages/stream_chat/example/pubspec.yaml index 02420b70c3..ff126bf5db 100644 --- a/packages/stream_chat/example/pubspec.yaml +++ b/packages/stream_chat/example/pubspec.yaml @@ -17,8 +17,8 @@ version: 1.0.0+1 # 2. Add it to the melos.yaml file for future updates. environment: - sdk: ^3.10.0 - flutter: ">=3.38.1" + sdk: ^3.11.0 + flutter: ">=3.41.0" dependencies: cupertino_icons: ^1.0.3 diff --git a/packages/stream_chat/pubspec.yaml b/packages/stream_chat/pubspec.yaml index a2e3a3b093..4b2ed40df2 100644 --- a/packages/stream_chat/pubspec.yaml +++ b/packages/stream_chat/pubspec.yaml @@ -18,7 +18,7 @@ issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues # 2. Add it to the melos.yaml file for future updates. environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: async: ^2.13.1 diff --git a/packages/stream_chat_flutter/CHANGELOG.md b/packages/stream_chat_flutter/CHANGELOG.md index c1c36ef880..75e10b0848 100644 --- a/packages/stream_chat_flutter/CHANGELOG.md +++ b/packages/stream_chat_flutter/CHANGELOG.md @@ -26,6 +26,7 @@ - Re-export `StreamAvatarTheme` and `StreamAvatarThemeData` from `stream_core_flutter` so consumers can theme avatars without adding a separate `stream_core_flutter` import. - Added `messageLeading`, `messageHeader`, and `messageFooter` factory slots to `streamChatComponentBuilders` for overriding the message item's avatar, annotations, or metadata row without replacing the whole `messageItem`. - Bumped `jiffy` to `^6.4.5` to pick up cached locale and `DateFormat` lookups for cheaper relative-time formatting. +- Raised minimum Flutter to `>=3.41.0` and Dart SDK to `^3.11.0`. 🛑️ Breaking diff --git a/packages/stream_chat_flutter/example/pubspec.yaml b/packages/stream_chat_flutter/example/pubspec.yaml index 7f00070ed8..89b886b373 100644 --- a/packages/stream_chat_flutter/example/pubspec.yaml +++ b/packages/stream_chat_flutter/example/pubspec.yaml @@ -16,8 +16,8 @@ version: 1.0.0+1 # 2. Add it to the melos.yaml file for future updates. environment: - sdk: ^3.10.0 - flutter: ">=3.38.1" + sdk: ^3.11.0 + flutter: ">=3.41.0" dependencies: collection: ^1.19.1 diff --git a/packages/stream_chat_flutter/pubspec.yaml b/packages/stream_chat_flutter/pubspec.yaml index 14678f2659..644db2368e 100644 --- a/packages/stream_chat_flutter/pubspec.yaml +++ b/packages/stream_chat_flutter/pubspec.yaml @@ -20,8 +20,8 @@ publish_to: none # 2. Add it to the melos.yaml file for future updates. environment: - sdk: ^3.10.0 - flutter: ">=3.38.1" + sdk: ^3.11.0 + flutter: ">=3.41.0" dependencies: cached_network_image: ^3.4.1 diff --git a/packages/stream_chat_flutter_core/CHANGELOG.md b/packages/stream_chat_flutter_core/CHANGELOG.md index a7961553c8..1787193cf9 100644 --- a/packages/stream_chat_flutter_core/CHANGELOG.md +++ b/packages/stream_chat_flutter_core/CHANGELOG.md @@ -22,6 +22,7 @@ 🔄 Changed - Widened `device_info_plus` to `>=12.4.0 <14.0.0`, `package_info_plus` to `>=9.0.1 <11.0.0`, and `connectivity_plus` to `>=7.1.1 <8.0.0` so apps can adopt the latest majors. Floors raised to current resolved versions. +- Raised minimum Flutter to `>=3.41.0` and Dart SDK to `^3.11.0`. - `StreamChatCore` now sets `client.recoverStateOnReconnect = false` on mount; refreshes on `connectionRecovered` are driven by the list controllers in this package, avoiding a duplicate `queryChannels` round-trip and the historical event-replay flicker on reactions, polls, and quoted messages. - Apps watching a `Channel` outside any list controller (e.g. a deep link into a single channel screen) should subscribe to `client.on(EventType.connectionRecovered)` and call `channel.watch()` themselves to refresh state on reconnect. - Changed the default `backgroundKeepAlive` from 1 minute to 15 seconds — covers quick app-switches and notification-shade checks while closing cleanly before the server's 35-second read timeout. Still configurable. diff --git a/packages/stream_chat_flutter_core/example/pubspec.yaml b/packages/stream_chat_flutter_core/example/pubspec.yaml index bc19ead3aa..0bd2991b84 100644 --- a/packages/stream_chat_flutter_core/example/pubspec.yaml +++ b/packages/stream_chat_flutter_core/example/pubspec.yaml @@ -16,8 +16,8 @@ version: 1.0.0+1 # 2. Add it to the melos.yaml file for future updates. environment: - sdk: ^3.10.0 - flutter: ">=3.38.1" + sdk: ^3.11.0 + flutter: ">=3.41.0" dependencies: cupertino_icons: ^1.0.3 diff --git a/packages/stream_chat_flutter_core/pubspec.yaml b/packages/stream_chat_flutter_core/pubspec.yaml index bf1ab79ce4..3485a9944d 100644 --- a/packages/stream_chat_flutter_core/pubspec.yaml +++ b/packages/stream_chat_flutter_core/pubspec.yaml @@ -18,8 +18,8 @@ issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues # 2. Add it to the melos.yaml file for future updates. environment: - sdk: ^3.10.0 - flutter: ">=3.38.1" + sdk: ^3.11.0 + flutter: ">=3.41.0" dependencies: collection: ^1.19.1 diff --git a/packages/stream_chat_localizations/CHANGELOG.md b/packages/stream_chat_localizations/CHANGELOG.md index 00f914c9b0..239e2091d9 100644 --- a/packages/stream_chat_localizations/CHANGELOG.md +++ b/packages/stream_chat_localizations/CHANGELOG.md @@ -56,6 +56,7 @@ the redesigned message composer placeholder. - Reworded `endVoteLabel` English override from `'End Vote'` to `'End Poll'`. - Reworded `flagLabel`, `cancelLabel` and `deleteLabel` defaults from uppercase to sentence case across all supported locales (e.g. English: `'FLAG'` → `'Flag'`, `'CANCEL'` → `'Cancel'`, `'DELETE'` → `'Delete'`) so dialog buttons render in the same case as the rest of the system. +- Raised minimum Flutter to `>=3.41.0` and Dart SDK to `^3.11.0`. ## 9.24.0 diff --git a/packages/stream_chat_localizations/example/pubspec.yaml b/packages/stream_chat_localizations/example/pubspec.yaml index 053eb15726..847a0d9e38 100644 --- a/packages/stream_chat_localizations/example/pubspec.yaml +++ b/packages/stream_chat_localizations/example/pubspec.yaml @@ -17,8 +17,8 @@ version: 1.0.0+1 # 2. Add it to the melos.yaml file for future updates. environment: - sdk: ^3.10.0 - flutter: ">=3.38.1" + sdk: ^3.11.0 + flutter: ">=3.41.0" dependencies: cupertino_icons: ^1.0.3 diff --git a/packages/stream_chat_localizations/pubspec.yaml b/packages/stream_chat_localizations/pubspec.yaml index e95ffeb03f..abfd382d6b 100644 --- a/packages/stream_chat_localizations/pubspec.yaml +++ b/packages/stream_chat_localizations/pubspec.yaml @@ -18,8 +18,8 @@ issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues # 2. Add it to the melos.yaml file for future updates. environment: - sdk: ^3.10.0 - flutter: ">=3.38.1" + sdk: ^3.11.0 + flutter: ">=3.41.0" dependencies: flutter: diff --git a/packages/stream_chat_persistence/CHANGELOG.md b/packages/stream_chat_persistence/CHANGELOG.md index 01cf269eb9..a4dc31c3ea 100644 --- a/packages/stream_chat_persistence/CHANGELOG.md +++ b/packages/stream_chat_persistence/CHANGELOG.md @@ -3,6 +3,7 @@ 🔄 Changed - Raised minimum versions of bundled dependencies (`drift`, `path`, `path_provider`) to current resolved versions. +- Raised minimum Flutter to `>=3.41.0` and Dart SDK to `^3.11.0`. 🐞 Fixed diff --git a/packages/stream_chat_persistence/example/pubspec.yaml b/packages/stream_chat_persistence/example/pubspec.yaml index dc5b0577e5..39f865e965 100644 --- a/packages/stream_chat_persistence/example/pubspec.yaml +++ b/packages/stream_chat_persistence/example/pubspec.yaml @@ -16,8 +16,8 @@ version: 1.0.0+1 # 2. Add it to the melos.yaml file for future updates. environment: - sdk: ^3.10.0 - flutter: ">=3.38.1" + sdk: ^3.11.0 + flutter: ">=3.41.0" dependencies: cupertino_icons: ^1.0.3 diff --git a/packages/stream_chat_persistence/pubspec.yaml b/packages/stream_chat_persistence/pubspec.yaml index b87f770076..a257295ad1 100644 --- a/packages/stream_chat_persistence/pubspec.yaml +++ b/packages/stream_chat_persistence/pubspec.yaml @@ -18,8 +18,8 @@ issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues # 2. Add it to the melos.yaml file for future updates. environment: - sdk: ^3.10.0 - flutter: ">=3.38.1" + sdk: ^3.11.0 + flutter: ">=3.41.0" dependencies: drift: ^2.33.0 diff --git a/pubspec.lock b/pubspec.lock index 5c323e9b3d..31c50fa96f 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -410,4 +410,4 @@ packages: source: hosted version: "2.2.4" sdks: - dart: ">=3.10.0 <4.0.0" + dart: ">=3.11.0 <4.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 2ac3430d00..273ec24c40 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: stream_chat_flutter_workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dev_dependencies: code_builder: ^4.10.1 diff --git a/sample_app/pubspec.yaml b/sample_app/pubspec.yaml index 59bab531a2..a01fe5c1e9 100644 --- a/sample_app/pubspec.yaml +++ b/sample_app/pubspec.yaml @@ -16,8 +16,8 @@ version: 10.0.0 # 2. Add it to the melos.yaml file for future updates. environment: - sdk: ^3.10.0 - flutter: ">=3.38.1" + sdk: ^3.11.0 + flutter: ">=3.41.0" dependencies: avatar_glow: ^3.0.0