Skip to content

Commit

Permalink
Upgraded min Dart SDK to 3.5.0 and updated GitHub workflow to include…
Browse files Browse the repository at this point in the history
… build_runner code.

* Min SDK is because http package 1.2.1 and flutter_lints 5.0.0 require it
* Workflow update is because auth_test uses Mockito and needs to generate a mock
  • Loading branch information
781flyingdutchman committed Jan 13, 2025
1 parent 90f6a36 commit 9bb57e2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ concurrency:
cancel-in-progress: true

env:
# This is Dart 3.2.x
FLUTTER_MIN_SDK: '3.16.0'
# This is Dart 3.5.0
FLUTTER_MIN_SDK: '3.24.0'

jobs:
format:
Expand All @@ -40,6 +40,7 @@ jobs:
with:
cache: true
- run: flutter pub get
- run: dart run build_runner build --delete-conflicting-outputs
- run: flutter analyze
- run: flutter pub get
working-directory: example
Expand All @@ -52,7 +53,6 @@ jobs:
strategy:
fail-fast: false
matrix:
# The example Android project setup ist not supported by Flutter 3.10.x
sdk: [ min, stable, beta ]
steps:
- uses: actions/checkout@v4
Expand All @@ -66,6 +66,8 @@ jobs:
cache: true
flutter-version: ${{ matrix.sdk == 'min' && env.FLUTTER_MIN_SDK || '' }}
channel: ${{ matrix.sdk == 'min' && 'stable' || matrix.sdk }}
- run: flutter pub get
- run: dart run build_runner build --delete-conflicting-outputs
- name: Build example APK
working-directory: example
run: flutter build apk
Expand Down Expand Up @@ -93,6 +95,8 @@ jobs:
- uses: maxim-lobanov/setup-cocoapods@v1
with:
version: latest
- run: flutter pub get
- run: dart run build_runner build --delete-conflicting-outputs
- name: Build example iOS package
run: flutter build ios --simulator
working-directory: example
Expand Down Expand Up @@ -123,6 +127,8 @@ jobs:
sudo apt-get install -y ninja-build
sudo apt-get install -y libgtk-3-dev
export CMAKE_CXX_COMPILER=$(which g++)
- run: flutter pub get
- run: dart run build_runner build --delete-conflicting-outputs
- name: Build example Linux package
run: flutter build linux
working-directory: example
Expand All @@ -131,4 +137,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: background-downloader-demo-linux
path: example/build/linux/x64/release/bundle
path: example/build/linux/x64/release/bundle
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## next
* Upgraded minimum Dart SDK to 3.3.0

## 8.9.1
* [iOS] Adds Privacy Manifest
* [iOS] Adds support for Swift Package Manager
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 8.9.1
repository: https://github.com/781flyingdutchman/background_downloader

environment:
sdk: ^3.2.0
sdk: ^3.3.0
flutter: '>=3.0.0'

dependencies:
Expand Down

0 comments on commit 9bb57e2

Please sign in to comment.