Skip to content

Commit c79c9fc

Browse files
authored
chore: Updated minimum Flutter version to 3.24.5 (#815)
* Added method to ensure lock screen permission on Android * added changelog * Updated minimum Flutter version to 3.24.5 * tweak * reverted back to withOpacity for backward compatibility * fix
1 parent 8e9cc0f commit c79c9fc

File tree

23 files changed

+67
-35
lines changed

23 files changed

+67
-35
lines changed

.github/workflows/legacy_version_analyze.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ name: legacy_version_analyze
33
env:
44
# Note: The versions below should be manually updated after a new stable
55
# version comes out.
6-
flutter_version: "3.22.0"
6+
flutter_version: "3.24.5"
77

88
on:
99
push:
1010
branches:
1111
- main
1212
- develop
1313
paths:
14-
- 'packages/**'
15-
- '.github/workflows/legacy_version_analyze.yml'
14+
- "packages/**"
15+
- ".github/workflows/legacy_version_analyze.yml"
1616
pull_request:
1717
branches:
1818
- main
1919
- develop
2020
paths:
21-
- 'packages/**'
22-
- '.github/workflows/legacy_version_analyze.yml'
21+
- "packages/**"
22+
- ".github/workflows/legacy_version_analyze.yml"
2323

2424
concurrency:
2525
group: ${{ github.workflow }}-${{ github.ref }}
@@ -66,4 +66,4 @@ jobs:
6666
run: cd packages/stream_video_push_notification/lib && dart analyze --no-fatal-warnings .
6767

6868
- name: "Stream Video Flutter Screen Sharing Analyze"
69-
run: cd packages/stream_video_screen_sharing/lib && dart analyze --no-fatal-warnings .
69+
run: cd packages/stream_video_screen_sharing/lib && dart analyze --no-fatal-warnings .

.github/workflows/stream_video_flutter_workflow.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ name: stream_video_flutter_workflow
22

33
env:
44
FLUTTER_CHANNEL: stable
5-
FLUTTER_VERSION: 3.24.3
5+
FLUTTER_VERSION: 3.27.1
66
ENV_PROPERTIES: ${{ secrets.ENV_PROPERTIES }}
77

88
on:
99
pull_request:
1010
paths:
11-
- 'packages/**'
12-
- '.github/workflows/stream_video_flutter_workflow.yml'
11+
- "packages/**"
12+
- ".github/workflows/stream_video_flutter_workflow.yml"
1313
types:
1414
- opened
1515
- reopened
@@ -32,18 +32,18 @@ jobs:
3232
uses: actions/checkout@v3
3333
with:
3434
fetch-depth: 0
35-
35+
3636
- name: Install Flutter
3737
uses: subosito/flutter-action@v2
3838
with:
3939
cache: true
4040
channel: ${{ env.FLUTTER_CHANNEL }}
4141
flutter-version: ${{ env.FLUTTER_VERSION }}
42-
42+
4343
- name: Install Tools
4444
run: |
4545
flutter pub global activate melos
46-
46+
4747
- name: Bootstrap Workspace
4848
run: melos postclean
4949

@@ -54,12 +54,12 @@ jobs:
5454
run: |
5555
echo "${{ env.ENV_PROPERTIES }}" > .env &&
5656
melos run generate:all
57-
57+
5858
# TODO: Treat info and warning as error once all packages solve their issues.
5959
- name: Dart Analyze
6060
run: |
6161
melos run analyze:error
62-
62+
6363
build:
6464
timeout-minutes: 15
6565
runs-on: ubuntu-latest
@@ -68,7 +68,7 @@ jobs:
6868
uses: actions/checkout@v3
6969
with:
7070
fetch-depth: 0
71-
71+
7272
- name: ⚙️ Set up Java
7373
uses: actions/setup-java@v3
7474
with:
@@ -81,19 +81,19 @@ jobs:
8181
cache: true
8282
channel: ${{ env.FLUTTER_CHANNEL }}
8383
flutter-version: ${{ env.FLUTTER_VERSION }}
84-
84+
8585
- name: Install Tools
8686
run: |
8787
flutter pub global activate melos
88-
88+
8989
- name: Bootstrap Workspace
9090
run: melos bootstrap --verbose
91-
91+
9292
- name: Prepare environment
9393
run: |
9494
echo "${{ env.ENV_PROPERTIES }}" > .env &&
9595
melos run generate:all
96-
96+
9797
- name: Build Example
9898
run: |
99-
melos run build:example:android
99+
melos run build:example:android

dogfooding/android/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ apply plugin: 'kotlin-android'
3535
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
3636

3737
android {
38+
if (project.android.hasProperty("namespace")) {
39+
namespace = "io.getstream.video.flutter.dogfooding"
40+
}
41+
3842
compileSdkVersion 34
3943
ndkVersion flutter.ndkVersion
4044

dogfooding/lib/app/app_content.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ class _StreamDogFoodingAppContentState
328328
optionElevation: 2,
329329
inactiveOptionElevation: 2,
330330
optionBackgroundColor: AppColorPalette.buttonSecondary,
331-
inactiveOptionBackgroundColor: colorTheme.overlay.withOpacity(0.4),
331+
inactiveOptionBackgroundColor:
332+
// ignore: deprecated_member_use
333+
colorTheme.overlay.withOpacity(0.4),
332334
optionShape: const CircleBorder(),
333335
optionPadding: const EdgeInsets.all(14),
334336
),

dogfooding/lib/screens/call_stats_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ class StatIndicator extends StatelessWidget {
275275
return Container(
276276
decoration: BoxDecoration(
277277
borderRadius: BorderRadius.circular(16),
278+
// ignore: deprecated_member_use
278279
color: indicatorData.$1.withOpacity(0.16),
279280
),
280281
padding: const EdgeInsets.all(8),

dogfooding/lib/screens/stats_latency_chart.dart

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ class StatsLatencyChart extends StatelessWidget {
7777
colors: [
7878
ColorTween(
7979
begin: AppColorPalette.appGreen,
80+
// ignore: deprecated_member_use
8081
end: AppColorPalette.appGreen.withOpacity(0.5))
8182
.lerp(0.2)!,
8283
ColorTween(
8384
begin: AppColorPalette.appGreen,
85+
// ignore: deprecated_member_use
8486
end: AppColorPalette.appGreen.withOpacity(0.5))
8587
.lerp(0.2)!,
8688
],
@@ -96,13 +98,19 @@ class StatsLatencyChart extends StatelessWidget {
9698
colors: [
9799
ColorTween(
98100
begin: AppColorPalette.appGreen,
99-
end: AppColorPalette.appGreen.withOpacity(0.5))
101+
end:
102+
// ignore: deprecated_member_use
103+
AppColorPalette.appGreen.withOpacity(0.5))
100104
.lerp(0.2)!
105+
// ignore: deprecated_member_use
101106
.withOpacity(0.1),
102107
ColorTween(
103108
begin: AppColorPalette.appGreen,
104-
end: AppColorPalette.appGreen.withOpacity(0.5))
109+
end:
110+
// ignore: deprecated_member_use
111+
AppColorPalette.appGreen.withOpacity(0.5))
105112
.lerp(0.2)!
113+
// ignore: deprecated_member_use
106114
.withOpacity(0.1),
107115
],
108116
),

dogfooding/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Flutter Dogfooding App to showcase Video SDK.
55

66
environment:
77
sdk: ">=3.4.0 <4.0.0"
8-
flutter: ">=3.22.0"
8+
flutter: ">=3.24.5"
99

1010
dependencies:
1111
app_links: ^6.3.2

packages/stream_video/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Unreleased
22

3+
* Updated minimum Flutter version to 3.24.5
4+
35
✅ Added
46
* Added the 'call.collectUserFeedback()' method which allows users to send call quality rating. These ratings are visible on the Dashboard and are aggregated in call stats for easy tracking. For a sample implementation, please refer to the [cookbook](https://getstream.io/video/docs/flutter/ui-cookbook/call-quality-rating/).
57
* Added device thermal status reporting to better optimize call quality.

packages/stream_video/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ issue_tracker: https://github.com/GetStream/stream-video-flutter/issues
88

99
environment:
1010
sdk: ">=3.4.0 <4.0.0"
11-
flutter: ">=3.22.0"
11+
flutter: ">=3.24.5"
1212

1313
dependencies:
1414
async: ^2.11.0

packages/stream_video_flutter/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Unreleased
22

3+
* Updated minimum Flutter version to 3.24.5
4+
35
✅ Added
46
* Added the 'call.collectUserFeedback()' method which allows users to send call quality rating. These ratings are visible on the Dashboard and are aggregated in call stats for easy tracking. For a sample implementation, please refer to the [cookbook](https://getstream.io/video/docs/flutter/ui-cookbook/call-quality-rating/).
57
* Added device thermal status reporting to better optimize call quality.

0 commit comments

Comments
 (0)