From f82350e99d79542b6805b4dc3473b0e92ec39ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Mon, 12 Dec 2022 09:56:28 +0100 Subject: [PATCH 1/3] Update to analyzer ^5.0.0 (supports dart3 on master) --- generator/lib/src/pseudo_type.dart | 5 ++++- generator/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/generator/lib/src/pseudo_type.dart b/generator/lib/src/pseudo_type.dart index e31ef0790..308cc7e0b 100644 --- a/generator/lib/src/pseudo_type.dart +++ b/generator/lib/src/pseudo_type.dart @@ -15,7 +15,7 @@ class PseudoType extends TypeImpl { final NullabilitySuffix nullabilitySuffix; final String _name; - PseudoType(this._name, {this.nullabilitySuffix = NullabilitySuffix.none}) : super(null); + PseudoType(this._name, {this.nullabilitySuffix = NullabilitySuffix.none}); Never get _never => throw UnimplementedError(); @@ -53,4 +53,7 @@ class PseudoType extends TypeImpl { @override Element? get element2 => null; + + @override + Element? get element => _never; } diff --git a/generator/pubspec.yaml b/generator/pubspec.yaml index 535828435..4a9b8c724 100644 --- a/generator/pubspec.yaml +++ b/generator/pubspec.yaml @@ -15,7 +15,7 @@ environment: sdk: ">=2.17.5 <3.0.0" dependencies: - analyzer: ^4.7.0 + analyzer: ^5.0.0 build_resolvers: ^2.0.9 build: ^2.0.0 dart_style: ^2.2.0 From b25ed89f3d213ff41b55984b41cc6a943a4b7a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Mon, 19 Dec 2022 15:22:38 +0100 Subject: [PATCH 2/3] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f85329cc..0478af259 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ ### Internal * Using Core 13.1.2. * No longer use vcpkg ([#1069](https://github.com/realm/realm-dart/pull/1069)) +* Upgraded analyzer dependency to ^5.0.0. ([#1072](https://github.com/realm/realm-dart/pull/1072)) ## 0.8.0+rc (2022-11-14) From 2543a1e90e468e6d21bb3d5e6d4a21127d5c58a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Tue, 20 Dec 2022 22:56:54 +0100 Subject: [PATCH 3/3] Fix flutter tests after update --- flutter/realm_flutter/tests/pubspec.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flutter/realm_flutter/tests/pubspec.yaml b/flutter/realm_flutter/tests/pubspec.yaml index 3e769eea7..43dfbfd24 100644 --- a/flutter/realm_flutter/tests/pubspec.yaml +++ b/flutter/realm_flutter/tests/pubspec.yaml @@ -28,6 +28,8 @@ dev_dependencies: test: ^1.20.1 timezone: ^0.9.0 +dependency_overrides: + test_api: 0.4.17 flutter: uses-material-design: true