Skip to content

Commit 109ed43

Browse files
authored
Allow build 4.0.0. (#93)
1 parent 781fa8d commit 109ed43

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.3.2
2+
3+
- Allow `build: '>=3.0.0 <5.0.0'`.
4+
- Allow `source_gen: '>=3.0.0 <5.0.0'`.
5+
16
## 1.3.1
27

38
- Update dependencies

lib/src/expectation_element.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ List<ExpectationElement> genAnnotatedElements(
6666
}
6767

6868
const _mappers = {
69-
TypeChecker.fromRuntime(ShouldGenerate): _shouldGenerate,
70-
TypeChecker.fromRuntime(ShouldGenerateFile): _shouldGenerateFile,
71-
TypeChecker.fromRuntime(ShouldThrow): _shouldThrow,
69+
TypeChecker.typeNamed(ShouldGenerate, inPackage: 'source_gen_test'):
70+
_shouldGenerate,
71+
TypeChecker.typeNamed(ShouldGenerateFile, inPackage: 'source_gen_test'):
72+
_shouldGenerateFile,
73+
TypeChecker.typeNamed(ShouldThrow, inPackage: 'source_gen_test'):
74+
_shouldThrow,
7275
};
7376

7477
Iterable<TestExpectation> _expectationElements(Element2 element) sync* {

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: source_gen_test
2-
version: 1.3.1
2+
version: 1.3.2
33
description: >-
44
Test support for the source_gen package.
55
Includes helpers to make it easy to validate both success and failure cases.
@@ -10,12 +10,12 @@ environment:
1010

1111
dependencies:
1212
analyzer: '>=7.4.0 <9.0.0'
13-
build: ^3.0.0
13+
build: '>=3.0.0 <5.0.0'
1414
build_test: ^3.3.0
1515
dart_style: ^3.0.0
1616
meta: ^1.15.0
1717
path: ^1.9.0
18-
source_gen: ^3.0.0
18+
source_gen: '>=3.0.0 <5.0.0'
1919
test: ^1.25.9
2020

2121
dev_dependencies:

0 commit comments

Comments
 (0)