Skip to content

Commit 849df08

Browse files
committed
chore: standardize license files and add copyright headers
1 parent 3836aaf commit 849df08

File tree

222 files changed

+3404
-27
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+3404
-27
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Build
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
84
pull_request:
95
paths-ignore:
106
- "**.md"
@@ -36,14 +32,14 @@ jobs:
3632
working-directory: packages/dart_firebase_admin
3733

3834
steps:
39-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v3.1.0
4036

4137
- uses: subosito/flutter-action@v2.7.1
4238
with:
4339
channel: ${{ matrix.dart-version }}
4440

4541
- name: Cache pub dependencies
46-
uses: actions/cache@v4
42+
uses: actions/cache@v3
4743
with:
4844
path: ~/.pub-cache
4945
key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }}
@@ -95,7 +91,7 @@ jobs:
9591
channel: ${{ matrix.dart-version }}
9692

9793
- name: Cache pub dependencies
98-
uses: actions/cache@v4
94+
uses: actions/cache@v3
9995
with:
10096
path: ~/.pub-cache
10197
key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }}
@@ -104,7 +100,7 @@ jobs:
104100
pub-
105101
106102
- name: Cache Firebase CLI
107-
uses: actions/cache@v4
103+
uses: actions/cache@v3
108104
with:
109105
path: ~/.cache/firebase/emulators
110106
key: firebase-emulators
@@ -227,7 +223,7 @@ jobs:
227223
228224
- name: Comment coverage on PR
229225
if: matrix.dart-version == 'stable' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
230-
uses: actions/github-script@v7
226+
uses: actions/github-script@v6
231227
with:
232228
script: |
233229
const coverage = '${{ steps.coverage.outputs.coverage }}';
@@ -286,7 +282,7 @@ jobs:
286282
- name: Upload coverage to codecov
287283
if: matrix.dart-version == 'stable'
288284
continue-on-error: true
289-
uses: codecov/codecov-action@v4
285+
uses: codecov/codecov-action@v3
290286
with:
291287
files: packages/dart_firebase_admin/coverage.lcov
292288
flags: unittests
@@ -326,7 +322,7 @@ jobs:
326322
service_account: '${{ secrets.SERVICE_ACCOUNT }}'
327323

328324
- name: Cache pub dependencies
329-
uses: actions/cache@v4
325+
uses: actions/cache@v3
330326
with:
331327
path: ~/.pub-cache
332328
key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }}
@@ -371,14 +367,14 @@ jobs:
371367
working-directory: packages/dart_firebase_admin
372368

373369
steps:
374-
- uses: actions/checkout@v4
370+
- uses: actions/checkout@v3.1.0
375371

376372
- uses: subosito/flutter-action@v2.7.1
377373
with:
378374
channel: ${{ matrix.dart-version }}
379375

380376
- name: Cache pub dependencies
381-
uses: actions/cache@v4
377+
uses: actions/cache@v3
382378
with:
383379
path: ~/.pub-cache
384380
key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }}

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/
@@ -186,7 +187,7 @@
186187
same "printed page" as the copyright notice for easier
187188
identification within third-party archives.
188189

189-
Copyright 2020 Invertase Limited
190+
Copyright 2020 Google LLC
190191

191192
Licensed under the Apache License, Version 2.0 (the "License");
192193
you may not use this file except in compliance with the License.

gen-version.sh

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
#!/bin/bash
2+
# Copyright 2026 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
216

317
# Script to generate version.g.dart files for all packages
418
# Finds all packages/*/pubspec.yaml files, extracts version, and writes to package/lib/version.g.dart
@@ -29,6 +43,20 @@ find "$SCRIPT_DIR/packages" -name "pubspec.yaml" -type f | while read -r pubspec
2943
# Write version.g.dart file
3044
version_file="$lib_dir/version.g.dart"
3145
cat > "$version_file" << EOF
46+
// Copyright 2026 Google LLC
47+
//
48+
// Licensed under the Apache License, Version 2.0 (the "License");
49+
// you may not use this file except in compliance with the License.
50+
// You may obtain a copy of the License at
51+
//
52+
// http://www.apache.org/licenses/LICENSE-2.0
53+
//
54+
// Unless required by applicable law or agreed to in writing, software
55+
// distributed under the License is distributed on an "AS IS" BASIS,
56+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
57+
// See the License for the specific language governing permissions and
58+
// limitations under the License.
59+
3260
// GENERATED CODE - DO NOT MODIFY BY HAND
3361
// This file is generated by gen-version.sh
3462
@@ -39,4 +67,4 @@ EOF
3967
echo "Generated $version_file with version: $version"
4068
done
4169

42-
echo "Version generation complete!"
70+
echo "Version generation complete!"

packages/dart_firebase_admin/LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/
@@ -186,7 +187,7 @@
186187
same "printed page" as the copyright notice for easier
187188
identification within third-party archives.
188189

189-
Copyright 2020 Invertase Limited
190+
Copyright 2020 Google LLC
190191

191192
Licensed under the Apache License, Version 2.0 (the "License");
192193
you may not use this file except in compliance with the License.

packages/dart_firebase_admin/example/example_functions_ts/.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/**
2+
* Copyright 2026 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
module.exports = {
218
root: true,
319
env: {

packages/dart_firebase_admin/example/example_functions_ts/src/index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/**
2+
* Copyright 2026 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
/**
218
* Import function triggers from their respective submodules:
319
*

packages/dart_firebase_admin/example/lib/app_check_example.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
import 'package:dart_firebase_admin/app_check.dart';
216
import 'package:dart_firebase_admin/dart_firebase_admin.dart';
317

packages/dart_firebase_admin/example/lib/auth_example.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
import 'package:dart_firebase_admin/auth.dart';
216
import 'package:dart_firebase_admin/dart_firebase_admin.dart';
317

packages/dart_firebase_admin/example/lib/firestore_example.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
import 'dart:async';
216
import 'package:dart_firebase_admin/dart_firebase_admin.dart';
317
import 'package:google_cloud_firestore/google_cloud_firestore.dart';

packages/dart_firebase_admin/example/lib/functions_example.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
import 'package:dart_firebase_admin/dart_firebase_admin.dart';
216
import 'package:dart_firebase_admin/functions.dart';
317

0 commit comments

Comments
 (0)