diff --git a/.github/workflows/legacy_version_analyze.yml b/.github/workflows/legacy_version_analyze.yml index 2454e09c..3c5954bb 100644 --- a/.github/workflows/legacy_version_analyze.yml +++ b/.github/workflows/legacy_version_analyze.yml @@ -40,14 +40,32 @@ jobs: 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 - - name: "Dart Analyze" - run: melos run analyze \ No newline at end of file + + # 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_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 . \ No newline at end of file diff --git a/packages/stream_chat_flutter/lib/src/utils/typedefs.dart b/packages/stream_chat_flutter/lib/src/utils/typedefs.dart index 17cab820..64f18e1a 100644 --- a/packages/stream_chat_flutter/lib/src/utils/typedefs.dart +++ b/packages/stream_chat_flutter/lib/src/utils/typedefs.dart @@ -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); diff --git a/pubspec.yaml b/pubspec.yaml index 9016fa8f..cf418d76 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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