Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kn/run ci with flutter 3.10 #1474

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.0'
channel: 'stable'

- name: Install dependencies
Expand Down Expand Up @@ -373,6 +374,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.0'
channel: 'stable'

- name: Install dependencies
Expand Down Expand Up @@ -444,6 +446,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.0'
channel: 'stable'

- name: Delete generated files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dart-desktop-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name : Setup Dart SDK
uses: dart-lang/setup-dart@main
with:
sdk: stable
sdk: 3.0.0
architecture: ${{ inputs.architecture == 'arm' && 'arm64' || 'x64'}}

- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/flutter-desktop-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.0'
channel: 'stable'
architecture: ${{ inputs.architecture == 'arm' && 'arm64' || 'x64'}}

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

The map keys may not contain `.` or start with `$`. (Issue [#685](https://github.com/realm/realm-dart/issues/685))
* Added a new exception - `MigrationRequiredException` that will be thrown when a local Realm is opened with a schema that differs from the schema on disk and no migration callback is supplied. Additionally, a `helpLink` property has been added to `RealmException` and its subclasses to provide a link to the documentation for the error. (Issue [#1448](https://github.com/realm/realm-dart/issues/1448))
* Downgrade minimum dependencies to Dart 3.0.0 and Flutter 3.10.0. (PR [#1457](https://github.com/realm/realm-dart/pull/1457))

### Fixed
* Fixed warnings being emitted by the realm generator requesting that `xyz.g.dart` be included with `part 'xyz.g.dart';` for `xyz.dart` files that import `realm` but don't have realm models defined. Those should not need generated parts and including the part file would have resulted in an empty file with `// ignore_for_file: type=lint` being generated. (PR [#1443](https://github.com/realm/realm-dart/pull/1443))
Expand All @@ -51,6 +52,8 @@

### Compatibility
* Realm Studio: 13.0.0 or later.
* Flutter: ^3.10.0
* Dart: ^3.0.0

### Internal
* Using Core v13.26.0.
Expand Down
2 changes: 1 addition & 1 deletion common/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ issue_tracker: https://github.com/realm/realm-dart/issues
publish_to: none

environment:
sdk: ^3.1.0
sdk: ^3.0.0

dependencies:
objectid: ^3.0.0
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A simple command-line application using Realm Dart SDK.
publish_to: none

environment:
sdk: ^3.1.0
sdk: ^3.0.0

dependencies:
realm_dart:
Expand Down
4 changes: 2 additions & 2 deletions ffigen/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >-
publish_to: none

environment:
sdk: ^3.1.0
sdk: ^3.0.0

dev_dependencies:
ffigen: ^11.0.0
ffigen: ^9.0.0
4 changes: 2 additions & 2 deletions flutter/realm_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ version: 1.6.1
publish_to: "none"

environment:
sdk: ^3.1.0
flutter: ^3.13.0
sdk: ^3.0.0
flutter: ^3.10.0

dependencies:
flutter:
Expand Down
4 changes: 2 additions & 2 deletions flutter/realm_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ issue_tracker: https://github.com/realm/realm-dart/issues
publish_to: none

environment:
sdk: ^3.1.0
flutter: ^3.13.0
sdk: ^3.0.0
flutter: ^3.10.0

dependencies:
flutter:
Expand Down
19 changes: 9 additions & 10 deletions flutter/realm_flutter/tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ publish_to: "none"
version: 1.6.1

environment:
sdk: ^3.1.0
flutter: ^3.13.0
sdk: ^3.0.0

dependencies:
flutter:
Expand All @@ -23,17 +22,17 @@ dependencies:
dev_dependencies:
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
flutter_lints: ^3.0.1
build_runner: ^2.1.2
flutter_lints: ^3.0.0
test: any
timezone: ^0.9.0
timezone: any

# Hack to run driver tests with flutter 3.10
dependency_overrides:
realm_common:
path: ../../../common
realm_generator: 1.6.0 # unfortunately this is a direct dependency currently, noy a dev dependency

flutter:
uses-material-design: true
assets:
- data/realm_files/old-format.realm

dependency_overrides:
test_api: ^0.6.1
2 changes: 1 addition & 1 deletion generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ issue_tracker: https://github.com/realm/realm-dart/issues
publish_to: none

environment:
sdk: ^3.1.0
sdk: ^3.0.0

dependencies:
analyzer: ^6.0.0
Expand Down
Loading
Loading