Merge pull request #1669 from GetStream/release/v6.6.0

This commit is contained in:
Sahil Kumar
2023-07-12 16:27:23 +05:30
committed by GitHub
43 changed files with 236 additions and 307 deletions
@@ -0,0 +1,71 @@
name: legacy_version_analyze
env:
# Note: The versions below should be manually updated after a new stable
# version comes out.
flutter_version: "3.7.12"
on:
push:
branches:
- master
- develop
paths:
- 'packages/**'
- '.github/workflows/legacy_version_analyze.yml'
pull_request:
branches:
- master
- develop
paths:
- 'packages/**'
- '.github/workflows/legacy_version_analyze.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Does a sanity check that packages at least pass analysis on the N-1
# versions of Flutter stable if the package claims to support that version.
# This is to minimize accidentally making changes that break old versions
# (which we don't commit to supporting, but don't want to actively break)
# without updating the constraints.
analyze_legacy_versions:
timeout-minutes: 15
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: "Git Checkout"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Install Flutter"
uses: subosito/flutter-action@v2
with:
cache: true
flutter-version: ${{ env.flutter_version }}
- name: "Install Tools"
run: flutter pub global activate melos
- name: "Bootstrap Workspace"
run: melos bootstrap --verbose
# Only analyze lib/; non-client code doesn't need to work on
# all supported legacy version.
- name: "Stream Chat Analyze"
run: cd packages/stream_chat/lib && dart analyze --fatal-infos .
- name: "Stream Chat Flutter Core Analyze"
run: cd packages/stream_chat_flutter_core/lib && dart analyze --fatal-infos .
- name: "Stream Chat Flutter Analyze"
run: cd packages/stream_chat_flutter/lib && dart analyze --fatal-infos .
- name: "Stream Chat Persistence Analyze"
run: cd packages/stream_chat_persistence/lib && dart analyze --fatal-infos .
- name: "Stream Chat Localizations Analyze"
run: cd packages/stream_chat_localizations/lib && dart analyze --fatal-infos .
+6
View File
@@ -1,3 +1,9 @@
## 6.5.0
🔄 Changed
- Updated minimum supported `SDK` version to Dart 2.19
## 6.4.0
🐞 Fixed
+2 -6
View File
@@ -5,8 +5,8 @@ publish_to: "none"
version: 1.0.0+1
environment:
sdk: '>=2.17.0 <4.0.0'
flutter: ">=1.17.0"
sdk: '>=2.19.0 <4.0.0'
flutter: ">=3.7.0"
dependencies:
cupertino_icons: ^1.0.5
@@ -14,9 +14,5 @@ dependencies:
sdk: flutter
stream_chat: ^6.4.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
+1 -1
View File
@@ -3,4 +3,4 @@ import 'package:stream_chat/src/client/client.dart';
/// Current package version
/// Used in [StreamChatClient] to build the `x-stream-client` header
// ignore: constant_identifier_names
const PACKAGE_VERSION = '6.4.0';
const PACKAGE_VERSION = '6.5.0';
+10 -10
View File
@@ -1,34 +1,34 @@
name: stream_chat
homepage: https://getstream.io/
description: The official Dart client for Stream Chat, a service for building chat applications.
version: 6.4.0
version: 6.5.0
repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
environment:
sdk: '>=2.17.0 <4.0.0'
sdk: '>=2.19.0 <4.0.0'
dependencies:
async: ^2.10.0
collection: ^1.17.0
dio: ^5.2.0
dio: ^5.2.1+1
equatable: ^2.0.5
freezed_annotation: ^2.2.0
http_parser: ^4.0.2
jose: ^0.3.3
json_annotation: ^4.8.0
logging: ^1.1.1
json_annotation: ^4.8.1
logging: ^1.2.0
meta: ^1.8.0
mime: ^1.0.4
rate_limiter: ^1.0.0
rxdart: ^0.27.7
synchronized: ^3.0.0
synchronized: ^3.1.0
uuid: ^3.0.7
web_socket_channel: ^2.3.0
web_socket_channel: ^2.4.0
dev_dependencies:
build_runner: ^2.3.3
freezed: ^2.3.2
json_serializable: ^6.6.1
freezed: ^2.4.0
json_serializable: ^6.6.2
mocktail: ^0.3.0
test: ^1.24.1
test: ^1.24.3
+6 -1
View File
@@ -1,3 +1,9 @@
## 6.6.0
🔄 Changed
- Updated minimum supported `SDK` version to Flutter 3.7/Dart 2.19
## 6.5.0
🐞 Fixed
@@ -98,7 +104,6 @@
- Updated `chewie` dependency to `^1.6.0`.
- Updated `share_plus` dependency to `^7.0.2`.
- Deprecated `StreamUserItem` in favor of `StreamUserListTile`.
- Updated `jiffy` dependency to `^6.2.1`.
## 6.4.0
@@ -1,29 +1,13 @@
name: stream_chat_flutter_example
description: A new Flutter project.
# 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
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: '>=2.17.0 <4.0.0'
flutter: ">=1.17.0"
sdk: '>=2.19.0 <4.0.0'
flutter: ">=3.7.0"
dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
collection: ^1.15.0
cupertino_icons: ^1.0.4
flutter:
@@ -33,48 +17,7 @@ dependencies:
stream_chat_localizations: ^5.4.0
stream_chat_persistence: ^6.4.0
dev_dependencies:
flutter_test:
sdk: flutter
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/background_doodle.png
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
@@ -106,10 +106,9 @@ class _ConnectedTitleState extends StatelessWidget {
style: textStyle,
);
} else {
final lastActive = otherMember.user?.lastActive ?? DateTime.now();
alternativeWidget = Text(
'${context.translations.userLastOnlineText} '
'${Jiffy.parseFromDateTime(lastActive).fromNow()}',
'${Jiffy(otherMember.user?.lastActive).fromNow()}',
style: textStyle,
);
}
@@ -349,16 +349,16 @@ class _Date extends StatelessWidget {
if (lastMessageAt.millisecondsSinceEpoch >=
startOfDay.millisecondsSinceEpoch) {
stringDate = Jiffy.parseFromDateTime(lastMessageAt.toLocal()).jm;
stringDate = Jiffy(lastMessageAt.toLocal()).jm;
} else if (lastMessageAt.millisecondsSinceEpoch >=
startOfDay
.subtract(const Duration(days: 1))
.millisecondsSinceEpoch) {
stringDate = context.translations.yesterdayLabel;
} else if (startOfDay.difference(lastMessageAt).inDays < 7) {
stringDate = Jiffy.parseFromDateTime(lastMessageAt.toLocal()).EEEE;
stringDate = Jiffy(lastMessageAt.toLocal()).EEEE;
} else {
stringDate = Jiffy.parseFromDateTime(lastMessageAt.toLocal()).yMd;
stringDate = Jiffy(lastMessageAt.toLocal()).yMd;
}
return Text(
@@ -611,15 +611,13 @@ class DefaultTranslations implements Translations {
} else if (date == yesterday) {
return 'yesterday';
} else {
return 'on ${Jiffy.parseFromDateTime(date).MMMd}';
return 'on ${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return 'Sent ${_getDay(date)} at ${atTime.jm}';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'Sent ${_getDay(date)} at ${Jiffy(time.toLocal()).format('HH:mm')}';
@override
String get todayLabel => 'Today';
@@ -208,7 +208,7 @@ class MessageInputFileAttachments extends StatelessWidget {
message: Message(), // dummy message
attachment: attachment,
constraints: BoxConstraints.loose(Size(
MediaQuery.sizeOf(context).width * 0.65,
MediaQuery.of(context).size.width * 0.65,
56,
)),
trailing: Padding(
@@ -669,20 +669,14 @@ class _StreamMessageListViewState extends State<StreamMessageListView> {
final isPartOfThread = message.replyCount! > 0 ||
message.showInChannel == true;
final createdAt = Jiffy.parseFromDateTime(
message.createdAt.toLocal(),
);
final nextCreatedAt = Jiffy.parseFromDateTime(
nextMessage.createdAt.toLocal(),
);
if (!createdAt.isSame(nextCreatedAt, unit: Unit.day)) {
final createdAt = message.createdAt.toLocal();
final nextCreatedAt = nextMessage.createdAt.toLocal();
if (!Jiffy(createdAt).isSame(nextCreatedAt, Units.DAY)) {
separator = _buildDateDivider(nextMessage);
} else {
final hasTimeDiff = !createdAt.isSame(
final hasTimeDiff = !Jiffy(createdAt).isSame(
nextCreatedAt,
unit: Unit.minute,
Units.MINUTE,
);
final isNextUserSame =
@@ -1077,12 +1071,10 @@ class _StreamMessageListViewState extends State<StreamMessageListView> {
var hasTimeDiff = false;
if (nextMessage != null) {
final createdAt = Jiffy.parseFromDateTime(message.createdAt.toLocal());
final nextCreatedAt = Jiffy.parseFromDateTime(
hasTimeDiff = !Jiffy(message.createdAt.toLocal()).isSame(
nextMessage.createdAt.toLocal(),
Units.MINUTE,
);
hasTimeDiff = !createdAt.isSame(nextCreatedAt, unit: Unit.minute);
}
final hasFileAttachment =
@@ -191,7 +191,7 @@ class BottomRow extends StatelessWidget {
),
if (showTimeStamp)
Text(
Jiffy.parseFromDateTime(message.createdAt.toLocal()).jm,
Jiffy(message.createdAt.toLocal()).jm,
style: messageTheme.createdAtStyle,
),
if (showSendingIndicator)
@@ -20,17 +20,17 @@ class StreamDateDivider extends StatelessWidget {
@override
Widget build(BuildContext context) {
final createdAt = Jiffy.parseFromDateTime(dateTime);
final now = Jiffy.parseFromDateTime(DateTime.now());
final createdAt = Jiffy(dateTime);
final now = Jiffy(DateTime.now());
var dayInfo = createdAt.MMMd;
if (createdAt.isSame(now, unit: Unit.day)) {
if (createdAt.isSame(now, Units.DAY)) {
dayInfo = context.translations.todayLabel;
} else if (createdAt.isSame(now.subtract(days: 1), unit: Unit.day)) {
} else if (createdAt.isSame(now.subtract(days: 1), Units.DAY)) {
dayInfo = context.translations.yesterdayLabel;
} else if (createdAt.isAfter(now.subtract(days: 7), unit: Unit.day)) {
} else if (createdAt.isAfter(now.subtract(days: 7), Units.DAY)) {
dayInfo = createdAt.EEEE;
} else if (createdAt.isAfter(now.subtract(years: 1), unit: Unit.day)) {
} else if (createdAt.isAfter(now.subtract(years: 1), Units.DAY)) {
dayInfo = createdAt.MMMd;
}
@@ -287,16 +287,16 @@ class ChannelLastMessageDate extends StatelessWidget {
if (lastMessageAt.millisecondsSinceEpoch >=
startOfDay.millisecondsSinceEpoch) {
stringDate = Jiffy.parseFromDateTime(lastMessageAt.toLocal()).jm;
stringDate = Jiffy(lastMessageAt.toLocal()).jm;
} else if (lastMessageAt.millisecondsSinceEpoch >=
startOfDay
.subtract(const Duration(days: 1))
.millisecondsSinceEpoch) {
stringDate = context.translations.yesterdayLabel;
} else if (startOfDay.difference(lastMessageAt).inDays < 7) {
stringDate = Jiffy.parseFromDateTime(lastMessageAt.toLocal()).EEEE;
stringDate = Jiffy(lastMessageAt.toLocal()).EEEE;
} else {
stringDate = Jiffy.parseFromDateTime(lastMessageAt.toLocal()).yMd;
stringDate = Jiffy(lastMessageAt.toLocal()).yMd;
}
return Text(
@@ -227,9 +227,9 @@ class MessageSearchTileMessageDate extends StatelessWidget {
if (now.year != createdAt.year ||
now.month != createdAt.month ||
now.day != createdAt.day) {
stringDate = Jiffy.parseFromDateTime(createdAt.toLocal()).yMd;
stringDate = Jiffy(createdAt.toLocal()).yMd;
} else {
stringDate = Jiffy.parseFromDateTime(createdAt.toLocal()).jm;
stringDate = Jiffy(createdAt.toLocal()).jm;
}
return Text(
@@ -176,12 +176,11 @@ class UserLastActive extends StatelessWidget {
@override
Widget build(BuildContext context) {
final chatTheme = StreamChatTheme.of(context);
final lastActive = user.lastActive ?? DateTime.now();
return Text(
user.online
? context.translations.userOnlineText
: '${context.translations.userLastOnlineText} '
'${Jiffy.parseFromDateTime(lastActive).fromNow()}',
'${Jiffy(user.lastActive).fromNow()}',
style: chatTheme.textTheme.footnote.copyWith(
color: chatTheme.colorTheme.textHighEmphasis.withOpacity(0.5),
),
@@ -165,9 +165,9 @@ class StreamChatState extends State<StreamChat> {
@override
void didChangeDependencies() {
final currentLocale = Localizations.localeOf(context).toString();
final availableLocales = Jiffy.getSupportedLocales();
final availableLocales = Jiffy.getAllAvailableLocales();
if (availableLocales.contains(currentLocale)) {
Jiffy.setLocale(currentLocale);
Jiffy.locale(currentLocale);
}
super.didChangeDependencies();
}
@@ -74,12 +74,11 @@ class StreamUserItem extends StatelessWidget {
Widget _buildLastActive(BuildContext context) {
final chatTheme = StreamChatTheme.of(context);
final lastActive = user.lastActive ?? DateTime.now();
return Text(
user.online
? context.translations.userOnlineText
: '${context.translations.userLastOnlineText} '
'${Jiffy.parseFromDateTime(lastActive).fromNow()}',
'${Jiffy(user.lastActive).fromNow()}',
style: chatTheme.textTheme.footnote.copyWith(
color: chatTheme.colorTheme.textHighEmphasis.withOpacity(0.5),
),
@@ -88,7 +88,7 @@ typedef ChannelTapCallback = void Function(Channel, Widget?);
typedef ChannelInfoCallback = void Function(Channel);
/// {@template channelPreviewBuilder}
/// Builder used to create a custom [ChannelPreview] for a [Channel]
/// Builder used to create a custom ChannelPreview for a [Channel]
/// {@endtemplate}
@Deprecated('Use StreamChannelListViewIndexedWidgetBuilder instead')
typedef ChannelPreviewBuilder = Widget Function(BuildContext, Channel);
+26 -26
View File
@@ -1,50 +1,50 @@
name: 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.
version: 6.5.0
version: 6.6.0
repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=1.20.0"
sdk: ">=2.19.0 <4.0.0"
flutter: ">=3.7.0"
dependencies:
cached_network_image: ^3.0.0
chewie: ^1.6.0
cached_network_image: ^3.2.3
chewie: ^1.7.0
collection: ^1.17.0
contextmenu: ^3.0.0
dart_vlc: ^0.4.0
desktop_drop: ^0.4.0
diacritic: ^0.1.3
dio: ^5.2.0
desktop_drop: ^0.4.1
diacritic: ^0.1.4
dio: ^5.2.1+1
ezanimation: ^0.6.0
file_picker: ^5.2.4
file_selector: ^0.9.0
file_picker: ^5.3.1
file_selector: ^1.0.0
flutter:
sdk: flutter
flutter_markdown: ^0.6.1
flutter_portal: ^1.0.0
flutter_svg: ^2.0.4
http_parser: ^4.0.0
image_gallery_saver: ^2.0.1
image_picker: ">=0.8.2 <2.0.0"
jiffy: ^6.2.1
lottie: ^2.0.0
flutter_markdown: ^0.6.15
flutter_portal: ^1.1.4
flutter_svg: ^2.0.5
http_parser: ^4.0.2
image_gallery_saver: ^2.0.3
image_picker: ^1.0.0
jiffy: ^5.0.0
lottie: ^2.3.2
meta: ^1.8.0
path_provider: ^2.0.9
photo_manager: ^2.5.2
path_provider: ^2.0.15
photo_manager: ^2.6.0
photo_view: ^0.14.0
rxdart: ^0.27.0
rxdart: ^0.27.7
share_plus: ^7.0.2
shimmer: ^3.0.0
stream_chat_flutter_core: ^6.4.0
synchronized: ^3.0.0
stream_chat_flutter_core: ^6.5.0
synchronized: ^3.1.0
thumblr: ^0.0.4
url_launcher: ^6.1.0
url_launcher: ^6.1.11
video_player: ^2.7.0
video_player_macos: ^2.0.1
video_thumbnail: ^0.5.0
video_thumbnail: ^0.5.3
flutter:
plugin:
@@ -74,4 +74,4 @@ dev_dependencies:
sdk: flutter
golden_toolkit: ^0.15.0
mocktail: ^0.3.0
path: ^1.8.2
path: ^1.8.2
@@ -1,3 +1,7 @@
## 6.5.0
- Updated minimum supported `SDK` version to Flutter 3.7/Dart 2.19
## 6.4.0
- Updated `stream_chat` dependency to [`6.4.0`](https://pub.dev/packages/stream_chat/changelog).
@@ -1,76 +1,17 @@
name: stream_chat_flutter_core_example
description: Example app for testing stream_chat_flutter_core
# 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
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: '>=2.17.0 <4.0.0'
flutter: ">=1.17.0"
sdk: '>=2.19.0 <4.0.0'
flutter: ">=3.7.0"
dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.3
flutter:
sdk: flutter
stream_chat_flutter_core: ^6.4.0
dev_dependencies:
flutter_test:
sdk: flutter
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
@@ -1,29 +1,29 @@
name: stream_chat_flutter_core
homepage: https://github.com/GetStream/stream-chat-flutter
description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter.
version: 6.4.0
version: 6.5.0
repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
environment:
sdk: '>=2.17.0 <4.0.0'
flutter: ">=1.17.0"
sdk: ">=2.19.0 <4.0.0"
flutter: ">=3.7.0"
dependencies:
collection: ^1.17.0
connectivity_plus: ^4.0.0
connectivity_plus: ^4.0.1
flutter:
sdk: flutter
freezed_annotation: ^2.0.3
freezed_annotation: ^2.2.0
meta: ^1.8.0
rxdart: ^0.27.0
stream_chat: ^6.4.0
rxdart: ^0.27.7
stream_chat: ^6.5.0
dev_dependencies:
build_runner: ^2.3.3
fake_async: ^1.2.0
fake_async: ^1.3.1
flutter_test:
sdk: flutter
freezed: ^2.3.2
freezed: ^2.4.0
mocktail: ^0.3.0
@@ -1,3 +1,7 @@
## 5.6.0
- Updated minimum supported `SDK` version to Flutter 3.7/Dart 2.19
## 5.5.0
* Updated `stream_chat_flutter` dependency to [`6.5.0`](https://pub.dev/packages/stream_chat_flutter/changelog).
@@ -270,15 +270,13 @@ class NnStreamChatLocalizations extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return 'yesterday';
} else {
return 'on ${Jiffy.parseFromDateTime(date).MMMd}';
return 'on ${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return 'Sent ${_getDay(date)} at ${atTime.jm}';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'Sent ${_getDay(date)} at ${Jiffy(time.toLocal()).format('HH:mm')}';
@override
String get todayLabel => 'Today';
@@ -5,7 +5,8 @@ publish_to: 'none'
version: 1.0.0+1
environment:
sdk: '>=2.17.0 <4.0.0'
sdk: '>=2.19.0 <4.0.0'
flutter: ">=3.7.0"
dependencies:
cupertino_icons: ^1.0.3
@@ -14,9 +15,5 @@ dependencies:
stream_chat_flutter: ^6.4.0
stream_chat_localizations: ^5.4.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
@@ -249,15 +249,13 @@ class StreamChatLocalizationsCa extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return 'ahir';
} else {
return 'el ${Jiffy.parseFromDateTime(date).MMMd}';
return 'el ${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return 'Enviat el ${_getDay(date)} a les ${atTime.jm}';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'''Enviat el ${_getDay(date)} a les ${Jiffy(time.toLocal()).format('HH:mm')}''';
@override
String get todayLabel => 'Avui';
@@ -239,15 +239,13 @@ class StreamChatLocalizationsDe extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return 'Gestern';
} else {
return 'am ${Jiffy.parseFromDateTime(date).MMMd}';
return 'am ${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return 'Gesendet ${_getDay(date)} am ${atTime.jm}';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'Gesendet ${_getDay(date)} am ${Jiffy(time.toLocal()).format('HH:mm')}';
@override
String get todayLabel => 'Heute';
@@ -246,15 +246,13 @@ class StreamChatLocalizationsEn extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return 'yesterday';
} else {
return 'on ${Jiffy.parseFromDateTime(date).MMMd}';
return 'on ${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return 'Sent ${_getDay(date)} at ${atTime.jm}';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'Sent ${_getDay(date)} at ${Jiffy(time.toLocal()).format('HH:mm')}';
@override
String get todayLabel => 'Today';
@@ -250,15 +250,13 @@ class StreamChatLocalizationsEs extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return 'ayer';
} else {
return 'el ${Jiffy.parseFromDateTime(date).MMMd}';
return 'el ${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return 'Enviado el ${_getDay(date)} a las ${atTime.jm}';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'''Enviado el ${_getDay(date)} a las ${Jiffy(time.toLocal()).format('HH:mm')}''';
@override
String get todayLabel => 'Hoy';
@@ -249,15 +249,13 @@ class StreamChatLocalizationsFr extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return 'hier';
} else {
return 'le ${Jiffy.parseFromDateTime(date).MMMd}';
return 'le ${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return 'Envoyé ${_getDay(date)} à ${atTime.jm}';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'Envoyé ${_getDay(date)} à ${Jiffy(time.toLocal()).format('HH:mm')}';
@override
String get todayLabel => "Aujourd'hui";
@@ -243,15 +243,13 @@ class StreamChatLocalizationsHi extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return 'कल';
} else {
return '${Jiffy.parseFromDateTime(date).MMMd} को';
return '${Jiffy(date).MMMd} को';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return '${_getDay(date)} ${atTime.jm} बजे भेजा गया';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'${_getDay(date)} ${Jiffy(time.toLocal()).format('HH:mm')} बजे भेजा गया';
@override
String get todayLabel => 'आज';
@@ -252,15 +252,13 @@ Il file è troppo grande per essere caricato. Il limite è di $limitInMB MB.''';
} else if (date == yesterday) {
return 'ieri';
} else {
return 'il ${Jiffy.parseFromDateTime(date).MMMd}';
return 'il ${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return 'Inviato ${_getDay(date)} alle ${atTime.jm}';
}
String sentAtText({required DateTime date, required DateTime time}) =>
"Inviato ${_getDay(date)} alle ${Jiffy(time.toLocal()).format('HH:mm')}";
@override
String get todayLabel => 'Oggi';
@@ -236,15 +236,13 @@ class StreamChatLocalizationsJa extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return '昨日';
} else {
return '${Jiffy.parseFromDateTime(date).MMMd}';
return '${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return '${_getDay(date)}${atTime.jm}に送信しました ';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'${_getDay(date)}${Jiffy(time.toLocal()).format('HH:mm')}に送信しました ';
@override
String get todayLabel => '今日';
@@ -235,15 +235,13 @@ class StreamChatLocalizationsKo extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return '어제';
} else {
return '${Jiffy.parseFromDateTime(date).MMMd}';
return '${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return '${_getDay(date)} ${atTime.jm}에 보냈습니다';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'${_getDay(date)} ${Jiffy(time.toLocal()).format('HH:mm')}에 보냈습니다';
@override
String get todayLabel => '오늘';
@@ -242,15 +242,13 @@ class StreamChatLocalizationsNo extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return 'i går';
} else {
return '${Jiffy.parseFromDateTime(date).MMMd}';
return '${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return 'Sent ${_getDay(date)} kl. ${atTime.jm}';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'Sent ${_getDay(date)} kl. ${Jiffy(time.toLocal()).format('HH:mm')}';
@override
String get todayLabel => 'I dag';
@@ -244,15 +244,13 @@ class StreamChatLocalizationsPt extends GlobalStreamChatLocalizations {
} else if (date == yesterday) {
return 'Ontem';
} else {
return 'o ${Jiffy.parseFromDateTime(date).MMMd}';
return 'o ${Jiffy(date).MMMd}';
}
}
@override
String sentAtText({required DateTime date, required DateTime time}) {
final atTime = Jiffy.parseFromDateTime(time.toLocal());
return 'Enviado ${_getDay(date)} às ${atTime.jm}';
}
String sentAtText({required DateTime date, required DateTime time}) =>
'''Enviado ${_getDay(date)} às ${Jiffy(time.toLocal()).format('HH:mm')}''';
@override
String get todayLabel => 'Hoje';
@@ -1,20 +1,20 @@
name: stream_chat_localizations
description: The Official localizations for Stream Chat Flutter, a service for building chat applications
version: 5.5.0
version: 5.6.0
homepage: 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
environment:
sdk: '>=2.17.0 <4.0.0'
flutter: ">=1.20.0"
sdk: ">=2.19.0 <4.0.0"
flutter: ">=3.7.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
stream_chat_flutter: ^6.5.0
stream_chat_flutter: ^6.6.0
dev_dependencies:
flutter_test:
@@ -1,3 +1,7 @@
## 6.5.0
- Updated minimum supported `SDK` version to Flutter 3.7/Dart 2.19
## 6.4.0
- Updated `stream_chat` dependency to [`6.4.0`](https://pub.dev/packages/stream_chat/changelog).
@@ -1,12 +1,11 @@
name: stream_chat_persistence_example
description: A new Flutter project.
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: '>=2.17.0 <4.0.0'
flutter: ">=1.17.0"
sdk: '>=2.19.0 <4.0.0'
flutter: ">=3.7.0"
dependencies:
cupertino_icons: ^1.0.3
@@ -15,9 +14,5 @@ dependencies:
stream_chat: ^6.4.0
stream_chat_persistence: ^6.4.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
@@ -1,28 +1,28 @@
name: stream_chat_persistence
homepage: https://github.com/GetStream/stream-chat-flutter
description: Official Stream Chat Persistence library. Build your own chat experience using Dart and Flutter.
version: 6.4.0
version: 6.5.0
repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
environment:
sdk: '>=2.17.0 <4.0.0'
flutter: ">=1.17.0"
sdk: ">=2.19.0 <4.0.0"
flutter: ">=3.7.0"
dependencies:
drift: ^2.7.0
drift: ^2.8.0
flutter:
sdk: flutter
logging: ^1.0.1
logging: ^1.2.0
meta: ^1.8.0
path: ^1.8.2
path_provider: ^2.0.1
sqlite3_flutter_libs: ^0.5.0
stream_chat: ^6.4.0
path_provider: ^2.0.15
sqlite3_flutter_libs: ^0.5.15
stream_chat: ^6.5.0
dev_dependencies:
build_runner: ^2.3.3
drift_dev: ^2.7.0
drift_dev: ^2.8.3
flutter_test:
sdk: flutter
mocktail: ^0.3.0
+2 -2
View File
@@ -1,7 +1,7 @@
name: stream_chat_flutter_workspace
environment:
sdk: '>=2.18.0 <3.0.0'
sdk: '>=2.19.0 <4.0.0'
dev_dependencies:
melos: ^3.0.0
melos: ^3.1.0