chore: fix analysis.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-07-11 20:09:31 +05:30
committed by xsahil03x
parent f312cd2036
commit 857542536e
3 changed files with 23 additions and 5 deletions
+20 -2
View File
@@ -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
# 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 .
@@ -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);
+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