Skip to content

Commit

Permalink
Update builder
Browse files Browse the repository at this point in the history
  • Loading branch information
tenhobi committed Sep 4, 2023
1 parent 6d8d803 commit cb2d47b
Show file tree
Hide file tree
Showing 74 changed files with 104 additions and 182 deletions.
1 change: 1 addition & 0 deletions examples/drift/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ pubspec.lock

# Example
!*.g.dart
!*.auto_mappr.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/drift/lib/mappr.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:auto_mappr_annotation/auto_mappr_annotation.dart';
import 'package:examples_drift/db.dart';

part 'mappr.g.dart';
import 'mappr.auto_mappr.dart';

class TodoItem {
final int id;
Expand Down
1 change: 1 addition & 0 deletions examples/example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ pubspec.lock

# Example
!*.g.dart
!*.auto_mappr.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/example/lib/enum.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:auto_mappr_annotation/auto_mappr_annotation.dart';

part 'enum.g.dart';
import 'package:examples_example/enum.auto_mappr.dart';

enum UserType { student, admin, parent }

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/example/lib/equatable.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:auto_mappr_annotation/auto_mappr_annotation.dart';
import 'package:equatable/equatable.dart';

part 'equatable.g.dart';
import 'package:examples_example/equatable.auto_mappr.dart';

@AutoMappr([
MapType<UserDto, User>(),
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/example/lib/nested.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import 'package:auto_mappr_annotation/auto_mappr_annotation.dart';
import 'package:equatable/equatable.dart';

part 'nested.g.dart';
import 'package:examples_example/nested.auto_mappr.dart';

@AutoMappr([
MapType<UserDto, User>(),
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/example/lib/nullable.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:auto_mappr_annotation/auto_mappr_annotation.dart';
import 'package:equatable/equatable.dart';

part 'nullable.g.dart';
import 'package:examples_example/nullable.auto_mappr.dart';

@AutoMappr([
MapType<UserDto, User>(
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/example/lib/rename.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:auto_mappr_annotation/auto_mappr_annotation.dart';

part 'rename.g.dart';
import 'package:examples_example/rename.auto_mappr.dart';

@AutoMappr([
MapType<UserDto, User>(
Expand Down
1 change: 1 addition & 0 deletions examples/freezed/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ pubspec.lock

# Example
!*.g.dart
!*.auto_mappr.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/freezed/lib/freezed_example.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:auto_mappr_annotation/auto_mappr_annotation.dart';
import 'package:examples_freezed/freezed_example.auto_mappr.dart';
import 'package:freezed_annotation/freezed_annotation.dart';

part 'freezed_example.freezed.dart';
part 'freezed_example.g.dart';

@freezed
class UserInfoUnion with _$UserInfoUnion {
Expand Down
1 change: 1 addition & 0 deletions examples/injectable/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ pubspec.lock

# Example
!*.g.dart
!*.auto_mappr.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions examples/injectable/lib/mappr.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import 'package:auto_mappr_annotation/auto_mappr_annotation.dart';
import 'package:examples_injectable/mappr.auto_mappr.dart';
import 'package:injectable/injectable.dart';

part 'mappr.g.dart';

class User {
final int id;
final String name;
Expand Down
1 change: 1 addition & 0 deletions examples/json_serializable/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ pubspec.lock

# Example
!*.g.dart
!*.auto_mappr.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions examples/json_serializable/lib/serializable.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import 'package:auto_mappr_annotation/auto_mappr_annotation.dart';
import 'package:examples_json_serializable/serializable.auto_mappr.dart';
import 'package:json_annotation/json_annotation.dart';

part 'serializable.g.dart';

@AutoMappr([
MapType<UserDto, User>(),
MapType<ValueHolderDto, ValueHolder>(),
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:auto_mappr_annotation/auto_mappr_annotation.dart';
import 'package:json_annotation/json_annotation.dart';

part 'json_serializable.g.dart';
import 'json_serializable.auto_mappr.dart';

@AutoMappr([
MapType<UserDto, User>(),
Expand Down
1 change: 1 addition & 0 deletions packages/auto_mappr/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.g.dart
*.auto_mappr.dart

# Files and directories created by pub.
.dart_tool/
Expand Down
3 changes: 3 additions & 0 deletions packages/auto_mappr/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## Unreleased
- Add a `reverse` option on `MapType`, which includes the reverse mapping. [#115](https://github.com/netglade/auto_mappr/pull/115)

- Allow use modules using `includes` on `@AutoMappr`. Previous `modules` is now `delegates`.
- Remove shared AutoMappr builder that used PartBuilder, now `.auto_mappr.dart` is generated using LibraryBuilder.

## 1.7.0
- Adhere to netglade_analysis. [#94](https://github.com/netglade/auto_mappr/pull/94)
- Update analyzer and mocktail packages. [#111](https://github.com/netglade/auto_mappr/pull/111)
Expand Down
Loading

0 comments on commit cb2d47b

Please sign in to comment.