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

7.5.12 #151

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 7.5.12
* update analyzer to dependency range
* fix analyzer deprecations

## 7.5.11
* allow analyzer 0.39.0
* make dispatcher name public
Expand Down Expand Up @@ -300,4 +304,4 @@ final _nestedReducer = new NestedReducerBuilder<BaseCounter, BaseCounterBuilder,
)
..add(NestedCounterActionsNames.increment, _nestedIncrement)
..add(NestedCounterActionsNames.decrement, _nestedDecrement);
```
```
6 changes: 3 additions & 3 deletions lib/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ActionsClass _actionsClassFromElement(ClassElement element) => ActionsClass(
Iterable<ComposedActionClass> _composedActionClasses(ClassElement element) =>
element.fields
.where((f) => _isReduxActions(f.type.element))
.map((f) => ComposedActionClass(f.name, f.type.name));
.map((f) => ComposedActionClass(f.name, f.type.element.name));

Iterable<Action> _actionsFromElement(ClassElement element) => element.fields
.where(_isActionDispatcher)
Expand Down Expand Up @@ -85,11 +85,11 @@ bool _isReduxActions(Element element) =>
element is ClassElement && _hasSuperType(element, 'ReduxActions');

bool _isActionDispatcher(FieldElement element) =>
element.type.name == 'ActionDispatcher';
element.type.element.name == 'ActionDispatcher';

bool _hasSuperType(ClassElement classElement, String type) =>
classElement.allSupertypes
.any((interfaceType) => interfaceType.name == type) &&
.any((interfaceType) => interfaceType.element.name == type) &&
!classElement.displayName.startsWith('_\$');

String _generateActions(ClassElement element) {
Expand Down
10 changes: 5 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: built_redux
version: 7.5.11
version: 7.5.12
description:
A state management library written in dart that enforces immutability
homepage: https://github.com/davidmarne/built_redux
dependencies:
analyzer: '>=0.33.0 <0.40.0'
analyzer: '>=0.39.3 <0.42.0'
build: ^1.2.2
built_collection: ^4.3.0
built_value: '>=6.8.2 <8.0.0'
built_collection: ">=4.3.0 <6.0.0"
built_value: '>=7.0.8 <9.0.0'
source_gen: ^0.9.4+6
test: ^1.9.1

dev_dependencies:
build_runner: ^1.7.1
build_test: ^0.10.11
built_value_generator: ^7.0.0
built_value_generator: ">=7.0.0 <9.0.0"
build_web_compilers: ^2.7.1
workiva_analysis_options: ^1.0.0

Expand Down