-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(repo): bump min flutter version to 3.24.5 (#2068)
- Loading branch information
Showing
72 changed files
with
947 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Pana Workflow | ||
|
||
inputs: | ||
min_score: | ||
required: false | ||
type: number | ||
default: 120 | ||
pana_version: | ||
required: false | ||
type: string | ||
runs_on: | ||
required: false | ||
type: string | ||
default: "ubuntu-latest" | ||
working_directory: | ||
required: false | ||
type: string | ||
default: "." | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Temporary Override Local Dependencies | ||
shell: bash | ||
run: | | ||
git apply .github/actions/pana/chore__temporarily_override_dep_to_local.patch | ||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
# Forcing to 3.24.5 for right now as pana has an issue with Dart 3.6 https://github.com/dart-lang/dartdoc/issues/3947 | ||
flutter-version: "3.24.5" | ||
cache: true | ||
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} | ||
|
||
- name: Install Pana | ||
working-directory: ${{ inputs.working_directory }} | ||
shell: bash | ||
run: flutter pub global activate pana ${{inputs.pana_version}} | ||
|
||
- name: Verify Pana Score | ||
working-directory: ${{ inputs.working_directory }} | ||
shell: bash | ||
run: | | ||
PANA=$(pana . --no-warning); PANA_SCORE=$(echo $PANA | sed -n "s/.*Points: \([0-9]*\)\/\([0-9]*\)./\1\/\2/p") | ||
echo "Score: $PANA_SCORE" | ||
IFS='/'; read -a SCORE_ARR <<< "$PANA_SCORE"; SCORE=SCORE_ARR[0]; | ||
if (( $SCORE < ${{inputs.min_score}} )); then echo "The minimum score of ${{inputs.min_score}} was not met!"; exit 1; fi |
79 changes: 79 additions & 0 deletions
79
.github/actions/pana/chore__temporarily_override_dep_to_local.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
Subject: [PATCH] chore: temporarily override dep to local | ||
--- | ||
Index: packages/stream_chat_localizations/pubspec.yaml | ||
IDEA additional info: | ||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | ||
<+>UTF-8 | ||
=================================================================== | ||
diff --git a/packages/stream_chat_localizations/pubspec.yaml b/packages/stream_chat_localizations/pubspec.yaml | ||
--- a/packages/stream_chat_localizations/pubspec.yaml (revision 5d78c24f7d7411e55fc6d1adfbe193b743abcbba) | ||
+++ b/packages/stream_chat_localizations/pubspec.yaml (date 1734716942871) | ||
@@ -26,7 +26,8 @@ | ||
sdk: flutter | ||
flutter_localizations: | ||
sdk: flutter | ||
- stream_chat_flutter: ^8.3.0 | ||
+ stream_chat_flutter: | ||
+ path: ../stream_chat_flutter | ||
|
||
dev_dependencies: | ||
flutter_test: | ||
Index: packages/stream_chat_flutter_core/pubspec.yaml | ||
IDEA additional info: | ||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | ||
<+>UTF-8 | ||
=================================================================== | ||
diff --git a/packages/stream_chat_flutter_core/pubspec.yaml b/packages/stream_chat_flutter_core/pubspec.yaml | ||
--- a/packages/stream_chat_flutter_core/pubspec.yaml (revision 5d78c24f7d7411e55fc6d1adfbe193b743abcbba) | ||
+++ b/packages/stream_chat_flutter_core/pubspec.yaml (date 1734716650052) | ||
@@ -29,7 +29,8 @@ | ||
freezed_annotation: ^2.4.1 | ||
meta: ^1.9.1 | ||
rxdart: ^0.28.0 | ||
- stream_chat: ^8.3.0 | ||
+ stream_chat: | ||
+ path: ../stream_chat | ||
|
||
dev_dependencies: | ||
build_runner: ^2.4.9 | ||
@@ -38,4 +39,3 @@ | ||
sdk: flutter | ||
freezed: ^2.4.2 | ||
mocktail: ^1.0.0 | ||
- | ||
Index: packages/stream_chat_flutter/pubspec.yaml | ||
IDEA additional info: | ||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | ||
<+>UTF-8 | ||
=================================================================== | ||
diff --git a/packages/stream_chat_flutter/pubspec.yaml b/packages/stream_chat_flutter/pubspec.yaml | ||
--- a/packages/stream_chat_flutter/pubspec.yaml (revision 5d78c24f7d7411e55fc6d1adfbe193b743abcbba) | ||
+++ b/packages/stream_chat_flutter/pubspec.yaml (date 1734716942864) | ||
@@ -54,7 +54,8 @@ | ||
rxdart: ^0.28.0 | ||
share_plus: ^10.0.2 | ||
shimmer: ^3.0.0 | ||
- stream_chat_flutter_core: ^8.3.0 | ||
+ stream_chat_flutter_core: | ||
+ path: ../stream_chat_flutter_core | ||
synchronized: ^3.1.0+1 | ||
thumblr: ^0.0.4 | ||
url_launcher: ^6.3.0 | ||
Index: packages/stream_chat_persistence/pubspec.yaml | ||
IDEA additional info: | ||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | ||
<+>UTF-8 | ||
=================================================================== | ||
diff --git a/packages/stream_chat_persistence/pubspec.yaml b/packages/stream_chat_persistence/pubspec.yaml | ||
--- a/packages/stream_chat_persistence/pubspec.yaml (revision 5d78c24f7d7411e55fc6d1adfbe193b743abcbba) | ||
+++ b/packages/stream_chat_persistence/pubspec.yaml (date 1734717094786) | ||
@@ -30,7 +30,8 @@ | ||
path: ^1.8.3 | ||
path_provider: ^2.1.3 | ||
sqlite3_flutter_libs: ^0.5.24 | ||
- stream_chat: ^8.3.0 | ||
+ stream_chat: | ||
+ path: ../stream_chat | ||
|
||
dev_dependencies: | ||
build_runner: ^2.4.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.