From 598c7d294abed0e8e977b452f85e1012bac6e961 Mon Sep 17 00:00:00 2001 From: kevmoo Date: Thu, 19 Mar 2026 10:31:07 -0700 Subject: [PATCH] chore: standardize license files and add copyright --- LICENSE | 3 +- gen-version.sh | 30 ++- packages/dart_firebase_admin/LICENSE | 3 +- .../example/example_functions_ts/.eslintrc.js | 16 ++ .../example/example_functions_ts/src/index.ts | 16 ++ .../example/lib/app_check_example.dart | 14 ++ .../example/lib/auth_example.dart | 14 ++ .../example/lib/firestore_example.dart | 14 ++ .../example/lib/functions_example.dart | 14 ++ .../dart_firebase_admin/example/lib/main.dart | 14 ++ .../example/lib/messaging_example.dart | 14 ++ .../example/lib/security_rules_example.dart | 14 ++ .../example/lib/storage_example.dart | 14 ++ .../example/run_with_emulator.sh | 14 ++ .../example/run_with_prod.sh | 14 ++ .../example_server_app/bin/server.dart | 14 ++ .../example_server_app/test/server_test.dart | 14 ++ .../dart_firebase_admin/lib/app_check.dart | 14 ++ packages/dart_firebase_admin/lib/auth.dart | 14 ++ .../lib/dart_firebase_admin.dart | 14 ++ .../dart_firebase_admin/lib/firestore.dart | 14 ++ .../dart_firebase_admin/lib/functions.dart | 14 ++ .../dart_firebase_admin/lib/messaging.dart | 14 ++ .../lib/security_rules.dart | 14 ++ packages/dart_firebase_admin/lib/src/app.dart | 14 ++ .../lib/src/app/app_exception.dart | 14 ++ .../lib/src/app/app_options.dart | 14 ++ .../lib/src/app/app_registry.dart | 14 ++ .../lib/src/app/credential.dart | 14 ++ .../lib/src/app/emulator_client.dart | 14 ++ .../lib/src/app/environment.dart | 14 ++ .../lib/src/app/exception.dart | 14 ++ .../lib/src/app/firebase_app.dart | 14 ++ .../lib/src/app/firebase_service.dart | 14 ++ .../src/app/firebase_user_agent_client.dart | 14 ++ .../lib/src/app_check/app_check.dart | 14 ++ .../lib/src/app_check/app_check_api.dart | 14 ++ .../src/app_check/app_check_exception.dart | 14 ++ .../src/app_check/app_check_http_client.dart | 14 ++ .../app_check/app_check_request_handler.dart | 14 ++ .../lib/src/app_check/token_generator.dart | 14 ++ .../lib/src/app_check/token_verifier.dart | 14 ++ .../dart_firebase_admin/lib/src/auth.dart | 14 ++ .../auth/action_code_settings_builder.dart | 14 ++ .../lib/src/auth/auth.dart | 14 ++ .../lib/src/auth/auth_config.dart | 14 ++ .../lib/src/auth/auth_exception.dart | 14 ++ .../lib/src/auth/auth_http_client.dart | 14 ++ .../lib/src/auth/auth_request_handler.dart | 14 ++ .../lib/src/auth/base_auth.dart | 14 ++ .../lib/src/auth/identifier.dart | 14 ++ .../lib/src/auth/token_generator.dart | 14 ++ .../lib/src/auth/token_verifier.dart | 14 ++ .../lib/src/auth/user.dart | 14 ++ .../lib/src/auth/user_import_builder.dart | 14 ++ .../lib/src/firestore/firestore.dart | 14 ++ .../lib/src/functions/functions.dart | 14 ++ .../lib/src/functions/functions_api.dart | 14 ++ .../src/functions/functions_exception.dart | 14 ++ .../src/functions/functions_http_client.dart | 14 ++ .../functions/functions_request_handler.dart | 14 ++ .../lib/src/functions/task_queue.dart | 14 ++ .../lib/src/messaging/fmc_exception.dart | 14 ++ .../lib/src/messaging/messaging.dart | 14 ++ .../lib/src/messaging/messaging_api.dart | 14 ++ .../src/messaging/messaging_http_client.dart | 14 ++ .../messaging/messaging_request_handler.dart | 14 ++ .../lib/src/object_utils.dart | 14 ++ .../src/security_rules/security_rules.dart | 14 ++ .../security_rules_exception.dart | 14 ++ .../security_rules_http_client.dart | 14 ++ .../security_rules_request_handler.dart | 14 ++ .../lib/src/storage/storage.dart | 14 ++ .../lib/src/storage/storage_exception.dart | 14 ++ .../lib/src/utils/app_extension.dart | 14 ++ .../lib/src/utils/error.dart | 14 ++ .../lib/src/utils/index.dart | 14 ++ .../lib/src/utils/jwt.dart | 14 ++ .../lib/src/utils/native_environment.dart | 14 ++ .../lib/src/utils/utils.dart | 14 ++ .../lib/src/utils/validator.dart | 14 ++ packages/dart_firebase_admin/lib/storage.dart | 14 ++ .../dart_firebase_admin/lib/version.g.dart | 14 ++ .../test/fixtures/auth/helpers.dart | 14 ++ .../test/fixtures/functions/helpers.dart | 14 ++ .../test/fixtures/helpers.dart | 14 ++ .../test/fixtures/mock.dart | 14 ++ .../test/fixtures/mock_service_account.dart | 14 ++ .../task_queue_functions/lib/index.js | 16 ++ .../task_queue_functions/src/index.ts | 16 ++ .../app/firebase_app_prod_test.dart | 14 ++ .../integration/app/firebase_app_test.dart | 14 ++ .../test/integration/auth/auth_prod_test.dart | 14 ++ .../test/integration/auth/auth_test.dart | 14 ++ .../auth/project_config_prod_test.dart | 14 ++ .../integration/auth/project_config_test.dart | 14 ++ .../integration/auth/tenant_prod_test.dart | 14 ++ .../test/integration/auth/tenant_test.dart | 14 ++ .../integration/firestore/firestore_test.dart | 14 ++ .../integration/functions/functions_test.dart | 14 ++ .../integration/messaging/messaging_test.dart | 14 ++ .../security_rules_prod_test.dart | 14 ++ .../storage/storage_prod_test.dart | 14 ++ .../integration/storage/storage_test.dart | 14 ++ .../test/unit/app/app_registry_test.dart | 14 ++ .../test/unit/app/credential_test.dart | 14 ++ .../test/unit/app/exception_test.dart | 14 ++ .../unit/app/firebase_admin_app_test.dart | 14 ++ .../test/unit/app/firebase_app_test.dart | 14 ++ .../app/firebase_user_agent_client_test.dart | 14 ++ .../app_check/app_check_exception_test.dart | 14 ++ .../test/unit/app_check/app_check_test.dart | 14 ++ .../unit/app_check/token_verifier_test.dart | 14 ++ .../unit/auth/auth_config_tenant_test.dart | 14 ++ .../test/unit/auth/auth_exception_test.dart | 14 ++ .../test/unit/auth/auth_test.dart | 14 ++ .../test/unit/auth/jwt_test.dart | 14 ++ .../auth/project_config_manager_test.dart | 14 ++ .../test/unit/auth/project_config_test.dart | 14 ++ .../test/unit/auth/tenant_manager_test.dart | 14 ++ .../test/unit/auth/tenant_test.dart | 14 ++ .../test/unit/auth/token_verifier_test.dart | 14 ++ .../test/unit/auth/user_test.dart | 14 ++ .../test/unit/firestore/firestore_test.dart | 14 ++ .../test/unit/functions/functions_test.dart | 14 ++ .../test/unit/messaging/messaging_test.dart | 14 ++ .../security_rules/security_rules_test.dart | 14 ++ .../test/unit/storage/storage_test.dart | 14 ++ packages/google_cloud_firestore/LICENSE | 202 ++++++++++++++++++ .../lib/google_cloud_firestore.dart | 14 ++ .../lib/src/aggregate.dart | 14 ++ .../lib/src/aggregation_reader.dart | 14 ++ .../lib/src/backoff.dart | 14 ++ .../lib/src/bulk_writer.dart | 14 ++ .../lib/src/bundle.dart | 5 +- .../lib/src/collection_group.dart | 14 ++ .../lib/src/convert.dart | 14 ++ .../lib/src/credential.dart | 14 ++ .../lib/src/document.dart | 14 ++ .../lib/src/document_change.dart | 14 ++ .../lib/src/document_reader.dart | 14 ++ .../lib/src/environment.dart | 14 ++ .../lib/src/field_value.dart | 14 ++ .../lib/src/filter.dart | 14 ++ .../lib/src/firestore.dart | 14 ++ .../lib/src/firestore_exception.dart | 14 ++ .../lib/src/firestore_http_client.dart | 14 ++ .../lib/src/geo_point.dart | 14 ++ .../lib/src/logger.dart | 14 ++ .../google_cloud_firestore/lib/src/order.dart | 14 ++ .../google_cloud_firestore/lib/src/path.dart | 14 ++ .../lib/src/query_partition.dart | 14 ++ .../lib/src/query_profile.dart | 14 ++ .../lib/src/query_reader.dart | 14 ++ .../lib/src/rate_limiter.dart | 14 ++ .../lib/src/recursive_delete.dart | 14 ++ .../lib/src/reference/aggregate_query.dart | 14 ++ .../reference/aggregate_query_snapshot.dart | 14 ++ .../src/reference/collection_reference.dart | 14 ++ .../reference/composite_filter_internal.dart | 14 ++ .../lib/src/reference/constants.dart | 14 ++ .../lib/src/reference/document_reference.dart | 14 ++ .../src/reference/field_filter_internal.dart | 14 ++ .../lib/src/reference/field_order.dart | 14 ++ .../lib/src/reference/filter_internal.dart | 14 ++ .../lib/src/reference/query.dart | 14 ++ .../lib/src/reference/query_options.dart | 14 ++ .../lib/src/reference/query_snapshot.dart | 14 ++ .../lib/src/reference/query_util.dart | 14 ++ .../lib/src/reference/types.dart | 14 ++ .../lib/src/reference/vector_query.dart | 14 ++ .../src/reference/vector_query_options.dart | 14 ++ .../src/reference/vector_query_snapshot.dart | 14 ++ .../lib/src/serializer.dart | 14 ++ .../lib/src/set_options.dart | 14 ++ .../lib/src/status_code.dart | 14 ++ .../lib/src/timestamp.dart | 14 ++ .../lib/src/transaction.dart | 14 ++ .../google_cloud_firestore/lib/src/types.dart | 14 ++ .../google_cloud_firestore/lib/src/util.dart | 14 ++ .../lib/src/validate.dart | 14 ++ .../lib/src/write_batch.dart | 14 ++ .../google_cloud_firestore/lib/version.g.dart | 14 ++ .../test/fixtures/helpers.dart | 14 ++ .../test/integration/bulk_writer_test.dart | 14 ++ .../test/integration/bundle_test.dart | 14 ++ .../test/integration/explain_prod_test.dart | 14 ++ .../test/integration/firestore_test.dart | 14 ++ .../test/integration/get_all_test.dart | 17 +- .../query_partition_prod_test.dart | 14 ++ .../integration/recursive_delete_test.dart | 14 ++ .../test/integration/set_options_test.dart | 14 ++ .../test/integration/transaction_test.dart | 17 +- .../test/integration/vector_prod_test.dart | 14 ++ .../test/integration/vector_test.dart | 14 ++ .../test/unit/aggregate_query_test.dart | 14 ++ .../test/unit/backoff_test.dart | 14 ++ .../test/unit/bulk_writer_test.dart | 14 ++ .../test/unit/bundle_test.dart | 14 ++ .../test/unit/collection_group_test.dart | 14 ++ .../test/unit/collection_test.dart | 14 ++ .../test/unit/document_test.dart | 14 ++ .../test/unit/field_value_test.dart | 14 ++ .../test/unit/filter_test.dart | 14 ++ .../test/unit/firestore_test.dart | 14 ++ .../test/unit/get_all_test.dart | 14 ++ .../test/unit/order_test.dart | 14 ++ .../test/unit/query_partition_test.dart | 14 ++ .../test/unit/query_test.dart | 14 ++ .../test/unit/rate_limiter_test.dart | 14 ++ .../test/unit/recursive_delete_test.dart | 14 ++ .../test/unit/timestamp_test.dart | 14 ++ .../unit/transaction_aggregation_test.dart | 14 ++ .../test/unit/transaction_query_test.dart | 17 +- .../test/unit/transaction_test.dart | 14 ++ .../test/unit/vector_test.dart | 14 ++ .../test/unit/write_batch_test.dart | 14 ++ scripts/coverage.sh | 14 ++ scripts/firestore-coverage.sh | 14 ++ scripts/generate-docs.sh | 14 ++ tool/update_copyright.dart | 139 ++++++++++++ 221 files changed, 3395 insertions(+), 14 deletions(-) create mode 100644 packages/google_cloud_firestore/LICENSE create mode 100644 tool/update_copyright.dart diff --git a/LICENSE b/LICENSE index e006cb1d..56b796b1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,3 +1,4 @@ + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -186,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2020 Invertase Limited + Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/gen-version.sh b/gen-version.sh index d108fd81..76b91575 100755 --- a/gen-version.sh +++ b/gen-version.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright 2026 Google LLC +# +# 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. + # Script to generate version.g.dart files for all packages # Finds all packages/*/pubspec.yaml files, extracts version, and writes to package/lib/version.g.dart @@ -29,6 +43,20 @@ find "$SCRIPT_DIR/packages" -name "pubspec.yaml" -type f | while read -r pubspec # Write version.g.dart file version_file="$lib_dir/version.g.dart" cat > "$version_file" << EOF +// Copyright 2026 Google LLC +// +// 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. + // GENERATED CODE - DO NOT MODIFY BY HAND // This file is generated by gen-version.sh @@ -39,4 +67,4 @@ EOF echo "Generated $version_file with version: $version" done -echo "Version generation complete!" \ No newline at end of file +echo "Version generation complete!" diff --git a/packages/dart_firebase_admin/LICENSE b/packages/dart_firebase_admin/LICENSE index e006cb1d..56b796b1 100644 --- a/packages/dart_firebase_admin/LICENSE +++ b/packages/dart_firebase_admin/LICENSE @@ -1,3 +1,4 @@ + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -186,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2020 Invertase Limited + Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/packages/dart_firebase_admin/example/example_functions_ts/.eslintrc.js b/packages/dart_firebase_admin/example/example_functions_ts/.eslintrc.js index 0f8e2a9b..68458fac 100644 --- a/packages/dart_firebase_admin/example/example_functions_ts/.eslintrc.js +++ b/packages/dart_firebase_admin/example/example_functions_ts/.eslintrc.js @@ -1,3 +1,19 @@ +/** + * Copyright 2026 Google LLC + * + * 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. + */ + module.exports = { root: true, env: { diff --git a/packages/dart_firebase_admin/example/example_functions_ts/src/index.ts b/packages/dart_firebase_admin/example/example_functions_ts/src/index.ts index 46c66104..5bae76ee 100644 --- a/packages/dart_firebase_admin/example/example_functions_ts/src/index.ts +++ b/packages/dart_firebase_admin/example/example_functions_ts/src/index.ts @@ -1,3 +1,19 @@ +/** + * Copyright 2026 Google LLC + * + * 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 function triggers from their respective submodules: * diff --git a/packages/dart_firebase_admin/example/lib/app_check_example.dart b/packages/dart_firebase_admin/example/lib/app_check_example.dart index 928dd32f..387b4344 100644 --- a/packages/dart_firebase_admin/example/lib/app_check_example.dart +++ b/packages/dart_firebase_admin/example/lib/app_check_example.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/app_check.dart'; import 'package:dart_firebase_admin/dart_firebase_admin.dart'; diff --git a/packages/dart_firebase_admin/example/lib/auth_example.dart b/packages/dart_firebase_admin/example/lib/auth_example.dart index b637b3bc..1434939f 100644 --- a/packages/dart_firebase_admin/example/lib/auth_example.dart +++ b/packages/dart_firebase_admin/example/lib/auth_example.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/auth.dart'; import 'package:dart_firebase_admin/dart_firebase_admin.dart'; diff --git a/packages/dart_firebase_admin/example/lib/firestore_example.dart b/packages/dart_firebase_admin/example/lib/firestore_example.dart index 3354b3aa..88a004fd 100644 --- a/packages/dart_firebase_admin/example/lib/firestore_example.dart +++ b/packages/dart_firebase_admin/example/lib/firestore_example.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/dart_firebase_admin.dart'; import 'package:google_cloud_firestore/google_cloud_firestore.dart'; diff --git a/packages/dart_firebase_admin/example/lib/functions_example.dart b/packages/dart_firebase_admin/example/lib/functions_example.dart index d118b93d..e997d691 100644 --- a/packages/dart_firebase_admin/example/lib/functions_example.dart +++ b/packages/dart_firebase_admin/example/lib/functions_example.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/dart_firebase_admin.dart'; import 'package:dart_firebase_admin/functions.dart'; diff --git a/packages/dart_firebase_admin/example/lib/main.dart b/packages/dart_firebase_admin/example/lib/main.dart index b92c2419..921689ad 100644 --- a/packages/dart_firebase_admin/example/lib/main.dart +++ b/packages/dart_firebase_admin/example/lib/main.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/dart_firebase_admin.dart'; Future main() async { diff --git a/packages/dart_firebase_admin/example/lib/messaging_example.dart b/packages/dart_firebase_admin/example/lib/messaging_example.dart index ce8b73fe..d3d83f78 100644 --- a/packages/dart_firebase_admin/example/lib/messaging_example.dart +++ b/packages/dart_firebase_admin/example/lib/messaging_example.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/dart_firebase_admin.dart'; import 'package:dart_firebase_admin/messaging.dart'; diff --git a/packages/dart_firebase_admin/example/lib/security_rules_example.dart b/packages/dart_firebase_admin/example/lib/security_rules_example.dart index 6cb5fa3e..aa4e634d 100644 --- a/packages/dart_firebase_admin/example/lib/security_rules_example.dart +++ b/packages/dart_firebase_admin/example/lib/security_rules_example.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/dart_firebase_admin.dart'; import 'package:dart_firebase_admin/security_rules.dart'; diff --git a/packages/dart_firebase_admin/example/lib/storage_example.dart b/packages/dart_firebase_admin/example/lib/storage_example.dart index 3eaccc4e..7858a0b8 100644 --- a/packages/dart_firebase_admin/example/lib/storage_example.dart +++ b/packages/dart_firebase_admin/example/lib/storage_example.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:convert'; import 'package:dart_firebase_admin/dart_firebase_admin.dart'; import 'package:dart_firebase_admin/storage.dart'; diff --git a/packages/dart_firebase_admin/example/run_with_emulator.sh b/packages/dart_firebase_admin/example/run_with_emulator.sh index dbfe3e09..2b8c9bac 100755 --- a/packages/dart_firebase_admin/example/run_with_emulator.sh +++ b/packages/dart_firebase_admin/example/run_with_emulator.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright 2026 Google LLC +# +# 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. + # Set environment variables for emulator export FIRESTORE_EMULATOR_HOST=localhost:8080 diff --git a/packages/dart_firebase_admin/example/run_with_prod.sh b/packages/dart_firebase_admin/example/run_with_prod.sh index 196cd868..0b13fd79 100755 --- a/packages/dart_firebase_admin/example/run_with_prod.sh +++ b/packages/dart_firebase_admin/example/run_with_prod.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright 2026 Google LLC +# +# 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. + # Run example against Firebase production # diff --git a/packages/dart_firebase_admin/example_server_app/bin/server.dart b/packages/dart_firebase_admin/example_server_app/bin/server.dart index 739a3e29..f880813c 100644 --- a/packages/dart_firebase_admin/example_server_app/bin/server.dart +++ b/packages/dart_firebase_admin/example_server_app/bin/server.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:convert'; import 'dart:io'; diff --git a/packages/dart_firebase_admin/example_server_app/test/server_test.dart b/packages/dart_firebase_admin/example_server_app/test/server_test.dart index 3081d874..cd80cad3 100644 --- a/packages/dart_firebase_admin/example_server_app/test/server_test.dart +++ b/packages/dart_firebase_admin/example_server_app/test/server_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:io'; import 'package:http/http.dart'; diff --git a/packages/dart_firebase_admin/lib/app_check.dart b/packages/dart_firebase_admin/lib/app_check.dart index 8c671d5b..bdc4eb8d 100644 --- a/packages/dart_firebase_admin/lib/app_check.dart +++ b/packages/dart_firebase_admin/lib/app_check.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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/app_check/app_check.dart' hide AppCheckRequestHandler, AppCheckHttpClient; export 'src/app_check/app_check_api.dart'; diff --git a/packages/dart_firebase_admin/lib/auth.dart b/packages/dart_firebase_admin/lib/auth.dart index cde0930e..c56ee971 100644 --- a/packages/dart_firebase_admin/lib/auth.dart +++ b/packages/dart_firebase_admin/lib/auth.dart @@ -1 +1,15 @@ +// Copyright 2024 Google LLC +// +// 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/auth.dart' hide AuthRequestHandler, AuthHttpClient; diff --git a/packages/dart_firebase_admin/lib/dart_firebase_admin.dart b/packages/dart_firebase_admin/lib/dart_firebase_admin.dart index fe7bfa47..0f99e292 100644 --- a/packages/dart_firebase_admin/lib/dart_firebase_admin.dart +++ b/packages/dart_firebase_admin/lib/dart_firebase_admin.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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/app.dart' hide envSymbol, diff --git a/packages/dart_firebase_admin/lib/firestore.dart b/packages/dart_firebase_admin/lib/firestore.dart index fb1455ae..450252f9 100644 --- a/packages/dart_firebase_admin/lib/firestore.dart +++ b/packages/dart_firebase_admin/lib/firestore.dart @@ -1 +1,15 @@ +// Copyright 2024 Google LLC +// +// 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/firestore/firestore.dart'; diff --git a/packages/dart_firebase_admin/lib/functions.dart b/packages/dart_firebase_admin/lib/functions.dart index ff072ec6..0ce77114 100644 --- a/packages/dart_firebase_admin/lib/functions.dart +++ b/packages/dart_firebase_admin/lib/functions.dart @@ -1 +1,15 @@ +// Copyright 2024 Google LLC +// +// 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/functions/functions.dart'; diff --git a/packages/dart_firebase_admin/lib/messaging.dart b/packages/dart_firebase_admin/lib/messaging.dart index b4284baa..e1bc1102 100644 --- a/packages/dart_firebase_admin/lib/messaging.dart +++ b/packages/dart_firebase_admin/lib/messaging.dart @@ -1,2 +1,16 @@ +// Copyright 2024 Google LLC +// +// 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/messaging/messaging.dart' hide FirebaseMessagingRequestHandler, FirebaseMessagingHttpClient; diff --git a/packages/dart_firebase_admin/lib/security_rules.dart b/packages/dart_firebase_admin/lib/security_rules.dart index 3ba780b8..5ddb85ad 100644 --- a/packages/dart_firebase_admin/lib/security_rules.dart +++ b/packages/dart_firebase_admin/lib/security_rules.dart @@ -1,2 +1,16 @@ +// Copyright 2024 Google LLC +// +// 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/security_rules/security_rules.dart' hide SecurityRulesRequestHandler, SecurityRulesHttpClient; diff --git a/packages/dart_firebase_admin/lib/src/app.dart b/packages/dart_firebase_admin/lib/src/app.dart index 83e63fc5..00137f4c 100644 --- a/packages/dart_firebase_admin/lib/src/app.dart +++ b/packages/dart_firebase_admin/lib/src/app.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + library app; import 'dart:async'; diff --git a/packages/dart_firebase_admin/lib/src/app/app_exception.dart b/packages/dart_firebase_admin/lib/src/app/app_exception.dart index 57634aa2..575b638b 100644 --- a/packages/dart_firebase_admin/lib/src/app/app_exception.dart +++ b/packages/dart_firebase_admin/lib/src/app/app_exception.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../app.dart'; /// Exception thrown for Firebase app initialization and lifecycle errors. diff --git a/packages/dart_firebase_admin/lib/src/app/app_options.dart b/packages/dart_firebase_admin/lib/src/app/app_options.dart index c3e19bd7..c05ac124 100644 --- a/packages/dart_firebase_admin/lib/src/app/app_options.dart +++ b/packages/dart_firebase_admin/lib/src/app/app_options.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../app.dart'; /// Configuration options for initializing a Firebase app. diff --git a/packages/dart_firebase_admin/lib/src/app/app_registry.dart b/packages/dart_firebase_admin/lib/src/app/app_registry.dart index 3db9cd43..27bcfeb5 100644 --- a/packages/dart_firebase_admin/lib/src/app/app_registry.dart +++ b/packages/dart_firebase_admin/lib/src/app/app_registry.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../app.dart'; @internal diff --git a/packages/dart_firebase_admin/lib/src/app/credential.dart b/packages/dart_firebase_admin/lib/src/app/credential.dart index 202db812..6184d9d3 100644 --- a/packages/dart_firebase_admin/lib/src/app/credential.dart +++ b/packages/dart_firebase_admin/lib/src/app/credential.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../app.dart'; @internal diff --git a/packages/dart_firebase_admin/lib/src/app/emulator_client.dart b/packages/dart_firebase_admin/lib/src/app/emulator_client.dart index ddf9ff21..d17c791d 100644 --- a/packages/dart_firebase_admin/lib/src/app/emulator_client.dart +++ b/packages/dart_firebase_admin/lib/src/app/emulator_client.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../app.dart'; /// Internal HTTP request implementation that wraps a stream. diff --git a/packages/dart_firebase_admin/lib/src/app/environment.dart b/packages/dart_firebase_admin/lib/src/app/environment.dart index 3af900ab..903c21c5 100644 --- a/packages/dart_firebase_admin/lib/src/app/environment.dart +++ b/packages/dart_firebase_admin/lib/src/app/environment.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../app.dart'; /// Environment variable names used by the Firebase Admin SDK. diff --git a/packages/dart_firebase_admin/lib/src/app/exception.dart b/packages/dart_firebase_admin/lib/src/app/exception.dart index 282bbf75..604778cf 100644 --- a/packages/dart_firebase_admin/lib/src/app/exception.dart +++ b/packages/dart_firebase_admin/lib/src/app/exception.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../app.dart'; /// Composite type which includes both a `FirebaseError` object and an index diff --git a/packages/dart_firebase_admin/lib/src/app/firebase_app.dart b/packages/dart_firebase_admin/lib/src/app/firebase_app.dart index 6338c428..8ed64827 100644 --- a/packages/dart_firebase_admin/lib/src/app/firebase_app.dart +++ b/packages/dart_firebase_admin/lib/src/app/firebase_app.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../app.dart'; /// Represents a Firebase app instance. diff --git a/packages/dart_firebase_admin/lib/src/app/firebase_service.dart b/packages/dart_firebase_admin/lib/src/app/firebase_service.dart index 3b13d924..6d1927bf 100644 --- a/packages/dart_firebase_admin/lib/src/app/firebase_service.dart +++ b/packages/dart_firebase_admin/lib/src/app/firebase_service.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../app.dart'; @internal diff --git a/packages/dart_firebase_admin/lib/src/app/firebase_user_agent_client.dart b/packages/dart_firebase_admin/lib/src/app/firebase_user_agent_client.dart index 45c9e47a..8b676c8c 100644 --- a/packages/dart_firebase_admin/lib/src/app/firebase_user_agent_client.dart +++ b/packages/dart_firebase_admin/lib/src/app/firebase_user_agent_client.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../app.dart'; /// HTTP client wrapper that adds Firebase and Google API client headers for usage tracking. diff --git a/packages/dart_firebase_admin/lib/src/app_check/app_check.dart b/packages/dart_firebase_admin/lib/src/app_check/app_check.dart index 904c2cbd..b9e426f6 100644 --- a/packages/dart_firebase_admin/lib/src/app_check/app_check.dart +++ b/packages/dart_firebase_admin/lib/src/app_check/app_check.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:googleapis/firebaseappcheck/v1.dart' as appcheck1; diff --git a/packages/dart_firebase_admin/lib/src/app_check/app_check_api.dart b/packages/dart_firebase_admin/lib/src/app_check/app_check_api.dart index 9aa5ece0..32df797c 100644 --- a/packages/dart_firebase_admin/lib/src/app_check/app_check_api.dart +++ b/packages/dart_firebase_admin/lib/src/app_check/app_check_api.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:meta/meta.dart'; import 'app_check.dart'; diff --git a/packages/dart_firebase_admin/lib/src/app_check/app_check_exception.dart b/packages/dart_firebase_admin/lib/src/app_check/app_check_exception.dart index 04cfb268..84e78b58 100644 --- a/packages/dart_firebase_admin/lib/src/app_check/app_check_exception.dart +++ b/packages/dart_firebase_admin/lib/src/app_check/app_check_exception.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'app_check.dart'; final appCheckErrorCodeMapping = { diff --git a/packages/dart_firebase_admin/lib/src/app_check/app_check_http_client.dart b/packages/dart_firebase_admin/lib/src/app_check/app_check_http_client.dart index cfe4af1a..90eb8f30 100644 --- a/packages/dart_firebase_admin/lib/src/app_check/app_check_http_client.dart +++ b/packages/dart_firebase_admin/lib/src/app_check/app_check_http_client.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'app_check.dart'; /// HTTP client for Firebase App Check API operations. diff --git a/packages/dart_firebase_admin/lib/src/app_check/app_check_request_handler.dart b/packages/dart_firebase_admin/lib/src/app_check/app_check_request_handler.dart index 695b816c..4cff672d 100644 --- a/packages/dart_firebase_admin/lib/src/app_check/app_check_request_handler.dart +++ b/packages/dart_firebase_admin/lib/src/app_check/app_check_request_handler.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'app_check.dart'; /// Request handler for Firebase App Check API operations. diff --git a/packages/dart_firebase_admin/lib/src/app_check/token_generator.dart b/packages/dart_firebase_admin/lib/src/app_check/token_generator.dart index dcb2906d..0526ed08 100644 --- a/packages/dart_firebase_admin/lib/src/app_check/token_generator.dart +++ b/packages/dart_firebase_admin/lib/src/app_check/token_generator.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:convert'; import 'package:googleapis_auth/auth_io.dart' as googleapis_auth; diff --git a/packages/dart_firebase_admin/lib/src/app_check/token_verifier.dart b/packages/dart_firebase_admin/lib/src/app_check/token_verifier.dart index 934510ce..5124fe22 100644 --- a/packages/dart_firebase_admin/lib/src/app_check/token_verifier.dart +++ b/packages/dart_firebase_admin/lib/src/app_check/token_verifier.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:meta/meta.dart'; diff --git a/packages/dart_firebase_admin/lib/src/auth.dart b/packages/dart_firebase_admin/lib/src/auth.dart index 5b25abcb..45595f20 100644 --- a/packages/dart_firebase_admin/lib/src/auth.dart +++ b/packages/dart_firebase_admin/lib/src/auth.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:convert'; import 'dart:typed_data'; diff --git a/packages/dart_firebase_admin/lib/src/auth/action_code_settings_builder.dart b/packages/dart_firebase_admin/lib/src/auth/action_code_settings_builder.dart index 93c798bb..2c80af7e 100644 --- a/packages/dart_firebase_admin/lib/src/auth/action_code_settings_builder.dart +++ b/packages/dart_firebase_admin/lib/src/auth/action_code_settings_builder.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; class ActionCodeSettingsIos { diff --git a/packages/dart_firebase_admin/lib/src/auth/auth.dart b/packages/dart_firebase_admin/lib/src/auth/auth.dart index 5bf04800..b1208686 100644 --- a/packages/dart_firebase_admin/lib/src/auth/auth.dart +++ b/packages/dart_firebase_admin/lib/src/auth/auth.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; /// Auth service bound to the provided app. diff --git a/packages/dart_firebase_admin/lib/src/auth/auth_config.dart b/packages/dart_firebase_admin/lib/src/auth/auth_config.dart index adcf37d0..f383b50e 100644 --- a/packages/dart_firebase_admin/lib/src/auth/auth_config.dart +++ b/packages/dart_firebase_admin/lib/src/auth/auth_config.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; /// The possible types for [AuthProviderConfigFilter._type]. diff --git a/packages/dart_firebase_admin/lib/src/auth/auth_exception.dart b/packages/dart_firebase_admin/lib/src/auth/auth_exception.dart index a7cfecf3..0b1580ce 100644 --- a/packages/dart_firebase_admin/lib/src/auth/auth_exception.dart +++ b/packages/dart_firebase_admin/lib/src/auth/auth_exception.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; class FirebaseAuthAdminException extends FirebaseAdminException diff --git a/packages/dart_firebase_admin/lib/src/auth/auth_http_client.dart b/packages/dart_firebase_admin/lib/src/auth/auth_http_client.dart index 67988fbe..7a9efcaa 100644 --- a/packages/dart_firebase_admin/lib/src/auth/auth_http_client.dart +++ b/packages/dart_firebase_admin/lib/src/auth/auth_http_client.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; class AuthHttpClient { diff --git a/packages/dart_firebase_admin/lib/src/auth/auth_request_handler.dart b/packages/dart_firebase_admin/lib/src/auth/auth_request_handler.dart index 951b2aac..295fa112 100644 --- a/packages/dart_firebase_admin/lib/src/auth/auth_request_handler.dart +++ b/packages/dart_firebase_admin/lib/src/auth/auth_request_handler.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; /// Maximum allowed number of provider configurations to batch download at one time. diff --git a/packages/dart_firebase_admin/lib/src/auth/base_auth.dart b/packages/dart_firebase_admin/lib/src/auth/base_auth.dart index 676c8cec..1defcc9d 100644 --- a/packages/dart_firebase_admin/lib/src/auth/base_auth.dart +++ b/packages/dart_firebase_admin/lib/src/auth/base_auth.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; _FirebaseTokenGenerator _createFirebaseTokenGenerator( diff --git a/packages/dart_firebase_admin/lib/src/auth/identifier.dart b/packages/dart_firebase_admin/lib/src/auth/identifier.dart index cbfe90bb..59b629c5 100644 --- a/packages/dart_firebase_admin/lib/src/auth/identifier.dart +++ b/packages/dart_firebase_admin/lib/src/auth/identifier.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; /// Identifies a user to be looked up. diff --git a/packages/dart_firebase_admin/lib/src/auth/token_generator.dart b/packages/dart_firebase_admin/lib/src/auth/token_generator.dart index 620a8699..a60d93b5 100644 --- a/packages/dart_firebase_admin/lib/src/auth/token_generator.dart +++ b/packages/dart_firebase_admin/lib/src/auth/token_generator.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; const _oneHourInSeconds = 60 * 60; diff --git a/packages/dart_firebase_admin/lib/src/auth/token_verifier.dart b/packages/dart_firebase_admin/lib/src/auth/token_verifier.dart index 39986c3a..627370c2 100644 --- a/packages/dart_firebase_admin/lib/src/auth/token_verifier.dart +++ b/packages/dart_firebase_admin/lib/src/auth/token_verifier.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; const _algorithmRS256 = 'RS256'; diff --git a/packages/dart_firebase_admin/lib/src/auth/user.dart b/packages/dart_firebase_admin/lib/src/auth/user.dart index f8655619..7c1741d9 100644 --- a/packages/dart_firebase_admin/lib/src/auth/user.dart +++ b/packages/dart_firebase_admin/lib/src/auth/user.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; /// 'REDACTED', encoded as a base64 string. diff --git a/packages/dart_firebase_admin/lib/src/auth/user_import_builder.dart b/packages/dart_firebase_admin/lib/src/auth/user_import_builder.dart index 1c848352..a746e30a 100644 --- a/packages/dart_firebase_admin/lib/src/auth/user_import_builder.dart +++ b/packages/dart_firebase_admin/lib/src/auth/user_import_builder.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../auth.dart'; enum HashAlgorithmType { diff --git a/packages/dart_firebase_admin/lib/src/firestore/firestore.dart b/packages/dart_firebase_admin/lib/src/firestore/firestore.dart index 7022df3b..86bca245 100644 --- a/packages/dart_firebase_admin/lib/src/firestore/firestore.dart +++ b/packages/dart_firebase_admin/lib/src/firestore/firestore.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart' diff --git a/packages/dart_firebase_admin/lib/src/functions/functions.dart b/packages/dart_firebase_admin/lib/src/functions/functions.dart index 0e0c6f40..e22b3dfc 100644 --- a/packages/dart_firebase_admin/lib/src/functions/functions.dart +++ b/packages/dart_firebase_admin/lib/src/functions/functions.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:convert'; import 'package:googleapis/cloudtasks/v2.dart' as tasks2; diff --git a/packages/dart_firebase_admin/lib/src/functions/functions_api.dart b/packages/dart_firebase_admin/lib/src/functions/functions_api.dart index c3257cfb..6d817439 100644 --- a/packages/dart_firebase_admin/lib/src/functions/functions_api.dart +++ b/packages/dart_firebase_admin/lib/src/functions/functions_api.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'functions.dart'; /// Represents delivery scheduling options for a task. diff --git a/packages/dart_firebase_admin/lib/src/functions/functions_exception.dart b/packages/dart_firebase_admin/lib/src/functions/functions_exception.dart index 28aacc68..4f8de4f5 100644 --- a/packages/dart_firebase_admin/lib/src/functions/functions_exception.dart +++ b/packages/dart_firebase_admin/lib/src/functions/functions_exception.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'functions.dart'; /// Functions server to client enum error codes. diff --git a/packages/dart_firebase_admin/lib/src/functions/functions_http_client.dart b/packages/dart_firebase_admin/lib/src/functions/functions_http_client.dart index 2bf5960a..ec5b40ed 100644 --- a/packages/dart_firebase_admin/lib/src/functions/functions_http_client.dart +++ b/packages/dart_firebase_admin/lib/src/functions/functions_http_client.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'functions.dart'; /// HTTP client for Cloud Functions Task Queue operations. diff --git a/packages/dart_firebase_admin/lib/src/functions/functions_request_handler.dart b/packages/dart_firebase_admin/lib/src/functions/functions_request_handler.dart index d5e669a7..29eb8790 100644 --- a/packages/dart_firebase_admin/lib/src/functions/functions_request_handler.dart +++ b/packages/dart_firebase_admin/lib/src/functions/functions_request_handler.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'functions.dart'; /// Parsed resource name components. diff --git a/packages/dart_firebase_admin/lib/src/functions/task_queue.dart b/packages/dart_firebase_admin/lib/src/functions/task_queue.dart index 42fc3c1e..4241526a 100644 --- a/packages/dart_firebase_admin/lib/src/functions/task_queue.dart +++ b/packages/dart_firebase_admin/lib/src/functions/task_queue.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'functions.dart'; /// A reference to a Cloud Functions task queue. diff --git a/packages/dart_firebase_admin/lib/src/messaging/fmc_exception.dart b/packages/dart_firebase_admin/lib/src/messaging/fmc_exception.dart index 6a96cc56..b9731a8c 100644 --- a/packages/dart_firebase_admin/lib/src/messaging/fmc_exception.dart +++ b/packages/dart_firebase_admin/lib/src/messaging/fmc_exception.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'messaging.dart'; /// Messaging server to client enum error codes. diff --git a/packages/dart_firebase_admin/lib/src/messaging/messaging.dart b/packages/dart_firebase_admin/lib/src/messaging/messaging.dart index ebccdcb0..4ee6d17d 100644 --- a/packages/dart_firebase_admin/lib/src/messaging/messaging.dart +++ b/packages/dart_firebase_admin/lib/src/messaging/messaging.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:convert'; diff --git a/packages/dart_firebase_admin/lib/src/messaging/messaging_api.dart b/packages/dart_firebase_admin/lib/src/messaging/messaging_api.dart index e409400e..58e40158 100644 --- a/packages/dart_firebase_admin/lib/src/messaging/messaging_api.dart +++ b/packages/dart_firebase_admin/lib/src/messaging/messaging_api.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'messaging.dart'; abstract class _BaseMessage { diff --git a/packages/dart_firebase_admin/lib/src/messaging/messaging_http_client.dart b/packages/dart_firebase_admin/lib/src/messaging/messaging_http_client.dart index 0ce7d45d..b101bf09 100644 --- a/packages/dart_firebase_admin/lib/src/messaging/messaging_http_client.dart +++ b/packages/dart_firebase_admin/lib/src/messaging/messaging_http_client.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'messaging.dart'; /// HTTP client for Firebase Cloud Messaging API operations. diff --git a/packages/dart_firebase_admin/lib/src/messaging/messaging_request_handler.dart b/packages/dart_firebase_admin/lib/src/messaging/messaging_request_handler.dart index e721237e..584d6ccf 100644 --- a/packages/dart_firebase_admin/lib/src/messaging/messaging_request_handler.dart +++ b/packages/dart_firebase_admin/lib/src/messaging/messaging_request_handler.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'messaging.dart'; /// Request handler for Firebase Cloud Messaging API operations. diff --git a/packages/dart_firebase_admin/lib/src/object_utils.dart b/packages/dart_firebase_admin/lib/src/object_utils.dart index 7fcdbaa0..ead42310 100644 --- a/packages/dart_firebase_admin/lib/src/object_utils.dart +++ b/packages/dart_firebase_admin/lib/src/object_utils.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + extension ObjectUtils on T? { T orThrow(Never Function() thrower) => this ?? thrower(); diff --git a/packages/dart_firebase_admin/lib/src/security_rules/security_rules.dart b/packages/dart_firebase_admin/lib/src/security_rules/security_rules.dart index fc0d7cd0..46bb02b0 100644 --- a/packages/dart_firebase_admin/lib/src/security_rules/security_rules.dart +++ b/packages/dart_firebase_admin/lib/src/security_rules/security_rules.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:googleapis/firebaserules/v1.dart' as firebase_rules_v1; diff --git a/packages/dart_firebase_admin/lib/src/security_rules/security_rules_exception.dart b/packages/dart_firebase_admin/lib/src/security_rules/security_rules_exception.dart index a72f808d..f79ba2ab 100644 --- a/packages/dart_firebase_admin/lib/src/security_rules/security_rules_exception.dart +++ b/packages/dart_firebase_admin/lib/src/security_rules/security_rules_exception.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'security_rules.dart'; enum FirebaseSecurityRulesErrorCode { diff --git a/packages/dart_firebase_admin/lib/src/security_rules/security_rules_http_client.dart b/packages/dart_firebase_admin/lib/src/security_rules/security_rules_http_client.dart index e348bca0..427dfe96 100644 --- a/packages/dart_firebase_admin/lib/src/security_rules/security_rules_http_client.dart +++ b/packages/dart_firebase_admin/lib/src/security_rules/security_rules_http_client.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'security_rules.dart'; /// HTTP client for Firebase Security Rules API operations. diff --git a/packages/dart_firebase_admin/lib/src/security_rules/security_rules_request_handler.dart b/packages/dart_firebase_admin/lib/src/security_rules/security_rules_request_handler.dart index 8a180319..bf05ac24 100644 --- a/packages/dart_firebase_admin/lib/src/security_rules/security_rules_request_handler.dart +++ b/packages/dart_firebase_admin/lib/src/security_rules/security_rules_request_handler.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'security_rules.dart'; class Release { diff --git a/packages/dart_firebase_admin/lib/src/storage/storage.dart b/packages/dart_firebase_admin/lib/src/storage/storage.dart index e558eca0..51541633 100644 --- a/packages/dart_firebase_admin/lib/src/storage/storage.dart +++ b/packages/dart_firebase_admin/lib/src/storage/storage.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:convert'; import 'package:google_cloud_storage/google_cloud_storage.dart' as gcs; diff --git a/packages/dart_firebase_admin/lib/src/storage/storage_exception.dart b/packages/dart_firebase_admin/lib/src/storage/storage_exception.dart index 9f271b05..6aa3d5bc 100644 --- a/packages/dart_firebase_admin/lib/src/storage/storage_exception.dart +++ b/packages/dart_firebase_admin/lib/src/storage/storage_exception.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'storage.dart'; class FirebaseStorageAdminException extends FirebaseAdminException diff --git a/packages/dart_firebase_admin/lib/src/utils/app_extension.dart b/packages/dart_firebase_admin/lib/src/utils/app_extension.dart index 577aef97..53e540b3 100644 --- a/packages/dart_firebase_admin/lib/src/utils/app_extension.dart +++ b/packages/dart_firebase_admin/lib/src/utils/app_extension.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:googleapis_auth/auth_io.dart'; import '../app.dart'; diff --git a/packages/dart_firebase_admin/lib/src/utils/error.dart b/packages/dart_firebase_admin/lib/src/utils/error.dart index 7d3cd1e0..b89fc12b 100644 --- a/packages/dart_firebase_admin/lib/src/utils/error.dart +++ b/packages/dart_firebase_admin/lib/src/utils/error.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + class ErrorInfo { ErrorInfo({required this.code, required this.message}); diff --git a/packages/dart_firebase_admin/lib/src/utils/index.dart b/packages/dart_firebase_admin/lib/src/utils/index.dart index e29f4dba..963df07e 100644 --- a/packages/dart_firebase_admin/lib/src/utils/index.dart +++ b/packages/dart_firebase_admin/lib/src/utils/index.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + class ParsedResource { ParsedResource({this.projectId, this.locationId, required this.resourceId}); diff --git a/packages/dart_firebase_admin/lib/src/utils/jwt.dart b/packages/dart_firebase_admin/lib/src/utils/jwt.dart index cbc3d53c..ef4802a2 100644 --- a/packages/dart_firebase_admin/lib/src/utils/jwt.dart +++ b/packages/dart_firebase_admin/lib/src/utils/jwt.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:convert'; import 'package:dart_jsonwebtoken/dart_jsonwebtoken.dart'; diff --git a/packages/dart_firebase_admin/lib/src/utils/native_environment.dart b/packages/dart_firebase_admin/lib/src/utils/native_environment.dart index 2e123298..24d2e163 100644 --- a/packages/dart_firebase_admin/lib/src/utils/native_environment.dart +++ b/packages/dart_firebase_admin/lib/src/utils/native_environment.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:ffi'; import 'dart:io'; diff --git a/packages/dart_firebase_admin/lib/src/utils/utils.dart b/packages/dart_firebase_admin/lib/src/utils/utils.dart index ca9d37ec..b7c7949c 100644 --- a/packages/dart_firebase_admin/lib/src/utils/utils.dart +++ b/packages/dart_firebase_admin/lib/src/utils/utils.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:io'; /// The current Dart SDK version in semver format (e.g. "3.3.0"). diff --git a/packages/dart_firebase_admin/lib/src/utils/validator.dart b/packages/dart_firebase_admin/lib/src/utils/validator.dart index 8a1f7e89..7ca60c43 100644 --- a/packages/dart_firebase_admin/lib/src/utils/validator.dart +++ b/packages/dart_firebase_admin/lib/src/utils/validator.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:meta/meta.dart'; import '../auth.dart'; diff --git a/packages/dart_firebase_admin/lib/storage.dart b/packages/dart_firebase_admin/lib/storage.dart index 68d5d9d2..96b8efb9 100644 --- a/packages/dart_firebase_admin/lib/storage.dart +++ b/packages/dart_firebase_admin/lib/storage.dart @@ -1 +1,15 @@ +// Copyright 2024 Google LLC +// +// 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/storage/storage.dart'; diff --git a/packages/dart_firebase_admin/lib/version.g.dart b/packages/dart_firebase_admin/lib/version.g.dart index 59c5d2ac..02998f17 100644 --- a/packages/dart_firebase_admin/lib/version.g.dart +++ b/packages/dart_firebase_admin/lib/version.g.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// 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. + // GENERATED CODE - DO NOT MODIFY BY HAND // This file is generated by gen-version.sh diff --git a/packages/dart_firebase_admin/test/fixtures/auth/helpers.dart b/packages/dart_firebase_admin/test/fixtures/auth/helpers.dart index 9f23a7c4..edb9d202 100644 --- a/packages/dart_firebase_admin/test/fixtures/auth/helpers.dart +++ b/packages/dart_firebase_admin/test/fixtures/auth/helpers.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:io'; diff --git a/packages/dart_firebase_admin/test/fixtures/functions/helpers.dart b/packages/dart_firebase_admin/test/fixtures/functions/helpers.dart index f939f7ee..43dfb3e6 100644 --- a/packages/dart_firebase_admin/test/fixtures/functions/helpers.dart +++ b/packages/dart_firebase_admin/test/fixtures/functions/helpers.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/functions.dart'; import 'package:dart_firebase_admin/src/app.dart'; import 'package:googleapis_auth/auth_io.dart'; diff --git a/packages/dart_firebase_admin/test/fixtures/helpers.dart b/packages/dart_firebase_admin/test/fixtures/helpers.dart index e346b86e..169582bd 100644 --- a/packages/dart_firebase_admin/test/fixtures/helpers.dart +++ b/packages/dart_firebase_admin/test/fixtures/helpers.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:io'; diff --git a/packages/dart_firebase_admin/test/fixtures/mock.dart b/packages/dart_firebase_admin/test/fixtures/mock.dart index c729238a..9da1ef43 100644 --- a/packages/dart_firebase_admin/test/fixtures/mock.dart +++ b/packages/dart_firebase_admin/test/fixtures/mock.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/dart_firebase_admin.dart'; import 'package:dart_firebase_admin/src/auth.dart'; import 'package:googleapis/fcm/v1.dart'; diff --git a/packages/dart_firebase_admin/test/fixtures/mock_service_account.dart b/packages/dart_firebase_admin/test/fixtures/mock_service_account.dart index f19f946a..bd9b89f1 100644 --- a/packages/dart_firebase_admin/test/fixtures/mock_service_account.dart +++ b/packages/dart_firebase_admin/test/fixtures/mock_service_account.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + // IMPORTANT: this key has been specifically generated for this test suite. const mockPrivateKey = ''' diff --git a/packages/dart_firebase_admin/test/fixtures/task_queue_functions/lib/index.js b/packages/dart_firebase_admin/test/fixtures/task_queue_functions/lib/index.js index 075188a1..feac7f0e 100644 --- a/packages/dart_firebase_admin/test/fixtures/task_queue_functions/lib/index.js +++ b/packages/dart_firebase_admin/test/fixtures/task_queue_functions/lib/index.js @@ -1,3 +1,19 @@ +/** + * Copyright 2026 Google LLC + * + * 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. + */ + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.helloWorld = void 0; diff --git a/packages/dart_firebase_admin/test/fixtures/task_queue_functions/src/index.ts b/packages/dart_firebase_admin/test/fixtures/task_queue_functions/src/index.ts index b2e16a54..88c864b6 100644 --- a/packages/dart_firebase_admin/test/fixtures/task_queue_functions/src/index.ts +++ b/packages/dart_firebase_admin/test/fixtures/task_queue_functions/src/index.ts @@ -1,3 +1,19 @@ +/** + * Copyright 2026 Google LLC + * + * 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 { onTaskDispatched } from "firebase-functions/v2/tasks"; export const helloWorld = onTaskDispatched( diff --git a/packages/dart_firebase_admin/test/integration/app/firebase_app_prod_test.dart b/packages/dart_firebase_admin/test/integration/app/firebase_app_prod_test.dart index 1a70a9d9..82c0de16 100644 --- a/packages/dart_firebase_admin/test/integration/app/firebase_app_prod_test.dart +++ b/packages/dart_firebase_admin/test/integration/app/firebase_app_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:io'; diff --git a/packages/dart_firebase_admin/test/integration/app/firebase_app_test.dart b/packages/dart_firebase_admin/test/integration/app/firebase_app_test.dart index a0beba9b..6a9e7775 100644 --- a/packages/dart_firebase_admin/test/integration/app/firebase_app_test.dart +++ b/packages/dart_firebase_admin/test/integration/app/firebase_app_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:io'; diff --git a/packages/dart_firebase_admin/test/integration/auth/auth_prod_test.dart b/packages/dart_firebase_admin/test/integration/auth/auth_prod_test.dart index cd3cd2a4..f8665f45 100644 --- a/packages/dart_firebase_admin/test/integration/auth/auth_prod_test.dart +++ b/packages/dart_firebase_admin/test/integration/auth/auth_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + // Firebase Auth Integration Tests - Production Only // // These tests require production Firebase (GOOGLE_APPLICATION_CREDENTIALS) diff --git a/packages/dart_firebase_admin/test/integration/auth/auth_test.dart b/packages/dart_firebase_admin/test/integration/auth/auth_test.dart index 052118b5..e5081216 100644 --- a/packages/dart_firebase_admin/test/integration/auth/auth_test.dart +++ b/packages/dart_firebase_admin/test/integration/auth/auth_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + // Firebase Auth Integration Tests // // SAFETY: These tests require Firebase Auth Emulator by default to prevent diff --git a/packages/dart_firebase_admin/test/integration/auth/project_config_prod_test.dart b/packages/dart_firebase_admin/test/integration/auth/project_config_prod_test.dart index 14baa6a9..ceccf794 100644 --- a/packages/dart_firebase_admin/test/integration/auth/project_config_prod_test.dart +++ b/packages/dart_firebase_admin/test/integration/auth/project_config_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + // Firebase ProjectConfig Integration Tests - Production Only // // These tests require production Firebase (GOOGLE_APPLICATION_CREDENTIALS) diff --git a/packages/dart_firebase_admin/test/integration/auth/project_config_test.dart b/packages/dart_firebase_admin/test/integration/auth/project_config_test.dart index 9c11eb5a..b8a46a44 100644 --- a/packages/dart_firebase_admin/test/integration/auth/project_config_test.dart +++ b/packages/dart_firebase_admin/test/integration/auth/project_config_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + // Firebase ProjectConfig Integration Tests - Emulator Safe // // These tests work with Firebase Auth Emulator and test basic ProjectConfig operations. diff --git a/packages/dart_firebase_admin/test/integration/auth/tenant_prod_test.dart b/packages/dart_firebase_admin/test/integration/auth/tenant_prod_test.dart index 977f99d8..d0f3c5fe 100644 --- a/packages/dart_firebase_admin/test/integration/auth/tenant_prod_test.dart +++ b/packages/dart_firebase_admin/test/integration/auth/tenant_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + // Firebase Tenant Integration Tests - Production Only // // These tests require production Firebase (GOOGLE_APPLICATION_CREDENTIALS) diff --git a/packages/dart_firebase_admin/test/integration/auth/tenant_test.dart b/packages/dart_firebase_admin/test/integration/auth/tenant_test.dart index cc3db3f7..da5096fe 100644 --- a/packages/dart_firebase_admin/test/integration/auth/tenant_test.dart +++ b/packages/dart_firebase_admin/test/integration/auth/tenant_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + // Firebase Tenant Integration Tests - Emulator Safe // // These tests work with Firebase Auth Emulator and test basic Tenant operations. diff --git a/packages/dart_firebase_admin/test/integration/firestore/firestore_test.dart b/packages/dart_firebase_admin/test/integration/firestore/firestore_test.dart index f90e6a2c..40a3ddb8 100644 --- a/packages/dart_firebase_admin/test/integration/firestore/firestore_test.dart +++ b/packages/dart_firebase_admin/test/integration/firestore/firestore_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/src/app.dart'; import 'package:google_cloud_firestore/google_cloud_firestore.dart' as gfs; import 'package:test/test.dart'; diff --git a/packages/dart_firebase_admin/test/integration/functions/functions_test.dart b/packages/dart_firebase_admin/test/integration/functions/functions_test.dart index 4672fffa..1119673d 100644 --- a/packages/dart_firebase_admin/test/integration/functions/functions_test.dart +++ b/packages/dart_firebase_admin/test/integration/functions/functions_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/functions.dart'; import 'package:test/test.dart'; diff --git a/packages/dart_firebase_admin/test/integration/messaging/messaging_test.dart b/packages/dart_firebase_admin/test/integration/messaging/messaging_test.dart index 514ba933..2aab76fe 100644 --- a/packages/dart_firebase_admin/test/integration/messaging/messaging_test.dart +++ b/packages/dart_firebase_admin/test/integration/messaging/messaging_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + // Firebase Messaging Integration Tests // // SAFETY: FCM has no emulator support, so these tests hit the real API. diff --git a/packages/dart_firebase_admin/test/integration/security_rules/security_rules_prod_test.dart b/packages/dart_firebase_admin/test/integration/security_rules/security_rules_prod_test.dart index d5c92444..331fb17b 100644 --- a/packages/dart_firebase_admin/test/integration/security_rules/security_rules_prod_test.dart +++ b/packages/dart_firebase_admin/test/integration/security_rules/security_rules_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/security_rules.dart'; import 'package:test/test.dart'; diff --git a/packages/dart_firebase_admin/test/integration/storage/storage_prod_test.dart b/packages/dart_firebase_admin/test/integration/storage/storage_prod_test.dart index f531ffed..38e2a0e1 100644 --- a/packages/dart_firebase_admin/test/integration/storage/storage_prod_test.dart +++ b/packages/dart_firebase_admin/test/integration/storage/storage_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:typed_data'; diff --git a/packages/dart_firebase_admin/test/integration/storage/storage_test.dart b/packages/dart_firebase_admin/test/integration/storage/storage_test.dart index 88ed581c..b77607d7 100644 --- a/packages/dart_firebase_admin/test/integration/storage/storage_test.dart +++ b/packages/dart_firebase_admin/test/integration/storage/storage_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:typed_data'; import 'package:dart_firebase_admin/src/app.dart'; diff --git a/packages/dart_firebase_admin/test/unit/app/app_registry_test.dart b/packages/dart_firebase_admin/test/unit/app/app_registry_test.dart index d11a04fe..beb4aec4 100644 --- a/packages/dart_firebase_admin/test/unit/app/app_registry_test.dart +++ b/packages/dart_firebase_admin/test/unit/app/app_registry_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:convert'; import 'dart:io'; diff --git a/packages/dart_firebase_admin/test/unit/app/credential_test.dart b/packages/dart_firebase_admin/test/unit/app/credential_test.dart index f592328b..e2c51a55 100644 --- a/packages/dart_firebase_admin/test/unit/app/credential_test.dart +++ b/packages/dart_firebase_admin/test/unit/app/credential_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:convert'; import 'dart:io'; diff --git a/packages/dart_firebase_admin/test/unit/app/exception_test.dart b/packages/dart_firebase_admin/test/unit/app/exception_test.dart index 345cc793..9e7dd939 100644 --- a/packages/dart_firebase_admin/test/unit/app/exception_test.dart +++ b/packages/dart_firebase_admin/test/unit/app/exception_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:convert'; import 'package:dart_firebase_admin/src/app.dart'; diff --git a/packages/dart_firebase_admin/test/unit/app/firebase_admin_app_test.dart b/packages/dart_firebase_admin/test/unit/app/firebase_admin_app_test.dart index a8c78147..f0485451 100644 --- a/packages/dart_firebase_admin/test/unit/app/firebase_admin_app_test.dart +++ b/packages/dart_firebase_admin/test/unit/app/firebase_admin_app_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/src/app.dart'; diff --git a/packages/dart_firebase_admin/test/unit/app/firebase_app_test.dart b/packages/dart_firebase_admin/test/unit/app/firebase_app_test.dart index bab8c21d..59b09b12 100644 --- a/packages/dart_firebase_admin/test/unit/app/firebase_app_test.dart +++ b/packages/dart_firebase_admin/test/unit/app/firebase_app_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/functions.dart'; diff --git a/packages/dart_firebase_admin/test/unit/app/firebase_user_agent_client_test.dart b/packages/dart_firebase_admin/test/unit/app/firebase_user_agent_client_test.dart index 4f1ae441..ed789b75 100644 --- a/packages/dart_firebase_admin/test/unit/app/firebase_user_agent_client_test.dart +++ b/packages/dart_firebase_admin/test/unit/app/firebase_user_agent_client_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/src/app.dart'; diff --git a/packages/dart_firebase_admin/test/unit/app_check/app_check_exception_test.dart b/packages/dart_firebase_admin/test/unit/app_check/app_check_exception_test.dart index 3f9f5571..ffb626e1 100644 --- a/packages/dart_firebase_admin/test/unit/app_check/app_check_exception_test.dart +++ b/packages/dart_firebase_admin/test/unit/app_check/app_check_exception_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/app_check.dart'; import 'package:dart_firebase_admin/src/utils/jwt.dart'; import 'package:test/test.dart'; diff --git a/packages/dart_firebase_admin/test/unit/app_check/app_check_test.dart b/packages/dart_firebase_admin/test/unit/app_check/app_check_test.dart index cab2e28d..a7385a76 100644 --- a/packages/dart_firebase_admin/test/unit/app_check/app_check_test.dart +++ b/packages/dart_firebase_admin/test/unit/app_check/app_check_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/app_check.dart'; import 'package:dart_firebase_admin/src/app.dart'; diff --git a/packages/dart_firebase_admin/test/unit/app_check/token_verifier_test.dart b/packages/dart_firebase_admin/test/unit/app_check/token_verifier_test.dart index 19cf5bd2..f10c9f0c 100644 --- a/packages/dart_firebase_admin/test/unit/app_check/token_verifier_test.dart +++ b/packages/dart_firebase_admin/test/unit/app_check/token_verifier_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/app_check.dart'; import 'package:dart_firebase_admin/dart_firebase_admin.dart'; import 'package:dart_firebase_admin/src/app_check/token_verifier.dart'; diff --git a/packages/dart_firebase_admin/test/unit/auth/auth_config_tenant_test.dart b/packages/dart_firebase_admin/test/unit/auth/auth_config_tenant_test.dart index 35297b5a..91932e00 100644 --- a/packages/dart_firebase_admin/test/unit/auth/auth_config_tenant_test.dart +++ b/packages/dart_firebase_admin/test/unit/auth/auth_config_tenant_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/src/auth.dart'; import 'package:test/test.dart'; diff --git a/packages/dart_firebase_admin/test/unit/auth/auth_exception_test.dart b/packages/dart_firebase_admin/test/unit/auth/auth_exception_test.dart index 74e34ed0..4a3f2849 100644 --- a/packages/dart_firebase_admin/test/unit/auth/auth_exception_test.dart +++ b/packages/dart_firebase_admin/test/unit/auth/auth_exception_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/auth.dart'; import 'package:dart_firebase_admin/src/app.dart'; import 'package:test/test.dart'; diff --git a/packages/dart_firebase_admin/test/unit/auth/auth_test.dart b/packages/dart_firebase_admin/test/unit/auth/auth_test.dart index 08784cba..c46a117f 100644 --- a/packages/dart_firebase_admin/test/unit/auth/auth_test.dart +++ b/packages/dart_firebase_admin/test/unit/auth/auth_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:convert'; import 'dart:io'; diff --git a/packages/dart_firebase_admin/test/unit/auth/jwt_test.dart b/packages/dart_firebase_admin/test/unit/auth/jwt_test.dart index 5209717d..101dce95 100644 --- a/packages/dart_firebase_admin/test/unit/auth/jwt_test.dart +++ b/packages/dart_firebase_admin/test/unit/auth/jwt_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/src/utils/jwt.dart'; import 'package:dart_jsonwebtoken/dart_jsonwebtoken.dart'; import 'package:jose/jose.dart'; diff --git a/packages/dart_firebase_admin/test/unit/auth/project_config_manager_test.dart b/packages/dart_firebase_admin/test/unit/auth/project_config_manager_test.dart index bfe7b9a2..50adacb7 100644 --- a/packages/dart_firebase_admin/test/unit/auth/project_config_manager_test.dart +++ b/packages/dart_firebase_admin/test/unit/auth/project_config_manager_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/auth.dart'; import 'package:dart_firebase_admin/dart_firebase_admin.dart'; import 'package:test/test.dart'; diff --git a/packages/dart_firebase_admin/test/unit/auth/project_config_test.dart b/packages/dart_firebase_admin/test/unit/auth/project_config_test.dart index bf6564c4..0c2ffa12 100644 --- a/packages/dart_firebase_admin/test/unit/auth/project_config_test.dart +++ b/packages/dart_firebase_admin/test/unit/auth/project_config_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/auth.dart'; import 'package:test/test.dart'; diff --git a/packages/dart_firebase_admin/test/unit/auth/tenant_manager_test.dart b/packages/dart_firebase_admin/test/unit/auth/tenant_manager_test.dart index 3703aaa3..dfb736d5 100644 --- a/packages/dart_firebase_admin/test/unit/auth/tenant_manager_test.dart +++ b/packages/dart_firebase_admin/test/unit/auth/tenant_manager_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:convert'; import 'package:dart_firebase_admin/auth.dart'; diff --git a/packages/dart_firebase_admin/test/unit/auth/tenant_test.dart b/packages/dart_firebase_admin/test/unit/auth/tenant_test.dart index 37ff96eb..73b014ef 100644 --- a/packages/dart_firebase_admin/test/unit/auth/tenant_test.dart +++ b/packages/dart_firebase_admin/test/unit/auth/tenant_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/auth.dart'; import 'package:test/test.dart'; diff --git a/packages/dart_firebase_admin/test/unit/auth/token_verifier_test.dart b/packages/dart_firebase_admin/test/unit/auth/token_verifier_test.dart index 5b67f8ca..dcbc9d76 100644 --- a/packages/dart_firebase_admin/test/unit/auth/token_verifier_test.dart +++ b/packages/dart_firebase_admin/test/unit/auth/token_verifier_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/src/auth.dart'; import 'package:test/test.dart'; diff --git a/packages/dart_firebase_admin/test/unit/auth/user_test.dart b/packages/dart_firebase_admin/test/unit/auth/user_test.dart index 67ea39cb..a6347f10 100644 --- a/packages/dart_firebase_admin/test/unit/auth/user_test.dart +++ b/packages/dart_firebase_admin/test/unit/auth/user_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/auth.dart'; import 'package:googleapis/identitytoolkit/v1.dart' as auth1; import 'package:test/test.dart'; diff --git a/packages/dart_firebase_admin/test/unit/firestore/firestore_test.dart b/packages/dart_firebase_admin/test/unit/firestore/firestore_test.dart index 73842788..4da78096 100644 --- a/packages/dart_firebase_admin/test/unit/firestore/firestore_test.dart +++ b/packages/dart_firebase_admin/test/unit/firestore/firestore_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:io'; import 'package:dart_firebase_admin/dart_firebase_admin.dart'; diff --git a/packages/dart_firebase_admin/test/unit/functions/functions_test.dart b/packages/dart_firebase_admin/test/unit/functions/functions_test.dart index a58f1eef..15e84f7b 100644 --- a/packages/dart_firebase_admin/test/unit/functions/functions_test.dart +++ b/packages/dart_firebase_admin/test/unit/functions/functions_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:convert'; diff --git a/packages/dart_firebase_admin/test/unit/messaging/messaging_test.dart b/packages/dart_firebase_admin/test/unit/messaging/messaging_test.dart index 0f64c2fb..7274b820 100644 --- a/packages/dart_firebase_admin/test/unit/messaging/messaging_test.dart +++ b/packages/dart_firebase_admin/test/unit/messaging/messaging_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:convert'; import 'package:dart_firebase_admin/src/messaging/messaging.dart'; diff --git a/packages/dart_firebase_admin/test/unit/security_rules/security_rules_test.dart b/packages/dart_firebase_admin/test/unit/security_rules/security_rules_test.dart index 8159a654..451f30fe 100644 --- a/packages/dart_firebase_admin/test/unit/security_rules/security_rules_test.dart +++ b/packages/dart_firebase_admin/test/unit/security_rules/security_rules_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:dart_firebase_admin/dart_firebase_admin.dart'; import 'package:dart_firebase_admin/src/security_rules/security_rules.dart'; import 'package:mocktail/mocktail.dart'; diff --git a/packages/dart_firebase_admin/test/unit/storage/storage_test.dart b/packages/dart_firebase_admin/test/unit/storage/storage_test.dart index 5342db5b..c01cf20a 100644 --- a/packages/dart_firebase_admin/test/unit/storage/storage_test.dart +++ b/packages/dart_firebase_admin/test/unit/storage/storage_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:convert'; diff --git a/packages/google_cloud_firestore/LICENSE b/packages/google_cloud_firestore/LICENSE new file mode 100644 index 00000000..56b796b1 --- /dev/null +++ b/packages/google_cloud_firestore/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2020 Google LLC + + 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. \ No newline at end of file diff --git a/packages/google_cloud_firestore/lib/google_cloud_firestore.dart b/packages/google_cloud_firestore/lib/google_cloud_firestore.dart index 1897fee9..d4a60fd3 100644 --- a/packages/google_cloud_firestore/lib/google_cloud_firestore.dart +++ b/packages/google_cloud_firestore/lib/google_cloud_firestore.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + /// Google Cloud Firestore client library for Dart. /// /// This library provides a Dart client for Google Cloud Firestore, allowing diff --git a/packages/google_cloud_firestore/lib/src/aggregate.dart b/packages/google_cloud_firestore/lib/src/aggregate.dart index c5790461..1b8ec8f5 100644 --- a/packages/google_cloud_firestore/lib/src/aggregate.dart +++ b/packages/google_cloud_firestore/lib/src/aggregate.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; class AggregateField { diff --git a/packages/google_cloud_firestore/lib/src/aggregation_reader.dart b/packages/google_cloud_firestore/lib/src/aggregation_reader.dart index ff15e19b..1b84cd8a 100644 --- a/packages/google_cloud_firestore/lib/src/aggregation_reader.dart +++ b/packages/google_cloud_firestore/lib/src/aggregation_reader.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// Response wrapper containing both aggregation results and transaction ID. diff --git a/packages/google_cloud_firestore/lib/src/backoff.dart b/packages/google_cloud_firestore/lib/src/backoff.dart index c5df36fe..0f4ebb89 100644 --- a/packages/google_cloud_firestore/lib/src/backoff.dart +++ b/packages/google_cloud_firestore/lib/src/backoff.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:math' as math; import 'package:meta/meta.dart'; diff --git a/packages/google_cloud_firestore/lib/src/bulk_writer.dart b/packages/google_cloud_firestore/lib/src/bulk_writer.dart index 6a07ee6d..fc6a228e 100644 --- a/packages/google_cloud_firestore/lib/src/bulk_writer.dart +++ b/packages/google_cloud_firestore/lib/src/bulk_writer.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// The maximum number of writes that can be in a single batch. diff --git a/packages/google_cloud_firestore/lib/src/bundle.dart b/packages/google_cloud_firestore/lib/src/bundle.dart index 7c0510ee..fb835e45 100644 --- a/packages/google_cloud_firestore/lib/src/bundle.dart +++ b/packages/google_cloud_firestore/lib/src/bundle.dart @@ -1,10 +1,10 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // 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 // -// https://www.apache.org/licenses/LICENSE-2.0 +// 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, @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + part of 'firestore.dart'; const int _bundleVersion = 1; diff --git a/packages/google_cloud_firestore/lib/src/collection_group.dart b/packages/google_cloud_firestore/lib/src/collection_group.dart index 7939c7cc..607004ce 100644 --- a/packages/google_cloud_firestore/lib/src/collection_group.dart +++ b/packages/google_cloud_firestore/lib/src/collection_group.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; @immutable diff --git a/packages/google_cloud_firestore/lib/src/convert.dart b/packages/google_cloud_firestore/lib/src/convert.dart index 3d307de8..291ee859 100644 --- a/packages/google_cloud_firestore/lib/src/convert.dart +++ b/packages/google_cloud_firestore/lib/src/convert.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// Verifies that a `Value` only has a single type set. diff --git a/packages/google_cloud_firestore/lib/src/credential.dart b/packages/google_cloud_firestore/lib/src/credential.dart index eed5e479..e98d3b65 100644 --- a/packages/google_cloud_firestore/lib/src/credential.dart +++ b/packages/google_cloud_firestore/lib/src/credential.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:io'; import 'package:googleapis_auth/auth_io.dart' as googleapis_auth; diff --git a/packages/google_cloud_firestore/lib/src/document.dart b/packages/google_cloud_firestore/lib/src/document.dart index 9558ea09..3dc29b57 100644 --- a/packages/google_cloud_firestore/lib/src/document.dart +++ b/packages/google_cloud_firestore/lib/src/document.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; class Optional { diff --git a/packages/google_cloud_firestore/lib/src/document_change.dart b/packages/google_cloud_firestore/lib/src/document_change.dart index 3c598c50..a1548642 100644 --- a/packages/google_cloud_firestore/lib/src/document_change.dart +++ b/packages/google_cloud_firestore/lib/src/document_change.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; enum DocumentChangeType { added, removed, modified } diff --git a/packages/google_cloud_firestore/lib/src/document_reader.dart b/packages/google_cloud_firestore/lib/src/document_reader.dart index bc7c097f..f640ed55 100644 --- a/packages/google_cloud_firestore/lib/src/document_reader.dart +++ b/packages/google_cloud_firestore/lib/src/document_reader.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; class _BatchGetResponse { diff --git a/packages/google_cloud_firestore/lib/src/environment.dart b/packages/google_cloud_firestore/lib/src/environment.dart index 360abb04..9f990978 100644 --- a/packages/google_cloud_firestore/lib/src/environment.dart +++ b/packages/google_cloud_firestore/lib/src/environment.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:io'; diff --git a/packages/google_cloud_firestore/lib/src/field_value.dart b/packages/google_cloud_firestore/lib/src/field_value.dart index 92b1c19e..344d069c 100644 --- a/packages/google_cloud_firestore/lib/src/field_value.dart +++ b/packages/google_cloud_firestore/lib/src/field_value.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// Represents a vector value in Firestore. diff --git a/packages/google_cloud_firestore/lib/src/filter.dart b/packages/google_cloud_firestore/lib/src/filter.dart index c7e645f8..01cc2c63 100644 --- a/packages/google_cloud_firestore/lib/src/filter.dart +++ b/packages/google_cloud_firestore/lib/src/filter.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; enum WhereFilter { diff --git a/packages/google_cloud_firestore/lib/src/firestore.dart b/packages/google_cloud_firestore/lib/src/firestore.dart index 82a0f3fd..8d47d8a2 100644 --- a/packages/google_cloud_firestore/lib/src/firestore.dart +++ b/packages/google_cloud_firestore/lib/src/firestore.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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 'dart:convert' show jsonEncode, utf8; import 'dart:math' as math; diff --git a/packages/google_cloud_firestore/lib/src/firestore_exception.dart b/packages/google_cloud_firestore/lib/src/firestore_exception.dart index 4771c201..7e2b0564 100644 --- a/packages/google_cloud_firestore/lib/src/firestore_exception.dart +++ b/packages/google_cloud_firestore/lib/src/firestore_exception.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:convert'; import 'package:googleapis/firestore/v1.dart' as firestore_v1; diff --git a/packages/google_cloud_firestore/lib/src/firestore_http_client.dart b/packages/google_cloud_firestore/lib/src/firestore_http_client.dart index 7aa5187d..38d13ec5 100644 --- a/packages/google_cloud_firestore/lib/src/firestore_http_client.dart +++ b/packages/google_cloud_firestore/lib/src/firestore_http_client.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud/constants.dart' as google_cloud; diff --git a/packages/google_cloud_firestore/lib/src/geo_point.dart b/packages/google_cloud_firestore/lib/src/geo_point.dart index 8b365409..9613b6fe 100644 --- a/packages/google_cloud_firestore/lib/src/geo_point.dart +++ b/packages/google_cloud_firestore/lib/src/geo_point.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// An immutable object representing a geographic location in Firestore. The diff --git a/packages/google_cloud_firestore/lib/src/logger.dart b/packages/google_cloud_firestore/lib/src/logger.dart index 8b137891..6e979651 100644 --- a/packages/google_cloud_firestore/lib/src/logger.dart +++ b/packages/google_cloud_firestore/lib/src/logger.dart @@ -1 +1,15 @@ +// Copyright 2024 Google LLC +// +// 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. + diff --git a/packages/google_cloud_firestore/lib/src/order.dart b/packages/google_cloud_firestore/lib/src/order.dart index 4e2b42c0..3d082310 100644 --- a/packages/google_cloud_firestore/lib/src/order.dart +++ b/packages/google_cloud_firestore/lib/src/order.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// The type order as defined by the Firestore backend. diff --git a/packages/google_cloud_firestore/lib/src/path.dart b/packages/google_cloud_firestore/lib/src/path.dart index efe65ef5..9fa857dd 100644 --- a/packages/google_cloud_firestore/lib/src/path.dart +++ b/packages/google_cloud_firestore/lib/src/path.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// Validates that the given string can be used as a relative or absolute diff --git a/packages/google_cloud_firestore/lib/src/query_partition.dart b/packages/google_cloud_firestore/lib/src/query_partition.dart index b6a421c8..71beb48e 100644 --- a/packages/google_cloud_firestore/lib/src/query_partition.dart +++ b/packages/google_cloud_firestore/lib/src/query_partition.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// A split point that can be used in a query as a starting and/or end point for diff --git a/packages/google_cloud_firestore/lib/src/query_profile.dart b/packages/google_cloud_firestore/lib/src/query_profile.dart index 9646c65a..6af02c3c 100644 --- a/packages/google_cloud_firestore/lib/src/query_profile.dart +++ b/packages/google_cloud_firestore/lib/src/query_profile.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// PlanSummary contains information about the planning stage of a query. diff --git a/packages/google_cloud_firestore/lib/src/query_reader.dart b/packages/google_cloud_firestore/lib/src/query_reader.dart index 72eedf6f..586f9963 100644 --- a/packages/google_cloud_firestore/lib/src/query_reader.dart +++ b/packages/google_cloud_firestore/lib/src/query_reader.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// Response wrapper containing both query results and transaction ID. diff --git a/packages/google_cloud_firestore/lib/src/rate_limiter.dart b/packages/google_cloud_firestore/lib/src/rate_limiter.dart index aa161a0b..52eef7e6 100644 --- a/packages/google_cloud_firestore/lib/src/rate_limiter.dart +++ b/packages/google_cloud_firestore/lib/src/rate_limiter.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// A helper for rate limiting operations using a token bucket algorithm. diff --git a/packages/google_cloud_firestore/lib/src/recursive_delete.dart b/packages/google_cloud_firestore/lib/src/recursive_delete.dart index 658cc879..d42197cb 100644 --- a/packages/google_cloud_firestore/lib/src/recursive_delete.dart +++ b/packages/google_cloud_firestore/lib/src/recursive_delete.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// Datastore allowed numeric IDs where Firestore only allows strings. Numeric diff --git a/packages/google_cloud_firestore/lib/src/reference/aggregate_query.dart b/packages/google_cloud_firestore/lib/src/reference/aggregate_query.dart index 34ac5644..bc164d71 100644 --- a/packages/google_cloud_firestore/lib/src/reference/aggregate_query.dart +++ b/packages/google_cloud_firestore/lib/src/reference/aggregate_query.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; @immutable diff --git a/packages/google_cloud_firestore/lib/src/reference/aggregate_query_snapshot.dart b/packages/google_cloud_firestore/lib/src/reference/aggregate_query_snapshot.dart index 4086392b..51e1befc 100644 --- a/packages/google_cloud_firestore/lib/src/reference/aggregate_query_snapshot.dart +++ b/packages/google_cloud_firestore/lib/src/reference/aggregate_query_snapshot.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; /// The results of executing an aggregation query. diff --git a/packages/google_cloud_firestore/lib/src/reference/collection_reference.dart b/packages/google_cloud_firestore/lib/src/reference/collection_reference.dart index 3042e479..33c60066 100644 --- a/packages/google_cloud_firestore/lib/src/reference/collection_reference.dart +++ b/packages/google_cloud_firestore/lib/src/reference/collection_reference.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; @immutable diff --git a/packages/google_cloud_firestore/lib/src/reference/composite_filter_internal.dart b/packages/google_cloud_firestore/lib/src/reference/composite_filter_internal.dart index 06c6189a..8ccc0d85 100644 --- a/packages/google_cloud_firestore/lib/src/reference/composite_filter_internal.dart +++ b/packages/google_cloud_firestore/lib/src/reference/composite_filter_internal.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; class _CompositeFilterInternal extends _FilterInternal { diff --git a/packages/google_cloud_firestore/lib/src/reference/constants.dart b/packages/google_cloud_firestore/lib/src/reference/constants.dart index d565be66..31abaa66 100644 --- a/packages/google_cloud_firestore/lib/src/reference/constants.dart +++ b/packages/google_cloud_firestore/lib/src/reference/constants.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; enum _Direction { diff --git a/packages/google_cloud_firestore/lib/src/reference/document_reference.dart b/packages/google_cloud_firestore/lib/src/reference/document_reference.dart index c05b4179..5b4fa190 100644 --- a/packages/google_cloud_firestore/lib/src/reference/document_reference.dart +++ b/packages/google_cloud_firestore/lib/src/reference/document_reference.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; @immutable diff --git a/packages/google_cloud_firestore/lib/src/reference/field_filter_internal.dart b/packages/google_cloud_firestore/lib/src/reference/field_filter_internal.dart index 9d1f0dde..e6dbdfcf 100644 --- a/packages/google_cloud_firestore/lib/src/reference/field_filter_internal.dart +++ b/packages/google_cloud_firestore/lib/src/reference/field_filter_internal.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; class _FieldFilterInternal extends _FilterInternal { diff --git a/packages/google_cloud_firestore/lib/src/reference/field_order.dart b/packages/google_cloud_firestore/lib/src/reference/field_order.dart index da8918eb..ddccffba 100644 --- a/packages/google_cloud_firestore/lib/src/reference/field_order.dart +++ b/packages/google_cloud_firestore/lib/src/reference/field_order.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; /// A Query order-by field. diff --git a/packages/google_cloud_firestore/lib/src/reference/filter_internal.dart b/packages/google_cloud_firestore/lib/src/reference/filter_internal.dart index 28481a22..5ff97f08 100644 --- a/packages/google_cloud_firestore/lib/src/reference/filter_internal.dart +++ b/packages/google_cloud_firestore/lib/src/reference/filter_internal.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; @immutable diff --git a/packages/google_cloud_firestore/lib/src/reference/query.dart b/packages/google_cloud_firestore/lib/src/reference/query.dart index 6a8f1d1d..ddbfb9cc 100644 --- a/packages/google_cloud_firestore/lib/src/reference/query.dart +++ b/packages/google_cloud_firestore/lib/src/reference/query.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; @immutable diff --git a/packages/google_cloud_firestore/lib/src/reference/query_options.dart b/packages/google_cloud_firestore/lib/src/reference/query_options.dart index 4f4e1513..4c802e2c 100644 --- a/packages/google_cloud_firestore/lib/src/reference/query_options.dart +++ b/packages/google_cloud_firestore/lib/src/reference/query_options.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; @immutable diff --git a/packages/google_cloud_firestore/lib/src/reference/query_snapshot.dart b/packages/google_cloud_firestore/lib/src/reference/query_snapshot.dart index e89c87c1..7dd9fec3 100644 --- a/packages/google_cloud_firestore/lib/src/reference/query_snapshot.dart +++ b/packages/google_cloud_firestore/lib/src/reference/query_snapshot.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; @immutable diff --git a/packages/google_cloud_firestore/lib/src/reference/query_util.dart b/packages/google_cloud_firestore/lib/src/reference/query_util.dart index 40fe73eb..77f67a16 100644 --- a/packages/google_cloud_firestore/lib/src/reference/query_util.dart +++ b/packages/google_cloud_firestore/lib/src/reference/query_util.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; bool _valuesEqual(List? a, List? b) { diff --git a/packages/google_cloud_firestore/lib/src/reference/types.dart b/packages/google_cloud_firestore/lib/src/reference/types.dart index 8e6239b0..cb079f61 100644 --- a/packages/google_cloud_firestore/lib/src/reference/types.dart +++ b/packages/google_cloud_firestore/lib/src/reference/types.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; /// Denotes whether a provided limit is applied to the beginning or the end of diff --git a/packages/google_cloud_firestore/lib/src/reference/vector_query.dart b/packages/google_cloud_firestore/lib/src/reference/vector_query.dart index 0ebedd93..6cdc4e44 100644 --- a/packages/google_cloud_firestore/lib/src/reference/vector_query.dart +++ b/packages/google_cloud_firestore/lib/src/reference/vector_query.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; /// A query that finds the documents whose vector fields are closest to a certain query vector. diff --git a/packages/google_cloud_firestore/lib/src/reference/vector_query_options.dart b/packages/google_cloud_firestore/lib/src/reference/vector_query_options.dart index 261f5559..26ad8481 100644 --- a/packages/google_cloud_firestore/lib/src/reference/vector_query_options.dart +++ b/packages/google_cloud_firestore/lib/src/reference/vector_query_options.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; /// Distance measures for vector queries. diff --git a/packages/google_cloud_firestore/lib/src/reference/vector_query_snapshot.dart b/packages/google_cloud_firestore/lib/src/reference/vector_query_snapshot.dart index e2e2bde5..ffe33559 100644 --- a/packages/google_cloud_firestore/lib/src/reference/vector_query_snapshot.dart +++ b/packages/google_cloud_firestore/lib/src/reference/vector_query_snapshot.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of '../firestore.dart'; /// A `VectorQuerySnapshot` contains zero or more [QueryDocumentSnapshot] objects diff --git a/packages/google_cloud_firestore/lib/src/serializer.dart b/packages/google_cloud_firestore/lib/src/serializer.dart index bdd1c03f..4070402d 100644 --- a/packages/google_cloud_firestore/lib/src/serializer.dart +++ b/packages/google_cloud_firestore/lib/src/serializer.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; @internal diff --git a/packages/google_cloud_firestore/lib/src/set_options.dart b/packages/google_cloud_firestore/lib/src/set_options.dart index 0306c47a..5c0393f7 100644 --- a/packages/google_cloud_firestore/lib/src/set_options.dart +++ b/packages/google_cloud_firestore/lib/src/set_options.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// Options to configure [WriteBatch.set], [Transaction.set], and [BulkWriter.set] behavior. diff --git a/packages/google_cloud_firestore/lib/src/status_code.dart b/packages/google_cloud_firestore/lib/src/status_code.dart index 9405f734..5f3b0cdb 100644 --- a/packages/google_cloud_firestore/lib/src/status_code.dart +++ b/packages/google_cloud_firestore/lib/src/status_code.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + /// Status codes for Firestore operations. /// /// These codes are used to indicate the result of Firestore operations and diff --git a/packages/google_cloud_firestore/lib/src/timestamp.dart b/packages/google_cloud_firestore/lib/src/timestamp.dart index 91b62cb9..15b859ab 100644 --- a/packages/google_cloud_firestore/lib/src/timestamp.dart +++ b/packages/google_cloud_firestore/lib/src/timestamp.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// Encode seconds+nanoseconds to a Google Firestore timestamp string. diff --git a/packages/google_cloud_firestore/lib/src/transaction.dart b/packages/google_cloud_firestore/lib/src/transaction.dart index 9e9c46c2..7c9dda3c 100644 --- a/packages/google_cloud_firestore/lib/src/transaction.dart +++ b/packages/google_cloud_firestore/lib/src/transaction.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; class ReadOptions { diff --git a/packages/google_cloud_firestore/lib/src/types.dart b/packages/google_cloud_firestore/lib/src/types.dart index e1978320..878fde79 100644 --- a/packages/google_cloud_firestore/lib/src/types.dart +++ b/packages/google_cloud_firestore/lib/src/types.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// A map of string keys to dynamic values representing Firestore document data. diff --git a/packages/google_cloud_firestore/lib/src/util.dart b/packages/google_cloud_firestore/lib/src/util.dart index 50a33250..b640e1de 100644 --- a/packages/google_cloud_firestore/lib/src/util.dart +++ b/packages/google_cloud_firestore/lib/src/util.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; extension ObjectUtils on T? { diff --git a/packages/google_cloud_firestore/lib/src/validate.dart b/packages/google_cloud_firestore/lib/src/validate.dart index ebd8e97d..4b8e31f4 100644 --- a/packages/google_cloud_firestore/lib/src/validate.dart +++ b/packages/google_cloud_firestore/lib/src/validate.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// Validates that 'value' is a host. diff --git a/packages/google_cloud_firestore/lib/src/write_batch.dart b/packages/google_cloud_firestore/lib/src/write_batch.dart index 8ec85516..29ec29c8 100644 --- a/packages/google_cloud_firestore/lib/src/write_batch.dart +++ b/packages/google_cloud_firestore/lib/src/write_batch.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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. + part of 'firestore.dart'; /// A WriteResult wraps the write time set by the Firestore servers on sets(), diff --git a/packages/google_cloud_firestore/lib/version.g.dart b/packages/google_cloud_firestore/lib/version.g.dart index eddf3176..5ef9df36 100644 --- a/packages/google_cloud_firestore/lib/version.g.dart +++ b/packages/google_cloud_firestore/lib/version.g.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// 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. + // GENERATED CODE - DO NOT MODIFY BY HAND // This file is generated by gen-version.sh diff --git a/packages/google_cloud_firestore/test/fixtures/helpers.dart b/packages/google_cloud_firestore/test/fixtures/helpers.dart index 2c55fb57..ba14264a 100644 --- a/packages/google_cloud_firestore/test/fixtures/helpers.dart +++ b/packages/google_cloud_firestore/test/fixtures/helpers.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:io'; import 'package:google_cloud_firestore/google_cloud_firestore.dart'; diff --git a/packages/google_cloud_firestore/test/integration/bulk_writer_test.dart b/packages/google_cloud_firestore/test/integration/bulk_writer_test.dart index 0f29025b..8cb1d166 100644 --- a/packages/google_cloud_firestore/test/integration/bulk_writer_test.dart +++ b/packages/google_cloud_firestore/test/integration/bulk_writer_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; diff --git a/packages/google_cloud_firestore/test/integration/bundle_test.dart b/packages/google_cloud_firestore/test/integration/bundle_test.dart index a8f9f36a..9046d8b3 100644 --- a/packages/google_cloud_firestore/test/integration/bundle_test.dart +++ b/packages/google_cloud_firestore/test/integration/bundle_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:convert'; import 'dart:typed_data'; diff --git a/packages/google_cloud_firestore/test/integration/explain_prod_test.dart b/packages/google_cloud_firestore/test/integration/explain_prod_test.dart index 54125244..06b9d5b7 100644 --- a/packages/google_cloud_firestore/test/integration/explain_prod_test.dart +++ b/packages/google_cloud_firestore/test/integration/explain_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/integration/firestore_test.dart b/packages/google_cloud_firestore/test/integration/firestore_test.dart index a3959852..bb0a1328 100644 --- a/packages/google_cloud_firestore/test/integration/firestore_test.dart +++ b/packages/google_cloud_firestore/test/integration/firestore_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/integration/get_all_test.dart b/packages/google_cloud_firestore/test/integration/get_all_test.dart index 0547ecab..a54bef21 100644 --- a/packages/google_cloud_firestore/test/integration/get_all_test.dart +++ b/packages/google_cloud_firestore/test/integration/get_all_test.dart @@ -1,6 +1,17 @@ -// Copyright 2020, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:google_cloud_firestore/src/firestore.dart' show FieldMask; diff --git a/packages/google_cloud_firestore/test/integration/query_partition_prod_test.dart b/packages/google_cloud_firestore/test/integration/query_partition_prod_test.dart index cd7ebfc3..4c3fb43d 100644 --- a/packages/google_cloud_firestore/test/integration/query_partition_prod_test.dart +++ b/packages/google_cloud_firestore/test/integration/query_partition_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/integration/recursive_delete_test.dart b/packages/google_cloud_firestore/test/integration/recursive_delete_test.dart index 883afaa8..36c228da 100644 --- a/packages/google_cloud_firestore/test/integration/recursive_delete_test.dart +++ b/packages/google_cloud_firestore/test/integration/recursive_delete_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/integration/set_options_test.dart b/packages/google_cloud_firestore/test/integration/set_options_test.dart index 57ba5754..b2b0b2f1 100644 --- a/packages/google_cloud_firestore/test/integration/set_options_test.dart +++ b/packages/google_cloud_firestore/test/integration/set_options_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/integration/transaction_test.dart b/packages/google_cloud_firestore/test/integration/transaction_test.dart index 073ad792..cac40fb3 100644 --- a/packages/google_cloud_firestore/test/integration/transaction_test.dart +++ b/packages/google_cloud_firestore/test/integration/transaction_test.dart @@ -1,6 +1,17 @@ -// Copyright 2020, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. +// Copyright 2024 Google LLC +// +// 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:core'; import 'dart:math'; diff --git a/packages/google_cloud_firestore/test/integration/vector_prod_test.dart b/packages/google_cloud_firestore/test/integration/vector_prod_test.dart index 44b3d02b..26a6ae8c 100644 --- a/packages/google_cloud_firestore/test/integration/vector_prod_test.dart +++ b/packages/google_cloud_firestore/test/integration/vector_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/integration/vector_test.dart b/packages/google_cloud_firestore/test/integration/vector_test.dart index de9881ee..4f36270a 100644 --- a/packages/google_cloud_firestore/test/integration/vector_test.dart +++ b/packages/google_cloud_firestore/test/integration/vector_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/aggregate_query_test.dart b/packages/google_cloud_firestore/test/unit/aggregate_query_test.dart index cb73e8ab..21dd9fd5 100644 --- a/packages/google_cloud_firestore/test/unit/aggregate_query_test.dart +++ b/packages/google_cloud_firestore/test/unit/aggregate_query_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/backoff_test.dart b/packages/google_cloud_firestore/test/unit/backoff_test.dart index 58b145dc..28c5b393 100644 --- a/packages/google_cloud_firestore/test/unit/backoff_test.dart +++ b/packages/google_cloud_firestore/test/unit/backoff_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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: invalid_use_of_internal_member import 'package:google_cloud_firestore/src/backoff.dart'; diff --git a/packages/google_cloud_firestore/test/unit/bulk_writer_test.dart b/packages/google_cloud_firestore/test/unit/bulk_writer_test.dart index 9e4ccfae..0fa49bdc 100644 --- a/packages/google_cloud_firestore/test/unit/bulk_writer_test.dart +++ b/packages/google_cloud_firestore/test/unit/bulk_writer_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; diff --git a/packages/google_cloud_firestore/test/unit/bundle_test.dart b/packages/google_cloud_firestore/test/unit/bundle_test.dart index f9341f49..ec32b692 100644 --- a/packages/google_cloud_firestore/test/unit/bundle_test.dart +++ b/packages/google_cloud_firestore/test/unit/bundle_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:convert'; import 'dart:typed_data'; diff --git a/packages/google_cloud_firestore/test/unit/collection_group_test.dart b/packages/google_cloud_firestore/test/unit/collection_group_test.dart index 86219bf9..6d8c4204 100644 --- a/packages/google_cloud_firestore/test/unit/collection_group_test.dart +++ b/packages/google_cloud_firestore/test/unit/collection_group_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/collection_test.dart b/packages/google_cloud_firestore/test/unit/collection_test.dart index 620db5be..6cb09bf2 100644 --- a/packages/google_cloud_firestore/test/unit/collection_test.dart +++ b/packages/google_cloud_firestore/test/unit/collection_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart' hide throwsArgumentError; diff --git a/packages/google_cloud_firestore/test/unit/document_test.dart b/packages/google_cloud_firestore/test/unit/document_test.dart index 688578d0..e85c90d4 100644 --- a/packages/google_cloud_firestore/test/unit/document_test.dart +++ b/packages/google_cloud_firestore/test/unit/document_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart' hide throwsArgumentError; diff --git a/packages/google_cloud_firestore/test/unit/field_value_test.dart b/packages/google_cloud_firestore/test/unit/field_value_test.dart index d0e7560d..79e5a5a7 100644 --- a/packages/google_cloud_firestore/test/unit/field_value_test.dart +++ b/packages/google_cloud_firestore/test/unit/field_value_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/filter_test.dart b/packages/google_cloud_firestore/test/unit/filter_test.dart index 4b5652b2..7caaecf1 100644 --- a/packages/google_cloud_firestore/test/unit/filter_test.dart +++ b/packages/google_cloud_firestore/test/unit/filter_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/firestore_test.dart b/packages/google_cloud_firestore/test/unit/firestore_test.dart index f035990d..9e1d35a5 100644 --- a/packages/google_cloud_firestore/test/unit/firestore_test.dart +++ b/packages/google_cloud_firestore/test/unit/firestore_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/get_all_test.dart b/packages/google_cloud_firestore/test/unit/get_all_test.dart index 8e7e490c..54868a80 100644 --- a/packages/google_cloud_firestore/test/unit/get_all_test.dart +++ b/packages/google_cloud_firestore/test/unit/get_all_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:google_cloud_firestore/src/firestore.dart' show FieldMask; import 'package:google_cloud_firestore/src/firestore_http_client.dart'; diff --git a/packages/google_cloud_firestore/test/unit/order_test.dart b/packages/google_cloud_firestore/test/unit/order_test.dart index a56b3b7e..30bc7522 100644 --- a/packages/google_cloud_firestore/test/unit/order_test.dart +++ b/packages/google_cloud_firestore/test/unit/order_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/src/firestore.dart'; import 'package:googleapis/firestore/v1.dart' as firestore_v1; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/query_partition_test.dart b/packages/google_cloud_firestore/test/unit/query_partition_test.dart index d22a0ca2..401dbb7e 100644 --- a/packages/google_cloud_firestore/test/unit/query_partition_test.dart +++ b/packages/google_cloud_firestore/test/unit/query_partition_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; diff --git a/packages/google_cloud_firestore/test/unit/query_test.dart b/packages/google_cloud_firestore/test/unit/query_test.dart index 572ef6b6..a67762e1 100644 --- a/packages/google_cloud_firestore/test/unit/query_test.dart +++ b/packages/google_cloud_firestore/test/unit/query_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/rate_limiter_test.dart b/packages/google_cloud_firestore/test/unit/rate_limiter_test.dart index b10b9c29..28cb96f3 100644 --- a/packages/google_cloud_firestore/test/unit/rate_limiter_test.dart +++ b/packages/google_cloud_firestore/test/unit/rate_limiter_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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: invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member import 'package:google_cloud_firestore/src/firestore.dart'; diff --git a/packages/google_cloud_firestore/test/unit/recursive_delete_test.dart b/packages/google_cloud_firestore/test/unit/recursive_delete_test.dart index 3df5139a..f04e2074 100644 --- a/packages/google_cloud_firestore/test/unit/recursive_delete_test.dart +++ b/packages/google_cloud_firestore/test/unit/recursive_delete_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; diff --git a/packages/google_cloud_firestore/test/unit/timestamp_test.dart b/packages/google_cloud_firestore/test/unit/timestamp_test.dart index 84cffdeb..a6ede306 100644 --- a/packages/google_cloud_firestore/test/unit/timestamp_test.dart +++ b/packages/google_cloud_firestore/test/unit/timestamp_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/transaction_aggregation_test.dart b/packages/google_cloud_firestore/test/unit/transaction_aggregation_test.dart index 53fac1ee..3c05deef 100644 --- a/packages/google_cloud_firestore/test/unit/transaction_aggregation_test.dart +++ b/packages/google_cloud_firestore/test/unit/transaction_aggregation_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/transaction_query_test.dart b/packages/google_cloud_firestore/test/unit/transaction_query_test.dart index be366072..d74ebace 100644 --- a/packages/google_cloud_firestore/test/unit/transaction_query_test.dart +++ b/packages/google_cloud_firestore/test/unit/transaction_query_test.dart @@ -1,6 +1,17 @@ -// Copyright 2020, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/transaction_test.dart b/packages/google_cloud_firestore/test/unit/transaction_test.dart index facb51c3..2f9f2547 100644 --- a/packages/google_cloud_firestore/test/unit/transaction_test.dart +++ b/packages/google_cloud_firestore/test/unit/transaction_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart'; diff --git a/packages/google_cloud_firestore/test/unit/vector_test.dart b/packages/google_cloud_firestore/test/unit/vector_test.dart index 2dc07de7..4b312a3a 100644 --- a/packages/google_cloud_firestore/test/unit/vector_test.dart +++ b/packages/google_cloud_firestore/test/unit/vector_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; diff --git a/packages/google_cloud_firestore/test/unit/write_batch_test.dart b/packages/google_cloud_firestore/test/unit/write_batch_test.dart index b59f0959..90b18f15 100644 --- a/packages/google_cloud_firestore/test/unit/write_batch_test.dart +++ b/packages/google_cloud_firestore/test/unit/write_batch_test.dart @@ -1,3 +1,17 @@ +// Copyright 2024 Google LLC +// +// 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:google_cloud_firestore/google_cloud_firestore.dart'; import 'package:test/test.dart' hide throwsArgumentError; diff --git a/scripts/coverage.sh b/scripts/coverage.sh index 38bc0b23..d274001f 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright 2026 Google LLC +# +# 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. + # Fast fail the script on failures. set -e diff --git a/scripts/firestore-coverage.sh b/scripts/firestore-coverage.sh index 31ac89af..40ffa227 100755 --- a/scripts/firestore-coverage.sh +++ b/scripts/firestore-coverage.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright 2026 Google LLC +# +# 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. + # Fast fail the script on failures. set -e diff --git a/scripts/generate-docs.sh b/scripts/generate-docs.sh index bffc6c42..521298b8 100755 --- a/scripts/generate-docs.sh +++ b/scripts/generate-docs.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright 2026 Google LLC +# +# 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. + set -e # Get the package name from the current directory diff --git a/tool/update_copyright.dart b/tool/update_copyright.dart new file mode 100644 index 00000000..5a204f05 --- /dev/null +++ b/tool/update_copyright.dart @@ -0,0 +1,139 @@ +// Copyright 2024 Google LLC +// +// 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:io'; + +const _header = ''' +// Copyright 2024 Google LLC +// +// 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. +'''; + +void main(List args) { + final verify = args.contains('--verify'); + final root = Directory.current; + + print('Scanning ${root.path} for Dart files...'); + + final files = []; + _scan(root, files); + + print('Found ${files.length} Dart files.'); + + var updatedCount = 0; + var missingCount = 0; + var correctCount = 0; + + for (final file in files) { + final lines = file.readAsLinesSync(); + if (lines.isEmpty) continue; + + var hasCopyright = false; + var commentEnd = 0; + var commentStart = -1; + + // Find contiguous comment block starting at the top (ignoring ignores) + for (var i = 0; i < lines.length; i++) { + final line = lines[i].trim(); + if (line.startsWith('// ignore_for_file') || line.startsWith('// ignore:')) { + break; + } + if (line.startsWith('//') && !line.startsWith('///')) { + if (commentStart == -1) commentStart = i; + commentEnd = i + 1; + if (line.contains('Copyright')) { + hasCopyright = true; + } + } else { + break; + } + } + + final currentContent = file.readAsStringSync(); + final isCorrect = currentContent.startsWith(_header.trim()); + + if (isCorrect) { + correctCount++; + continue; + } + + if (hasCopyright && commentStart == 0) { + // Check if it matches exactly (already handled by isCorrect, but good to be explicit) + if (verify) { + print('Verify Failed: ${file.path} has incorrect copyright header.'); + } else { + final rest = lines.skip(commentEnd).join('\n'); + final newContent = _header.trim() + '\n\n' + rest + (rest.endsWith('\n') ? '' : '\n'); + file.writeAsStringSync(newContent); + updatedCount++; + } + } else { + // Missed or starts with something else + if (verify) { + print('Verify Failed: ${file.path} is missing copyright header.'); + } else { + final newContent = _header.trim() + '\n\n' + currentContent; + file.writeAsStringSync(newContent); + missingCount++; + } + } + } + + print('--- Summary ---'); + print('Correct: $correctCount'); + if (verify) { + if (updatedCount > 0 || missingCount > 0) { + print('Verification failed. Run without --verify to update.'); + exit(1); + } else { + print('Verification passed.'); + } + } else { + print('Updated (replaced): $updatedCount'); + print('Added (prepended): $missingCount'); + print('Total modified: ${updatedCount + missingCount}'); + } +} + +void _scan(Directory dir, List files) { + for (final entity in dir.listSync(recursive: false)) { + if (entity is Directory) { + final name = entity.path.split(Platform.pathSeparator).last; + if (name.startsWith('.') || name == 'build' || name == 'doc') { + continue; + } + _scan(entity, files); + } else if (entity is File) { + if (entity.path.endsWith('.dart')) { + final name = entity.path.split(Platform.pathSeparator).last; + if (name.endsWith('.g.dart') || + name.endsWith('.freezed.dart') || + name.endsWith('.mocks.dart')) { + continue; + } + files.add(entity); + } + } + } +}