Skip to content
Merged
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: 3 additions & 3 deletions .github/workflows/flutter_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
flutter-version: 3.10.5
flutter-version: 3.27.0
channel: 'stable'
cache: true

Expand All @@ -22,9 +22,9 @@ jobs:

- name: Generate code
run: flutter pub run build_runner build --delete-conflicting-outputs

- name: Verify formatting
run: dart format . --fix
run: dart format .

- name: Analyze project source
run: flutter analyze . --fatal-infos --no-pub
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# dart_define changelog

## 2.1.2

- bumps the minimum required Dart SDK version up to ^3.6.0
- removes DCM dependencies
- updates `cli_completion` to ^0.5.0
- updates `pub_updater` to ^0.5.0
- updates `cmd_plus` to ^1.3.4
- migrates `freezed` & `freezed_annotation` to ^3.0.0
- migrates `json_annotation` to ^4.9.0

## 2.1.1

- fix: removes extra line break from json file
Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: ^3.6.0

dependencies:
cupertino_icons: ^1.0.2

dev_dependencies:
flutter_lints: ^2.0.0
dart_define: ^1.0.1
flutter_lints: ^5.0.0
dart_define: ^2.1.1



Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/src/argument_variable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ part 'argument_variable.gen.dart';
/// A model representing a single variables argument
/// {@endtemplate}
@freezed
class ArgumentVariable with _$ArgumentVariable {
abstract class ArgumentVariable with _$ArgumentVariable {
/// {@macro argument_variable}
const factory ArgumentVariable({
required String name,
Expand Down
166 changes: 89 additions & 77 deletions lib/src/model/src/argument_variable.gen.dart

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

16 changes: 8 additions & 8 deletions lib/src/model/src/dart_define_configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ part 'dart_define_configuration.gen.dart';
/// {@template dart_define_configuration}
/// A model representing dart define configuration
/// {@endtemplate}
@JsonSerializable(
anyMap: true,
checked: false,
disallowUnrecognizedKeys: true,
explicitToJson: true,
createToJson: false,
)
@Freezed(
fromJson: false,
toJson: false,
)
class DartDefineConfiguration with _$DartDefineConfiguration {
abstract class DartDefineConfiguration with _$DartDefineConfiguration {
@JsonSerializable(
anyMap: true,
checked: false,
disallowUnrecognizedKeys: true,
explicitToJson: true,
createToJson: false,
)
const factory DartDefineConfiguration({
@Default(kGenerateDartArgDefault)
@JsonKey(
Expand Down
4 changes: 2 additions & 2 deletions lib/src/model/src/dart_define_configuration.g.dart

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

Loading