-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use PartBuilder instead of SharedPartBuilder (#1310)
* Use PartBuilder instead of SharedPartBuilder This will allow other builders to consume output of the realm generator. Generated files are now suffixed with `.realm.dart` instead of `.g.dart`. * Fix generator tests * Rude fix * Force unicode glyphs in error messages Instead of reading it from the console. Github windows actions are weird in this respect. The logs will alway be rendered with unicode anyway. * Fix ordering of async info tests * Fix multi-file generate * Update CHANGELOG * Update workflows * Fix generator tests after rebase * Remember delete flag * Explain mocks * Elaborate CHANGELOG * Rip out dotnet, etc. to make room for emulator run * Bring us into the not so distant past - using api level 31, and NDK 25.2.9519653
- Loading branch information
Showing
163 changed files
with
655 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
targets: | ||
$default: | ||
sources: | ||
exclude: | ||
- '**/ephemeral/**' | ||
|
||
builders: | ||
build_cli: | ||
generate_for: | ||
- lib/src/cli/**/**.dart | ||
json_serializable: | ||
generate_for: | ||
- lib/src/cli/metrics/flutter_info.dart | ||
- lib/src/cli/metrics/metrics.dart | ||
realm_generator|realm_object_builder: | ||
realm_generator: | ||
generate_for: | ||
include: | ||
- test/**.dart | ||
- example/**.dart | ||
|
||
builders: | ||
realm_generator: | ||
import: "package:realm_generator/realm_generator.dart" | ||
builder_factories: ["generateRealmObjects"] | ||
build_extensions: { ".dart": ["realm_objects.g.part"] } | ||
build_extensions: { ".dart": [".realm.dart"] } | ||
auto_apply: dependents | ||
build_to: cache | ||
applies_builders: ["source_gen|combining_builder"] | ||
build_to: source |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
targets: | ||
$default: | ||
builders: | ||
realm_generator|realm_object_builder: | ||
realm_generator: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
builders: | ||
realm_object_builder: | ||
realm_generator: | ||
import: "package:realm_generator/realm_generator.dart" | ||
builder_factories: ["generateRealmObjects"] | ||
build_extensions: { ".dart": [".realm_objects.g.part"] } | ||
build_extensions: { ".dart": [".realm.dart"] } | ||
auto_apply: dependents | ||
build_to: cache | ||
applies_builders: ["source_gen|combining_builder"] | ||
build_to: source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// MOCK FILE! This file exists to ensure the parent file is valid Dart. | ||
// The parent will be used as input to the realm_generator in a test, and the | ||
// output compared to the .expected file. | ||
part of 'common.dart'; |
Oops, something went wrong.