Skip to content

Commit

Permalink
chore(repo): update minimum supported SDK version to Flutter 3.7/Dart…
Browse files Browse the repository at this point in the history
… 2.19

Signed-off-by: Sahil Kumar <[email protected]>
  • Loading branch information
xsahil03x committed Aug 10, 2023
1 parent 6b946f3 commit aca5c7f
Show file tree
Hide file tree
Showing 8 changed files with 127 additions and 60 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/legacy_version_analyze.yml
Original file line number Diff line number Diff line change
@@ -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 .
36 changes: 18 additions & 18 deletions dogfooding/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,36 @@ 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
uni_links: ^0.5.1

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

Expand Down
24 changes: 12 additions & 12 deletions packages/stream_video/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 13 additions & 15 deletions packages/stream_video_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
10 changes: 5 additions & 5 deletions packages/stream_video_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,7 +23,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^0.3.0
mocktail: ^1.0.0

flutter:
assets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/stream_video_flutter_background/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions packages/stream_video_push_notification/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit aca5c7f

Please sign in to comment.