diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..bebfe531 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,176 @@ +# Contributing | Firebase Admin Dart SDK + +Thank you for contributing to the Firebase community! + + - [Have a usage question?](#question) + - [Think you found a bug?](#issue) + - [Have a feature request?](#feature) + - [Want to submit a pull request?](#submit) + - [Need to get set up locally?](#local-setup) + + +## Have a usage question? + +We get lots of those and we love helping you, but GitHub is not the best place for them. Issues +which just ask about usage will be closed. Here are some resources to get help: + +- Go through the [guides](https://firebase.google.com/docs/admin/setup/) +- Read the full [API reference](https://pub.dev/documentation/dart_firebase_admin/latest/) + +If the official documentation doesn't help, try asking a question on [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase+dart). + +**Please avoid double posting across multiple channels!** + + +## Think you found a bug? + +Yeah, we're definitely not perfect! + +Search through [old issues](https://github.com/firebase/firebase-admin-dart/issues) before +submitting a new issue as your question may have already been answered. + +If your issue appears to be a bug, and hasn't been reported, +[open a new issue](https://github.com/firebase/firebase-admin-dart/issues/new). Please use the +provided bug report template and include a minimal repro. + +If you are up to the challenge, [submit a pull request](#submit) with a fix! + + +## Have a feature request? + +Great, we love hearing how we can improve our products! Share you idea through our +[feature request support channel](https://firebase.google.com/support/contact/bugs-features/). + + +## Want to submit a pull request? + +Sweet, we'd love to accept your contribution! +[Open a new pull request](https://github.com/firebase/firebase-admin-dart/pulls) and fill +out the provided template. + +**If you want to implement a new feature, please open an issue with a proposal first so that we can +figure out if the feature makes sense and how it will work.** + +Make sure your changes pass our linter and the tests all pass on your local machine. We've hooked +up this repo with continuous integration to double check those things for you. + +Most non-trivial changes should include some extra test coverage. If you aren't sure how to add +tests, feel free to submit regardless and ask us for some advice. + +Finally, you will need to sign our +[Contributor License Agreement](https://cla.developers.google.com/about/google-individual), +and go through our code review process before we can accept your pull request. + +### Contributor License Agreement + +Contributions to this project must be accompanied by a Contributor License +Agreement. You (or your employer) retain the copyright to your contribution. +This simply gives us permission to use and redistribute your contributions as +part of the project. Head over to to see +your current agreements on file or to sign a new one. + +You generally only need to submit a CLA once, so if you've already submitted one +(even if it was for a different project), you probably don't need to do it +again. + +### Code reviews + +All submissions, including submissions by project members, require review. We +use GitHub pull requests for this purpose. Consult +[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more +information on using pull requests. + + +## Need to get set up locally? + +### Prerequisites + +1. [Dart SDK](https://dart.dev/get-dart) (Latest stable version recommended). +2. [Melos](https://melos.invertase.dev/) (`dart pub global activate melos`). +3. Google Cloud SDK ([`gcloud`](https://cloud.google.com/sdk/downloads) utility). + +### Initial Setup + +Run the following commands from the command line to get your local environment set up: + +```bash +$ git clone https://github.com/firebase/firebase-admin-dart.git +$ cd firebase-admin-dart # go to the firebase-admin-dart directory +$ melos bootstrap # install dependencies and link packages +``` + +In order to run the integration tests, you also need to authorize the `gcloud` utility with +Google application default credentials: + +```bash +$ gcloud beta auth application-default login +``` + +### Running the Linter + +Source files are written in Dart and analyzed using the standard Dart analyzer. Run the following command to analyze the project: + +```bash +$ melos run analyze +# OR +$ dart analyze . +``` + +### Running Tests + +There are two types of tests: unit and integration. The unit tests are intended to be run during +development, and the integration tests are intended to be run validation against a real Environment or Emulator Suite. + +#### Unit Tests + +To run the unit tests for all packages: + +```bash +$ melos exec -- dart test +``` + +Or for a specific package, navigate to the package directory and run `dart test`: + +```bash +$ cd packages/dart_firebase_admin +$ dart test +``` + +#### Integration Tests with Emulator Suite + +Some of the integration tests work with the Emulator Suite and you can run them +without an actual Firebase project. + +First, make sure to [install Firebase CLI](https://firebase.google.com/docs/cli#install_the_firebase_cli). +And then start the emulators: + +```bash +$ firebase emulators:start --only firestore,auth +``` + +Then run the tests with the necessary environment variables: + +```bash +$ export FIRESTORE_EMULATOR_HOST=localhost:8080 +$ export FIREBASE_AUTH_EMULATOR_HOST=localhost:9099 +$ dart test test/firestore/firestore_integration_test.dart +``` + +#### Integration Tests with an actual Firebase project + +Integration tests are executed against a real life Firebase project. If you do not already +have one suitable for running the tests against, you can create a new project in the +[Firebase Console](https://console.firebase.google.com) following the setup guide below. +If you already have a Firebase project, you'll need to obtain credentials to communicate and +authorize access to your Firebase project. + +See `packages/dart_firebase_admin/README.md` for more details on project setup if needed. + +### Repo Organization + +This repository is a monorepo managed by Melos. + +* `packages/` - Contains all the source packages. + * `dart_firebase_admin/` - The main Firebase Admin SDK package. + * `googleapis_firestore/` - Stand-alone Firestore package. + * `googleapis_storage/` - Stand-alone Google Cloud Storage package. diff --git a/LICENSE b/LICENSE index e006cb1d..cb7d4dee 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2020 Invertase Limited + 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. diff --git a/gen-version.sh b/gen-version.sh index d108fd81..ee8402ef 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 2025 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..cb7d4dee 100644 --- a/packages/dart_firebase_admin/LICENSE +++ b/packages/dart_firebase_admin/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2020 Invertase Limited + 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. 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..5d4c5810 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 2025 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..42424bfc 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 2025 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..1560efd8 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 2025 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..5c4aebb2 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 2025 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..dc8ae16b 100644 --- a/packages/dart_firebase_admin/example/lib/main.dart +++ b/packages/dart_firebase_admin/example/lib/main.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..61459466 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 2025 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..a06a179a 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 2025 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..7ef257e1 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 2025 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..15176dec 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 2025 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..baedd4ee 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 2025 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..410b2349 100644 --- a/packages/dart_firebase_admin/lib/app_check.dart +++ b/packages/dart_firebase_admin/lib/app_check.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..dc4b619c 100644 --- a/packages/dart_firebase_admin/lib/auth.dart +++ b/packages/dart_firebase_admin/lib/auth.dart @@ -1 +1,15 @@ +// Copyright 2025 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..ff71a0a1 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 2025 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..81253a2a 100644 --- a/packages/dart_firebase_admin/lib/firestore.dart +++ b/packages/dart_firebase_admin/lib/firestore.dart @@ -1 +1,15 @@ +// Copyright 2025 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..da1a6210 100644 --- a/packages/dart_firebase_admin/lib/functions.dart +++ b/packages/dart_firebase_admin/lib/functions.dart @@ -1 +1,15 @@ +// Copyright 2025 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..033b78e4 100644 --- a/packages/dart_firebase_admin/lib/messaging.dart +++ b/packages/dart_firebase_admin/lib/messaging.dart @@ -1,2 +1,16 @@ +// Copyright 2025 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..79911c77 100644 --- a/packages/dart_firebase_admin/lib/security_rules.dart +++ b/packages/dart_firebase_admin/lib/security_rules.dart @@ -1,2 +1,16 @@ +// Copyright 2025 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..6b6d2964 100644 --- a/packages/dart_firebase_admin/lib/src/app.dart +++ b/packages/dart_firebase_admin/lib/src/app.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..ee041fbd 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 2025 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..f436fe0a 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 2025 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..13c331e7 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 2025 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..53ba5d3d 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 2025 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..fd9d01e6 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 2025 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..ccdbbfa2 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 2025 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..5b938ecb 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 2025 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..256cce20 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 2025 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..06b2cbd7 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 2025 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..3640a0b4 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 2025 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..94f3ed90 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 2025 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..49029481 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 2025 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..db4477ff 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 2025 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..fae2fa37 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 2025 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..17eb4e7a 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 2025 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..bf543f93 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 2025 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..e6bb5c3f 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 2025 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..e4121a78 100644 --- a/packages/dart_firebase_admin/lib/src/auth.dart +++ b/packages/dart_firebase_admin/lib/src/auth.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..722ecdb9 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 2025 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..8b453d60 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 2025 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..c7acd5f5 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 2025 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_config_tenant.dart b/packages/dart_firebase_admin/lib/src/auth/auth_config_tenant.dart index 7f6742c1..463b6b54 100644 --- a/packages/dart_firebase_admin/lib/src/auth/auth_config_tenant.dart +++ b/packages/dart_firebase_admin/lib/src/auth/auth_config_tenant.dart @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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/lib/src/auth/auth_exception.dart b/packages/dart_firebase_admin/lib/src/auth/auth_exception.dart index a7cfecf3..a45cb901 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 2025 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..7cb51bff 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 2025 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..b710ac01 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 2025 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..8dc2feaf 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 2025 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..9193864b 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 2025 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/project_config.dart b/packages/dart_firebase_admin/lib/src/auth/project_config.dart index cc1a1979..83da1a99 100644 --- a/packages/dart_firebase_admin/lib/src/auth/project_config.dart +++ b/packages/dart_firebase_admin/lib/src/auth/project_config.dart @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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/lib/src/auth/project_config_manager.dart b/packages/dart_firebase_admin/lib/src/auth/project_config_manager.dart index 24b61a21..2f7b4d18 100644 --- a/packages/dart_firebase_admin/lib/src/auth/project_config_manager.dart +++ b/packages/dart_firebase_admin/lib/src/auth/project_config_manager.dart @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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/lib/src/auth/tenant.dart b/packages/dart_firebase_admin/lib/src/auth/tenant.dart index caeb91d8..65157ed7 100644 --- a/packages/dart_firebase_admin/lib/src/auth/tenant.dart +++ b/packages/dart_firebase_admin/lib/src/auth/tenant.dart @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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/lib/src/auth/tenant_manager.dart b/packages/dart_firebase_admin/lib/src/auth/tenant_manager.dart index f35694b0..dde93df1 100644 --- a/packages/dart_firebase_admin/lib/src/auth/tenant_manager.dart +++ b/packages/dart_firebase_admin/lib/src/auth/tenant_manager.dart @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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/lib/src/auth/token_generator.dart b/packages/dart_firebase_admin/lib/src/auth/token_generator.dart index 620a8699..9d6a87a0 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 2025 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..9c2f4c32 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 2025 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..255fdb0d 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 2025 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..7eea2e76 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 2025 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..e28d80a6 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 2025 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..a551a1b4 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 2025 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..51373ec1 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 2025 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..b43eccd9 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 2025 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..4697bc66 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 2025 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..abf187d5 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 2025 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..c51e05e6 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 2025 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..e4db8419 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 2025 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..25813eff 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 2025 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..6ff76823 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 2025 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..1f0c3a45 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 2025 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..238b07fa 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 2025 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..2b616020 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 2025 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..5f655968 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 2025 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..882b6e04 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 2025 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..bdf42ea3 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 2025 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..4fd0a644 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 2025 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..55d2cdb6 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 2025 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..5b457c03 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 2025 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..fc6fd284 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 2025 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..cdd4447a 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 2025 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..43d8d230 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 2025 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..1109c596 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 2025 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..a53a20b4 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 2025 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..9c3e881e 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 2025 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..424cf281 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 2025 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..3336594d 100644 --- a/packages/dart_firebase_admin/lib/storage.dart +++ b/packages/dart_firebase_admin/lib/storage.dart @@ -1 +1,15 @@ +// Copyright 2025 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..818e4e9b 100644 --- a/packages/dart_firebase_admin/lib/version.g.dart +++ b/packages/dart_firebase_admin/lib/version.g.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/pubspec.yaml b/packages/dart_firebase_admin/pubspec.yaml index fed17bbf..951d7362 100644 --- a/packages/dart_firebase_admin/pubspec.yaml +++ b/packages/dart_firebase_admin/pubspec.yaml @@ -17,9 +17,7 @@ dependencies: ffi: ^2.1.2 google_cloud: ^0.3.0 google_cloud_firestore: ^0.1.0 - # `google_cloud_storage` will not change the surface used by - # `dart_firebase_admin`. - google_cloud_storage: ">=0.5.1" + google_cloud_storage: ^0.5.1 googleapis: ^15.0.0 googleapis_auth: ^2.2.0 googleapis_beta: ^9.0.0 @@ -41,4 +39,4 @@ dev_dependencies: false_secrets: - /test/auth/jwt_test.dart - /test/client/get_id_token.js - - /test/mock_service_account.dart \ No newline at end of file + - /test/mock_service_account.dart diff --git a/packages/dart_firebase_admin/test/app/app_registry_test.dart b/packages/dart_firebase_admin/test/app/app_registry_test.dart index 04914e36..98a77e16 100644 --- a/packages/dart_firebase_admin/test/app/app_registry_test.dart +++ b/packages/dart_firebase_admin/test/app/app_registry_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/app/exception_test.dart b/packages/dart_firebase_admin/test/app/exception_test.dart index 345cc793..9720b7f8 100644 --- a/packages/dart_firebase_admin/test/app/exception_test.dart +++ b/packages/dart_firebase_admin/test/app/exception_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/app/firebase_app_integration_test.dart b/packages/dart_firebase_admin/test/app/firebase_app_integration_test.dart index 2e34bc7a..1f6463ef 100644 --- a/packages/dart_firebase_admin/test/app/firebase_app_integration_test.dart +++ b/packages/dart_firebase_admin/test/app/firebase_app_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/app/firebase_app_prod_test.dart b/packages/dart_firebase_admin/test/app/firebase_app_prod_test.dart index 3353bdbc..9179fb6d 100644 --- a/packages/dart_firebase_admin/test/app/firebase_app_prod_test.dart +++ b/packages/dart_firebase_admin/test/app/firebase_app_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/app/firebase_app_test.dart b/packages/dart_firebase_admin/test/app/firebase_app_test.dart index 1b364a42..a07ba3a8 100644 --- a/packages/dart_firebase_admin/test/app/firebase_app_test.dart +++ b/packages/dart_firebase_admin/test/app/firebase_app_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/app/firebase_user_agent_client_test.dart b/packages/dart_firebase_admin/test/app/firebase_user_agent_client_test.dart index 4f1ae441..23dcdda3 100644 --- a/packages/dart_firebase_admin/test/app/firebase_user_agent_client_test.dart +++ b/packages/dart_firebase_admin/test/app/firebase_user_agent_client_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/app_check/app_check_exception_test.dart b/packages/dart_firebase_admin/test/app_check/app_check_exception_test.dart index 3f9f5571..e3ff47c1 100644 --- a/packages/dart_firebase_admin/test/app_check/app_check_exception_test.dart +++ b/packages/dart_firebase_admin/test/app_check/app_check_exception_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/app_check/app_check_test.dart b/packages/dart_firebase_admin/test/app_check/app_check_test.dart index c4bb3ccf..62ab251f 100644 --- a/packages/dart_firebase_admin/test/app_check/app_check_test.dart +++ b/packages/dart_firebase_admin/test/app_check/app_check_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/app_check/token_verifier_test.dart b/packages/dart_firebase_admin/test/app_check/token_verifier_test.dart index cb309ac1..50977315 100644 --- a/packages/dart_firebase_admin/test/app_check/token_verifier_test.dart +++ b/packages/dart_firebase_admin/test/app_check/token_verifier_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/auth_config_tenant_test.dart b/packages/dart_firebase_admin/test/auth/auth_config_tenant_test.dart index 35297b5a..323cce25 100644 --- a/packages/dart_firebase_admin/test/auth/auth_config_tenant_test.dart +++ b/packages/dart_firebase_admin/test/auth/auth_config_tenant_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/auth_exception_test.dart b/packages/dart_firebase_admin/test/auth/auth_exception_test.dart index 74e34ed0..f77de7d9 100644 --- a/packages/dart_firebase_admin/test/auth/auth_exception_test.dart +++ b/packages/dart_firebase_admin/test/auth/auth_exception_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/auth_integration_prod_test.dart b/packages/dart_firebase_admin/test/auth/auth_integration_prod_test.dart index 20aae3a3..8477d3d0 100644 --- a/packages/dart_firebase_admin/test/auth/auth_integration_prod_test.dart +++ b/packages/dart_firebase_admin/test/auth/auth_integration_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/auth_test.dart b/packages/dart_firebase_admin/test/auth/auth_test.dart index 2ab5963b..93937ba8 100644 --- a/packages/dart_firebase_admin/test/auth/auth_test.dart +++ b/packages/dart_firebase_admin/test/auth/auth_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/integration_test.dart b/packages/dart_firebase_admin/test/auth/integration_test.dart index 964ff0e9..517428b6 100644 --- a/packages/dart_firebase_admin/test/auth/integration_test.dart +++ b/packages/dart_firebase_admin/test/auth/integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/jwt_test.dart b/packages/dart_firebase_admin/test/auth/jwt_test.dart index 2e46f2f1..0009f159 100644 --- a/packages/dart_firebase_admin/test/auth/jwt_test.dart +++ b/packages/dart_firebase_admin/test/auth/jwt_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/project_config_integration_prod_test.dart b/packages/dart_firebase_admin/test/auth/project_config_integration_prod_test.dart index 9a19d3bd..d72136c3 100644 --- a/packages/dart_firebase_admin/test/auth/project_config_integration_prod_test.dart +++ b/packages/dart_firebase_admin/test/auth/project_config_integration_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/project_config_integration_test.dart b/packages/dart_firebase_admin/test/auth/project_config_integration_test.dart index f92be7a6..0bdfa296 100644 --- a/packages/dart_firebase_admin/test/auth/project_config_integration_test.dart +++ b/packages/dart_firebase_admin/test/auth/project_config_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/project_config_manager_test.dart b/packages/dart_firebase_admin/test/auth/project_config_manager_test.dart index 98605f9a..c37949e0 100644 --- a/packages/dart_firebase_admin/test/auth/project_config_manager_test.dart +++ b/packages/dart_firebase_admin/test/auth/project_config_manager_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/project_config_test.dart b/packages/dart_firebase_admin/test/auth/project_config_test.dart index bf6564c4..cde360e3 100644 --- a/packages/dart_firebase_admin/test/auth/project_config_test.dart +++ b/packages/dart_firebase_admin/test/auth/project_config_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/tenant_integration_prod_test.dart b/packages/dart_firebase_admin/test/auth/tenant_integration_prod_test.dart index 9795b289..5e5538a1 100644 --- a/packages/dart_firebase_admin/test/auth/tenant_integration_prod_test.dart +++ b/packages/dart_firebase_admin/test/auth/tenant_integration_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/tenant_integration_test.dart b/packages/dart_firebase_admin/test/auth/tenant_integration_test.dart index 4091039b..6e60f74e 100644 --- a/packages/dart_firebase_admin/test/auth/tenant_integration_test.dart +++ b/packages/dart_firebase_admin/test/auth/tenant_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/tenant_manager_test.dart b/packages/dart_firebase_admin/test/auth/tenant_manager_test.dart index da4cce3d..8bc45faa 100644 --- a/packages/dart_firebase_admin/test/auth/tenant_manager_test.dart +++ b/packages/dart_firebase_admin/test/auth/tenant_manager_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/tenant_test.dart b/packages/dart_firebase_admin/test/auth/tenant_test.dart index 37ff96eb..a6744161 100644 --- a/packages/dart_firebase_admin/test/auth/tenant_test.dart +++ b/packages/dart_firebase_admin/test/auth/tenant_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/token_verifier_test.dart b/packages/dart_firebase_admin/test/auth/token_verifier_test.dart index 5b67f8ca..ebcb06e2 100644 --- a/packages/dart_firebase_admin/test/auth/token_verifier_test.dart +++ b/packages/dart_firebase_admin/test/auth/token_verifier_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/user_test.dart b/packages/dart_firebase_admin/test/auth/user_test.dart index 67ea39cb..75f69fa4 100644 --- a/packages/dart_firebase_admin/test/auth/user_test.dart +++ b/packages/dart_firebase_admin/test/auth/user_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/auth/util/helpers.dart b/packages/dart_firebase_admin/test/auth/util/helpers.dart index 361b6083..fa6189dc 100644 --- a/packages/dart_firebase_admin/test/auth/util/helpers.dart +++ b/packages/dart_firebase_admin/test/auth/util/helpers.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/client/get_id_token.js b/packages/dart_firebase_admin/test/client/get_id_token.js index 459525bc..821ef8e7 100644 --- a/packages/dart_firebase_admin/test/client/get_id_token.js +++ b/packages/dart_firebase_admin/test/client/get_id_token.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. + */ + const { initializeApp } = require("firebase/app"); const { getAuth, diff --git a/packages/dart_firebase_admin/test/credential_test.dart b/packages/dart_firebase_admin/test/credential_test.dart index b2723925..8285349e 100644 --- a/packages/dart_firebase_admin/test/credential_test.dart +++ b/packages/dart_firebase_admin/test/credential_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/firebase_admin_app_test.dart b/packages/dart_firebase_admin/test/firebase_admin_app_test.dart index a8c78147..19f1be8d 100644 --- a/packages/dart_firebase_admin/test/firebase_admin_app_test.dart +++ b/packages/dart_firebase_admin/test/firebase_admin_app_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/firestore/firestore_integration_test.dart b/packages/dart_firebase_admin/test/firestore/firestore_integration_test.dart index a562eb68..9d660558 100644 --- a/packages/dart_firebase_admin/test/firestore/firestore_integration_test.dart +++ b/packages/dart_firebase_admin/test/firestore/firestore_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/firestore/firestore_test.dart b/packages/dart_firebase_admin/test/firestore/firestore_test.dart index b164b064..d231c6fa 100644 --- a/packages/dart_firebase_admin/test/firestore/firestore_test.dart +++ b/packages/dart_firebase_admin/test/firestore/firestore_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/functions/functions_integration_test.dart b/packages/dart_firebase_admin/test/functions/functions_integration_test.dart index 4010b3c5..15c14ffb 100644 --- a/packages/dart_firebase_admin/test/functions/functions_integration_test.dart +++ b/packages/dart_firebase_admin/test/functions/functions_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/functions/functions_test.dart b/packages/dart_firebase_admin/test/functions/functions_test.dart index 0aea0059..5a27a1d4 100644 --- a/packages/dart_firebase_admin/test/functions/functions_test.dart +++ b/packages/dart_firebase_admin/test/functions/functions_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/functions/src/index.ts b/packages/dart_firebase_admin/test/functions/src/index.ts index b2e16a54..88c864b6 100644 --- a/packages/dart_firebase_admin/test/functions/src/index.ts +++ b/packages/dart_firebase_admin/test/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/functions/util/helpers.dart b/packages/dart_firebase_admin/test/functions/util/helpers.dart index b54aafaf..13a50179 100644 --- a/packages/dart_firebase_admin/test/functions/util/helpers.dart +++ b/packages/dart_firebase_admin/test/functions/util/helpers.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/helpers.dart b/packages/dart_firebase_admin/test/helpers.dart index e346b86e..832eb2f9 100644 --- a/packages/dart_firebase_admin/test/helpers.dart +++ b/packages/dart_firebase_admin/test/helpers.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/messaging/messaging_integration_test.dart b/packages/dart_firebase_admin/test/messaging/messaging_integration_test.dart index c1d8bbac..9ff102d9 100644 --- a/packages/dart_firebase_admin/test/messaging/messaging_integration_test.dart +++ b/packages/dart_firebase_admin/test/messaging/messaging_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/messaging/messaging_test.dart b/packages/dart_firebase_admin/test/messaging/messaging_test.dart index 268891f3..717dd719 100644 --- a/packages/dart_firebase_admin/test/messaging/messaging_test.dart +++ b/packages/dart_firebase_admin/test/messaging/messaging_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/mock.dart b/packages/dart_firebase_admin/test/mock.dart index c729238a..3b69b8ad 100644 --- a/packages/dart_firebase_admin/test/mock.dart +++ b/packages/dart_firebase_admin/test/mock.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/mock_service_account.dart b/packages/dart_firebase_admin/test/mock_service_account.dart index f19f946a..8125ec07 100644 --- a/packages/dart_firebase_admin/test/mock_service_account.dart +++ b/packages/dart_firebase_admin/test/mock_service_account.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/security_rules/security_rules_integration_prod_test.dart b/packages/dart_firebase_admin/test/security_rules/security_rules_integration_prod_test.dart index 629927eb..783b25e4 100644 --- a/packages/dart_firebase_admin/test/security_rules/security_rules_integration_prod_test.dart +++ b/packages/dart_firebase_admin/test/security_rules/security_rules_integration_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/security_rules/security_rules_test.dart b/packages/dart_firebase_admin/test/security_rules/security_rules_test.dart index e6f789cf..0513d84d 100644 --- a/packages/dart_firebase_admin/test/security_rules/security_rules_test.dart +++ b/packages/dart_firebase_admin/test/security_rules/security_rules_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/storage/storage_integration_test.dart b/packages/dart_firebase_admin/test/storage/storage_integration_test.dart index a80d6a78..e65c68e8 100644 --- a/packages/dart_firebase_admin/test/storage/storage_integration_test.dart +++ b/packages/dart_firebase_admin/test/storage/storage_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/storage/storage_prod_test.dart b/packages/dart_firebase_admin/test/storage/storage_prod_test.dart index f66ce5ef..cecbaee3 100644 --- a/packages/dart_firebase_admin/test/storage/storage_prod_test.dart +++ b/packages/dart_firebase_admin/test/storage/storage_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/storage/storage_test.dart b/packages/dart_firebase_admin/test/storage/storage_test.dart index 53207f10..3500ee0a 100644 --- a/packages/dart_firebase_admin/test/storage/storage_test.dart +++ b/packages/dart_firebase_admin/test/storage/storage_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/lib/google_cloud_firestore.dart b/packages/google_cloud_firestore/lib/google_cloud_firestore.dart index 1897fee9..b8191f93 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 2025 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..0736d1e0 100644 --- a/packages/google_cloud_firestore/lib/src/aggregate.dart +++ b/packages/google_cloud_firestore/lib/src/aggregate.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..20d38575 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 2025 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..3a283ed2 100644 --- a/packages/google_cloud_firestore/lib/src/backoff.dart +++ b/packages/google_cloud_firestore/lib/src/backoff.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..7e75109a 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 2025 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..ab6a99d9 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 2025 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, diff --git a/packages/google_cloud_firestore/lib/src/collection_group.dart b/packages/google_cloud_firestore/lib/src/collection_group.dart index 7939c7cc..4d03b1fe 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 2025 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..3a434c1a 100644 --- a/packages/google_cloud_firestore/lib/src/convert.dart +++ b/packages/google_cloud_firestore/lib/src/convert.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..c5b4021b 100644 --- a/packages/google_cloud_firestore/lib/src/credential.dart +++ b/packages/google_cloud_firestore/lib/src/credential.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..ebea819c 100644 --- a/packages/google_cloud_firestore/lib/src/document.dart +++ b/packages/google_cloud_firestore/lib/src/document.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..ef38695c 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 2025 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..f0b9f82b 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 2025 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..1fc2921f 100644 --- a/packages/google_cloud_firestore/lib/src/environment.dart +++ b/packages/google_cloud_firestore/lib/src/environment.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..3e4a05c8 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 2025 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..9a62cf45 100644 --- a/packages/google_cloud_firestore/lib/src/filter.dart +++ b/packages/google_cloud_firestore/lib/src/filter.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..37bf492c 100644 --- a/packages/google_cloud_firestore/lib/src/firestore.dart +++ b/packages/google_cloud_firestore/lib/src/firestore.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..5fbff579 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 2025 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..118e9893 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 2025 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..e3c6031d 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 2025 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..8615b4f8 100644 --- a/packages/google_cloud_firestore/lib/src/logger.dart +++ b/packages/google_cloud_firestore/lib/src/logger.dart @@ -1 +1,13 @@ - +// Copyright 2025 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..f35b5e72 100644 --- a/packages/google_cloud_firestore/lib/src/order.dart +++ b/packages/google_cloud_firestore/lib/src/order.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..37d040ad 100644 --- a/packages/google_cloud_firestore/lib/src/path.dart +++ b/packages/google_cloud_firestore/lib/src/path.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..09cf6c43 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 2025 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..1923f7ce 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 2025 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..0c5e78bc 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 2025 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..ba861f41 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 2025 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..bd034f80 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 2025 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..eb9514f8 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 2025 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..101aa233 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 2025 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..e8a08ca2 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 2025 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..2e78b89e 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 2025 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..b82bcaf0 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 2025 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..8cb0d96b 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 2025 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..dfa22242 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 2025 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..0a102ede 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 2025 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..da03114c 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 2025 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..61b58ebb 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 2025 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..94777036 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 2025 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..ccf6b2d7 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 2025 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..c502c0aa 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 2025 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..ae79e74c 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 2025 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..ca4fac36 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 2025 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..bb1cb174 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 2025 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..94dbc29a 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 2025 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..21111b68 100644 --- a/packages/google_cloud_firestore/lib/src/serializer.dart +++ b/packages/google_cloud_firestore/lib/src/serializer.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..6f064f51 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 2025 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..82255a9b 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 2025 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..fcdb73e3 100644 --- a/packages/google_cloud_firestore/lib/src/timestamp.dart +++ b/packages/google_cloud_firestore/lib/src/timestamp.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..63d1563a 100644 --- a/packages/google_cloud_firestore/lib/src/transaction.dart +++ b/packages/google_cloud_firestore/lib/src/transaction.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..b4214b93 100644 --- a/packages/google_cloud_firestore/lib/src/types.dart +++ b/packages/google_cloud_firestore/lib/src/types.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..28faea03 100644 --- a/packages/google_cloud_firestore/lib/src/util.dart +++ b/packages/google_cloud_firestore/lib/src/util.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..b5760dec 100644 --- a/packages/google_cloud_firestore/lib/src/validate.dart +++ b/packages/google_cloud_firestore/lib/src/validate.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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..787f3d22 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 2025 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..5c60e628 100644 --- a/packages/google_cloud_firestore/lib/version.g.dart +++ b/packages/google_cloud_firestore/lib/version.g.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/aggregate_query_test.dart b/packages/google_cloud_firestore/test/aggregate_query_test.dart index 94601bca..1875581d 100644 --- a/packages/google_cloud_firestore/test/aggregate_query_test.dart +++ b/packages/google_cloud_firestore/test/aggregate_query_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/backoff_test.dart b/packages/google_cloud_firestore/test/backoff_test.dart index 58b145dc..d4446e73 100644 --- a/packages/google_cloud_firestore/test/backoff_test.dart +++ b/packages/google_cloud_firestore/test/backoff_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/bulk_writer_integration_test.dart b/packages/google_cloud_firestore/test/bulk_writer_integration_test.dart index c7828ec8..276140aa 100644 --- a/packages/google_cloud_firestore/test/bulk_writer_integration_test.dart +++ b/packages/google_cloud_firestore/test/bulk_writer_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/bulk_writer_test.dart b/packages/google_cloud_firestore/test/bulk_writer_test.dart index 9e4ccfae..81a9f8c9 100644 --- a/packages/google_cloud_firestore/test/bulk_writer_test.dart +++ b/packages/google_cloud_firestore/test/bulk_writer_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/bundle_integration_test.dart b/packages/google_cloud_firestore/test/bundle_integration_test.dart index 152625f4..c4e255e4 100644 --- a/packages/google_cloud_firestore/test/bundle_integration_test.dart +++ b/packages/google_cloud_firestore/test/bundle_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/bundle_test.dart b/packages/google_cloud_firestore/test/bundle_test.dart index f9341f49..e716b9fc 100644 --- a/packages/google_cloud_firestore/test/bundle_test.dart +++ b/packages/google_cloud_firestore/test/bundle_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/collection_group_test.dart b/packages/google_cloud_firestore/test/collection_group_test.dart index c7b6ae95..05701dfb 100644 --- a/packages/google_cloud_firestore/test/collection_group_test.dart +++ b/packages/google_cloud_firestore/test/collection_group_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/collection_test.dart b/packages/google_cloud_firestore/test/collection_test.dart index e38d4f4a..0ec9360b 100644 --- a/packages/google_cloud_firestore/test/collection_test.dart +++ b/packages/google_cloud_firestore/test/collection_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/document_test.dart b/packages/google_cloud_firestore/test/document_test.dart index a61b4009..4ff264b8 100644 --- a/packages/google_cloud_firestore/test/document_test.dart +++ b/packages/google_cloud_firestore/test/document_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/explain_prod_test.dart b/packages/google_cloud_firestore/test/explain_prod_test.dart index 7c07adbe..eb40339d 100644 --- a/packages/google_cloud_firestore/test/explain_prod_test.dart +++ b/packages/google_cloud_firestore/test/explain_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/field_value_test.dart b/packages/google_cloud_firestore/test/field_value_test.dart index d0e7560d..024d8a40 100644 --- a/packages/google_cloud_firestore/test/field_value_test.dart +++ b/packages/google_cloud_firestore/test/field_value_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/filter_test.dart b/packages/google_cloud_firestore/test/filter_test.dart index 4b5652b2..7c34780b 100644 --- a/packages/google_cloud_firestore/test/filter_test.dart +++ b/packages/google_cloud_firestore/test/filter_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/firestore_integration_test.dart b/packages/google_cloud_firestore/test/firestore_integration_test.dart index f7c3c2bf..091f0b38 100644 --- a/packages/google_cloud_firestore/test/firestore_integration_test.dart +++ b/packages/google_cloud_firestore/test/firestore_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/firestore_test.dart b/packages/google_cloud_firestore/test/firestore_test.dart index f035990d..6771027f 100644 --- a/packages/google_cloud_firestore/test/firestore_test.dart +++ b/packages/google_cloud_firestore/test/firestore_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/get_all_integration_test.dart b/packages/google_cloud_firestore/test/get_all_integration_test.dart index dca661e8..9f439422 100644 --- a/packages/google_cloud_firestore/test/get_all_integration_test.dart +++ b/packages/google_cloud_firestore/test/get_all_integration_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 2025 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/get_all_test.dart b/packages/google_cloud_firestore/test/get_all_test.dart index 8e7e490c..a6aac377 100644 --- a/packages/google_cloud_firestore/test/get_all_test.dart +++ b/packages/google_cloud_firestore/test/get_all_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/helpers.dart b/packages/google_cloud_firestore/test/helpers.dart index 2c55fb57..f57803d2 100644 --- a/packages/google_cloud_firestore/test/helpers.dart +++ b/packages/google_cloud_firestore/test/helpers.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/order_test.dart b/packages/google_cloud_firestore/test/order_test.dart index a56b3b7e..bc7f3e02 100644 --- a/packages/google_cloud_firestore/test/order_test.dart +++ b/packages/google_cloud_firestore/test/order_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/query_partition_prod_test.dart b/packages/google_cloud_firestore/test/query_partition_prod_test.dart index 0ff9adbb..d5260268 100644 --- a/packages/google_cloud_firestore/test/query_partition_prod_test.dart +++ b/packages/google_cloud_firestore/test/query_partition_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/query_partition_test.dart b/packages/google_cloud_firestore/test/query_partition_test.dart index d22a0ca2..1a20783a 100644 --- a/packages/google_cloud_firestore/test/query_partition_test.dart +++ b/packages/google_cloud_firestore/test/query_partition_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/query_test.dart b/packages/google_cloud_firestore/test/query_test.dart index 7a930a13..77d7eae2 100644 --- a/packages/google_cloud_firestore/test/query_test.dart +++ b/packages/google_cloud_firestore/test/query_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/rate_limiter_test.dart b/packages/google_cloud_firestore/test/rate_limiter_test.dart index b10b9c29..7bd674bc 100644 --- a/packages/google_cloud_firestore/test/rate_limiter_test.dart +++ b/packages/google_cloud_firestore/test/rate_limiter_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/recursive_delete_integration_test.dart b/packages/google_cloud_firestore/test/recursive_delete_integration_test.dart index 13ab50aa..8400f1e1 100644 --- a/packages/google_cloud_firestore/test/recursive_delete_integration_test.dart +++ b/packages/google_cloud_firestore/test/recursive_delete_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/recursive_delete_test.dart b/packages/google_cloud_firestore/test/recursive_delete_test.dart index 5161b047..b3296b2f 100644 --- a/packages/google_cloud_firestore/test/recursive_delete_test.dart +++ b/packages/google_cloud_firestore/test/recursive_delete_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/set_options_integration_test.dart b/packages/google_cloud_firestore/test/set_options_integration_test.dart index 0a04ba22..a626dd31 100644 --- a/packages/google_cloud_firestore/test/set_options_integration_test.dart +++ b/packages/google_cloud_firestore/test/set_options_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/timestamp_test.dart b/packages/google_cloud_firestore/test/timestamp_test.dart index 84cffdeb..2045ca1e 100644 --- a/packages/google_cloud_firestore/test/timestamp_test.dart +++ b/packages/google_cloud_firestore/test/timestamp_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/transaction_aggregation_test.dart b/packages/google_cloud_firestore/test/transaction_aggregation_test.dart index c3c56a09..5ea8b75a 100644 --- a/packages/google_cloud_firestore/test/transaction_aggregation_test.dart +++ b/packages/google_cloud_firestore/test/transaction_aggregation_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/transaction_query_test.dart b/packages/google_cloud_firestore/test/transaction_query_test.dart index fa115a7d..b4f52527 100644 --- a/packages/google_cloud_firestore/test/transaction_query_test.dart +++ b/packages/google_cloud_firestore/test/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 2025 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/transaction_test.dart b/packages/google_cloud_firestore/test/transaction_test.dart index 8dafeee6..5822b328 100644 --- a/packages/google_cloud_firestore/test/transaction_test.dart +++ b/packages/google_cloud_firestore/test/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 2025 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/transaction_unit_test.dart b/packages/google_cloud_firestore/test/transaction_unit_test.dart index facb51c3..958d3034 100644 --- a/packages/google_cloud_firestore/test/transaction_unit_test.dart +++ b/packages/google_cloud_firestore/test/transaction_unit_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/vector_integration_prod_test.dart b/packages/google_cloud_firestore/test/vector_integration_prod_test.dart index 8007bd91..c134e466 100644 --- a/packages/google_cloud_firestore/test/vector_integration_prod_test.dart +++ b/packages/google_cloud_firestore/test/vector_integration_prod_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/vector_integration_test.dart b/packages/google_cloud_firestore/test/vector_integration_test.dart index e1985f07..dea671be 100644 --- a/packages/google_cloud_firestore/test/vector_integration_test.dart +++ b/packages/google_cloud_firestore/test/vector_integration_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/vector_test.dart b/packages/google_cloud_firestore/test/vector_test.dart index 2dc07de7..ecbe447f 100644 --- a/packages/google_cloud_firestore/test/vector_test.dart +++ b/packages/google_cloud_firestore/test/vector_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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/write_batch_test.dart b/packages/google_cloud_firestore/test/write_batch_test.dart index 232542ac..f9e936ce 100644 --- a/packages/google_cloud_firestore/test/write_batch_test.dart +++ b/packages/google_cloud_firestore/test/write_batch_test.dart @@ -1,3 +1,17 @@ +// Copyright 2025 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 0be9eacb..4443d16f 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