diff --git a/.github/licenses/add-headers.sh b/.github/licenses/add-headers.sh new file mode 100755 index 00000000..c6fb3d40 --- /dev/null +++ b/.github/licenses/add-headers.sh @@ -0,0 +1,48 @@ +#!/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. + +# Adds license headers to all source files. +set -e + +REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" +cd "$REPO_ROOT" + +COMMON_IGNORES=( + --ignore "**/*.yml" + --ignore "**/*.yaml" + --ignore "**/*.xml" + --ignore "**/*.html" + --ignore "**/*.js" + --ignore "**/*.txt" + --ignore "**/*.json" + --ignore "**/*.md" + --ignore "**/*.lock" + --ignore "**/.dart_tool/**" + --ignore "**/node_modules/**" +) + +# Dart files — built-in Apache 2.0 template with // comment style +addlicense -l apache -c "Google LLC" \ + "${COMMON_IGNORES[@]}" \ + --ignore "**/*.g.dart" \ + --ignore "**/*.sh" \ + --ignore "**/*.ts" \ + . + +# TypeScript and shell files — custom template (/** */ and # styles) +addlicense -f "$REPO_ROOT/.github/licenses/default.txt" -c "Google LLC" \ + "${COMMON_IGNORES[@]}" \ + --ignore "**/*.dart" \ + . diff --git a/.github/licenses/check-headers.sh b/.github/licenses/check-headers.sh new file mode 100755 index 00000000..0699cc29 --- /dev/null +++ b/.github/licenses/check-headers.sh @@ -0,0 +1,48 @@ +#!/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. + +# Checks license headers on all source files (dry run). +set -e + +REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" +cd "$REPO_ROOT" + +COMMON_IGNORES=( + --ignore "**/*.yml" + --ignore "**/*.yaml" + --ignore "**/*.xml" + --ignore "**/*.html" + --ignore "**/*.js" + --ignore "**/*.txt" + --ignore "**/*.json" + --ignore "**/*.md" + --ignore "**/*.lock" + --ignore "**/.dart_tool/**" + --ignore "**/node_modules/**" +) + +# Dart files +addlicense -l apache -c "Google LLC" --check \ + "${COMMON_IGNORES[@]}" \ + --ignore "**/*.g.dart" \ + --ignore "**/*.sh" \ + --ignore "**/*.ts" \ + . + +# TypeScript and shell files +addlicense -f "$REPO_ROOT/.github/licenses/default.txt" -c "Google LLC" --check \ + "${COMMON_IGNORES[@]}" \ + --ignore "**/*.dart" \ + . diff --git a/.github/licenses/default.txt b/.github/licenses/default.txt new file mode 100644 index 00000000..95b1c032 --- /dev/null +++ b/.github/licenses/default.txt @@ -0,0 +1,13 @@ +Copyright {{.Year}} {{.Holder}} + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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/.github/workflows/build.yml b/.github/workflows/build.yml index 7add5869..5253d80e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,23 @@ on: default: 'stable' jobs: + # Check license headers on all source files + check-license-header: + name: Check License Headers + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Download addlicense + run: | + curl -sL https://github.com/google/addlicense/releases/download/v1.2.0/addlicense_v1.2.0_Linux_x86_64.tar.gz | tar xz -C /usr/local/bin addlicense + chmod +x /usr/local/bin/addlicense + + - name: Check license headers + run: .github/licenses/check-headers.sh + lint: name: Lint (Dart ${{ matrix.dart-version }}) runs-on: ubuntu-latest @@ -349,7 +366,7 @@ jobs: build: name: Build verification (Dart ${{ matrix.dart-version }}) runs-on: ubuntu-latest - needs: [lint, test, test-integration] + needs: [lint, test, test-integration, check-license-header] # Run even if test-integration was skipped (fork PRs), but not if lint or test failed if: | always() && @@ -390,5 +407,12 @@ jobs: run: melos bootstrap working-directory: . + - name: Validate license headers + run: | + if [ "${{ needs.check-license-header.result }}" != "success" ]; then + echo "❌ License header check failed" + exit 1 + fi + - name: Verify package run: dart pub publish --dry-run diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 120000 index 00000000..920e9c59 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1 @@ +packages/dart_firebase_admin/CONTRIBUTING.md \ No newline at end of file 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..2a7201c8 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 diff --git a/packages/dart_firebase_admin/CONTRIBUTING.md b/packages/dart_firebase_admin/CONTRIBUTING.md new file mode 100644 index 00000000..f15488d9 --- /dev/null +++ b/packages/dart_firebase_admin/CONTRIBUTING.md @@ -0,0 +1,271 @@ +# Contributing to Firebase Admin SDK for Dart + +Thank you for contributing to the Firebase community! + +- [Have a usage question?](#have-a-usage-question) +- [Think you found a bug?](#think-you-found-a-bug) +- [Have a feature request?](#have-a-feature-request) +- [Want to submit a pull request?](#want-to-submit-a-pull-request) +- [Need to get set up locally?](#need-to-get-set-up-locally) + +## 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 [Firebase Admin SDK setup guide](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 on [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase+dart). + +**Please avoid double posting across multiple channels!** + +## Think you found a bug? + +Search through [existing issues](https://github.com/invertase/dart_firebase_admin/issues) before opening a new one — 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/invertase/dart_firebase_admin/issues/new) using the bug report template and include a minimal repro. + +If you are up to the challenge, [submit a pull request](#want-to-submit-a-pull-request) with a fix! + +## Have a feature request? + +Share your 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/invertase/dart_firebase_admin/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.** + +### Contributor License Agreement + +Contributions to this project must be accompanied by a Contributor License Agreement (CLA). You (or your employer) retain the copyright to your contribution; the CLA gives us permission to use and redistribute your contributions as part of the project. + +Visit 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 have already submitted one 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 pull requests. + +### Commit Messages + +- Write clear, descriptive commit messages. +- Use imperative mood (e.g., "Add App Check token verification" not "Added App Check token verification"). +- Reference issues with `#number` where applicable. + +## Need to get set up locally? + +### Prerequisites + +- **Dart SDK** >= 3.9.0 +- **Java 21+** (required for the Firestore emulator) +- **Node.js** (required for the Firebase Emulator and Cloud Tasks emulator) +- **Melos** — Dart monorepo tool (`dart pub global activate melos`) +- **Firebase CLI** (`npm install -g firebase-tools`) +- **Google Cloud SDK** ([`gcloud`](https://cloud.google.com/sdk/downloads)) — required to authorise integration tests against a real Firebase project + +### Setup + +1. Fork and clone the repository. + +2. Install Melos and bootstrap the workspace from the repo root: + + ```bash + dart pub global activate melos + melos bootstrap + ``` + +3. Verify your setup by running the analyzer and formatter: + + ```bash + cd packages/dart_firebase_admin + dart format --set-exit-if-changed . + dart analyze + ``` + +### Repo Organization + +This repository is a monorepo managed by [Melos](https://melos.invertase.dev/). + +``` +dart_firebase_admin/ # Workspace root +├── packages/ +│ ├── dart_firebase_admin/ # Main Firebase Admin SDK package +│ │ ├── lib/ +│ │ │ ├── dart_firebase_admin.dart # Public API barrel file +│ │ │ ├── auth.dart # Auth public exports +│ │ │ ├── firestore.dart # Firestore public exports +│ │ │ ├── messaging.dart # Messaging public exports +│ │ │ ├── storage.dart # Storage public exports +│ │ │ ├── app_check.dart # App Check public exports +│ │ │ ├── security_rules.dart # Security Rules public exports +│ │ │ ├── functions.dart # Functions public exports +│ │ │ └── src/ # Private implementation +│ │ └── test/ +│ │ ├── auth/ # Auth unit & integration tests +│ │ ├── app/ # App unit & integration tests +│ │ ├── firestore/ # Firestore tests +│ │ ├── messaging/ # Messaging tests +│ │ ├── storage/ # Storage tests +│ │ └── helpers.dart # Shared test utilities +│ └── google_cloud_firestore/ # Standalone Firestore package +└── scripts/ + ├── coverage.sh # Run tests with coverage + └── firestore-coverage.sh # Firestore package coverage +``` + +## Development Workflow + +### Running Tests + +Tests are split into unit/emulator tests and production integration tests. + +#### Unit and Emulator Tests + +```bash +# From packages/dart_firebase_admin + +# Run all tests against emulators (requires Firebase CLI) +firebase emulators:exec --project dart-firebase-admin --only auth,firestore,functions,tasks,storage \ + "dart run coverage:test_with_coverage -- --concurrency=1" + +# Or use the convenience script from the repo root +./scripts/coverage.sh + +# Run a specific test file +dart test test/auth/auth_test.dart +``` + +#### Integration Tests with Emulator Suite + +Start the emulators, then run with the relevant environment variables: + +```bash +firebase emulators:start --only firestore,auth + +export FIRESTORE_EMULATOR_HOST=localhost:8080 +export FIREBASE_AUTH_EMULATOR_HOST=localhost:9099 +dart test test/firestore/firestore_integration_test.dart +``` + +#### Production Integration Tests + +Requires a real Firebase project and Google application default credentials. Authorise `gcloud` first: + +```bash +gcloud beta auth application-default login +``` + +Then run with `RUN_PROD_TESTS=true`: + +```bash +RUN_PROD_TESTS=true dart test test/app/firebase_app_prod_test.dart --concurrency=1 +``` + +See [`README.md`](README.md) for Firebase project setup details. You can create a project in the [Firebase Console](https://console.firebase.google.com) if you don't have one already. + +### Code Formatting and Analysis + +```bash +# Check formatting (CI will reject unformatted code) +dart format --set-exit-if-changed . + +# Apply formatting +dart format . + +# Run the analyzer (must pass with zero issues) +dart analyze +``` + +### License Headers + +All source files must include a license header. The project uses [addlicense](https://github.com/google/addlicense) to manage this automatically, with templates in `.github/licenses/`: + +- `default.txt` — plain text, applied to TypeScript (`/** */`) and shell (`#`) files +- Dart files use the built-in `-l apache` type, which handles `//` style and year substitution natively + +**Install addlicense:** + +Download the binary for your platform from the [v1.2.0 release](https://github.com/google/addlicense/releases/tag/v1.2.0) and place it on your `PATH`. For example, on macOS ARM64: + +```bash +curl -sL https://github.com/google/addlicense/releases/download/v1.2.0/addlicense_v1.2.0_macOS_arm64.tar.gz | tar xz +sudo mv addlicense /usr/local/bin/ +``` + +**Add headers to new files (run from repo root):** + +```bash +.github/licenses/add-headers.sh +``` + +**Check headers (dry run, same as CI):** + +```bash +.github/licenses/check-headers.sh +``` + +CI will fail if any source file is missing its license header. + +### Local Validation + +Run the full check suite locally before pushing: + +```bash +dart format --set-exit-if-changed . +dart analyze +./scripts/coverage.sh +``` + +## Code Standards + +### Style + +The project uses strict analysis settings (`strict-casts`, `strict-inference`, `strict-raw-types`). Key conventions enforced by `analysis_options.yaml`: + +- **Use single quotes** for strings (`prefer_single_quotes`). +- **Use `final` for local variables** where values are not reassigned. +- **Prefer relative imports** within the package. +- **Always declare return types** on functions and methods. + +### Public API + +- Each Firebase product has its own barrel file (e.g., `lib/auth.dart`, `lib/firestore.dart`). Only add exports there for types that users need directly. +- The top-level `lib/dart_firebase_admin.dart` re-exports core types. Product-specific types belong in their respective barrel files. +- Classes under `lib/src/` are implementation details and should not be exported from barrel files unless they are part of the public API. + +### Documentation + +- Add dartdoc (`///`) comments to all new public APIs. +- Include code examples in doc comments where they help clarify usage. + +### Error Handling + +- Use typed exceptions (e.g., `FirebaseAuthException`, `FirebaseMessagingException`) with appropriate error codes for user-facing errors. +- Match the behaviour of the Node.js Admin SDK where applicable. + +## Testing Requirements + +- **All new features and bug fixes must include tests.** +- **Unit/emulator tests** go in the appropriate subdirectory under `test/`. Use the `helpers.dart` utilities and `mocktail` for mocking where needed. +- **Integration tests** (files named `*_integration_test.dart`) run against the Firebase Emulator in CI. +- **Production tests** (files named `*_prod_test.dart`) require real credentials and are not run in CI by default — gate them behind `RUN_PROD_TESTS`. +- Maintain overall coverage above the **40% threshold** enforced by CI. + +## CI/CD + +The project uses a single **build.yml** GitHub Actions workflow: + +| Job | Trigger | What it does | +|-----|---------|--------------| +| `check-license-header` | PRs & schedule | Validates license headers on all source files | +| `lint` | PRs & schedule | Runs `dart format` and `dart analyze` | +| `test` | PRs & schedule | Runs tests against emulators with coverage reporting | +| `test-integration` | PRs (non-fork) & schedule | Runs production integration tests with Workload Identity Federation | +| `build` | After all above pass | Validates `dart pub publish --dry-run` | + +Tests run against both `stable` and `beta` Dart SDK channels. Coverage is reported as a PR comment and uploaded to Codecov. The minimum threshold is **40%**. + +## License + +By contributing, you agree that your contributions will be licensed under the [Apache License 2.0](LICENSE). diff --git a/packages/dart_firebase_admin/README.md b/packages/dart_firebase_admin/README.md index a76a1988..c12db436 100644 --- a/packages/dart_firebase_admin/README.md +++ b/packages/dart_firebase_admin/README.md @@ -558,7 +558,7 @@ Alongside the Firebase Admin Dart SDK, this repository contains additional works # Contributing -TODO +Contributions are welcome! Please read the [contributing guide](packages/dart_firebase_admin/CONTRIBUTING.md) to get started. # 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..9238f724 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 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 '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..8be8658c 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 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 '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..6722827f 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 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 '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..84d9695e 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 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 '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..68d6fbec 100644 --- a/packages/dart_firebase_admin/example/lib/main.dart +++ b/packages/dart_firebase_admin/example/lib/main.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..3921a11b 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 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 '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..ca7236da 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 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 '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..b9e87663 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 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 '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/Dockerfile b/packages/dart_firebase_admin/example_server_app/Dockerfile index c333dee7..af7cc477 100644 --- a/packages/dart_firebase_admin/example_server_app/Dockerfile +++ b/packages/dart_firebase_admin/example_server_app/Dockerfile @@ -1,3 +1,7 @@ +# Copyright 2024, the dart_firebase_admin project authors. All rights reserved. +# Use of this source code is governed by an Apache 2.0 license that can be +# found in the LICENSE file. + # Use latest stable channel SDK. FROM dart:stable AS build 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..43d3bc39 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 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 '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..5fe1ad6f 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 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 '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..c7e02271 100644 --- a/packages/dart_firebase_admin/lib/app_check.dart +++ b/packages/dart_firebase_admin/lib/app_check.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..566b79a4 100644 --- a/packages/dart_firebase_admin/lib/auth.dart +++ b/packages/dart_firebase_admin/lib/auth.dart @@ -1 +1,15 @@ +// 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. + 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..afbf7d40 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 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. + 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..dca11a21 100644 --- a/packages/dart_firebase_admin/lib/firestore.dart +++ b/packages/dart_firebase_admin/lib/firestore.dart @@ -1 +1,15 @@ +// 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. + 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..a374d6b1 100644 --- a/packages/dart_firebase_admin/lib/functions.dart +++ b/packages/dart_firebase_admin/lib/functions.dart @@ -1 +1,15 @@ +// 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. + 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..f00ec6a3 100644 --- a/packages/dart_firebase_admin/lib/messaging.dart +++ b/packages/dart_firebase_admin/lib/messaging.dart @@ -1,2 +1,16 @@ +// 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. + 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..acc251c2 100644 --- a/packages/dart_firebase_admin/lib/security_rules.dart +++ b/packages/dart_firebase_admin/lib/security_rules.dart @@ -1,2 +1,16 @@ +// 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. + 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..63b8e026 100644 --- a/packages/dart_firebase_admin/lib/src/app.dart +++ b/packages/dart_firebase_admin/lib/src/app.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..e158202e 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 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. + 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..2266d865 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 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. + 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..f4f13732 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 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. + 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..43df6368 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 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. + 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..17300ccb 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 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. + 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..10e0f9ec 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 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. + 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..943cda05 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 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. + 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..c58d34ee 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 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. + 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..42d7e5ee 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 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. + 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..4d4d8656 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 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. + 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..8d660ec6 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 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 '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..e66f4778 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 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 '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..b269cfa9 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 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. + 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..39fc09cc 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 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. + 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..1e87d6fb 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 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. + 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..082d24a3 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 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 '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..c6137a49 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 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 '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..dbed6ed7 100644 --- a/packages/dart_firebase_admin/lib/src/auth.dart +++ b/packages/dart_firebase_admin/lib/src/auth.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..909f71d4 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 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. + 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..30ad2f58 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 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. + 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..52d8dfe4 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 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. + 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..0c8ee3f3 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 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/lib/src/auth/auth_exception.dart b/packages/dart_firebase_admin/lib/src/auth/auth_exception.dart index a7cfecf3..742ed1bd 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 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. + 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..5aa4f32e 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 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. + 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..658ffc45 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 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. + 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..5f9c36bd 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 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. + 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..b7c677ab 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 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. + 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..37b412e4 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 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/lib/src/auth/project_config_manager.dart b/packages/dart_firebase_admin/lib/src/auth/project_config_manager.dart index 24b61a21..0c4232c1 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 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/lib/src/auth/tenant.dart b/packages/dart_firebase_admin/lib/src/auth/tenant.dart index caeb91d8..29d19ce6 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 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/lib/src/auth/tenant_manager.dart b/packages/dart_firebase_admin/lib/src/auth/tenant_manager.dart index f35694b0..3276a794 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 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/lib/src/auth/token_generator.dart b/packages/dart_firebase_admin/lib/src/auth/token_generator.dart index 620a8699..342bbdcb 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 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. + 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..cb9d4706 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 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. + 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..3706c1ff 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 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. + 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..5adf1a00 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 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. + 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..f47b5c30 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 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 '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..079e10ce 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 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 '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..b0209ed1 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 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. + 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..99502c17 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 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. + 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..9a38773f 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 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. + 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..00f754f8 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 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. + 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..aaa3c15d 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 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. + 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..44c58f55 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 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. + 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..5c8bba87 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 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 '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..6ffdc03a 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 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. + 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..174c3766 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 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. + 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..d15abaf0 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 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. + 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..aac52804 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 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. + 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..e16e022d 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 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 '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..6dd53fb3 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 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. + 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..e1587aaa 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 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. + 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..0128707e 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 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. + 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..c8547073 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 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 '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..c28d8eca 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 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. + 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..d374fce5 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 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 '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..00c88b96 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 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. + 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..45ff828b 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 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. + 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..58ddea4d 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 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 '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..8b602e39 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 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 '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..92d571d7 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 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 '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..1d0cd470 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 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 '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..2a9b6f3e 100644 --- a/packages/dart_firebase_admin/lib/storage.dart +++ b/packages/dart_firebase_admin/lib/storage.dart @@ -1 +1,15 @@ +// 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. + export 'src/storage/storage.dart'; diff --git a/packages/dart_firebase_admin/pubspec.yaml b/packages/dart_firebase_admin/pubspec.yaml index fed17bbf..b3b8bf95 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 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..5e6a2bb4 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 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 '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..c20fd89e 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 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 '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..436afa3f 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 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 '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..551cccf7 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 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 '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..4dc5a9f8 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 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 '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..dc0d26ed 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 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 '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..615cebd0 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 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 '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..78dd350e 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 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 '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..fe2b6f3b 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 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 '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..7724ac13 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 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 '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..0d415a26 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 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 '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..49ade895 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 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. + // 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..f992b06d 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 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 '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..30b05f14 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 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. + // 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..24c8e0af 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 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 '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..10b83ef4 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 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. + // 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..29b00d43 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 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. + // 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..e16de82c 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 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 '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..59ae751f 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 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 '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..cbc8609c 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 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. + // 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..7308883e 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 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. + // 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..80fdb595 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 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 '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..46f4d900 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 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 '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..b7f37f35 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 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 '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..70573bec 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 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 '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..ff2c4d53 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 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 'dart:async'; import 'dart:io'; diff --git a/packages/dart_firebase_admin/test/credential_test.dart b/packages/dart_firebase_admin/test/credential_test.dart index b2723925..32805f47 100644 --- a/packages/dart_firebase_admin/test/credential_test.dart +++ b/packages/dart_firebase_admin/test/credential_test.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..a8d8584a 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 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 '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..378df9df 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 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 '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..16b843f7 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 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 '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..6a5ff391 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 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 '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..3f3b1fe0 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 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 '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..20ac7075 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 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 '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..5641710e 100644 --- a/packages/dart_firebase_admin/test/helpers.dart +++ b/packages/dart_firebase_admin/test/helpers.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..4d096bbf 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 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. + // 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..37f324c7 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 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 '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..2ae6d143 100644 --- a/packages/dart_firebase_admin/test/mock.dart +++ b/packages/dart_firebase_admin/test/mock.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..2025fd90 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 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. + // 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..68b1e5f2 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 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 '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..383527b3 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 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 '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..69e898c6 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 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 '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..96ade444 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 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 '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..380545df 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 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 '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..2966e2e2 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 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. + /// 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..b9743571 100644 --- a/packages/google_cloud_firestore/lib/src/aggregate.dart +++ b/packages/google_cloud_firestore/lib/src/aggregate.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..eb5ab2ec 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 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. + 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..d094215e 100644 --- a/packages/google_cloud_firestore/lib/src/backoff.dart +++ b/packages/google_cloud_firestore/lib/src/backoff.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..efe50abf 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 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. + 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..45c91f80 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 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 // -// 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..be574dbf 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 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. + 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..cbfb1dbe 100644 --- a/packages/google_cloud_firestore/lib/src/convert.dart +++ b/packages/google_cloud_firestore/lib/src/convert.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..5ea6ff0f 100644 --- a/packages/google_cloud_firestore/lib/src/credential.dart +++ b/packages/google_cloud_firestore/lib/src/credential.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..48323dd6 100644 --- a/packages/google_cloud_firestore/lib/src/document.dart +++ b/packages/google_cloud_firestore/lib/src/document.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..0fff8856 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 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. + 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..992be8ec 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 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. + 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..1f21f6d9 100644 --- a/packages/google_cloud_firestore/lib/src/environment.dart +++ b/packages/google_cloud_firestore/lib/src/environment.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..b9e2eecc 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 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. + 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..56bf8b5e 100644 --- a/packages/google_cloud_firestore/lib/src/filter.dart +++ b/packages/google_cloud_firestore/lib/src/filter.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..222c4644 100644 --- a/packages/google_cloud_firestore/lib/src/firestore.dart +++ b/packages/google_cloud_firestore/lib/src/firestore.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..9b210d23 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 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 '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..b8b55b17 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 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 '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..2d161bd7 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 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. + 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..9027118d 100644 --- a/packages/google_cloud_firestore/lib/src/logger.dart +++ b/packages/google_cloud_firestore/lib/src/logger.dart @@ -1 +1,15 @@ +// 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. + diff --git a/packages/google_cloud_firestore/lib/src/order.dart b/packages/google_cloud_firestore/lib/src/order.dart index 4e2b42c0..f16c9818 100644 --- a/packages/google_cloud_firestore/lib/src/order.dart +++ b/packages/google_cloud_firestore/lib/src/order.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..11d493a0 100644 --- a/packages/google_cloud_firestore/lib/src/path.dart +++ b/packages/google_cloud_firestore/lib/src/path.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..7ff91abe 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 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. + 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..1716b773 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 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. + 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..941ad010 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 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. + 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..e38e540a 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 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. + 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..439fef38 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 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. + 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..27b06e0e 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 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. + 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..3b3850c2 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 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. + 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..b2d5aebf 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 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. + 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..f3f3ee06 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 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. + 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..99dc5682 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 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. + 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..63b4789f 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 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. + 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..58f65faf 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 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. + 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..c75d573b 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 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. + 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..1b31c3c5 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 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. + 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..ddca0b2c 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 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. + 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..c34ae355 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 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. + 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..f06e2757 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 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. + 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..52fc5509 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 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. + 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..7231d994 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 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. + 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..2909c61f 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 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. + 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..5ccbb370 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 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. + 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..6976205a 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 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. + 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..9f7a1299 100644 --- a/packages/google_cloud_firestore/lib/src/serializer.dart +++ b/packages/google_cloud_firestore/lib/src/serializer.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..16bed5d3 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 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. + 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..ab40c779 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 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. + /// 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..8fd4dfb8 100644 --- a/packages/google_cloud_firestore/lib/src/timestamp.dart +++ b/packages/google_cloud_firestore/lib/src/timestamp.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..5a0ed65d 100644 --- a/packages/google_cloud_firestore/lib/src/transaction.dart +++ b/packages/google_cloud_firestore/lib/src/transaction.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..fa119ac9 100644 --- a/packages/google_cloud_firestore/lib/src/types.dart +++ b/packages/google_cloud_firestore/lib/src/types.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..67a8f1ee 100644 --- a/packages/google_cloud_firestore/lib/src/util.dart +++ b/packages/google_cloud_firestore/lib/src/util.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..f7ea9e71 100644 --- a/packages/google_cloud_firestore/lib/src/validate.dart +++ b/packages/google_cloud_firestore/lib/src/validate.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..d21d684b 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 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. + part of 'firestore.dart'; /// A WriteResult wraps the write time set by the Firestore servers on sets(), diff --git a/packages/google_cloud_firestore/test/aggregate_query_test.dart b/packages/google_cloud_firestore/test/aggregate_query_test.dart index 94601bca..b444f58b 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 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 '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..f5af09e7 100644 --- a/packages/google_cloud_firestore/test/backoff_test.dart +++ b/packages/google_cloud_firestore/test/backoff_test.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // 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..23648c45 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 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 '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..6ae7a747 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 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 '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..020df08a 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 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 '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..075622f1 100644 --- a/packages/google_cloud_firestore/test/bundle_test.dart +++ b/packages/google_cloud_firestore/test/bundle_test.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..d1b06c3f 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 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 '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..9ff47363 100644 --- a/packages/google_cloud_firestore/test/collection_test.dart +++ b/packages/google_cloud_firestore/test/collection_test.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..43bf1a0e 100644 --- a/packages/google_cloud_firestore/test/document_test.dart +++ b/packages/google_cloud_firestore/test/document_test.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..57894b94 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 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 '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..30716bb2 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 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 '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..5b0ce227 100644 --- a/packages/google_cloud_firestore/test/filter_test.dart +++ b/packages/google_cloud_firestore/test/filter_test.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..114d805b 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 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 '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..5ae1089f 100644 --- a/packages/google_cloud_firestore/test/firestore_test.dart +++ b/packages/google_cloud_firestore/test/firestore_test.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..cae697b7 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,16 @@ -// 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 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 '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..119102b8 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 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 '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..a7d6889f 100644 --- a/packages/google_cloud_firestore/test/helpers.dart +++ b/packages/google_cloud_firestore/test/helpers.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..613b5cd2 100644 --- a/packages/google_cloud_firestore/test/order_test.dart +++ b/packages/google_cloud_firestore/test/order_test.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..cbec42de 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 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 '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..8769b8d1 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 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 '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..96fc8738 100644 --- a/packages/google_cloud_firestore/test/query_test.dart +++ b/packages/google_cloud_firestore/test/query_test.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..3d748ec1 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 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. + // 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..47e79330 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 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 '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..41c022b0 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 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 '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..e6125981 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 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 '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..7f36a86a 100644 --- a/packages/google_cloud_firestore/test/timestamp_test.dart +++ b/packages/google_cloud_firestore/test/timestamp_test.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..bc5f4abe 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 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 '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..f16988f3 100644 --- a/packages/google_cloud_firestore/test/transaction_query_test.dart +++ b/packages/google_cloud_firestore/test/transaction_query_test.dart @@ -1,6 +1,16 @@ -// 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 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 '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..08831a0c 100644 --- a/packages/google_cloud_firestore/test/transaction_test.dart +++ b/packages/google_cloud_firestore/test/transaction_test.dart @@ -1,6 +1,16 @@ -// 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 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 '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..067d0a47 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 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 '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..0bb1ed30 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 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 '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..f85f456d 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 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 '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..d5ff1b07 100644 --- a/packages/google_cloud_firestore/test/vector_test.dart +++ b/packages/google_cloud_firestore/test/vector_test.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + 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..7b935f48 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 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 '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