Skip to content

Commit

Permalink
deps: Support Flutter 3.22 and WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed May 16, 2024
1 parent 4df0e5e commit 020177d
Show file tree
Hide file tree
Showing 11 changed files with 98 additions and 107 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
type: choice
options:
- 'any'
- '3.22.x'
- '3.19.x'
enable_android:
description: 'Build Android'
Expand Down Expand Up @@ -49,7 +50,7 @@ on:
inputs:
flutter_version:
required: false
default: '3.19.5'
default: '3.22.0'
type: string
enable_android:
required: false
Expand Down Expand Up @@ -138,6 +139,7 @@ jobs:
flutter build ${{ matrix.build-type }} \
${{ matrix.platform == 'android' && '--debug' || '--release' }} \
${{ matrix.platform == 'ios' && '--no-codesign' || '' }} \
${{ matrix.platform == 'web' && '--wasm' || '' }} \
${{ matrix.platform == 'web' && inputs.upload_pages_artifact && '--base-href "/wrestling_scoreboard/"' || '' }} \
--build-name=0.0.0-nightly.${GITHUB_SHA::7} \
--dart-define=API_URL=https://server.wrestling-scoreboard.oberhauser.dev/api \
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ on:
type: choice
options:
- 'any'
- '3.22.x'
- '3.19.x'
workflow_call:
inputs:
flutter_version:
required: false
default: '3.19.5'
default: '3.22.0'
type: string

jobs:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.5'
flutter-version: '3.22.0'
channel: 'stable'
- uses: bluefireteam/melos-action@v3
- uses: actions/setup-java@v4
Expand All @@ -80,6 +80,7 @@ jobs:
build-type: ${{ matrix.build-type }}
token: ${{ github.token }}
build-args: |-
${{ matrix.platform == 'web' && '--wasm' || '' }}
--dart-define=APP_ENVIRONMENT=production
--dart-define=API_URL=https://server.wrestling-scoreboard.oberhauser.dev/api
--dart-define=WEB_SOCKET_URL=wss://server.wrestling-scoreboard.oberhauser.dev/ws
Expand Down Expand Up @@ -115,7 +116,7 @@ jobs:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.5'
flutter-version: '3.22.0'
channel: 'stable'
- uses: actions/setup-java@v4
if: matrix.platform == 'android'
Expand All @@ -140,6 +141,7 @@ jobs:
tag: ${{ github.ref }}
token: ${{ github.token }}
build-args: |-
${{ matrix.platform == 'web' && '--wasm' || '' }}
--dart-define=APP_ENVIRONMENT=production
--dart-define=API_URL=https://server.wrestling-scoreboard.oberhauser.dev/api
--dart-define=WEB_SOCKET_URL=wss://server.wrestling-scoreboard.oberhauser.dev/ws
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.5'
flutter-version: '3.22.0'
channel: 'stable'
- uses: bluefireteam/melos-action@v3
- name: Release
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.5'
flutter-version: '3.22.0'
channel: 'stable'
- uses: bluefireteam/melos-action@v3
- name: Deploy
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
type: choice
options:
- 'any'
- '3.22.x'
- '3.19.x'
- '3.16.x'
flutter_channel:
description: 'Flutter Channel'
required: false
Expand All @@ -31,7 +31,7 @@ on:
inputs:
flutter_version:
required: false
default: '3.19.5'
default: '3.22.0'
type: string
flutter_channel:
required: false
Expand Down
18 changes: 6 additions & 12 deletions wrestling_scoreboard_client/.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: "7482962148e8d758338d8a28f589f317e1e42ba4"
revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1"
channel: "stable"

project_type: app
Expand All @@ -13,17 +13,11 @@ project_type: app
migration:
platforms:
- platform: root
create_revision: 7482962148e8d758338d8a28f589f317e1e42ba4
base_revision: 7482962148e8d758338d8a28f589f317e1e42ba4
- platform: android
create_revision: ba393198430278b6595976de84fe170f553cc728
base_revision: ba393198430278b6595976de84fe170f553cc728
- platform: ios
create_revision: 7482962148e8d758338d8a28f589f317e1e42ba4
base_revision: 7482962148e8d758338d8a28f589f317e1e42ba4
- platform: macos
create_revision: 7482962148e8d758338d8a28f589f317e1e42ba4
base_revision: 7482962148e8d758338d8a28f589f317e1e42ba4
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
- platform: web
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1

# User provided section

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ class BoutState extends ConsumerState<BoutScreen> {
double padding = width / 100;
final bottomPadding = EdgeInsets.only(bottom: padding);

Color stopwatchColor = stopwatch == _breakStopwatch ? Colors.orange : Theme.of(context).colorScheme.onBackground;
Color stopwatchColor = stopwatch == _breakStopwatch ? Colors.orange : Theme.of(context).colorScheme.onSurface;

final shareAction = IconButton(
icon: const Icon(Icons.share),
Expand Down
2 changes: 1 addition & 1 deletion wrestling_scoreboard_client/lib/view/widgets/themed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ThemedContainer extends StatelessWidget {
@override
Widget build(BuildContext context) {
final textColor =
ThemeData.estimateBrightnessForColor(color ?? Theme.of(context).colorScheme.background) == Brightness.light
ThemeData.estimateBrightnessForColor(color ?? Theme.of(context).colorScheme.surface) == Brightness.light
? Colors.black
: Colors.white;
return Container(
Expand Down
Loading

0 comments on commit 020177d

Please sign in to comment.