From 015d9f33f1f264f738100398fa110600f781930f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Wed, 31 May 2023 16:43:54 +0200 Subject: [PATCH] Add copyright headers --- ejson/ejson_generator_test/test/ctor_test.dart | 18 ++++++++++++++++++ ejson/lib/ejson.dart | 18 ++++++++++++++++++ ejson/lib/generator.dart | 18 ++++++++++++++++++ ejson/lib/src/annotations.dart | 18 ++++++++++++++++++ ejson/lib/src/decoding.dart | 18 ++++++++++++++++++ ejson/lib/src/encoding.dart | 18 ++++++++++++++++++ ejson/lib/src/generator/generator.dart | 18 ++++++++++++++++++ ejson/lib/src/generator/util.dart | 18 ++++++++++++++++++ ejson/lib/src/types.dart | 18 ++++++++++++++++++ 9 files changed, 162 insertions(+) diff --git a/ejson/ejson_generator_test/test/ctor_test.dart b/ejson/ejson_generator_test/test/ctor_test.dart index 82ea9296da..a30d8a3bb8 100644 --- a/ejson/ejson_generator_test/test/ctor_test.dart +++ b/ejson/ejson_generator_test/test/ctor_test.dart @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Copyright 2023 Realm Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// + import 'package:ejson/ejson.dart'; import 'package:test/test.dart'; diff --git a/ejson/lib/ejson.dart b/ejson/lib/ejson.dart index 83a31853e5..15e499d902 100644 --- a/ejson/lib/ejson.dart +++ b/ejson/lib/ejson.dart @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Copyright 2023 Realm Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// + export 'src/annotations.dart'; export 'src/decoding.dart'; export 'src/encoding.dart'; diff --git a/ejson/lib/generator.dart b/ejson/lib/generator.dart index 843d622552..07c230cc12 100644 --- a/ejson/lib/generator.dart +++ b/ejson/lib/generator.dart @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Copyright 2023 Realm Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// + import 'package:build/build.dart'; import 'package:ejson/src/generator/generator.dart'; import 'package:source_gen/source_gen.dart'; diff --git a/ejson/lib/src/annotations.dart b/ejson/lib/src/annotations.dart index 5729259f2f..7bf264cf39 100644 --- a/ejson/lib/src/annotations.dart +++ b/ejson/lib/src/annotations.dart @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Copyright 2023 Realm Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// + /// Annotation to mark a class for extended json (ejson) serialization const ejson = EJson(); diff --git a/ejson/lib/src/decoding.dart b/ejson/lib/src/decoding.dart index 90a693065d..328c221e37 100644 --- a/ejson/lib/src/decoding.dart +++ b/ejson/lib/src/decoding.dart @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Copyright 2023 Realm Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// + import 'package:collection/collection.dart'; import 'package:type_plus/type_plus.dart'; diff --git a/ejson/lib/src/encoding.dart b/ejson/lib/src/encoding.dart index c2b861735e..a65e5107f8 100644 --- a/ejson/lib/src/encoding.dart +++ b/ejson/lib/src/encoding.dart @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Copyright 2023 Realm Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// + import 'package:type_plus/type_plus.dart'; import 'types.dart'; diff --git a/ejson/lib/src/generator/generator.dart b/ejson/lib/src/generator/generator.dart index 1f65857ac3..24f3550b26 100644 --- a/ejson/lib/src/generator/generator.dart +++ b/ejson/lib/src/generator/generator.dart @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Copyright 2023 Realm Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// + import 'dart:async'; import 'package:analyzer/dart/element/element.dart'; diff --git a/ejson/lib/src/generator/util.dart b/ejson/lib/src/generator/util.dart index 99ad0bba05..c265af3905 100644 --- a/ejson/lib/src/generator/util.dart +++ b/ejson/lib/src/generator/util.dart @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Copyright 2023 Realm Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// + // ignore_for_file: public_member_api_docs import 'package:ejson/ejson.dart'; diff --git a/ejson/lib/src/types.dart b/ejson/lib/src/types.dart index ac2430f22d..c6fc3f379a 100644 --- a/ejson/lib/src/types.dart +++ b/ejson/lib/src/types.dart @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Copyright 2023 Realm Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// + // while we wait for // typedef EJsonValue = Null | String | bool | int | double | List | Map; typedef EJsonValue = Object?;