diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a79c0390c..180068d40 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -21,5 +21,5 @@ jobs: - name: Install dependencies run: flutter pub get - - run: flutter format . --set-exit-if-changed + - run: dart format . --set-exit-if-changed - run: flutter analyze --no-pub diff --git a/.metadata b/.metadata index 87268d19c..9596faeed 100644 --- a/.metadata +++ b/.metadata @@ -4,7 +4,7 @@ # This file should be version controlled and should not be manually edited. version: - revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a + revision: 796c8ef79279f9c774545b3771238c3098dbefab channel: stable project_type: package diff --git a/CHANGELOG.md b/CHANGELOG.md index 77f6b768f..a4dd0666e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +## 1.6.9 + +- Update dependencies + +## 1.6.8 + +- Downgrade `intl` to make it compatible with latest Flutter +- Add `autofocus` to the `InputOptions`. Thanks @josefwilhelm for the PR! + +## 1.6.7 + +- **BREAKING CHANGE**: `nameBuilder` now passes the whole user class, instead of just an id. Thanks @vintage for the PR! +- Add typing indicator. See `typingIndicatorOptions`. Thanks @gtalha07 for the PR! Huge one! +- Add `imageProviderBuilder`. Thanks @marinkobabic for the PR! +- Add `autocorrect` and `enableSuggestions` to the `InputOptions`. By default, both values will be true. Thanks @g0dzillaa for the PR! +- Add `keyboardType` to the `InputOptions`. Thanks @Gramatton for the PR! +- Add Swedish localization. Thanks @OlleEkberg for the PR! +- Add Finnish localization. Thanks @tuoku for the PR! +- Update dependencies. Requires Dart >= 2.19.0. + ## 1.6.6 - Add `audioMessageBuilder` (no default implementation yet). Thanks @marinkobabic for the PR! @@ -94,7 +114,7 @@ ## 1.5.4 -- **BREAKING CHANGE**: Rename `inputPadding` theme key to `inputMargin` (outer insets) and add `inputPadding` (inner insets, previously were hardcoded) +- **BREAKING CHANGE**: Rename `inputPadding` theme key to `inputMargin` (outer insets) and add `inputPadding` (inner insets, previously were hardcoded) - **BREAKING CHANGE**: Add `BuildContext` as a first parameter for `onMessageLongPress`, `onMessageStatusLongPress`, `onMessageStatusTap`, `onMessageTap`. Thanks @leeyisoft for the PR! - Add `inputContainerDecoration` to the theme - Remove keyboard shortuts from Android and iOS platforms. Thanks @kyoungsongKim for reporting! @@ -241,7 +261,7 @@ Breaking changes: - **BREAKING CHANGE**: [FileMessage] `fileName` is renamed to `name` - **BREAKING CHANGE**: [ImageMessage] `imageName` is renamed to `name` - **BREAKING CHANGE**: [Messages] `authorId` is replaced with `author` to support avatars and names inside the chat -- **BREAKING CHANGE**: [Messages] `timestamp` is renamed to `createdAt`. All timestamps are in `ms` now. +- **BREAKING CHANGE**: [Messages] `timestamp` is renamed to `createdAt`. All timestamps are in `ms` now. - **BREAKING CHANGE**: [Status] `read` is renamed to `seen` - **BREAKING CHANGE**: [User] `avatarUrl` is renamed to `imageUrl` - New `custom` and `unsupported` message types. First one is used to build any message you want, second one is to support backwards compatibility diff --git a/LICENSE b/LICENSE index cd914dd90..babf35767 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2022 Oleksandr Demchenko + Copyright 2023 Oleksandr Demchenko Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 00c684d1d..ed11e0618 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Flyer Chat is a platform for creating in-app chat experiences using Flutter or [ ### Requirements -`Dart >=2.18.0` and `Flutter >=2.0.0` +`Dart >=2.19.0` and `Flutter >=3.0.0` Read our [documentation](https://docs.flyer.chat/flutter/chat-ui/) or see the [example](https://github.com/flyerhq/flutter_chat_ui/tree/main/example) project. diff --git a/example/.metadata b/example/.metadata index 6423aca06..30d90a7ef 100644 --- a/example/.metadata +++ b/example/.metadata @@ -4,7 +4,7 @@ # This file should be version controlled. version: - revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a + revision: 796c8ef79279f9c774545b3771238c3098dbefab channel: stable project_type: app @@ -13,26 +13,26 @@ project_type: app migration: platforms: - platform: root - create_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a - base_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab - platform: android - create_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a - base_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab - platform: ios - create_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a - base_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab - platform: linux - create_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a - base_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab - platform: macos - create_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a - base_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab - platform: web - create_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a - base_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab - platform: windows - create_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a - base_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab # User provided section diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 4ffc37b65..0ce28921a 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -26,6 +26,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { + namespace "com.example" compileSdkVersion flutter.compileSdkVersion ndkVersion flutter.ndkVersion @@ -46,7 +47,7 @@ android { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example" // You can update the following values to match your application needs. - // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdkVersion flutter.minSdkVersion targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() diff --git a/example/android/app/src/debug/AndroidManifest.xml b/example/android/app/src/debug/AndroidManifest.xml index d919e08d3..399f6981d 100644 --- a/example/android/app/src/debug/AndroidManifest.xml +++ b/example/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,4 @@ - +