Skip to content

Commit

Permalink
Tachyon migration
Browse files Browse the repository at this point in the history
  • Loading branch information
spideythewebhead committed Jun 4, 2023
1 parent 038aa10 commit 249dc37
Show file tree
Hide file tree
Showing 276 changed files with 992 additions and 9,229 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: 🎯 Setup Dart
uses: dart-lang/[email protected]
with:
sdk: "2.19.2"
sdk: "3.0.3"

- name: 📦 Install Dependencies
run: dart pub get
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate_plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
dart_sdk:
required: false
type: string
default: "2.19.2"
default: "3.0.3"
runs_on:
required: false
type: string
Expand Down
Binary file removed assets/screenshots/007.png
Binary file not shown.
Binary file removed assets/screenshots/009.png
Binary file not shown.
Binary file removed assets/screenshots/010.png
Binary file not shown.
Binary file removed assets/screenshots/011.png
Binary file not shown.
Binary file added assets/screenshots/dataclass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshots/enum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshots/union.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
See [In-Place mode](https://github.com/spideythewebhead/dart_data_class_plugin/tree/main/examples/in_place_mode/lib) folder

See [File Generation mode](https://github.com/spideythewebhead/dart_data_class_plugin/tree/main/examples/file_generation_mode/lib) folder
See [File Generation mode](https://github.com/spideythewebhead/dart_data_class_plugin/tree/main/examples/file_generation_mode/lib) folder
7 changes: 0 additions & 7 deletions examples/file_generation_mode/data_class_plugin_options.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
generation_mode: file

file_generation_paths:
- "lib/**"

generated_file_line_length: 100

data_class:
options_config:
# default config
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'copy_with.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'default_value.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'custom_json_converter.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'json_key.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'simple.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'generics.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'hash_and_equality.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'inheritance.dart';

Expand Down
4 changes: 2 additions & 2 deletions examples/file_generation_mode/lib/data_class/simple.gen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'simple.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'custom_json_converter.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'json_key.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'simple.dart';

Expand Down
2 changes: 1 addition & 1 deletion examples/file_generation_mode/lib/union/copy_with.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:file_generation_mode/pretty_print.dart';
part 'copy_with.gen.dart';

@Union(copyWith: true)
abstract class AsyncResult {
sealed class AsyncResult {
const AsyncResult._();

/// Shorthand constructor
Expand Down
4 changes: 2 additions & 2 deletions examples/file_generation_mode/lib/union/copy_with.gen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'copy_with.dart';

Expand Down
2 changes: 1 addition & 1 deletion examples/file_generation_mode/lib/union/default_value.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:file_generation_mode/pretty_print.dart';
part 'default_value.gen.dart';

@Union()
abstract class VideoInfo {
sealed class VideoInfo {
const VideoInfo._();

factory VideoInfo.network(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'default_value.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ abstract class Post {
}

@Union(unionJsonKey: 'code')
abstract class GetPostsResponse {
sealed class GetPostsResponse {
const GetPostsResponse._();

/// Creates an instance of [GetPostsResponse] from [json]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'json_key.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract class Post {
unionJsonKey: 'code',
unionFallbackJsonValue: 'error',
)
abstract class GetPostsResponse {
sealed class GetPostsResponse {
const GetPostsResponse._();

/// Creates an instance of [GetPostsResponse] from [json]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'simple.dart';

Expand Down
4 changes: 2 additions & 2 deletions examples/file_generation_mode/lib/union/generics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:file_generation_mode/pretty_print.dart';
part 'generics.gen.dart';

@Union()
abstract class AsyncResult<T> {
sealed class AsyncResult<T> {
const AsyncResult._();

const factory AsyncResult.loading() = AsyncResultLoading<T>;
Expand All @@ -30,7 +30,7 @@ abstract class User {
}

@Union()
abstract class UnionWithGenericConstraints<T extends User> {
sealed class UnionWithGenericConstraints<T extends User> {
const UnionWithGenericConstraints._();

factory UnionWithGenericConstraints.data(T data) = UnionWithGenericConstraintsData<T>;
Expand Down
4 changes: 2 additions & 2 deletions examples/file_generation_mode/lib/union/generics.gen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'generics.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:file_generation_mode/pretty_print.dart';
part 'hash_and_equality.gen.dart';

@Union()
abstract class AsyncResult {
sealed class AsyncResult {
const AsyncResult._();

/// Shorthand constructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'hash_and_equality.dart';

Expand Down
2 changes: 1 addition & 1 deletion examples/file_generation_mode/lib/union/shared_fields.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:file_generation_mode/pretty_print.dart';
part 'shared_fields.gen.dart';

@Union()
abstract class HttpResponse<T> {
sealed class HttpResponse<T> {
const HttpResponse._();

factory HttpResponse.ok({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'shared_fields.dart';

Expand Down
2 changes: 1 addition & 1 deletion examples/file_generation_mode/lib/union/simple.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:file_generation_mode/pretty_print.dart';
part 'simple.gen.dart';

@Union()
abstract class AsyncResult {
sealed class AsyncResult {
const AsyncResult._();

/// Shorthand constructor
Expand Down
4 changes: 2 additions & 2 deletions examples/file_generation_mode/lib/union/simple.gen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'simple.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class Post {
}

@Union()
abstract class GetPostsResponse {
sealed class GetPostsResponse {
const GetPostsResponse._();

factory GetPostsResponse.error() = GetPostsResponseError;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'json_key.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract class Post {
unionJsonKey: 'code',
unionFallbackJsonValue: 'error',
)
abstract class GetPostsResponse {
sealed class GetPostsResponse {
const GetPostsResponse._();

// You can use @UnionJsonKeyValue(key) to specific a custom value for the constructor to match
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// AUTO GENERATED - DO NOT MODIFY

// ignore_for_file: library_private_types_in_public_api, unused_element, unused_field
// ignore_for_file: type=lint
// coverage:ignore-file

part of 'simple.dart';

Expand Down
Loading

0 comments on commit 249dc37

Please sign in to comment.