From aca5c7f234e47b4c0cef74d78d9858b8abd5229f Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Fri, 11 Aug 2023 03:09:38 +0530 Subject: [PATCH] chore(repo): update minimum supported SDK version to Flutter 3.7/Dart 2.19 Signed-off-by: Sahil Kumar --- .github/workflows/legacy_version_analyze.yml | 68 +++++++++++++++++++ dogfooding/pubspec.yaml | 36 +++++----- packages/stream_video/pubspec.yaml | 24 +++---- .../stream_video_flutter/example/pubspec.yaml | 28 ++++---- packages/stream_video_flutter/pubspec.yaml | 10 +-- .../background_example/pubspec.yaml | 3 +- .../pubspec.yaml | 6 +- .../pubspec.yaml | 12 ++-- 8 files changed, 127 insertions(+), 60 deletions(-) create mode 100644 .github/workflows/legacy_version_analyze.yml diff --git a/.github/workflows/legacy_version_analyze.yml b/.github/workflows/legacy_version_analyze.yml new file mode 100644 index 000000000..6078a617f --- /dev/null +++ b/.github/workflows/legacy_version_analyze.yml @@ -0,0 +1,68 @@ +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: + - main + - develop + paths: + - 'packages/**' + - '.github/workflows/legacy_version_analyze.yml' + pull_request: + branches: + - main + - 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 Video Analyze" + run: cd packages/stream_video/lib && dart analyze --fatal-infos . + + - name: "Stream Video Flutter Analyze" + run: cd packages/stream_video_flutter/lib && dart analyze --fatal-infos . + + - name: "Stream Video Flutter Background Analyze" + run: cd packages/stream_video_flutter_background/lib && dart analyze --fatal-infos . + + - name: "Stream Video Push Notification Analyze" + run: cd packages/stream_video_push_notification/lib && dart analyze --fatal-infos . \ No newline at end of file diff --git a/dogfooding/pubspec.yaml b/dogfooding/pubspec.yaml index 280f7efe5..231c63968 100644 --- a/dogfooding/pubspec.yaml +++ b/dogfooding/pubspec.yaml @@ -4,27 +4,27 @@ publish_to: 'none' version: 1.0.0+1 environment: - sdk: '>=2.18.0 <4.0.0' - flutter: '>=3.3.0' + sdk: '>=2.19.0 <4.0.0' + flutter: '>=3.7.0' dependencies: - crypto: 3.0.2 - cupertino_icons: ^1.0.2 - device_info_plus: ^8.1.0 - envied: ^0.3.0 - firebase_auth: ^4.6.1 - firebase_core: ^2.13.0 - firebase_messaging: ^14.6.1 + crypto: ^3.0.3 + cupertino_icons: ^1.0.5 + device_info_plus: ^9.0.3 + envied: ^0.3.0+3 + firebase_auth: ^4.7.2 + firebase_core: ^2.15.0 + firebase_messaging: ^14.6.5 flutter: sdk: flutter - flutter_svg: 2.0.4 + flutter_svg: ^2.0.5 google_fonts: ^4.0.4 - google_sign_in: ^6.1.1 - http: ^0.13.5 - path_provider: ^2.0.14 - share_plus: ^7.0.2 - shared_preferences: ^2.0.17 - stream_chat_flutter: ^6.5.0 + google_sign_in: ^6.1.4 + http: ^0.13.0 + path_provider: ^2.1.0 + share_plus: ^7.1.0 + shared_preferences: ^2.2.0 + stream_chat_flutter: ^6.8.1 stream_video: ^0.0.2 stream_video_flutter: ^0.0.3 stream_video_push_notification: ^0.0.3 @@ -32,8 +32,8 @@ dependencies: dev_dependencies: build_runner: ^2.3.3 - envied_generator: ^0.3.0 - flutter_launcher_icons: ^0.12.0 + envied_generator: ^0.3.0+3 + flutter_launcher_icons: ^0.13.1 flutter_test: sdk: flutter diff --git a/packages/stream_video/pubspec.yaml b/packages/stream_video/pubspec.yaml index e4ab82b9d..f01560b1e 100644 --- a/packages/stream_video/pubspec.yaml +++ b/packages/stream_video/pubspec.yaml @@ -6,39 +6,39 @@ repository: https://github.com/GetStream/stream-video-flutter issue_tracker: https://github.com/GetStream/stream-video-flutter/issues environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=2.19.0 <4.0.0" + flutter: ">=3.7.0" dependencies: flutter: sdk: flutter - async: ^2.11.0 + async: ^2.10.0 equatable: ^2.0.5 - http: ^0.13.4 + http: ^0.13.0 jose: ^0.3.3 protobuf: ^3.0.0 - tart: ^0.3.0 + tart: ^0.4.0 uuid: ^3.0.7 rxdart: ^0.27.7 web_socket_channel: ^2.4.0 - connectivity_plus: ^4.0.1 - collection: ^1.17.1 - flutter_webrtc: ^0.9.35 + connectivity_plus: ^4.0.2 + collection: ^1.17.0 + flutter_webrtc: ^0.9.34 intl: ^0.18.1 - meta: ^1.9.1 + meta: ^1.8.0 sdp_transform: ^0.3.2 synchronized: ^3.1.0 state_notifier: ^0.7.2+1 shared_preferences: ^2.2.0 fixnum: ^1.1.0 - dart_webrtc: ^1.1.1 - webrtc_interface: ^1.1.0 + dart_webrtc: ^1.0.17 + webrtc_interface: ^1.0.13 dev_dependencies: flutter_test: sdk: flutter mockito: ^5.2.0 - mocktail: ^0.3.0 + mocktail: ^1.0.0 topics: - video diff --git a/packages/stream_video_flutter/example/pubspec.yaml b/packages/stream_video_flutter/example/pubspec.yaml index 13a213338..0411269c1 100644 --- a/packages/stream_video_flutter/example/pubspec.yaml +++ b/packages/stream_video_flutter/example/pubspec.yaml @@ -20,7 +20,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: '>=2.18.0 <3.0.0' + sdk: '>=2.19.0 <4.0.0' + flutter: '>=3.7.0' # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions @@ -32,28 +33,25 @@ dependencies: flutter: sdk: flutter http: ^0.13.5 - flutter_svg: ^2.0.4 - flutter_webrtc: ^0.9.23 + flutter_svg: ^2.0.5 + flutter_webrtc: ^0.9.34 google_fonts: ^4.0.4 - path_provider: ^2.0.14 - share_plus: ^6.3.1 - device_info_plus: ^8.1.0 + path_provider: ^2.1.0 + share_plus: ^7.1.0 + device_info_plus: ^9.0.3 intl: ^0.18.1 - stream_video: - path: ../../stream_video - stream_video_flutter: - path: ../../stream_video_flutter - stream_video_flutter_background: - path: ../../stream_video_flutter_background - envied: ^0.3.0 + stream_video: ^0.0.2 + stream_video_flutter: ^0.0.2 + stream_video_flutter_background: 0.0.1 + envied: ^0.3.0+3 # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.2 + cupertino_icons: ^1.0.5 dev_dependencies: build_runner: ^2.3.3 - envied_generator: ^0.3.0 + envied_generator: ^0.3.0+3 flutter_test: sdk: flutter diff --git a/packages/stream_video_flutter/pubspec.yaml b/packages/stream_video_flutter/pubspec.yaml index 2cd1180b5..17f9acef6 100644 --- a/packages/stream_video_flutter/pubspec.yaml +++ b/packages/stream_video_flutter/pubspec.yaml @@ -6,15 +6,15 @@ repository: https://github.com/GetStream/stream-video-flutter issue_tracker: https://github.com/GetStream/stream-video-flutter/issues environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=2.19.0 <4.0.0" + flutter: ">=3.7.0" dependencies: cached_network_image: ^3.2.3 - collection: ^1.16.0 + collection: ^1.17.0 flutter: sdk: flutter - flutter_webrtc: ^0.9.35 + flutter_webrtc: ^0.9.34 rate_limiter: ^1.0.0 stream_video: ^0.0.2 stream_video_flutter_background: ^0.0.1 @@ -23,7 +23,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mocktail: ^0.3.0 + mocktail: ^1.0.0 flutter: assets: diff --git a/packages/stream_video_flutter_background/background_example/pubspec.yaml b/packages/stream_video_flutter_background/background_example/pubspec.yaml index 6635da4f0..0fea6ff93 100644 --- a/packages/stream_video_flutter_background/background_example/pubspec.yaml +++ b/packages/stream_video_flutter_background/background_example/pubspec.yaml @@ -6,7 +6,8 @@ description: Demonstrates how to use the stream_video_flutter_background plugin. publish_to: 'none' # Remove this line if you wish to publish to pub.dev environment: - sdk: '>=2.18.5 <3.0.0' + sdk: '>=2.19.0 <4.0.0' + flutter: '>=3.7.0' # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions diff --git a/packages/stream_video_flutter_background/pubspec.yaml b/packages/stream_video_flutter_background/pubspec.yaml index f54c6e165..7d0e660ea 100644 --- a/packages/stream_video_flutter_background/pubspec.yaml +++ b/packages/stream_video_flutter_background/pubspec.yaml @@ -6,14 +6,14 @@ repository: https://github.com/GetStream/stream-video-flutter issue_tracker: https://github.com/GetStream/stream-video-flutter/issues environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=2.19.0 <4.0.0" + flutter: ">=3.7.0" dependencies: flutter: sdk: flutter equatable: ^2.0.5 - plugin_platform_interface: ^2.1.4 + plugin_platform_interface: ^2.1.5 dev_dependencies: flutter_test: diff --git a/packages/stream_video_push_notification/pubspec.yaml b/packages/stream_video_push_notification/pubspec.yaml index fcf27c1c2..e841edf2f 100644 --- a/packages/stream_video_push_notification/pubspec.yaml +++ b/packages/stream_video_push_notification/pubspec.yaml @@ -6,26 +6,26 @@ repository: https://github.com/GetStream/stream-video-flutter issue_tracker: https://github.com/GetStream/stream-video-flutter/issues environment: - sdk: '>=2.18.0 <4.0.0' - flutter: ">=3.3.0" + sdk: '>=2.19.0 <4.0.0' + flutter: ">=3.7.0" dependencies: flutter: sdk: flutter shared_preferences: ^2.2.0 - firebase_messaging: ^14.5.0 + firebase_messaging: ^14.6.5 stream_video: ^0.0.2 flutter_callkit_incoming: ^2.0.0+1 uuid: ^3.0.7 rxdart: ^0.27.7 - collection: ^1.16.0 - firebase_core: ^2.11.0 + collection: ^1.17.0 + firebase_core: ^2.15.0 dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^2.0.2 - mocktail: ^0.3.0 + mocktail: ^1.0.0 flutter: # This section identifies this Flutter project as a plugin project.