Add missing licenses, and add a check (#3720)
Adds a new CI check that all code files have a copyright+license block (and that it's one we are expecting to see).
Fixes the ~350 files (!) that did not have them. This includes all of the files in the .../example/ directories, following the example of flutter/flutter. (This does mean some manual intervention will be needed when generating new example directories in the future, but it's one-time per example.)
Also standardized some variants that used different line breaks than most of the rest of the repo (likely added since I standardized them all a while ago, but didn't add a check for at the time to enforce going forward), to simplify the checks.
Fixes flutter/flutter#77114
diff --git a/.cirrus.yml b/.cirrus.yml
index 67669d7..26264b3 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -50,6 +50,11 @@
- ./script/check_publish.sh
- name: format
format_script: ./script/incremental_build.sh format --fail-on-change
+ license_script:
+ - cd script/tool
+ - pub get
+ - cd ../..
+ - dart script/tool/lib/src/main.dart license-check
- name: test
env:
matrix:
diff --git a/packages/android_alarm_manager/example/android/app/src/main/java/io/flutter/plugins/androidalarmmanagerexample/Application.java b/packages/android_alarm_manager/example/android/app/src/main/java/io/flutter/plugins/androidalarmmanagerexample/Application.java
index 55b789b..e2b3e8a 100644
--- a/packages/android_alarm_manager/example/android/app/src/main/java/io/flutter/plugins/androidalarmmanagerexample/Application.java
+++ b/packages/android_alarm_manager/example/android/app/src/main/java/io/flutter/plugins/androidalarmmanagerexample/Application.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.androidalarmmanagerexample;
import io.flutter.app.FlutterApplication;
diff --git a/packages/android_alarm_manager/example/integration_test/android_alarm_manager_test.dart b/packages/android_alarm_manager/example/integration_test/android_alarm_manager_test.dart
index 4d53a5a..68e35d5 100644
--- a/packages/android_alarm_manager/example/integration_test/android_alarm_manager_test.dart
+++ b/packages/android_alarm_manager/example/integration_test/android_alarm_manager_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/android_alarm_manager/example/test_driver/integration_test.dart b/packages/android_alarm_manager/example/test_driver/integration_test.dart
index 4e78d04..a2fa9e1 100644
--- a/packages/android_alarm_manager/example/test_driver/integration_test.dart
+++ b/packages/android_alarm_manager/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/AndroidIntentPlugin.java b/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/AndroidIntentPlugin.java
index 30e0915..04df4d9 100644
--- a/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/AndroidIntentPlugin.java
+++ b/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/AndroidIntentPlugin.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.androidintent;
import androidx.annotation.NonNull;
diff --git a/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/IntentSender.java b/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/IntentSender.java
index b1a590d..0d2ff0c 100644
--- a/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/IntentSender.java
+++ b/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/IntentSender.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.androidintent;
import android.app.Activity;
diff --git a/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/MethodCallHandlerImpl.java b/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/MethodCallHandlerImpl.java
index 753541b..2cce443 100644
--- a/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/MethodCallHandlerImpl.java
+++ b/packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/MethodCallHandlerImpl.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.androidintent;
import android.content.ComponentName;
diff --git a/packages/android_intent/android/src/test/java/io/flutter/plugins/androidintent/MethodCallHandlerImplTest.java b/packages/android_intent/android/src/test/java/io/flutter/plugins/androidintent/MethodCallHandlerImplTest.java
index cf0a28e..e36f4aa 100644
--- a/packages/android_intent/android/src/test/java/io/flutter/plugins/androidintent/MethodCallHandlerImplTest.java
+++ b/packages/android_intent/android/src/test/java/io/flutter/plugins/androidintent/MethodCallHandlerImplTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.androidintent;
import static org.junit.Assert.assertEquals;
diff --git a/packages/android_intent/example/android/app/src/androidTestDebug/java/io/flutter/plugins/androidintentexample/EmbeddingV1ActivityTest.java b/packages/android_intent/example/android/app/src/androidTestDebug/java/io/flutter/plugins/androidintentexample/EmbeddingV1ActivityTest.java
index 7ab0e87..a370318 100644
--- a/packages/android_intent/example/android/app/src/androidTestDebug/java/io/flutter/plugins/androidintentexample/EmbeddingV1ActivityTest.java
+++ b/packages/android_intent/example/android/app/src/androidTestDebug/java/io/flutter/plugins/androidintentexample/EmbeddingV1ActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.androidintentexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/android_intent/example/android/app/src/androidTestDebug/java/io/flutter/plugins/androidintentexample/MainActivityTest.java b/packages/android_intent/example/android/app/src/androidTestDebug/java/io/flutter/plugins/androidintentexample/MainActivityTest.java
index 619dbcd..f7cddca 100644
--- a/packages/android_intent/example/android/app/src/androidTestDebug/java/io/flutter/plugins/androidintentexample/MainActivityTest.java
+++ b/packages/android_intent/example/android/app/src/androidTestDebug/java/io/flutter/plugins/androidintentexample/MainActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.androidintentexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/android_intent/lib/flag.dart b/packages/android_intent/lib/flag.dart
index e05aa6d..990eed9 100644
--- a/packages/android_intent/lib/flag.dart
+++ b/packages/android_intent/lib/flag.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
/// Special flags that can be set on an intent to control how it is handled.
///
/// See
diff --git a/packages/battery/battery/integration_test/battery_test.dart b/packages/battery/battery/integration_test/battery_test.dart
index 2b0e269..1732380 100644
--- a/packages/battery/battery/integration_test/battery_test.dart
+++ b/packages/battery/battery/integration_test/battery_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/battery/battery_platform_interface/lib/enums/battery_state.dart b/packages/battery/battery_platform_interface/lib/enums/battery_state.dart
index 7dd5e40..2ceb351 100644
--- a/packages/battery/battery_platform_interface/lib/enums/battery_state.dart
+++ b/packages/battery/battery_platform_interface/lib/enums/battery_state.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
/// Indicates the current battery state.
enum BatteryState {
/// The battery is completely full of energy.
diff --git a/packages/battery/battery_platform_interface/lib/method_channel/method_channel_battery.dart b/packages/battery/battery_platform_interface/lib/method_channel/method_channel_battery.dart
index 739812d..dbc561b 100644
--- a/packages/battery/battery_platform_interface/lib/method_channel/method_channel_battery.dart
+++ b/packages/battery/battery_platform_interface/lib/method_channel/method_channel_battery.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'package:flutter/services.dart';
diff --git a/packages/camera/camera/example/android/app/src/androidTestDebug/java/io/flutter/plugins/cameraexample/EmbeddingV1ActivityTest.java b/packages/camera/camera/example/android/app/src/androidTestDebug/java/io/flutter/plugins/cameraexample/EmbeddingV1ActivityTest.java
index 8a97e47..08ae8e4 100644
--- a/packages/camera/camera/example/android/app/src/androidTestDebug/java/io/flutter/plugins/cameraexample/EmbeddingV1ActivityTest.java
+++ b/packages/camera/camera/example/android/app/src/androidTestDebug/java/io/flutter/plugins/cameraexample/EmbeddingV1ActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.cameraexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/camera/camera/example/android/app/src/androidTestDebug/java/io/flutter/plugins/cameraexample/FlutterActivityTest.java b/packages/camera/camera/example/android/app/src/androidTestDebug/java/io/flutter/plugins/cameraexample/FlutterActivityTest.java
index c90c66d..4f30e83 100644
--- a/packages/camera/camera/example/android/app/src/androidTestDebug/java/io/flutter/plugins/cameraexample/FlutterActivityTest.java
+++ b/packages/camera/camera/example/android/app/src/androidTestDebug/java/io/flutter/plugins/cameraexample/FlutterActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.cameraexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/camera/camera/example/android/app/src/main/java/io/flutter/plugins/cameraexample/EmbeddingV1Activity.java b/packages/camera/camera/example/android/app/src/main/java/io/flutter/plugins/cameraexample/EmbeddingV1Activity.java
index a53dd6b..e30d5ec 100644
--- a/packages/camera/camera/example/android/app/src/main/java/io/flutter/plugins/cameraexample/EmbeddingV1Activity.java
+++ b/packages/camera/camera/example/android/app/src/main/java/io/flutter/plugins/cameraexample/EmbeddingV1Activity.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.cameraexample;
import android.os.Bundle;
diff --git a/packages/camera/camera/example/integration_test/camera_test.dart b/packages/camera/camera/example/integration_test/camera_test.dart
index 4ff624c..f307341 100644
--- a/packages/camera/camera/example/integration_test/camera_test.dart
+++ b/packages/camera/camera/example/integration_test/camera_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// TODO(mvanbeusekom): Remove this once flutter_driver supports null safety.
// https://github.com/flutter/flutter/issues/71379
diff --git a/packages/camera/camera/example/ios/Runner/AppDelegate.h b/packages/camera/camera/example/ios/Runner/AppDelegate.h
index 36e21bb..31fc381 100644
--- a/packages/camera/camera/example/ios/Runner/AppDelegate.h
+++ b/packages/camera/camera/example/ios/Runner/AppDelegate.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
diff --git a/packages/camera/camera/example/ios/Runner/AppDelegate.m b/packages/camera/camera/example/ios/Runner/AppDelegate.m
index 59a72e9..2147d3d 100644
--- a/packages/camera/camera/example/ios/Runner/AppDelegate.m
+++ b/packages/camera/camera/example/ios/Runner/AppDelegate.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
diff --git a/packages/camera/camera/example/ios/Runner/main.m b/packages/camera/camera/example/ios/Runner/main.m
index dff6597..f451b14 100644
--- a/packages/camera/camera/example/ios/Runner/main.m
+++ b/packages/camera/camera/example/ios/Runner/main.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
diff --git a/packages/camera/camera/example/test_driver/integration_test.dart b/packages/camera/camera/example/test_driver/integration_test.dart
index 160b48f..8a35ec0 100644
--- a/packages/camera/camera/example/test_driver/integration_test.dart
+++ b/packages/camera/camera/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// TODO(mvanbeusekom): Remove this once flutter_driver supports null safety.
// https://github.com/flutter/flutter/issues/71379
diff --git a/packages/camera/camera/ios/Tests/CameraPluginTests.m b/packages/camera/camera/ios/Tests/CameraPluginTests.m
index e5be398..8d9cbc2 100644
--- a/packages/camera/camera/ios/Tests/CameraPluginTests.m
+++ b/packages/camera/camera/ios/Tests/CameraPluginTests.m
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
@import camera;
@import XCTest;
diff --git a/packages/camera/camera/test/camera_image_stream_test.dart b/packages/camera/camera/test/camera_image_stream_test.dart
index 57e3aeb..41faeb1 100644
--- a/packages/camera/camera/test/camera_image_stream_test.dart
+++ b/packages/camera/camera/test/camera_image_stream_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:camera/camera.dart';
import 'package:camera_platform_interface/camera_platform_interface.dart';
import 'package:flutter/widgets.dart';
diff --git a/packages/camera/camera_platform_interface/lib/src/types/image_format_group.dart b/packages/camera/camera_platform_interface/lib/src/types/image_format_group.dart
index 3d2c018..61ccbfc 100644
--- a/packages/camera/camera_platform_interface/lib/src/types/image_format_group.dart
+++ b/packages/camera/camera_platform_interface/lib/src/types/image_format_group.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
/// Group of image formats that are comparable across Android and iOS platforms.
enum ImageFormatGroup {
/// The image format does not fit into any specific group.
diff --git a/packages/camera/camera_platform_interface/lib/src/utils/utils.dart b/packages/camera/camera_platform_interface/lib/src/utils/utils.dart
index 5413f25..f4c21bf 100644
--- a/packages/camera/camera_platform_interface/lib/src/utils/utils.dart
+++ b/packages/camera/camera_platform_interface/lib/src/utils/utils.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:camera_platform_interface/camera_platform_interface.dart';
import 'package:flutter/services.dart';
diff --git a/packages/camera/camera_platform_interface/test/types/image_group_test.dart b/packages/camera/camera_platform_interface/test/types/image_group_test.dart
index c49b2f0..ac975fa 100644
--- a/packages/camera/camera_platform_interface/test/types/image_group_test.dart
+++ b/packages/camera/camera_platform_interface/test/types/image_group_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:camera_platform_interface/src/types/types.dart';
import 'package:flutter_test/flutter_test.dart';
diff --git a/packages/camera/camera_platform_interface/test/utils/utils_test.dart b/packages/camera/camera_platform_interface/test/utils/utils_test.dart
index 63e3baf..8227981 100644
--- a/packages/camera/camera_platform_interface/test/utils/utils_test.dart
+++ b/packages/camera/camera_platform_interface/test/utils/utils_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:camera_platform_interface/camera_platform_interface.dart';
import 'package:camera_platform_interface/src/utils/utils.dart';
import 'package:flutter/services.dart';
diff --git a/packages/connectivity/connectivity/example/android/app/src/test/java/io/flutter/plugins/connectivityexample/ActivityTest.java b/packages/connectivity/connectivity/example/android/app/src/test/java/io/flutter/plugins/connectivityexample/ActivityTest.java
index f8f4247..b531a2d 100644
--- a/packages/connectivity/connectivity/example/android/app/src/test/java/io/flutter/plugins/connectivityexample/ActivityTest.java
+++ b/packages/connectivity/connectivity/example/android/app/src/test/java/io/flutter/plugins/connectivityexample/ActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.connectivityexample;
import static org.junit.Assert.assertNotNull;
diff --git a/packages/connectivity/connectivity/example/macos/Runner/AppDelegate.swift b/packages/connectivity/connectivity/example/macos/Runner/AppDelegate.swift
index d53ef64..ca19fe9 100644
--- a/packages/connectivity/connectivity/example/macos/Runner/AppDelegate.swift
+++ b/packages/connectivity/connectivity/example/macos/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/connectivity/connectivity/example/macos/Runner/MainFlutterWindow.swift b/packages/connectivity/connectivity/example/macos/Runner/MainFlutterWindow.swift
index 2722837..2ce11b7 100644
--- a/packages/connectivity/connectivity/example/macos/Runner/MainFlutterWindow.swift
+++ b/packages/connectivity/connectivity/example/macos/Runner/MainFlutterWindow.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/connectivity/connectivity/example/web/index.html b/packages/connectivity/connectivity/example/web/index.html
index 9b7a438..97b1100 100644
--- a/packages/connectivity/connectivity/example/web/index.html
+++ b/packages/connectivity/connectivity/example/web/index.html
@@ -1,4 +1,7 @@
<!DOCTYPE html>
+<!-- Copyright 2020 The Flutter Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file. -->
<html>
<head>
<meta charset="UTF-8">
diff --git a/packages/connectivity/connectivity_for_web/example/integration_test/network_information_test.dart b/packages/connectivity/connectivity_for_web/example/integration_test/network_information_test.dart
index f8e8059..1f4a1d5 100644
--- a/packages/connectivity/connectivity_for_web/example/integration_test/network_information_test.dart
+++ b/packages/connectivity/connectivity_for_web/example/integration_test/network_information_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:connectivity_for_web/src/network_information_api_connectivity_plugin.dart';
import 'package:connectivity_platform_interface/connectivity_platform_interface.dart';
import 'package:flutter_test/flutter_test.dart';
diff --git a/packages/connectivity/connectivity_for_web/example/integration_test/src/connectivity_mocks.dart b/packages/connectivity/connectivity_for_web/example/integration_test/src/connectivity_mocks.dart
index fc79559..390a665 100644
--- a/packages/connectivity/connectivity_for_web/example/integration_test/src/connectivity_mocks.dart
+++ b/packages/connectivity/connectivity_for_web/example/integration_test/src/connectivity_mocks.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:html';
import 'dart:js_util' show getProperty;
diff --git a/packages/connectivity/connectivity_for_web/example/run_test.sh b/packages/connectivity/connectivity_for_web/example/run_test.sh
index 8e6f149..9bfce94 100755
--- a/packages/connectivity/connectivity_for_web/example/run_test.sh
+++ b/packages/connectivity/connectivity_for_web/example/run_test.sh
@@ -1,4 +1,8 @@
#!/usr/bin/bash
+# Copyright 2017 The Flutter Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
if pgrep -lf chromedriver > /dev/null; then
echo "chromedriver is running."
diff --git a/packages/connectivity/connectivity_for_web/example/web/index.html b/packages/connectivity/connectivity_for_web/example/web/index.html
index 6eff9a7..27464c3 100644
--- a/packages/connectivity/connectivity_for_web/example/web/index.html
+++ b/packages/connectivity/connectivity_for_web/example/web/index.html
@@ -1,4 +1,7 @@
<!DOCTYPE html>
+<!-- Copyright 2020 The Flutter Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file. -->
<html>
<head>
<meta charset="UTF-8">
diff --git a/packages/connectivity/connectivity_for_web/lib/connectivity_for_web.dart b/packages/connectivity/connectivity_for_web/lib/connectivity_for_web.dart
index fd061a8..14de31d 100644
--- a/packages/connectivity/connectivity_for_web/lib/connectivity_for_web.dart
+++ b/packages/connectivity/connectivity_for_web/lib/connectivity_for_web.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'package:connectivity_platform_interface/connectivity_platform_interface.dart';
diff --git a/packages/connectivity/connectivity_for_web/lib/src/dart_html_connectivity_plugin.dart b/packages/connectivity/connectivity_for_web/lib/src/dart_html_connectivity_plugin.dart
index 950d268..09fbeaf 100644
--- a/packages/connectivity/connectivity_for_web/lib/src/dart_html_connectivity_plugin.dart
+++ b/packages/connectivity/connectivity_for_web/lib/src/dart_html_connectivity_plugin.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:html' as html show window;
diff --git a/packages/connectivity/connectivity_for_web/lib/src/network_information_api_connectivity_plugin.dart b/packages/connectivity/connectivity_for_web/lib/src/network_information_api_connectivity_plugin.dart
index 800be2e..2b319b1 100644
--- a/packages/connectivity/connectivity_for_web/lib/src/network_information_api_connectivity_plugin.dart
+++ b/packages/connectivity/connectivity_for_web/lib/src/network_information_api_connectivity_plugin.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:html' as html show window, NetworkInformation;
import 'dart:js' show allowInterop;
diff --git a/packages/connectivity/connectivity_for_web/lib/src/utils/connectivity_result.dart b/packages/connectivity/connectivity_for_web/lib/src/utils/connectivity_result.dart
index e7eb896..9f1b111 100644
--- a/packages/connectivity/connectivity_for_web/lib/src/utils/connectivity_result.dart
+++ b/packages/connectivity/connectivity_for_web/lib/src/utils/connectivity_result.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:html' as html show NetworkInformation;
import 'package:connectivity_platform_interface/connectivity_platform_interface.dart';
diff --git a/packages/connectivity/connectivity_for_web/test/tests_exist_elsewhere_test.dart b/packages/connectivity/connectivity_for_web/test/tests_exist_elsewhere_test.dart
index 334f521..64d8e54 100644
--- a/packages/connectivity/connectivity_for_web/test/tests_exist_elsewhere_test.dart
+++ b/packages/connectivity/connectivity_for_web/test/tests_exist_elsewhere_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter_test/flutter_test.dart';
void main() {
diff --git a/packages/connectivity/connectivity_macos/example/macos/Runner/AppDelegate.swift b/packages/connectivity/connectivity_macos/example/macos/Runner/AppDelegate.swift
index d53ef64..ca19fe9 100644
--- a/packages/connectivity/connectivity_macos/example/macos/Runner/AppDelegate.swift
+++ b/packages/connectivity/connectivity_macos/example/macos/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/connectivity/connectivity_macos/example/macos/Runner/MainFlutterWindow.swift b/packages/connectivity/connectivity_macos/example/macos/Runner/MainFlutterWindow.swift
index 2722837..2ce11b7 100644
--- a/packages/connectivity/connectivity_macos/example/macos/Runner/MainFlutterWindow.swift
+++ b/packages/connectivity/connectivity_macos/example/macos/Runner/MainFlutterWindow.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/connectivity/connectivity_platform_interface/lib/src/enums.dart b/packages/connectivity/connectivity_platform_interface/lib/src/enums.dart
index 9d8cef9..640e378 100644
--- a/packages/connectivity/connectivity_platform_interface/lib/src/enums.dart
+++ b/packages/connectivity/connectivity_platform_interface/lib/src/enums.dart
@@ -1,3 +1,7 @@
+// Copyright 2020 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
/// Connection status check result.
enum ConnectivityResult {
/// WiFi: Device connected via Wi-Fi
diff --git a/packages/connectivity/connectivity_platform_interface/lib/src/utils.dart b/packages/connectivity/connectivity_platform_interface/lib/src/utils.dart
index 2ae22e1..4df9297 100644
--- a/packages/connectivity/connectivity_platform_interface/lib/src/utils.dart
+++ b/packages/connectivity/connectivity_platform_interface/lib/src/utils.dart
@@ -1,3 +1,7 @@
+// Copyright 2020 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:connectivity_platform_interface/connectivity_platform_interface.dart';
/// Convert a String to a ConnectivityResult value.
diff --git a/packages/device_info/device_info/example/android/app/src/main/java/io/flutter/plugins/deviceinfoexample/EmbeddingV1ActivityTest.java b/packages/device_info/device_info/example/android/app/src/main/java/io/flutter/plugins/deviceinfoexample/EmbeddingV1ActivityTest.java
index 8fa8808..ca68068 100644
--- a/packages/device_info/device_info/example/android/app/src/main/java/io/flutter/plugins/deviceinfoexample/EmbeddingV1ActivityTest.java
+++ b/packages/device_info/device_info/example/android/app/src/main/java/io/flutter/plugins/deviceinfoexample/EmbeddingV1ActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.deviceinfoexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/device_info/device_info/example/integration_test/device_info_test.dart b/packages/device_info/device_info/example/integration_test/device_info_test.dart
index 61c4396..a2a3ba7 100644
--- a/packages/device_info/device_info/example/integration_test/device_info_test.dart
+++ b/packages/device_info/device_info/example/integration_test/device_info_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// TODO(cyanglaz): Remove once https://github.com/flutter/plugins/pull/3158 is landed.
// @dart = 2.9
diff --git a/packages/device_info/device_info/example/test_driver/integration_test.dart b/packages/device_info/device_info/example/test_driver/integration_test.dart
index 13327bb..84004ce 100644
--- a/packages/device_info/device_info/example/test_driver/integration_test.dart
+++ b/packages/device_info/device_info/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// TODO(cyanglaz): Remove once https://github.com/flutter/flutter/issues/59879 is fixed.
// @dart = 2.9
diff --git a/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/jsonrpc/message/ErrorObject.java b/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/jsonrpc/message/ErrorObject.java
index af5c68e..d7779d3 100644
--- a/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/jsonrpc/message/ErrorObject.java
+++ b/packages/espresso/android/src/main/java/androidx/test/espresso/flutter/internal/jsonrpc/message/ErrorObject.java
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package androidx.test.espresso.flutter.internal.jsonrpc.message;
import com.google.gson.JsonObject;
diff --git a/packages/espresso/android/src/main/java/com/example/espresso/EspressoPlugin.java b/packages/espresso/android/src/main/java/com/example/espresso/EspressoPlugin.java
index e1b1e3a..634b5fe 100644
--- a/packages/espresso/android/src/main/java/com/example/espresso/EspressoPlugin.java
+++ b/packages/espresso/android/src/main/java/com/example/espresso/EspressoPlugin.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package com.example.espresso;
import androidx.annotation.NonNull;
diff --git a/packages/espresso/example/android/app/src/main/java/com/example/espresso_example/MainActivity.java b/packages/espresso/example/android/app/src/main/java/com/example/espresso_example/MainActivity.java
index 413ef9e..ff62ed2 100644
--- a/packages/espresso/example/android/app/src/main/java/com/example/espresso_example/MainActivity.java
+++ b/packages/espresso/example/android/app/src/main/java/com/example/espresso_example/MainActivity.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package com.example.espresso_example;
import androidx.annotation.NonNull;
diff --git a/packages/espresso/example/lib/main.dart b/packages/espresso/example/lib/main.dart
index 958d26a..2ab6632 100644
--- a/packages/espresso/example/lib/main.dart
+++ b/packages/espresso/example/lib/main.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
diff --git a/packages/espresso/example/test_driver/example.dart b/packages/espresso/example/test_driver/example.dart
index ab74ff5..42acdeb 100644
--- a/packages/espresso/example/test_driver/example.dart
+++ b/packages/espresso/example/test_driver/example.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter_driver/driver_extension.dart';
import 'package:espresso_example/main.dart' as app;
diff --git a/packages/file_selector/file_selector/example/lib/get_directory_page.dart b/packages/file_selector/file_selector/example/lib/get_directory_page.dart
index cf4cde9..be278f3 100644
--- a/packages/file_selector/file_selector/example/lib/get_directory_page.dart
+++ b/packages/file_selector/file_selector/example/lib/get_directory_page.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:file_selector/file_selector.dart';
import 'package:flutter/material.dart';
diff --git a/packages/file_selector/file_selector/example/lib/home_page.dart b/packages/file_selector/file_selector/example/lib/home_page.dart
index 1cb7ef2..842094c 100644
--- a/packages/file_selector/file_selector/example/lib/home_page.dart
+++ b/packages/file_selector/file_selector/example/lib/home_page.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter/material.dart';
/// Home Page of the application
diff --git a/packages/file_selector/file_selector/example/lib/main.dart b/packages/file_selector/file_selector/example/lib/main.dart
index bb34918..e355109 100644
--- a/packages/file_selector/file_selector/example/lib/main.dart
+++ b/packages/file_selector/file_selector/example/lib/main.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter/material.dart';
import 'package:example/home_page.dart';
import 'package:example/get_directory_page.dart';
diff --git a/packages/file_selector/file_selector/example/lib/open_image_page.dart b/packages/file_selector/file_selector/example/lib/open_image_page.dart
index 986bfe7..da11ead 100644
--- a/packages/file_selector/file_selector/example/lib/open_image_page.dart
+++ b/packages/file_selector/file_selector/example/lib/open_image_page.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:file_selector/file_selector.dart';
diff --git a/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart b/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart
index c6f73f5..d91d126 100644
--- a/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart
+++ b/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:file_selector/file_selector.dart';
diff --git a/packages/file_selector/file_selector/example/lib/open_text_page.dart b/packages/file_selector/file_selector/example/lib/open_text_page.dart
index 74d79dd..52296ab 100644
--- a/packages/file_selector/file_selector/example/lib/open_text_page.dart
+++ b/packages/file_selector/file_selector/example/lib/open_text_page.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:file_selector/file_selector.dart';
import 'package:flutter/material.dart';
diff --git a/packages/file_selector/file_selector/example/lib/save_text_page.dart b/packages/file_selector/file_selector/example/lib/save_text_page.dart
index 82046c3..982692b 100644
--- a/packages/file_selector/file_selector/example/lib/save_text_page.dart
+++ b/packages/file_selector/file_selector/example/lib/save_text_page.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:typed_data';
import 'package:file_selector/file_selector.dart';
import 'package:flutter/material.dart';
diff --git a/packages/file_selector/file_selector/example/web/index.html b/packages/file_selector/file_selector/example/web/index.html
index 9b7a438..97b1100 100644
--- a/packages/file_selector/file_selector/example/web/index.html
+++ b/packages/file_selector/file_selector/example/web/index.html
@@ -1,4 +1,7 @@
<!DOCTYPE html>
+<!-- Copyright 2020 The Flutter Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file. -->
<html>
<head>
<meta charset="UTF-8">
diff --git a/packages/file_selector/file_selector_platform_interface/lib/file_selector_platform_interface.dart b/packages/file_selector/file_selector_platform_interface/lib/file_selector_platform_interface.dart
index 69e3064..dcd87aa 100644
--- a/packages/file_selector/file_selector_platform_interface/lib/file_selector_platform_interface.dart
+++ b/packages/file_selector/file_selector_platform_interface/lib/file_selector_platform_interface.dart
@@ -1,2 +1,6 @@
+// Copyright 2020 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
export 'src/platform_interface/file_selector_interface.dart';
export 'src/types/types.dart';
diff --git a/packages/file_selector/file_selector_platform_interface/lib/src/types/types.dart b/packages/file_selector/file_selector_platform_interface/lib/src/types/types.dart
index 88dc3c2..65a0bdc 100644
--- a/packages/file_selector/file_selector_platform_interface/lib/src/types/types.dart
+++ b/packages/file_selector/file_selector_platform_interface/lib/src/types/types.dart
@@ -1,2 +1,6 @@
+// Copyright 2020 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
export 'package:cross_file/cross_file.dart';
export 'x_type_group/x_type_group.dart';
diff --git a/packages/file_selector/file_selector_platform_interface/lib/src/web_helpers/web_helpers.dart b/packages/file_selector/file_selector_platform_interface/lib/src/web_helpers/web_helpers.dart
index 5330c5c..f9e33ae 100644
--- a/packages/file_selector/file_selector_platform_interface/lib/src/web_helpers/web_helpers.dart
+++ b/packages/file_selector/file_selector_platform_interface/lib/src/web_helpers/web_helpers.dart
@@ -1,3 +1,7 @@
+// Copyright 2020 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:html';
/// Create anchor element with download attribute
diff --git a/packages/file_selector/file_selector_web/example/run_test.sh b/packages/file_selector/file_selector_web/example/run_test.sh
index c9f547a..a381127 100755
--- a/packages/file_selector/file_selector_web/example/run_test.sh
+++ b/packages/file_selector/file_selector_web/example/run_test.sh
@@ -1,4 +1,7 @@
#!/usr/bin/bash
+# Copyright 2017 The Flutter Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
if pgrep -lf chromedriver > /dev/null; then
echo "chromedriver is running."
diff --git a/packages/file_selector/file_selector_web/test/more_tests_exist_elsewhere_test.dart b/packages/file_selector/file_selector_web/test/more_tests_exist_elsewhere_test.dart
index e9faa3a..6aaf447 100644
--- a/packages/file_selector/file_selector_web/test/more_tests_exist_elsewhere_test.dart
+++ b/packages/file_selector/file_selector_web/test/more_tests_exist_elsewhere_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2020 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter_test/flutter_test.dart';
void main() {
diff --git a/packages/flutter_plugin_android_lifecycle/android/src/test/java/io/flutter/embedding/engine/plugins/lifecycle/FlutterLifecycleAdapterTest.java b/packages/flutter_plugin_android_lifecycle/android/src/test/java/io/flutter/embedding/engine/plugins/lifecycle/FlutterLifecycleAdapterTest.java
index 2a5a91d..6657dfb 100644
--- a/packages/flutter_plugin_android_lifecycle/android/src/test/java/io/flutter/embedding/engine/plugins/lifecycle/FlutterLifecycleAdapterTest.java
+++ b/packages/flutter_plugin_android_lifecycle/android/src/test/java/io/flutter/embedding/engine/plugins/lifecycle/FlutterLifecycleAdapterTest.java
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.embedding.engine.plugins.lifecycle;
import static org.junit.Assert.assertEquals;
diff --git a/packages/flutter_plugin_android_lifecycle/example/android/app/src/main/java/io/flutter/plugins/flutter_plugin_android_lifecycle_example/EmbeddingV1Activity.java b/packages/flutter_plugin_android_lifecycle/example/android/app/src/main/java/io/flutter/plugins/flutter_plugin_android_lifecycle_example/EmbeddingV1Activity.java
index f303f4c..5859e17 100644
--- a/packages/flutter_plugin_android_lifecycle/example/android/app/src/main/java/io/flutter/plugins/flutter_plugin_android_lifecycle_example/EmbeddingV1Activity.java
+++ b/packages/flutter_plugin_android_lifecycle/example/android/app/src/main/java/io/flutter/plugins/flutter_plugin_android_lifecycle_example/EmbeddingV1Activity.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.flutter_plugin_android_lifecycle_example;
import android.os.Bundle;
diff --git a/packages/flutter_plugin_android_lifecycle/example/integration_test/flutter_plugin_android_lifecycle_test.dart b/packages/flutter_plugin_android_lifecycle/example/integration_test/flutter_plugin_android_lifecycle_test.dart
index ba67043..e4b92c8 100644
--- a/packages/flutter_plugin_android_lifecycle/example/integration_test/flutter_plugin_android_lifecycle_test.dart
+++ b/packages/flutter_plugin_android_lifecycle/example/integration_test/flutter_plugin_android_lifecycle_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/flutter_plugin_android_lifecycle/example/lib/main.dart b/packages/flutter_plugin_android_lifecycle/example/lib/main.dart
index eb82aac..c055c53 100644
--- a/packages/flutter_plugin_android_lifecycle/example/lib/main.dart
+++ b/packages/flutter_plugin_android_lifecycle/example/lib/main.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
diff --git a/packages/flutter_plugin_android_lifecycle/lib/flutter_plugin_android_lifecycle.dart b/packages/flutter_plugin_android_lifecycle/lib/flutter_plugin_android_lifecycle.dart
index 4352552..ea11155 100644
--- a/packages/flutter_plugin_android_lifecycle/lib/flutter_plugin_android_lifecycle.dart
+++ b/packages/flutter_plugin_android_lifecycle/lib/flutter_plugin_android_lifecycle.dart
@@ -1,2 +1,6 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// The flutter_plugin_android_lifecycle plugin only provides a Java API
// for use by Android plugins. This plugin has no Dart code.
diff --git a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/CircleBuilderTest.java b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/CircleBuilderTest.java
index 6585090..24bee4e 100644
--- a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/CircleBuilderTest.java
+++ b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/CircleBuilderTest.java
@@ -1,3 +1,7 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.googlemaps;
import static junit.framework.TestCase.assertEquals;
diff --git a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/CircleControllerTest.java b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/CircleControllerTest.java
index e032dd4..7c8032b 100644
--- a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/CircleControllerTest.java
+++ b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/CircleControllerTest.java
@@ -1,3 +1,7 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.googlemaps;
import static org.mockito.Mockito.mock;
diff --git a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolygonBuilderTest.java b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolygonBuilderTest.java
index 644e898..e3c2f33 100644
--- a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolygonBuilderTest.java
+++ b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolygonBuilderTest.java
@@ -1,3 +1,7 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.googlemaps;
import static junit.framework.TestCase.assertEquals;
diff --git a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolygonControllerTest.java b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolygonControllerTest.java
index 834c427..e65cb1f 100644
--- a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolygonControllerTest.java
+++ b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolygonControllerTest.java
@@ -1,3 +1,7 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.googlemaps;
import static org.mockito.Mockito.mock;
diff --git a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolylineBuilderTest.java b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolylineBuilderTest.java
index bf6d060..7e5d39c 100644
--- a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolylineBuilderTest.java
+++ b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolylineBuilderTest.java
@@ -1,3 +1,7 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.googlemaps;
import static junit.framework.TestCase.assertEquals;
diff --git a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolylineControllerTest.java b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolylineControllerTest.java
index acd2316..1f0a700 100644
--- a/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolylineControllerTest.java
+++ b/packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/PolylineControllerTest.java
@@ -1,3 +1,7 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.googlemaps;
import static org.mockito.Mockito.mock;
diff --git a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/googlemaps/EmbeddingV1ActivityTest.java b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/googlemaps/EmbeddingV1ActivityTest.java
index 76dc5df..5ade436 100644
--- a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/googlemaps/EmbeddingV1ActivityTest.java
+++ b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/googlemaps/EmbeddingV1ActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.googlemaps;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/googlemaps/MainActivityTest.java b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/googlemaps/MainActivityTest.java
index c70f16a..7c624bb 100644
--- a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/googlemaps/MainActivityTest.java
+++ b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/googlemaps/MainActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.googlemaps;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/main/java/io/flutter/plugins/googlemapsexample/EmbeddingV1Activity.java b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/main/java/io/flutter/plugins/googlemapsexample/EmbeddingV1Activity.java
index 3853b5d..9924fa0 100644
--- a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/main/java/io/flutter/plugins/googlemapsexample/EmbeddingV1Activity.java
+++ b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/main/java/io/flutter/plugins/googlemapsexample/EmbeddingV1Activity.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.googlemapsexample;
import android.os.Bundle;
diff --git a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/test/java/io/flutter/plugins/googlemaps/GoogleMapControllerTest.java b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/test/java/io/flutter/plugins/googlemaps/GoogleMapControllerTest.java
index 94b9347..7b81f28 100644
--- a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/test/java/io/flutter/plugins/googlemaps/GoogleMapControllerTest.java
+++ b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/test/java/io/flutter/plugins/googlemaps/GoogleMapControllerTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.googlemaps;
import static org.junit.Assert.assertNull;
diff --git a/packages/google_maps_flutter/google_maps_flutter/example/integration_test/google_map_inspector.dart b/packages/google_maps_flutter/google_maps_flutter/example/integration_test/google_map_inspector.dart
index a502559..33ad5d0 100644
--- a/packages/google_maps_flutter/google_maps_flutter/example/integration_test/google_map_inspector.dart
+++ b/packages/google_maps_flutter/google_maps_flutter/example/integration_test/google_map_inspector.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
import 'dart:typed_data';
diff --git a/packages/google_maps_flutter/google_maps_flutter/example/integration_test/google_maps_test.dart b/packages/google_maps_flutter/google_maps_flutter/example/integration_test/google_maps_test.dart
index 01b0c9b..44412d4 100644
--- a/packages/google_maps_flutter/google_maps_flutter/example/integration_test/google_maps_test.dart
+++ b/packages/google_maps_flutter/google_maps_flutter/example/integration_test/google_maps_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
import 'dart:async';
diff --git a/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/AppDelegate.h b/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/AppDelegate.h
index 5abb821..8e973d5 100644
--- a/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/AppDelegate.h
+++ b/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/AppDelegate.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
diff --git a/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/AppDelegate.m b/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/AppDelegate.m
index 6896c5c..b22c283 100644
--- a/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/AppDelegate.m
+++ b/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/AppDelegate.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import "AppDelegate.h"
#import "GeneratedPluginRegistrant.h"
diff --git a/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/main.m b/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/main.m
index dff6597..f451b14 100644
--- a/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/main.m
+++ b/packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/main.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
diff --git a/packages/google_maps_flutter/google_maps_flutter/example/test_driver/integration_test.dart b/packages/google_maps_flutter/google_maps_flutter/example/test_driver/integration_test.dart
index ceb6c4d..7a26a52 100644
--- a/packages/google_maps_flutter/google_maps_flutter/example/test_driver/integration_test.dart
+++ b/packages/google_maps_flutter/google_maps_flutter/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
import 'dart:async';
diff --git a/packages/google_maps_flutter/google_maps_flutter/test/tile_overlay_updates_test.dart b/packages/google_maps_flutter/google_maps_flutter/test/tile_overlay_updates_test.dart
index d2b6efb..953d85e 100644
--- a/packages/google_maps_flutter/google_maps_flutter/test/tile_overlay_updates_test.dart
+++ b/packages/google_maps_flutter/google_maps_flutter/test/tile_overlay_updates_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/resources/icon_image_base64.dart b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/resources/icon_image_base64.dart
index aa4a80b..66814d8 100644
--- a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/resources/icon_image_base64.dart
+++ b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/resources/icon_image_base64.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
final iconImageBase64 =
'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAIRlWElmTU'
'0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIA'
diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/run_test.sh b/packages/google_maps_flutter/google_maps_flutter_web/example/run_test.sh
index 8e6f149..9bfce94 100755
--- a/packages/google_maps_flutter/google_maps_flutter_web/example/run_test.sh
+++ b/packages/google_maps_flutter/google_maps_flutter_web/example/run_test.sh
@@ -1,4 +1,8 @@
#!/usr/bin/bash
+# Copyright 2017 The Flutter Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
if pgrep -lf chromedriver > /dev/null; then
echo "chromedriver is running."
diff --git a/packages/google_maps_flutter/google_maps_flutter_web/test/tests_exist_elsewhere_test.dart b/packages/google_maps_flutter/google_maps_flutter_web/test/tests_exist_elsewhere_test.dart
index 334f521..a8cd22d 100644
--- a/packages/google_maps_flutter/google_maps_flutter_web/test/tests_exist_elsewhere_test.dart
+++ b/packages/google_maps_flutter/google_maps_flutter_web/test/tests_exist_elsewhere_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter_test/flutter_test.dart';
void main() {
diff --git a/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/BackgroundTaskRunner.java b/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/BackgroundTaskRunner.java
index e051301..e667be2 100755
--- a/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/BackgroundTaskRunner.java
+++ b/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/BackgroundTaskRunner.java
@@ -1,6 +1,6 @@
-// Copyright 2017, the Flutter 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 2017, the Flutter project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
package io.flutter.plugins.googlesignin;
diff --git a/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/Executors.java b/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/Executors.java
index ee42738..80b9d18 100755
--- a/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/Executors.java
+++ b/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/Executors.java
@@ -1,6 +1,6 @@
-// Copyright 2017, the Flutter 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 2017, the Flutter project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
package io.flutter.plugins.googlesignin;
diff --git a/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java b/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java
index dab6f4c..f6673e5 100755
--- a/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java
+++ b/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInPlugin.java
@@ -1,6 +1,6 @@
-// Copyright 2017, the Flutter 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 2017, the Flutter project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
package io.flutter.plugins.googlesignin;
diff --git a/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java b/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java
index 985903f..1000690 100644
--- a/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java
+++ b/packages/google_sign_in/google_sign_in/android/src/main/java/io/flutter/plugins/googlesignin/GoogleSignInWrapper.java
@@ -1,6 +1,6 @@
-// Copyright 2020, the Flutter 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 2020, the Flutter project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
package io.flutter.plugins.googlesignin;
diff --git a/packages/google_sign_in/google_sign_in/example/web/index.html b/packages/google_sign_in/google_sign_in/example/web/index.html
index bd37345..187eeb5 100644
--- a/packages/google_sign_in/google_sign_in/example/web/index.html
+++ b/packages/google_sign_in/google_sign_in/example/web/index.html
@@ -1,4 +1,7 @@
<!DOCTYPE html>
+<!-- Copyright 2020 The Flutter Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file. -->
<html>
<head>
<meta charset="UTF-8">
diff --git a/packages/google_sign_in/google_sign_in/integration_test/google_sign_in_test.dart b/packages/google_sign_in/google_sign_in/integration_test/google_sign_in_test.dart
index a900bfb..8642350 100644
--- a/packages/google_sign_in/google_sign_in/integration_test/google_sign_in_test.dart
+++ b/packages/google_sign_in/google_sign_in/integration_test/google_sign_in_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017, the Flutter project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// @dart = 2.9
import 'package:integration_test/integration_test.dart';
diff --git a/packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin.h b/packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin.h
index 9474e37..f9d7f32 100644
--- a/packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin.h
+++ b/packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin.h
@@ -1,6 +1,6 @@
-// Copyright 2017, the Flutter 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 2017, the Flutter project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
#import <Flutter/Flutter.h>
diff --git a/packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin.m b/packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin.m
index f621d1e..660a322 100644
--- a/packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin.m
+++ b/packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin.m
@@ -1,6 +1,6 @@
-// Copyright 2017, the Flutter 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 2017, the Flutter project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
#import "FLTGoogleSignInPlugin.h"
#import <GoogleSignIn/GoogleSignIn.h>
diff --git a/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart b/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart
index 1317eb9..f803f96 100644
--- a/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart
+++ b/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart
@@ -1,6 +1,6 @@
-// Copyright 2017, the Flutter 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 2017, the Flutter project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
import 'dart:async';
import 'dart:ui' show hashValues;
diff --git a/packages/google_sign_in/google_sign_in/lib/src/common.dart b/packages/google_sign_in/google_sign_in/lib/src/common.dart
index 60c74ab..f9aaf19 100644
--- a/packages/google_sign_in/google_sign_in/lib/src/common.dart
+++ b/packages/google_sign_in/google_sign_in/lib/src/common.dart
@@ -1,6 +1,6 @@
-// Copyright 2017, the Flutter 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 2017, the Flutter project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
/// Encapsulation of the fields that represent a Google user's identity.
abstract class GoogleIdentity {
diff --git a/packages/google_sign_in/google_sign_in/lib/widgets.dart b/packages/google_sign_in/google_sign_in/lib/widgets.dart
index c968293..f47e78f 100644
--- a/packages/google_sign_in/google_sign_in/lib/widgets.dart
+++ b/packages/google_sign_in/google_sign_in/lib/widgets.dart
@@ -1,6 +1,6 @@
-// Copyright 2017, the Flutter 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 2017, the Flutter project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
import 'dart:typed_data';
diff --git a/packages/google_sign_in/google_sign_in/test_driver/integration_test.dart b/packages/google_sign_in/google_sign_in/test_driver/integration_test.dart
index 4a27ac2..abb86f0 100644
--- a/packages/google_sign_in/google_sign_in/test_driver/integration_test.dart
+++ b/packages/google_sign_in/google_sign_in/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// 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 2020, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/google_sign_in/google_sign_in_web/example/run_test.sh b/packages/google_sign_in/google_sign_in_web/example/run_test.sh
index 0f76f4a..d6b5dbb 100755
--- a/packages/google_sign_in/google_sign_in_web/example/run_test.sh
+++ b/packages/google_sign_in/google_sign_in_web/example/run_test.sh
@@ -1,4 +1,7 @@
#!/usr/bin/bash
+# Copyright 2017 The Flutter Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
if pgrep -lf chromedriver > /dev/null; then
echo "chromedriver is running."
diff --git a/packages/google_sign_in/google_sign_in_web/test/tests_exist_elsewhere_test.dart b/packages/google_sign_in/google_sign_in_web/test/tests_exist_elsewhere_test.dart
index 334f521..d6a1656 100644
--- a/packages/google_sign_in/google_sign_in_web/test/tests_exist_elsewhere_test.dart
+++ b/packages/google_sign_in/google_sign_in_web/test/tests_exist_elsewhere_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019, the Flutter project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter_test/flutter_test.dart';
void main() {
diff --git a/packages/image_picker/image_picker/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/FlutterActivityTest.java b/packages/image_picker/image_picker/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/FlutterActivityTest.java
index 58f8df3..cfe112e 100644
--- a/packages/image_picker/image_picker/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/FlutterActivityTest.java
+++ b/packages/image_picker/image_picker/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/FlutterActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.imagepickerexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/image_picker/image_picker/example/android/app/src/test/java/io/flutter/plugins/imagepicker/ImagePickerDelegateTest.java b/packages/image_picker/image_picker/example/android/app/src/test/java/io/flutter/plugins/imagepicker/ImagePickerDelegateTest.java
index aa9b005..858d929 100644
--- a/packages/image_picker/image_picker/example/android/app/src/test/java/io/flutter/plugins/imagepicker/ImagePickerDelegateTest.java
+++ b/packages/image_picker/image_picker/example/android/app/src/test/java/io/flutter/plugins/imagepicker/ImagePickerDelegateTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.imagepicker;
import static org.hamcrest.core.IsEqual.equalTo;
diff --git a/packages/image_picker/image_picker/example/android/app/src/test/java/io/flutter/plugins/imagepicker/ImagePickerPluginTest.java b/packages/image_picker/image_picker/example/android/app/src/test/java/io/flutter/plugins/imagepicker/ImagePickerPluginTest.java
index de1623e..27bc57b 100644
--- a/packages/image_picker/image_picker/example/android/app/src/test/java/io/flutter/plugins/imagepicker/ImagePickerPluginTest.java
+++ b/packages/image_picker/image_picker/example/android/app/src/test/java/io/flutter/plugins/imagepicker/ImagePickerPluginTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.imagepicker;
import static org.junit.Assert.assertTrue;
diff --git a/packages/image_picker/image_picker/example/test_driver/test/integration_test.dart b/packages/image_picker/image_picker/example/test_driver/test/integration_test.dart
index 0352d4a..6332de2 100644
--- a/packages/image_picker/image_picker/example/test_driver/test/integration_test.dart
+++ b/packages/image_picker/image_picker/example/test_driver/test/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
import 'dart:async';
diff --git a/packages/image_picker/image_picker/example/web/index.html b/packages/image_picker/image_picker/example/web/index.html
index 787bbc7..a692cdb 100644
--- a/packages/image_picker/image_picker/example/web/index.html
+++ b/packages/image_picker/image_picker/example/web/index.html
@@ -1,4 +1,7 @@
<!DOCTYPE html>
+<!-- Copyright 2020 The Flutter Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file. -->
<html>
<head>
<meta charset="UTF-8">
diff --git a/packages/image_picker/image_picker/integration_test/old_image_picker_test.dart b/packages/image_picker/image_picker/integration_test/old_image_picker_test.dart
index 76c971c..953acd1 100644
--- a/packages/image_picker/image_picker/integration_test/old_image_picker_test.dart
+++ b/packages/image_picker/image_picker/integration_test/old_image_picker_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// @dart=2.9
import 'package:integration_test/integration_test.dart';
diff --git a/packages/image_picker/image_picker_for_web/lib/image_picker_for_web.dart b/packages/image_picker/image_picker_for_web/lib/image_picker_for_web.dart
index 05afd2e..ccee150 100644
--- a/packages/image_picker/image_picker_for_web/lib/image_picker_for_web.dart
+++ b/packages/image_picker/image_picker_for_web/lib/image_picker_for_web.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:html' as html;
diff --git a/packages/image_picker/image_picker_platform_interface/lib/image_picker_platform_interface.dart b/packages/image_picker/image_picker_platform_interface/lib/image_picker_platform_interface.dart
index 6e76413..e46ee58 100644
--- a/packages/image_picker/image_picker_platform_interface/lib/image_picker_platform_interface.dart
+++ b/packages/image_picker/image_picker_platform_interface/lib/image_picker_platform_interface.dart
@@ -1,2 +1,6 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
export 'package:image_picker_platform_interface/src/platform_interface/image_picker_platform.dart';
export 'package:image_picker_platform_interface/src/types/types.dart';
diff --git a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/base.dart b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/base.dart
index 2b078ef..39db139 100644
--- a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/base.dart
+++ b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/base.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:convert';
import 'dart:typed_data';
diff --git a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/html.dart b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/html.dart
index b855eb3..ea1ad9a 100644
--- a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/html.dart
+++ b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/html.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:convert';
import 'dart:typed_data';
diff --git a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/io.dart b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/io.dart
index 4b56add..06bc523 100644
--- a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/io.dart
+++ b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/io.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
diff --git a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/picked_file.dart b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/picked_file.dart
index b2a614c..125b1e9 100644
--- a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/picked_file.dart
+++ b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/picked_file.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
export 'lost_data.dart';
export 'unsupported.dart'
if (dart.library.html) 'html.dart'
diff --git a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/unsupported.dart b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/unsupported.dart
index bc10a48..e204604 100644
--- a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/unsupported.dart
+++ b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/unsupported.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import './base.dart';
/// A PickedFile is a cross-platform, simplified File abstraction.
diff --git a/packages/image_picker/image_picker_platform_interface/lib/src/types/types.dart b/packages/image_picker/image_picker_platform_interface/lib/src/types/types.dart
index f38a4ec..8ea3cfe 100644
--- a/packages/image_picker/image_picker_platform_interface/lib/src/types/types.dart
+++ b/packages/image_picker/image_picker_platform_interface/lib/src/types/types.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
export 'camera_device.dart';
export 'image_source.dart';
export 'retrieve_type.dart';
diff --git a/packages/in_app_purchase/android/src/main/java/io/flutter/plugins/inapppurchase/Translator.java b/packages/in_app_purchase/android/src/main/java/io/flutter/plugins/inapppurchase/Translator.java
index 73180ec..f9fc12f 100644
--- a/packages/in_app_purchase/android/src/main/java/io/flutter/plugins/inapppurchase/Translator.java
+++ b/packages/in_app_purchase/android/src/main/java/io/flutter/plugins/inapppurchase/Translator.java
@@ -1,6 +1,6 @@
// Copyright 2019 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
package io.flutter.plugins.inapppurchase;
diff --git a/packages/in_app_purchase/example/android/app/src/test/java/io/flutter/plugins/inapppurchase/MethodCallHandlerTest.java b/packages/in_app_purchase/example/android/app/src/test/java/io/flutter/plugins/inapppurchase/MethodCallHandlerTest.java
index eef4334..374dc32 100644
--- a/packages/in_app_purchase/example/android/app/src/test/java/io/flutter/plugins/inapppurchase/MethodCallHandlerTest.java
+++ b/packages/in_app_purchase/example/android/app/src/test/java/io/flutter/plugins/inapppurchase/MethodCallHandlerTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.inapppurchase;
import static io.flutter.plugins.inapppurchase.InAppPurchasePlugin.MethodNames.ACKNOWLEDGE_PURCHASE;
diff --git a/packages/in_app_purchase/example/android/app/src/test/java/io/flutter/plugins/inapppurchase/TranslatorTest.java b/packages/in_app_purchase/example/android/app/src/test/java/io/flutter/plugins/inapppurchase/TranslatorTest.java
index 2ee1044..476577d 100644
--- a/packages/in_app_purchase/example/android/app/src/test/java/io/flutter/plugins/inapppurchase/TranslatorTest.java
+++ b/packages/in_app_purchase/example/android/app/src/test/java/io/flutter/plugins/inapppurchase/TranslatorTest.java
@@ -1,6 +1,6 @@
// Copyright 2019 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
package io.flutter.plugins.inapppurchase;
diff --git a/packages/in_app_purchase/example/ios/Runner/AppDelegate.h b/packages/in_app_purchase/example/ios/Runner/AppDelegate.h
index 36e21bb..31fc381 100644
--- a/packages/in_app_purchase/example/ios/Runner/AppDelegate.h
+++ b/packages/in_app_purchase/example/ios/Runner/AppDelegate.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
diff --git a/packages/in_app_purchase/example/ios/Runner/AppDelegate.m b/packages/in_app_purchase/example/ios/Runner/AppDelegate.m
index 59a72e9..2147d3d 100644
--- a/packages/in_app_purchase/example/ios/Runner/AppDelegate.m
+++ b/packages/in_app_purchase/example/ios/Runner/AppDelegate.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
diff --git a/packages/in_app_purchase/example/ios/Runner/main.m b/packages/in_app_purchase/example/ios/Runner/main.m
index dff6597..f451b14 100644
--- a/packages/in_app_purchase/example/ios/Runner/main.m
+++ b/packages/in_app_purchase/example/ios/Runner/main.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
diff --git a/packages/in_app_purchase/example/test_driver/test/integration_test.dart b/packages/in_app_purchase/example/test_driver/test/integration_test.dart
index 0352d4a..6332de2 100644
--- a/packages/in_app_purchase/example/test_driver/test/integration_test.dart
+++ b/packages/in_app_purchase/example/test_driver/test/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
import 'dart:async';
diff --git a/packages/in_app_purchase/integration_test/in_app_purchase_test.dart b/packages/in_app_purchase/integration_test/in_app_purchase_test.dart
index aa3430f..758d266 100644
--- a/packages/in_app_purchase/integration_test/in_app_purchase_test.dart
+++ b/packages/in_app_purchase/integration_test/in_app_purchase_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
import 'package:flutter_test/flutter_test.dart';
diff --git a/packages/in_app_purchase/lib/src/billing_client_wrappers/purchase_wrapper.dart b/packages/in_app_purchase/lib/src/billing_client_wrappers/purchase_wrapper.dart
index 929b582..567e8bb 100644
--- a/packages/in_app_purchase/lib/src/billing_client_wrappers/purchase_wrapper.dart
+++ b/packages/in_app_purchase/lib/src/billing_client_wrappers/purchase_wrapper.dart
@@ -1,6 +1,6 @@
// Copyright 2019 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
import 'dart:ui' show hashValues;
import 'package:flutter/foundation.dart';
diff --git a/packages/in_app_purchase/lib/src/billing_client_wrappers/sku_details_wrapper.dart b/packages/in_app_purchase/lib/src/billing_client_wrappers/sku_details_wrapper.dart
index f93dd60..7451a24 100644
--- a/packages/in_app_purchase/lib/src/billing_client_wrappers/sku_details_wrapper.dart
+++ b/packages/in_app_purchase/lib/src/billing_client_wrappers/sku_details_wrapper.dart
@@ -1,6 +1,6 @@
// Copyright 2019 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
import 'dart:ui' show hashValues;
import 'package:flutter/foundation.dart';
diff --git a/packages/in_app_purchase/test/billing_client_wrappers/purchase_wrapper_test.dart b/packages/in_app_purchase/test/billing_client_wrappers/purchase_wrapper_test.dart
index df5b8f5..f97b937 100644
--- a/packages/in_app_purchase/test/billing_client_wrappers/purchase_wrapper_test.dart
+++ b/packages/in_app_purchase/test/billing_client_wrappers/purchase_wrapper_test.dart
@@ -1,6 +1,6 @@
// Copyright 2019 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
import 'package:in_app_purchase/src/in_app_purchase/purchase_details.dart';
import 'package:test/test.dart';
diff --git a/packages/in_app_purchase/test/billing_client_wrappers/sku_details_wrapper_test.dart b/packages/in_app_purchase/test/billing_client_wrappers/sku_details_wrapper_test.dart
index 7a7b7fb..f7f410a 100644
--- a/packages/in_app_purchase/test/billing_client_wrappers/sku_details_wrapper_test.dart
+++ b/packages/in_app_purchase/test/billing_client_wrappers/sku_details_wrapper_test.dart
@@ -1,6 +1,6 @@
// Copyright 2019 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
import 'package:test/test.dart';
import 'package:in_app_purchase/billing_client_wrappers.dart';
diff --git a/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/EmbedderV1ActivityTest.java b/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/EmbedderV1ActivityTest.java
index 0ce7dc1..2ae8cbb 100644
--- a/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/EmbedderV1ActivityTest.java
+++ b/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/EmbedderV1ActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package com.example.integration_test_example;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/FlutterActivityTest.java b/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/FlutterActivityTest.java
index 36ae1dd..b84b290 100644
--- a/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/FlutterActivityTest.java
+++ b/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/FlutterActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package com.example.integration_test_example;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/FlutterActivityWithPermissionTest.java b/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/FlutterActivityWithPermissionTest.java
index c01d234..a8e868a 100644
--- a/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/FlutterActivityWithPermissionTest.java
+++ b/packages/integration_test/example/android/app/src/androidTest/java/com/example/e2e_example/FlutterActivityWithPermissionTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package com.example.integration_test_example;
import android.Manifest.permission;
diff --git a/packages/integration_test/example/integration_test/_example_test_io.dart b/packages/integration_test/example/integration_test/_example_test_io.dart
index 7ed2896..01bcfe2 100644
--- a/packages/integration_test/example/integration_test/_example_test_io.dart
+++ b/packages/integration_test/example/integration_test/_example_test_io.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
diff --git a/packages/integration_test/example/integration_test/_example_test_web.dart b/packages/integration_test/example/integration_test/_example_test_web.dart
index e1141cc..f0fd621 100644
--- a/packages/integration_test/example/integration_test/_example_test_web.dart
+++ b/packages/integration_test/example/integration_test/_example_test_web.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
diff --git a/packages/integration_test/example/integration_test/_extended_test_io.dart b/packages/integration_test/example/integration_test/_extended_test_io.dart
index 56fee6f..ee0618a 100644
--- a/packages/integration_test/example/integration_test/_extended_test_io.dart
+++ b/packages/integration_test/example/integration_test/_extended_test_io.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
diff --git a/packages/integration_test/example/integration_test/_extended_test_web.dart b/packages/integration_test/example/integration_test/_extended_test_web.dart
index 210c2da..878d994 100644
--- a/packages/integration_test/example/integration_test/_extended_test_web.dart
+++ b/packages/integration_test/example/integration_test/_extended_test_web.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
diff --git a/packages/integration_test/example/integration_test/example_test.dart b/packages/integration_test/example/integration_test/example_test.dart
index 918aec8..382094b 100644
--- a/packages/integration_test/example/integration_test/example_test.dart
+++ b/packages/integration_test/example/integration_test/example_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
diff --git a/packages/integration_test/example/integration_test/extended_test.dart b/packages/integration_test/example/integration_test/extended_test.dart
index 23d69a8..b2a42ff 100644
--- a/packages/integration_test/example/integration_test/extended_test.dart
+++ b/packages/integration_test/example/integration_test/extended_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// This is a Flutter widget test can take a screenshot.
//
// NOTE: Screenshots are only supported on Web for now. For Web, this needs to
diff --git a/packages/integration_test/example/ios/Runner/AppDelegate.h b/packages/integration_test/example/ios/Runner/AppDelegate.h
index 36e21bb..b7984f0 100644
--- a/packages/integration_test/example/ios/Runner/AppDelegate.h
+++ b/packages/integration_test/example/ios/Runner/AppDelegate.h
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
diff --git a/packages/integration_test/example/ios/Runner/AppDelegate.m b/packages/integration_test/example/ios/Runner/AppDelegate.m
index 59a72e9..60df740 100644
--- a/packages/integration_test/example/ios/Runner/AppDelegate.m
+++ b/packages/integration_test/example/ios/Runner/AppDelegate.m
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
diff --git a/packages/integration_test/example/ios/Runner/main.m b/packages/integration_test/example/ios/Runner/main.m
index dff6597..84022b1 100644
--- a/packages/integration_test/example/ios/Runner/main.m
+++ b/packages/integration_test/example/ios/Runner/main.m
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
diff --git a/packages/integration_test/example/ios/RunnerTests/RunnerTests.m b/packages/integration_test/example/ios/RunnerTests/RunnerTests.m
index ac89c60..15cc596 100644
--- a/packages/integration_test/example/ios/RunnerTests/RunnerTests.m
+++ b/packages/integration_test/example/ios/RunnerTests/RunnerTests.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <IntegrationTest/IntegrationTestIosTest.h>
#import <XCTest/XCTest.h>
diff --git a/packages/integration_test/example/lib/main.dart b/packages/integration_test/example/lib/main.dart
index 1f33324..76d2378 100644
--- a/packages/integration_test/example/lib/main.dart
+++ b/packages/integration_test/example/lib/main.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'my_app.dart' if (dart.library.html) 'my_web_app.dart';
// ignore_for_file: public_member_api_docs
diff --git a/packages/integration_test/example/lib/my_app.dart b/packages/integration_test/example/lib/my_app.dart
index bfbdb86..bfcee09 100644
--- a/packages/integration_test/example/lib/my_app.dart
+++ b/packages/integration_test/example/lib/my_app.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:io' show Platform;
import 'package:flutter/material.dart';
diff --git a/packages/integration_test/example/lib/my_web_app.dart b/packages/integration_test/example/lib/my_web_app.dart
index c2ced1a..b3efb24 100644
--- a/packages/integration_test/example/lib/my_web_app.dart
+++ b/packages/integration_test/example/lib/my_web_app.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:html' as html;
import 'package:flutter/material.dart';
diff --git a/packages/integration_test/example/macos/Runner/AppDelegate.swift b/packages/integration_test/example/macos/Runner/AppDelegate.swift
index d53ef64..ca19fe9 100644
--- a/packages/integration_test/example/macos/Runner/AppDelegate.swift
+++ b/packages/integration_test/example/macos/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/integration_test/example/macos/Runner/MainFlutterWindow.swift b/packages/integration_test/example/macos/Runner/MainFlutterWindow.swift
index 2722837..2ce11b7 100644
--- a/packages/integration_test/example/macos/Runner/MainFlutterWindow.swift
+++ b/packages/integration_test/example/macos/Runner/MainFlutterWindow.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/integration_test/example/test_driver/extended_integration_test.dart b/packages/integration_test/example/test_driver/extended_integration_test.dart
index 056ba4b..059a3d1 100644
--- a/packages/integration_test/example/test_driver/extended_integration_test.dart
+++ b/packages/integration_test/example/test_driver/extended_integration_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter_driver/flutter_driver.dart';
import 'package:integration_test/integration_test_driver_extended.dart';
diff --git a/packages/integration_test/example/test_driver/failure_test.dart b/packages/integration_test/example/test_driver/failure_test.dart
index fce6adc..c90eaaf 100644
--- a/packages/integration_test/example/test_driver/failure_test.dart
+++ b/packages/integration_test/example/test_driver/failure_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter_driver/flutter_driver.dart';
import 'package:integration_test/common.dart' as common;
import 'package:test/test.dart';
diff --git a/packages/integration_test/example/test_driver/integration_test.dart b/packages/integration_test/example/test_driver/integration_test.dart
index b38629c..8c650ee 100644
--- a/packages/integration_test/example/test_driver/integration_test.dart
+++ b/packages/integration_test/example/test_driver/integration_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:integration_test/integration_test_driver.dart';
Future<void> main() => integrationDriver();
diff --git a/packages/integration_test/example/web/index.html b/packages/integration_test/example/web/index.html
index 9662965..492b9fd 100644
--- a/packages/integration_test/example/web/index.html
+++ b/packages/integration_test/example/web/index.html
@@ -1,4 +1,7 @@
<!DOCTYPE html>
+<!-- Copyright 2020 The Flutter Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file. -->
<html>
<head>
<meta charset="UTF-8">
diff --git a/packages/integration_test/ios/Classes/IntegrationTestIosTest.h b/packages/integration_test/ios/Classes/IntegrationTestIosTest.h
index 9c53edb..7c09a11 100644
--- a/packages/integration_test/ios/Classes/IntegrationTestIosTest.h
+++ b/packages/integration_test/ios/Classes/IntegrationTestIosTest.h
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Foundation/Foundation.h>
@interface IntegrationTestIosTest : NSObject
diff --git a/packages/integration_test/ios/Classes/IntegrationTestIosTest.m b/packages/integration_test/ios/Classes/IntegrationTestIosTest.m
index 1397f54..b3a7602 100644
--- a/packages/integration_test/ios/Classes/IntegrationTestIosTest.m
+++ b/packages/integration_test/ios/Classes/IntegrationTestIosTest.m
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import "IntegrationTestIosTest.h"
#import "IntegrationTestPlugin.h"
diff --git a/packages/integration_test/ios/Classes/IntegrationTestPlugin.h b/packages/integration_test/ios/Classes/IntegrationTestPlugin.h
index 8dd3109..6a6171f 100644
--- a/packages/integration_test/ios/Classes/IntegrationTestPlugin.h
+++ b/packages/integration_test/ios/Classes/IntegrationTestPlugin.h
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
NS_ASSUME_NONNULL_BEGIN
diff --git a/packages/integration_test/ios/Classes/IntegrationTestPlugin.m b/packages/integration_test/ios/Classes/IntegrationTestPlugin.m
index e7e5a74..5c4d0e6 100644
--- a/packages/integration_test/ios/Classes/IntegrationTestPlugin.m
+++ b/packages/integration_test/ios/Classes/IntegrationTestPlugin.m
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import "IntegrationTestPlugin.h"
static NSString *const kIntegrationTestPluginChannel = @"plugins.flutter.io/integration_test";
diff --git a/packages/integration_test/lib/integration_test_driver_extended.dart b/packages/integration_test/lib/integration_test_driver_extended.dart
index bc38bb7..c423f29 100644
--- a/packages/integration_test/lib/integration_test_driver_extended.dart
+++ b/packages/integration_test/lib/integration_test_driver_extended.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:io';
diff --git a/packages/integration_test/test/binding_fail_test.dart b/packages/integration_test/test/binding_fail_test.dart
index 7ec1768..d0d5fd4 100644
--- a/packages/integration_test/test/binding_fail_test.dart
+++ b/packages/integration_test/test/binding_fail_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:io';
import 'dart:convert';
diff --git a/packages/integration_test/test/binding_test.dart b/packages/integration_test/test/binding_test.dart
index ef4efc5..10e3c09 100644
--- a/packages/integration_test/test/binding_test.dart
+++ b/packages/integration_test/test/binding_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:convert';
import 'package:flutter/material.dart';
diff --git a/packages/integration_test/test/data/fail_test_script.dart b/packages/integration_test/test/data/fail_test_script.dart
index 05a75d7..a495a3b 100644
--- a/packages/integration_test/test/data/fail_test_script.dart
+++ b/packages/integration_test/test/data/fail_test_script.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:convert';
import 'package:integration_test/integration_test.dart';
diff --git a/packages/integration_test/test/data/pass_test_script.dart b/packages/integration_test/test/data/pass_test_script.dart
index 7e222c8..e31651d 100644
--- a/packages/integration_test/test/data/pass_test_script.dart
+++ b/packages/integration_test/test/data/pass_test_script.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:convert';
import 'package:integration_test/integration_test.dart';
diff --git a/packages/integration_test/test/data/pass_then_fail_test_script.dart b/packages/integration_test/test/data/pass_then_fail_test_script.dart
index 324c1c2..9116fde 100644
--- a/packages/integration_test/test/data/pass_then_fail_test_script.dart
+++ b/packages/integration_test/test/data/pass_then_fail_test_script.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:convert';
import 'package:integration_test/integration_test.dart';
diff --git a/packages/integration_test/test/response_serialization_test.dart b/packages/integration_test/test/response_serialization_test.dart
index 8b96940..ee6cacc 100644
--- a/packages/integration_test/test/response_serialization_test.dart
+++ b/packages/integration_test/test/response_serialization_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/common.dart';
diff --git a/packages/ios_platform_images/example/ios/Runner/AppDelegate.swift b/packages/ios_platform_images/example/ios/Runner/AppDelegate.swift
index 70693e4..f26669f 100644
--- a/packages/ios_platform_images/example/ios/Runner/AppDelegate.swift
+++ b/packages/ios_platform_images/example/ios/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import UIKit
import Flutter
diff --git a/packages/ios_platform_images/example/ios/Runner/Runner-Bridging-Header.h b/packages/ios_platform_images/example/ios/Runner/Runner-Bridging-Header.h
index 7335fdf..3a69a7b 100644
--- a/packages/ios_platform_images/example/ios/Runner/Runner-Bridging-Header.h
+++ b/packages/ios_platform_images/example/ios/Runner/Runner-Bridging-Header.h
@@ -1 +1,5 @@
-#import "GeneratedPluginRegistrant.h"
\ No newline at end of file
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "GeneratedPluginRegistrant.h"
diff --git a/packages/ios_platform_images/example/lib/main.dart b/packages/ios_platform_images/example/lib/main.dart
index 394d983..aa43922 100644
--- a/packages/ios_platform_images/example/lib/main.dart
+++ b/packages/ios_platform_images/example/lib/main.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter/material.dart';
import 'package:ios_platform_images/ios_platform_images.dart';
diff --git a/packages/ios_platform_images/example/test/widget_test.dart b/packages/ios_platform_images/example/test/widget_test.dart
index ae8e5a4..66d9643 100644
--- a/packages/ios_platform_images/example/test/widget_test.dart
+++ b/packages/ios_platform_images/example/test/widget_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:io';
import 'package:flutter/material.dart';
diff --git a/packages/ios_platform_images/ios/Classes/IosPlatformImagesPlugin.h b/packages/ios_platform_images/ios/Classes/IosPlatformImagesPlugin.h
index d4106b5..e53977a 100644
--- a/packages/ios_platform_images/ios/Classes/IosPlatformImagesPlugin.h
+++ b/packages/ios_platform_images/ios/Classes/IosPlatformImagesPlugin.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
/// A plugin for Flutter that allows Flutter to load images in a platform
diff --git a/packages/ios_platform_images/ios/Classes/IosPlatformImagesPlugin.m b/packages/ios_platform_images/ios/Classes/IosPlatformImagesPlugin.m
index bad6f11..151c418 100644
--- a/packages/ios_platform_images/ios/Classes/IosPlatformImagesPlugin.m
+++ b/packages/ios_platform_images/ios/Classes/IosPlatformImagesPlugin.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import "IosPlatformImagesPlugin.h"
#if !__has_feature(objc_arc)
diff --git a/packages/local_auth/example/android/app/src/androidTest/java/io/flutter/plugins/localauth/EmbeddingV1ActivityTest.java b/packages/local_auth/example/android/app/src/androidTest/java/io/flutter/plugins/localauth/EmbeddingV1ActivityTest.java
index 30d2126..dc28926 100644
--- a/packages/local_auth/example/android/app/src/androidTest/java/io/flutter/plugins/localauth/EmbeddingV1ActivityTest.java
+++ b/packages/local_auth/example/android/app/src/androidTest/java/io/flutter/plugins/localauth/EmbeddingV1ActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.localauth;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/local_auth/example/android/app/src/androidTest/java/io/flutter/plugins/localauth/FlutterFragmentActivityTest.java b/packages/local_auth/example/android/app/src/androidTest/java/io/flutter/plugins/localauth/FlutterFragmentActivityTest.java
index 3d2d55b..ebaf3cc 100644
--- a/packages/local_auth/example/android/app/src/androidTest/java/io/flutter/plugins/localauth/FlutterFragmentActivityTest.java
+++ b/packages/local_auth/example/android/app/src/androidTest/java/io/flutter/plugins/localauth/FlutterFragmentActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.localauth;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/local_auth/example/android/app/src/main/java/io/flutter/plugins/localauthexample/EmbeddingV1Activity.java b/packages/local_auth/example/android/app/src/main/java/io/flutter/plugins/localauthexample/EmbeddingV1Activity.java
index 91bef9d..83af839 100644
--- a/packages/local_auth/example/android/app/src/main/java/io/flutter/plugins/localauthexample/EmbeddingV1Activity.java
+++ b/packages/local_auth/example/android/app/src/main/java/io/flutter/plugins/localauthexample/EmbeddingV1Activity.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.localauthexample;
import android.os.Bundle;
diff --git a/packages/local_auth/example/ios/Runner/main.m b/packages/local_auth/example/ios/Runner/main.m
index dff6597..f451b14 100644
--- a/packages/local_auth/example/ios/Runner/main.m
+++ b/packages/local_auth/example/ios/Runner/main.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
diff --git a/packages/package_info/example/integration_test/package_info_test.dart b/packages/package_info/example/integration_test/package_info_test.dart
index e70c8a5..75bae13 100644
--- a/packages/package_info/example/integration_test/package_info_test.dart
+++ b/packages/package_info/example/integration_test/package_info_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/package_info/example/macos/Runner/AppDelegate.swift b/packages/package_info/example/macos/Runner/AppDelegate.swift
index d53ef64..ca19fe9 100644
--- a/packages/package_info/example/macos/Runner/AppDelegate.swift
+++ b/packages/package_info/example/macos/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/package_info/example/macos/Runner/MainFlutterWindow.swift b/packages/package_info/example/macos/Runner/MainFlutterWindow.swift
index 2722837..2ce11b7 100644
--- a/packages/package_info/example/macos/Runner/MainFlutterWindow.swift
+++ b/packages/package_info/example/macos/Runner/MainFlutterWindow.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/package_info/example/test_driver/integration_test.dart b/packages/package_info/example/test_driver/integration_test.dart
index 437b360..a2977d3 100644
--- a/packages/package_info/example/test_driver/integration_test.dart
+++ b/packages/package_info/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/path_provider/path_provider/android/src/main/java/io/flutter/plugins/pathprovider/StorageDirectoryMapper.java b/packages/path_provider/path_provider/android/src/main/java/io/flutter/plugins/pathprovider/StorageDirectoryMapper.java
index 820509b..c41b81d 100644
--- a/packages/path_provider/path_provider/android/src/main/java/io/flutter/plugins/pathprovider/StorageDirectoryMapper.java
+++ b/packages/path_provider/path_provider/android/src/main/java/io/flutter/plugins/pathprovider/StorageDirectoryMapper.java
@@ -1,3 +1,7 @@
+// Copyright 2019 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.pathprovider;
import android.os.Build.VERSION;
@@ -6,7 +10,6 @@
/** Helps to map the Dart `StorageDirectory` enum to a Android system constant. */
class StorageDirectoryMapper {
-
/**
* Return a Android Environment constant for a Dart Index.
*
diff --git a/packages/path_provider/path_provider/android/src/test/java/io/flutter/plugins/pathprovider/StorageDirectoryMapperTest.java b/packages/path_provider/path_provider/android/src/test/java/io/flutter/plugins/pathprovider/StorageDirectoryMapperTest.java
index 74a4e6d..2df4497 100644
--- a/packages/path_provider/path_provider/android/src/test/java/io/flutter/plugins/pathprovider/StorageDirectoryMapperTest.java
+++ b/packages/path_provider/path_provider/android/src/test/java/io/flutter/plugins/pathprovider/StorageDirectoryMapperTest.java
@@ -1,3 +1,7 @@
+// Copyright 2019 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.pathprovider;
import static org.junit.Assert.assertEquals;
@@ -8,7 +12,6 @@
import org.junit.Test;
public class StorageDirectoryMapperTest {
-
@org.junit.Test
public void testAndroidType_null() {
assertNull(StorageDirectoryMapper.androidType(null));
diff --git a/packages/path_provider/path_provider/example/android/app/src/androidTest/java/EmbeddingV1ActivityTest.java b/packages/path_provider/path_provider/example/android/app/src/androidTest/java/EmbeddingV1ActivityTest.java
index 385740d..9292edb 100644
--- a/packages/path_provider/path_provider/example/android/app/src/androidTest/java/EmbeddingV1ActivityTest.java
+++ b/packages/path_provider/path_provider/example/android/app/src/androidTest/java/EmbeddingV1ActivityTest.java
@@ -1,3 +1,6 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
package io.flutter.plugins.pathprovider;
diff --git a/packages/path_provider/path_provider/example/android/app/src/androidTest/java/MainActivityTest.java b/packages/path_provider/path_provider/example/android/app/src/androidTest/java/MainActivityTest.java
index a99767c..986e3a4 100644
--- a/packages/path_provider/path_provider/example/android/app/src/androidTest/java/MainActivityTest.java
+++ b/packages/path_provider/path_provider/example/android/app/src/androidTest/java/MainActivityTest.java
@@ -1,3 +1,6 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
package io.flutter.plugins.pathprovider;
diff --git a/packages/path_provider/path_provider/example/android/app/src/main/java/io/flutter/plugins/pathproviderexample/EmbeddingV1Activity.java b/packages/path_provider/path_provider/example/android/app/src/main/java/io/flutter/plugins/pathproviderexample/EmbeddingV1Activity.java
index 2ff41b2..2853fb3 100644
--- a/packages/path_provider/path_provider/example/android/app/src/main/java/io/flutter/plugins/pathproviderexample/EmbeddingV1Activity.java
+++ b/packages/path_provider/path_provider/example/android/app/src/main/java/io/flutter/plugins/pathproviderexample/EmbeddingV1Activity.java
@@ -1,3 +1,6 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
package io.flutter.plugins.pathproviderexample;
diff --git a/packages/path_provider/path_provider/example/integration_test/path_provider_test.dart b/packages/path_provider/path_provider/example/integration_test/path_provider_test.dart
index 2b12c82..cb0b874 100644
--- a/packages/path_provider/path_provider/example/integration_test/path_provider_test.dart
+++ b/packages/path_provider/path_provider/example/integration_test/path_provider_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/path_provider/path_provider/example/linux/main.cc b/packages/path_provider/path_provider/example/linux/main.cc
index 10835ac..a15afa0 100644
--- a/packages/path_provider/path_provider/example/linux/main.cc
+++ b/packages/path_provider/path_provider/example/linux/main.cc
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
int main(int argc, char** argv) {
diff --git a/packages/path_provider/path_provider/example/linux/my_application.cc b/packages/path_provider/path_provider/example/linux/my_application.cc
index 67ed0b9..3843c07 100644
--- a/packages/path_provider/path_provider/example/linux/my_application.cc
+++ b/packages/path_provider/path_provider/example/linux/my_application.cc
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
diff --git a/packages/path_provider/path_provider/example/linux/my_application.h b/packages/path_provider/path_provider/example/linux/my_application.h
index 72271d5..abbdf12 100644
--- a/packages/path_provider/path_provider/example/linux/my_application.h
+++ b/packages/path_provider/path_provider/example/linux/my_application.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef FLUTTER_MY_APPLICATION_H_
#define FLUTTER_MY_APPLICATION_H_
diff --git a/packages/path_provider/path_provider/example/macos/Runner/AppDelegate.swift b/packages/path_provider/path_provider/example/macos/Runner/AppDelegate.swift
index d53ef64..ca19fe9 100644
--- a/packages/path_provider/path_provider/example/macos/Runner/AppDelegate.swift
+++ b/packages/path_provider/path_provider/example/macos/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/path_provider/path_provider/example/macos/Runner/MainFlutterWindow.swift b/packages/path_provider/path_provider/example/macos/Runner/MainFlutterWindow.swift
index 2722837..2ce11b7 100644
--- a/packages/path_provider/path_provider/example/macos/Runner/MainFlutterWindow.swift
+++ b/packages/path_provider/path_provider/example/macos/Runner/MainFlutterWindow.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/path_provider/path_provider/example/test_driver/integration_test.dart b/packages/path_provider/path_provider/example/test_driver/integration_test.dart
index ac106b6..a82b5fb 100644
--- a/packages/path_provider/path_provider/example/test_driver/integration_test.dart
+++ b/packages/path_provider/path_provider/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/path_provider/path_provider/example/windows/runner/flutter_window.cpp b/packages/path_provider/path_provider/example/windows/runner/flutter_window.cpp
index c422723..dd2e3cc 100644
--- a/packages/path_provider/path_provider/example/windows/runner/flutter_window.cpp
+++ b/packages/path_provider/path_provider/example/windows/runner/flutter_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "flutter_window.h"
#include <optional>
diff --git a/packages/path_provider/path_provider/example/windows/runner/flutter_window.h b/packages/path_provider/path_provider/example/windows/runner/flutter_window.h
index b663ddd..9b4ef08 100644
--- a/packages/path_provider/path_provider/example/windows/runner/flutter_window.h
+++ b/packages/path_provider/path_provider/example/windows/runner/flutter_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_FLUTTER_WINDOW_H_
#define RUNNER_FLUTTER_WINDOW_H_
diff --git a/packages/path_provider/path_provider/example/windows/runner/main.cpp b/packages/path_provider/path_provider/example/windows/runner/main.cpp
index fc17fec..e74157e 100644
--- a/packages/path_provider/path_provider/example/windows/runner/main.cpp
+++ b/packages/path_provider/path_provider/example/windows/runner/main.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <windows.h>
diff --git a/packages/path_provider/path_provider/example/windows/runner/run_loop.cpp b/packages/path_provider/path_provider/example/windows/runner/run_loop.cpp
index 2d6636a..ee2e2fd 100644
--- a/packages/path_provider/path_provider/example/windows/runner/run_loop.cpp
+++ b/packages/path_provider/path_provider/example/windows/runner/run_loop.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "run_loop.h"
#include <windows.h>
diff --git a/packages/path_provider/path_provider/example/windows/runner/run_loop.h b/packages/path_provider/path_provider/example/windows/runner/run_loop.h
index 5f2c4a9..a24c47f 100644
--- a/packages/path_provider/path_provider/example/windows/runner/run_loop.h
+++ b/packages/path_provider/path_provider/example/windows/runner/run_loop.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_RUN_LOOP_H_
#define RUNNER_RUN_LOOP_H_
diff --git a/packages/path_provider/path_provider/example/windows/runner/utils.cpp b/packages/path_provider/path_provider/example/windows/runner/utils.cpp
index 37501e5..9eba364 100644
--- a/packages/path_provider/path_provider/example/windows/runner/utils.cpp
+++ b/packages/path_provider/path_provider/example/windows/runner/utils.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "utils.h"
#include <flutter_windows.h>
diff --git a/packages/path_provider/path_provider/example/windows/runner/utils.h b/packages/path_provider/path_provider/example/windows/runner/utils.h
index d792603..640587e 100644
--- a/packages/path_provider/path_provider/example/windows/runner/utils.h
+++ b/packages/path_provider/path_provider/example/windows/runner/utils.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_UTILS_H_
#define RUNNER_UTILS_H_
diff --git a/packages/path_provider/path_provider/example/windows/runner/win32_window.cpp b/packages/path_provider/path_provider/example/windows/runner/win32_window.cpp
index c63ad01..9762817 100644
--- a/packages/path_provider/path_provider/example/windows/runner/win32_window.cpp
+++ b/packages/path_provider/path_provider/example/windows/runner/win32_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "win32_window.h"
#include <flutter_windows.h>
diff --git a/packages/path_provider/path_provider/example/windows/runner/win32_window.h b/packages/path_provider/path_provider/example/windows/runner/win32_window.h
index 4ae64a1..59b7838 100644
--- a/packages/path_provider/path_provider/example/windows/runner/win32_window.h
+++ b/packages/path_provider/path_provider/example/windows/runner/win32_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_WIN32_WINDOW_H_
#define RUNNER_WIN32_WINDOW_H_
diff --git a/packages/path_provider/path_provider_linux/example/integration_test/path_provider_test.dart b/packages/path_provider/path_provider_linux/example/integration_test/path_provider_test.dart
index d08b387..6cd1940 100644
--- a/packages/path_provider/path_provider_linux/example/integration_test/path_provider_test.dart
+++ b/packages/path_provider/path_provider_linux/example/integration_test/path_provider_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/path_provider/path_provider_linux/example/lib/main.dart b/packages/path_provider/path_provider_linux/example/lib/main.dart
index 6958ed1..bd1c80a 100644
--- a/packages/path_provider/path_provider_linux/example/lib/main.dart
+++ b/packages/path_provider/path_provider_linux/example/lib/main.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter/material.dart';
import 'dart:async';
diff --git a/packages/path_provider/path_provider_linux/example/linux/main.cc b/packages/path_provider/path_provider_linux/example/linux/main.cc
index 10835ac..a15afa0 100644
--- a/packages/path_provider/path_provider_linux/example/linux/main.cc
+++ b/packages/path_provider/path_provider_linux/example/linux/main.cc
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
int main(int argc, char** argv) {
diff --git a/packages/path_provider/path_provider_linux/example/linux/my_application.cc b/packages/path_provider/path_provider_linux/example/linux/my_application.cc
index 67ed0b9..3843c07 100644
--- a/packages/path_provider/path_provider_linux/example/linux/my_application.cc
+++ b/packages/path_provider/path_provider_linux/example/linux/my_application.cc
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
diff --git a/packages/path_provider/path_provider_linux/example/linux/my_application.h b/packages/path_provider/path_provider_linux/example/linux/my_application.h
index 72271d5..b3d6244 100644
--- a/packages/path_provider/path_provider_linux/example/linux/my_application.h
+++ b/packages/path_provider/path_provider_linux/example/linux/my_application.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef FLUTTER_MY_APPLICATION_H_
#define FLUTTER_MY_APPLICATION_H_
diff --git a/packages/path_provider/path_provider_linux/example/test/widget_test.dart b/packages/path_provider/path_provider_linux/example/test/widget_test.dart
index 086b6d6..e25ebe3 100644
--- a/packages/path_provider/path_provider_linux/example/test/widget_test.dart
+++ b/packages/path_provider/path_provider_linux/example/test/widget_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
diff --git a/packages/path_provider/path_provider_linux/example/test_driver/integration_test.dart b/packages/path_provider/path_provider_linux/example/test_driver/integration_test.dart
index ac106b6..a82b5fb 100644
--- a/packages/path_provider/path_provider_linux/example/test_driver/integration_test.dart
+++ b/packages/path_provider/path_provider_linux/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/path_provider/path_provider_macos/example/integration_test/path_provider_test.dart b/packages/path_provider/path_provider_macos/example/integration_test/path_provider_test.dart
index 1bb0790..10be231 100644
--- a/packages/path_provider/path_provider_macos/example/integration_test/path_provider_test.dart
+++ b/packages/path_provider/path_provider_macos/example/integration_test/path_provider_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/path_provider/path_provider_macos/example/macos/Runner/AppDelegate.swift b/packages/path_provider/path_provider_macos/example/macos/Runner/AppDelegate.swift
index d53ef64..ca19fe9 100644
--- a/packages/path_provider/path_provider_macos/example/macos/Runner/AppDelegate.swift
+++ b/packages/path_provider/path_provider_macos/example/macos/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/path_provider/path_provider_macos/example/macos/Runner/MainFlutterWindow.swift b/packages/path_provider/path_provider_macos/example/macos/Runner/MainFlutterWindow.swift
index 2722837..2ce11b7 100644
--- a/packages/path_provider/path_provider_macos/example/macos/Runner/MainFlutterWindow.swift
+++ b/packages/path_provider/path_provider_macos/example/macos/Runner/MainFlutterWindow.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/path_provider/path_provider_macos/example/test_driver/integration_test.dart b/packages/path_provider/path_provider_macos/example/test_driver/integration_test.dart
index ac106b6..a82b5fb 100644
--- a/packages/path_provider/path_provider_macos/example/test_driver/integration_test.dart
+++ b/packages/path_provider/path_provider_macos/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/path_provider/path_provider_platform_interface/lib/src/enums.dart b/packages/path_provider/path_provider_platform_interface/lib/src/enums.dart
index c97ef5d..f563b5e 100644
--- a/packages/path_provider/path_provider_platform_interface/lib/src/enums.dart
+++ b/packages/path_provider/path_provider_platform_interface/lib/src/enums.dart
@@ -1,3 +1,7 @@
+// Copyright 2020 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
/// Corresponds to constants defined in Androids `android.os.Environment` class.
///
/// https://developer.android.com/reference/android/os/Environment.html#fields_1
diff --git a/packages/path_provider/path_provider_windows/example/integration_test/path_provider_test.dart b/packages/path_provider/path_provider_windows/example/integration_test/path_provider_test.dart
index 0953fc1..0d521a5 100644
--- a/packages/path_provider/path_provider_windows/example/integration_test/path_provider_test.dart
+++ b/packages/path_provider/path_provider_windows/example/integration_test/path_provider_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/path_provider/path_provider_windows/example/test_driver/integration_test.dart b/packages/path_provider/path_provider_windows/example/test_driver/integration_test.dart
index ac106b6..a82b5fb 100644
--- a/packages/path_provider/path_provider_windows/example/test_driver/integration_test.dart
+++ b/packages/path_provider/path_provider_windows/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/path_provider/path_provider_windows/example/windows/runner/flutter_window.cpp b/packages/path_provider/path_provider_windows/example/windows/runner/flutter_window.cpp
index c422723..b7d078e 100644
--- a/packages/path_provider/path_provider_windows/example/windows/runner/flutter_window.cpp
+++ b/packages/path_provider/path_provider_windows/example/windows/runner/flutter_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "flutter_window.h"
#include <optional>
diff --git a/packages/path_provider/path_provider_windows/example/windows/runner/flutter_window.h b/packages/path_provider/path_provider_windows/example/windows/runner/flutter_window.h
index b663ddd..9b4ef08 100644
--- a/packages/path_provider/path_provider_windows/example/windows/runner/flutter_window.h
+++ b/packages/path_provider/path_provider_windows/example/windows/runner/flutter_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_FLUTTER_WINDOW_H_
#define RUNNER_FLUTTER_WINDOW_H_
diff --git a/packages/path_provider/path_provider_windows/example/windows/runner/main.cpp b/packages/path_provider/path_provider_windows/example/windows/runner/main.cpp
index fc17fec..e74157e 100644
--- a/packages/path_provider/path_provider_windows/example/windows/runner/main.cpp
+++ b/packages/path_provider/path_provider_windows/example/windows/runner/main.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <windows.h>
diff --git a/packages/path_provider/path_provider_windows/example/windows/runner/run_loop.cpp b/packages/path_provider/path_provider_windows/example/windows/runner/run_loop.cpp
index 2d6636a..ee2e2fd 100644
--- a/packages/path_provider/path_provider_windows/example/windows/runner/run_loop.cpp
+++ b/packages/path_provider/path_provider_windows/example/windows/runner/run_loop.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "run_loop.h"
#include <windows.h>
diff --git a/packages/path_provider/path_provider_windows/example/windows/runner/run_loop.h b/packages/path_provider/path_provider_windows/example/windows/runner/run_loop.h
index 5f2c4a9..a24c47f 100644
--- a/packages/path_provider/path_provider_windows/example/windows/runner/run_loop.h
+++ b/packages/path_provider/path_provider_windows/example/windows/runner/run_loop.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_RUN_LOOP_H_
#define RUNNER_RUN_LOOP_H_
diff --git a/packages/path_provider/path_provider_windows/example/windows/runner/utils.cpp b/packages/path_provider/path_provider_windows/example/windows/runner/utils.cpp
index 37501e5..9eba364 100644
--- a/packages/path_provider/path_provider_windows/example/windows/runner/utils.cpp
+++ b/packages/path_provider/path_provider_windows/example/windows/runner/utils.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "utils.h"
#include <flutter_windows.h>
diff --git a/packages/path_provider/path_provider_windows/example/windows/runner/utils.h b/packages/path_provider/path_provider_windows/example/windows/runner/utils.h
index d792603..640587e 100644
--- a/packages/path_provider/path_provider_windows/example/windows/runner/utils.h
+++ b/packages/path_provider/path_provider_windows/example/windows/runner/utils.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_UTILS_H_
#define RUNNER_UTILS_H_
diff --git a/packages/path_provider/path_provider_windows/example/windows/runner/win32_window.cpp b/packages/path_provider/path_provider_windows/example/windows/runner/win32_window.cpp
index c63ad01..9762817 100644
--- a/packages/path_provider/path_provider_windows/example/windows/runner/win32_window.cpp
+++ b/packages/path_provider/path_provider_windows/example/windows/runner/win32_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "win32_window.h"
#include <flutter_windows.h>
diff --git a/packages/path_provider/path_provider_windows/example/windows/runner/win32_window.h b/packages/path_provider/path_provider_windows/example/windows/runner/win32_window.h
index 4ae64a1..59b7838 100644
--- a/packages/path_provider/path_provider_windows/example/windows/runner/win32_window.h
+++ b/packages/path_provider/path_provider_windows/example/windows/runner/win32_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_WIN32_WINDOW_H_
#define RUNNER_WIN32_WINDOW_H_
diff --git a/packages/quick_actions/example/integration_test/quick_actions_test.dart b/packages/quick_actions/example/integration_test/quick_actions_test.dart
index 43822c9..bad84de 100644
--- a/packages/quick_actions/example/integration_test/quick_actions_test.dart
+++ b/packages/quick_actions/example/integration_test/quick_actions_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
import 'package:flutter_test/flutter_test.dart';
diff --git a/packages/quick_actions/example/test_driver/integration_test.dart b/packages/quick_actions/example/test_driver/integration_test.dart
index 0352d4a..6332de2 100644
--- a/packages/quick_actions/example/test_driver/integration_test.dart
+++ b/packages/quick_actions/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
import 'dart:async';
diff --git a/packages/sensors/example/android/app/src/main/java/io/flutter/plugins/sensorsexample/EmbeddingV1ActivityTest.java b/packages/sensors/example/android/app/src/main/java/io/flutter/plugins/sensorsexample/EmbeddingV1ActivityTest.java
index 65a4dca..9760ef0 100644
--- a/packages/sensors/example/android/app/src/main/java/io/flutter/plugins/sensorsexample/EmbeddingV1ActivityTest.java
+++ b/packages/sensors/example/android/app/src/main/java/io/flutter/plugins/sensorsexample/EmbeddingV1ActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.sensorsexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/sensors/example/ios/Runner/AppDelegate.h b/packages/sensors/example/ios/Runner/AppDelegate.h
index 36e21bb..31fc381 100644
--- a/packages/sensors/example/ios/Runner/AppDelegate.h
+++ b/packages/sensors/example/ios/Runner/AppDelegate.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
diff --git a/packages/sensors/example/ios/Runner/AppDelegate.m b/packages/sensors/example/ios/Runner/AppDelegate.m
index 59a72e9..2147d3d 100644
--- a/packages/sensors/example/ios/Runner/AppDelegate.m
+++ b/packages/sensors/example/ios/Runner/AppDelegate.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
diff --git a/packages/sensors/example/ios/Runner/main.m b/packages/sensors/example/ios/Runner/main.m
index dff6597..f451b14 100644
--- a/packages/sensors/example/ios/Runner/main.m
+++ b/packages/sensors/example/ios/Runner/main.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
diff --git a/packages/sensors/example/test_driver/test/integration_test.dart b/packages/sensors/example/test_driver/test/integration_test.dart
index a8a56aa..c62ef5d 100644
--- a/packages/sensors/example/test_driver/test/integration_test.dart
+++ b/packages/sensors/example/test_driver/test/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/sensors/integration_test/sensors_test.dart b/packages/sensors/integration_test/sensors_test.dart
index 348bda0..5ae1596 100644
--- a/packages/sensors/integration_test/sensors_test.dart
+++ b/packages/sensors/integration_test/sensors_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/share/example/android/app/src/main/java/io/flutter/plugins/shareexample/EmbeddingV1ActivityTest.java b/packages/share/example/android/app/src/main/java/io/flutter/plugins/shareexample/EmbeddingV1ActivityTest.java
index 489b224..77bc7ce 100644
--- a/packages/share/example/android/app/src/main/java/io/flutter/plugins/shareexample/EmbeddingV1ActivityTest.java
+++ b/packages/share/example/android/app/src/main/java/io/flutter/plugins/shareexample/EmbeddingV1ActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.shareexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/share/example/lib/image_previews.dart b/packages/share/example/lib/image_previews.dart
index 9070749..7298ed4 100644
--- a/packages/share/example/lib/image_previews.dart
+++ b/packages/share/example/lib/image_previews.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:io';
import 'package:flutter/material.dart';
diff --git a/packages/share/example/test_driver/test/integration_test.dart b/packages/share/example/test_driver/test/integration_test.dart
index a8a56aa..c62ef5d 100644
--- a/packages/share/example/test_driver/test/integration_test.dart
+++ b/packages/share/example/test_driver/test/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/share/integration_test/share_test.dart b/packages/share/integration_test/share_test.dart
index 7b66480..a6a2ddb 100644
--- a/packages/share/integration_test/share_test.dart
+++ b/packages/share/integration_test/share_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/shared_preferences/shared_preferences/example/ios/Runner/AppDelegate.swift b/packages/shared_preferences/shared_preferences/example/ios/Runner/AppDelegate.swift
index 70693e4..f26669f 100644
--- a/packages/shared_preferences/shared_preferences/example/ios/Runner/AppDelegate.swift
+++ b/packages/shared_preferences/shared_preferences/example/ios/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import UIKit
import Flutter
diff --git a/packages/shared_preferences/shared_preferences/example/ios/Runner/Runner-Bridging-Header.h b/packages/shared_preferences/shared_preferences/example/ios/Runner/Runner-Bridging-Header.h
index 308a2a5..0592e2d 100644
--- a/packages/shared_preferences/shared_preferences/example/ios/Runner/Runner-Bridging-Header.h
+++ b/packages/shared_preferences/shared_preferences/example/ios/Runner/Runner-Bridging-Header.h
@@ -1 +1,5 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import "GeneratedPluginRegistrant.h"
diff --git a/packages/shared_preferences/shared_preferences/example/linux/main.cc b/packages/shared_preferences/shared_preferences/example/linux/main.cc
index 10835ac..a15afa0 100644
--- a/packages/shared_preferences/shared_preferences/example/linux/main.cc
+++ b/packages/shared_preferences/shared_preferences/example/linux/main.cc
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
int main(int argc, char** argv) {
diff --git a/packages/shared_preferences/shared_preferences/example/linux/my_application.cc b/packages/shared_preferences/shared_preferences/example/linux/my_application.cc
index 67ed0b9..3843c07 100644
--- a/packages/shared_preferences/shared_preferences/example/linux/my_application.cc
+++ b/packages/shared_preferences/shared_preferences/example/linux/my_application.cc
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
diff --git a/packages/shared_preferences/shared_preferences/example/linux/my_application.h b/packages/shared_preferences/shared_preferences/example/linux/my_application.h
index 72271d5..abbdf12 100644
--- a/packages/shared_preferences/shared_preferences/example/linux/my_application.h
+++ b/packages/shared_preferences/shared_preferences/example/linux/my_application.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef FLUTTER_MY_APPLICATION_H_
#define FLUTTER_MY_APPLICATION_H_
diff --git a/packages/shared_preferences/shared_preferences/example/macos/Runner/AppDelegate.swift b/packages/shared_preferences/shared_preferences/example/macos/Runner/AppDelegate.swift
index d53ef64..ca19fe9 100644
--- a/packages/shared_preferences/shared_preferences/example/macos/Runner/AppDelegate.swift
+++ b/packages/shared_preferences/shared_preferences/example/macos/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/shared_preferences/shared_preferences/example/macos/Runner/MainFlutterWindow.swift b/packages/shared_preferences/shared_preferences/example/macos/Runner/MainFlutterWindow.swift
index 2722837..2ce11b7 100644
--- a/packages/shared_preferences/shared_preferences/example/macos/Runner/MainFlutterWindow.swift
+++ b/packages/shared_preferences/shared_preferences/example/macos/Runner/MainFlutterWindow.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/shared_preferences/shared_preferences/example/test_driver/integration_test.dart b/packages/shared_preferences/shared_preferences/example/test_driver/integration_test.dart
index ac106b6..a82b5fb 100644
--- a/packages/shared_preferences/shared_preferences/example/test_driver/integration_test.dart
+++ b/packages/shared_preferences/shared_preferences/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/shared_preferences/shared_preferences/example/web/index.html b/packages/shared_preferences/shared_preferences/example/web/index.html
index 6eff9a7..27464c3 100644
--- a/packages/shared_preferences/shared_preferences/example/web/index.html
+++ b/packages/shared_preferences/shared_preferences/example/web/index.html
@@ -1,4 +1,7 @@
<!DOCTYPE html>
+<!-- Copyright 2020 The Flutter Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file. -->
<html>
<head>
<meta charset="UTF-8">
diff --git a/packages/shared_preferences/shared_preferences/example/windows/runner/flutter_window.cpp b/packages/shared_preferences/shared_preferences/example/windows/runner/flutter_window.cpp
index c422723..dd2e3cc 100644
--- a/packages/shared_preferences/shared_preferences/example/windows/runner/flutter_window.cpp
+++ b/packages/shared_preferences/shared_preferences/example/windows/runner/flutter_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "flutter_window.h"
#include <optional>
diff --git a/packages/shared_preferences/shared_preferences/example/windows/runner/flutter_window.h b/packages/shared_preferences/shared_preferences/example/windows/runner/flutter_window.h
index b663ddd..a9d273e 100644
--- a/packages/shared_preferences/shared_preferences/example/windows/runner/flutter_window.h
+++ b/packages/shared_preferences/shared_preferences/example/windows/runner/flutter_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_FLUTTER_WINDOW_H_
#define RUNNER_FLUTTER_WINDOW_H_
diff --git a/packages/shared_preferences/shared_preferences/example/windows/runner/main.cpp b/packages/shared_preferences/shared_preferences/example/windows/runner/main.cpp
index fc17fec..40492ac 100644
--- a/packages/shared_preferences/shared_preferences/example/windows/runner/main.cpp
+++ b/packages/shared_preferences/shared_preferences/example/windows/runner/main.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <windows.h>
diff --git a/packages/shared_preferences/shared_preferences/example/windows/runner/run_loop.cpp b/packages/shared_preferences/shared_preferences/example/windows/runner/run_loop.cpp
index 2d6636a..4dd13b6 100644
--- a/packages/shared_preferences/shared_preferences/example/windows/runner/run_loop.cpp
+++ b/packages/shared_preferences/shared_preferences/example/windows/runner/run_loop.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "run_loop.h"
#include <windows.h>
diff --git a/packages/shared_preferences/shared_preferences/example/windows/runner/run_loop.h b/packages/shared_preferences/shared_preferences/example/windows/runner/run_loop.h
index 5f2c4a9..12aaab4 100644
--- a/packages/shared_preferences/shared_preferences/example/windows/runner/run_loop.h
+++ b/packages/shared_preferences/shared_preferences/example/windows/runner/run_loop.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_RUN_LOOP_H_
#define RUNNER_RUN_LOOP_H_
diff --git a/packages/shared_preferences/shared_preferences/example/windows/runner/utils.cpp b/packages/shared_preferences/shared_preferences/example/windows/runner/utils.cpp
index 37501e5..c408cb3 100644
--- a/packages/shared_preferences/shared_preferences/example/windows/runner/utils.cpp
+++ b/packages/shared_preferences/shared_preferences/example/windows/runner/utils.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "utils.h"
#include <flutter_windows.h>
diff --git a/packages/shared_preferences/shared_preferences/example/windows/runner/utils.h b/packages/shared_preferences/shared_preferences/example/windows/runner/utils.h
index d792603..2754c7a 100644
--- a/packages/shared_preferences/shared_preferences/example/windows/runner/utils.h
+++ b/packages/shared_preferences/shared_preferences/example/windows/runner/utils.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_UTILS_H_
#define RUNNER_UTILS_H_
diff --git a/packages/shared_preferences/shared_preferences/example/windows/runner/win32_window.cpp b/packages/shared_preferences/shared_preferences/example/windows/runner/win32_window.cpp
index c63ad01..878b64a 100644
--- a/packages/shared_preferences/shared_preferences/example/windows/runner/win32_window.cpp
+++ b/packages/shared_preferences/shared_preferences/example/windows/runner/win32_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "win32_window.h"
#include <flutter_windows.h>
diff --git a/packages/shared_preferences/shared_preferences/example/windows/runner/win32_window.h b/packages/shared_preferences/shared_preferences/example/windows/runner/win32_window.h
index 4ae64a1..99e24a5 100644
--- a/packages/shared_preferences/shared_preferences/example/windows/runner/win32_window.h
+++ b/packages/shared_preferences/shared_preferences/example/windows/runner/win32_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_WIN32_WINDOW_H_
#define RUNNER_WIN32_WINDOW_H_
diff --git a/packages/shared_preferences/shared_preferences_linux/example/linux/main.cc b/packages/shared_preferences/shared_preferences_linux/example/linux/main.cc
index e7c5c54..612325f 100644
--- a/packages/shared_preferences/shared_preferences_linux/example/linux/main.cc
+++ b/packages/shared_preferences/shared_preferences_linux/example/linux/main.cc
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
int main(int argc, char** argv) {
diff --git a/packages/shared_preferences/shared_preferences_linux/example/linux/my_application.cc b/packages/shared_preferences/shared_preferences_linux/example/linux/my_application.cc
index f079e19..a8f67cc 100644
--- a/packages/shared_preferences/shared_preferences_linux/example/linux/my_application.cc
+++ b/packages/shared_preferences/shared_preferences_linux/example/linux/my_application.cc
@@ -1,3 +1,7 @@
+// Copyright 2020 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
diff --git a/packages/shared_preferences/shared_preferences_linux/example/linux/my_application.h b/packages/shared_preferences/shared_preferences_linux/example/linux/my_application.h
index 72271d5..d1c3f9c 100644
--- a/packages/shared_preferences/shared_preferences_linux/example/linux/my_application.h
+++ b/packages/shared_preferences/shared_preferences_linux/example/linux/my_application.h
@@ -1,3 +1,7 @@
+// Copyright 2020 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef FLUTTER_MY_APPLICATION_H_
#define FLUTTER_MY_APPLICATION_H_
diff --git a/packages/shared_preferences/shared_preferences_linux/example/test_driver/integration_test.dart b/packages/shared_preferences/shared_preferences_linux/example/test_driver/integration_test.dart
index ac106b6..a82b5fb 100644
--- a/packages/shared_preferences/shared_preferences_linux/example/test_driver/integration_test.dart
+++ b/packages/shared_preferences/shared_preferences_linux/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/shared_preferences/shared_preferences_macos/example/integration_test/shared_preferences_test.dart b/packages/shared_preferences/shared_preferences_macos/example/integration_test/shared_preferences_test.dart
index 58b5946..94dee2d 100644
--- a/packages/shared_preferences/shared_preferences_macos/example/integration_test/shared_preferences_test.dart
+++ b/packages/shared_preferences/shared_preferences_macos/example/integration_test/shared_preferences_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2017, 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 2017, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/shared_preferences/shared_preferences_macos/example/macos/Runner/AppDelegate.swift b/packages/shared_preferences/shared_preferences_macos/example/macos/Runner/AppDelegate.swift
index d53ef64..ca19fe9 100644
--- a/packages/shared_preferences/shared_preferences_macos/example/macos/Runner/AppDelegate.swift
+++ b/packages/shared_preferences/shared_preferences_macos/example/macos/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/shared_preferences/shared_preferences_macos/example/macos/Runner/MainFlutterWindow.swift b/packages/shared_preferences/shared_preferences_macos/example/macos/Runner/MainFlutterWindow.swift
index 2722837..2ce11b7 100644
--- a/packages/shared_preferences/shared_preferences_macos/example/macos/Runner/MainFlutterWindow.swift
+++ b/packages/shared_preferences/shared_preferences_macos/example/macos/Runner/MainFlutterWindow.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/shared_preferences/shared_preferences_macos/example/test_driver/integration_test.dart b/packages/shared_preferences/shared_preferences_macos/example/test_driver/integration_test.dart
index ac106b6..a82b5fb 100644
--- a/packages/shared_preferences/shared_preferences_macos/example/test_driver/integration_test.dart
+++ b/packages/shared_preferences/shared_preferences_macos/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/shared_preferences/shared_preferences_windows/example/integration_test/shared_preferences_test.dart b/packages/shared_preferences/shared_preferences_windows/example/integration_test/shared_preferences_test.dart
index 027daa6..41fc5db 100644
--- a/packages/shared_preferences/shared_preferences_windows/example/integration_test/shared_preferences_test.dart
+++ b/packages/shared_preferences/shared_preferences_windows/example/integration_test/shared_preferences_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2017, 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 2017, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/shared_preferences/shared_preferences_windows/example/test_driver/integration_test.dart b/packages/shared_preferences/shared_preferences_windows/example/test_driver/integration_test.dart
index 353548e..5504f8c 100644
--- a/packages/shared_preferences/shared_preferences_windows/example/test_driver/integration_test.dart
+++ b/packages/shared_preferences/shared_preferences_windows/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2017, 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 2017, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart=2.9
diff --git a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/flutter_window.cpp b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/flutter_window.cpp
index c422723..dd2e3cc 100644
--- a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/flutter_window.cpp
+++ b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/flutter_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "flutter_window.h"
#include <optional>
diff --git a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/flutter_window.h b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/flutter_window.h
index b663ddd..a9d273e 100644
--- a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/flutter_window.h
+++ b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/flutter_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_FLUTTER_WINDOW_H_
#define RUNNER_FLUTTER_WINDOW_H_
diff --git a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/main.cpp b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/main.cpp
index fc17fec..40492ac 100644
--- a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/main.cpp
+++ b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/main.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <windows.h>
diff --git a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/run_loop.cpp b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/run_loop.cpp
index 2d6636a..4dd13b6 100644
--- a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/run_loop.cpp
+++ b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/run_loop.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "run_loop.h"
#include <windows.h>
diff --git a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/run_loop.h b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/run_loop.h
index 5f2c4a9..12aaab4 100644
--- a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/run_loop.h
+++ b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/run_loop.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_RUN_LOOP_H_
#define RUNNER_RUN_LOOP_H_
diff --git a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/utils.cpp b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/utils.cpp
index 37501e5..c408cb3 100644
--- a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/utils.cpp
+++ b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/utils.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "utils.h"
#include <flutter_windows.h>
diff --git a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/utils.h b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/utils.h
index d792603..2754c7a 100644
--- a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/utils.h
+++ b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/utils.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_UTILS_H_
#define RUNNER_UTILS_H_
diff --git a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/win32_window.cpp b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/win32_window.cpp
index c63ad01..878b64a 100644
--- a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/win32_window.cpp
+++ b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/win32_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "win32_window.h"
#include <flutter_windows.h>
diff --git a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/win32_window.h b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/win32_window.h
index 4ae64a1..99e24a5 100644
--- a/packages/shared_preferences/shared_preferences_windows/example/windows/runner/win32_window.h
+++ b/packages/shared_preferences/shared_preferences_windows/example/windows/runner/win32_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_WIN32_WINDOW_H_
#define RUNNER_WIN32_WINDOW_H_
diff --git a/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/MethodCallHandlerImpl.java b/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/MethodCallHandlerImpl.java
index 2ca6b7c..7a4b374 100644
--- a/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/MethodCallHandlerImpl.java
+++ b/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/MethodCallHandlerImpl.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.urllauncher;
import android.os.Bundle;
diff --git a/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncher.java b/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncher.java
index 44ecc33..a6f29e1 100644
--- a/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncher.java
+++ b/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncher.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.urllauncher;
import android.app.Activity;
diff --git a/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncherPlugin.java b/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncherPlugin.java
index 17af0ab..7919820 100644
--- a/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncherPlugin.java
+++ b/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncherPlugin.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.urllauncher;
import android.util.Log;
diff --git a/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/WebViewActivity.java b/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/WebViewActivity.java
index 7c6978f..160e24e 100644
--- a/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/WebViewActivity.java
+++ b/packages/url_launcher/url_launcher/android/src/main/java/io/flutter/plugins/urllauncher/WebViewActivity.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.urllauncher;
import android.annotation.TargetApi;
diff --git a/packages/url_launcher/url_launcher/android/src/test/java/io/flutter/plugins/urllauncher/MethodCallHandlerImplTest.java b/packages/url_launcher/url_launcher/android/src/test/java/io/flutter/plugins/urllauncher/MethodCallHandlerImplTest.java
index e759ded..e9d27e3 100644
--- a/packages/url_launcher/url_launcher/android/src/test/java/io/flutter/plugins/urllauncher/MethodCallHandlerImplTest.java
+++ b/packages/url_launcher/url_launcher/android/src/test/java/io/flutter/plugins/urllauncher/MethodCallHandlerImplTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.urllauncher;
import static org.mockito.Matchers.any;
diff --git a/packages/url_launcher/url_launcher/example/android/app/src/androidTestDebug/java/io/flutter/plugins/urllauncherexample/EmbeddingV1ActivityTest.java b/packages/url_launcher/url_launcher/example/android/app/src/androidTestDebug/java/io/flutter/plugins/urllauncherexample/EmbeddingV1ActivityTest.java
index b144786..9002012 100644
--- a/packages/url_launcher/url_launcher/example/android/app/src/androidTestDebug/java/io/flutter/plugins/urllauncherexample/EmbeddingV1ActivityTest.java
+++ b/packages/url_launcher/url_launcher/example/android/app/src/androidTestDebug/java/io/flutter/plugins/urllauncherexample/EmbeddingV1ActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.urllauncherexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/url_launcher/url_launcher/example/android/app/src/androidTestDebug/java/io/flutter/plugins/urllauncherexample/MainActivityTest.java b/packages/url_launcher/url_launcher/example/android/app/src/androidTestDebug/java/io/flutter/plugins/urllauncherexample/MainActivityTest.java
index 5b50523..7760741 100644
--- a/packages/url_launcher/url_launcher/example/android/app/src/androidTestDebug/java/io/flutter/plugins/urllauncherexample/MainActivityTest.java
+++ b/packages/url_launcher/url_launcher/example/android/app/src/androidTestDebug/java/io/flutter/plugins/urllauncherexample/MainActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.urllauncherexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/url_launcher/url_launcher/example/integration_test/url_launcher_test.dart b/packages/url_launcher/url_launcher/example/integration_test/url_launcher_test.dart
index 80d21b7..9e7b04b 100644
--- a/packages/url_launcher/url_launcher/example/integration_test/url_launcher_test.dart
+++ b/packages/url_launcher/url_launcher/example/integration_test/url_launcher_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// TODO(egarciad): Remove once integration_test is migrated to null safety.
// @dart = 2.9
diff --git a/packages/url_launcher/url_launcher/example/linux/main.cc b/packages/url_launcher/url_launcher/example/linux/main.cc
index e7c5c54..612325f 100644
--- a/packages/url_launcher/url_launcher/example/linux/main.cc
+++ b/packages/url_launcher/url_launcher/example/linux/main.cc
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
int main(int argc, char** argv) {
diff --git a/packages/url_launcher/url_launcher/example/linux/my_application.cc b/packages/url_launcher/url_launcher/example/linux/my_application.cc
index f079e19..1a873cd 100644
--- a/packages/url_launcher/url_launcher/example/linux/my_application.cc
+++ b/packages/url_launcher/url_launcher/example/linux/my_application.cc
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
diff --git a/packages/url_launcher/url_launcher/example/linux/my_application.h b/packages/url_launcher/url_launcher/example/linux/my_application.h
index 72271d5..b3d6244 100644
--- a/packages/url_launcher/url_launcher/example/linux/my_application.h
+++ b/packages/url_launcher/url_launcher/example/linux/my_application.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef FLUTTER_MY_APPLICATION_H_
#define FLUTTER_MY_APPLICATION_H_
diff --git a/packages/url_launcher/url_launcher/example/macos/Runner/AppDelegate.swift b/packages/url_launcher/url_launcher/example/macos/Runner/AppDelegate.swift
index d53ef64..ca19fe9 100644
--- a/packages/url_launcher/url_launcher/example/macos/Runner/AppDelegate.swift
+++ b/packages/url_launcher/url_launcher/example/macos/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/url_launcher/url_launcher/example/macos/Runner/MainFlutterWindow.swift b/packages/url_launcher/url_launcher/example/macos/Runner/MainFlutterWindow.swift
index 2722837..2ce11b7 100644
--- a/packages/url_launcher/url_launcher/example/macos/Runner/MainFlutterWindow.swift
+++ b/packages/url_launcher/url_launcher/example/macos/Runner/MainFlutterWindow.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/url_launcher/url_launcher/example/test_driver/integration_test.dart b/packages/url_launcher/url_launcher/example/test_driver/integration_test.dart
index e56756f..3e3caf8 100644
--- a/packages/url_launcher/url_launcher/example/test_driver/integration_test.dart
+++ b/packages/url_launcher/url_launcher/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// TODO(egarciad): Remove once flutter_driver is migrated to null safety.
// @dart = 2.9
diff --git a/packages/url_launcher/url_launcher/example/web/index.html b/packages/url_launcher/url_launcher/example/web/index.html
index 3d1872c2..1127c04 100644
--- a/packages/url_launcher/url_launcher/example/web/index.html
+++ b/packages/url_launcher/url_launcher/example/web/index.html
@@ -1,4 +1,7 @@
<!DOCTYPE html>
+<!-- Copyright 2020 The Flutter Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file. -->
<html>
<head>
<meta charset="UTF-8">
diff --git a/packages/url_launcher/url_launcher/example/windows/runner/flutter_window.cpp b/packages/url_launcher/url_launcher/example/windows/runner/flutter_window.cpp
index c422723..b7d078e 100644
--- a/packages/url_launcher/url_launcher/example/windows/runner/flutter_window.cpp
+++ b/packages/url_launcher/url_launcher/example/windows/runner/flutter_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "flutter_window.h"
#include <optional>
diff --git a/packages/url_launcher/url_launcher/example/windows/runner/flutter_window.h b/packages/url_launcher/url_launcher/example/windows/runner/flutter_window.h
index b663ddd..9b4ef08 100644
--- a/packages/url_launcher/url_launcher/example/windows/runner/flutter_window.h
+++ b/packages/url_launcher/url_launcher/example/windows/runner/flutter_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_FLUTTER_WINDOW_H_
#define RUNNER_FLUTTER_WINDOW_H_
diff --git a/packages/url_launcher/url_launcher/example/windows/runner/main.cpp b/packages/url_launcher/url_launcher/example/windows/runner/main.cpp
index fc17fec..e74157e 100644
--- a/packages/url_launcher/url_launcher/example/windows/runner/main.cpp
+++ b/packages/url_launcher/url_launcher/example/windows/runner/main.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <windows.h>
diff --git a/packages/url_launcher/url_launcher/example/windows/runner/run_loop.cpp b/packages/url_launcher/url_launcher/example/windows/runner/run_loop.cpp
index 2d6636a..ee2e2fd 100644
--- a/packages/url_launcher/url_launcher/example/windows/runner/run_loop.cpp
+++ b/packages/url_launcher/url_launcher/example/windows/runner/run_loop.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "run_loop.h"
#include <windows.h>
diff --git a/packages/url_launcher/url_launcher/example/windows/runner/run_loop.h b/packages/url_launcher/url_launcher/example/windows/runner/run_loop.h
index 5f2c4a9..a24c47f 100644
--- a/packages/url_launcher/url_launcher/example/windows/runner/run_loop.h
+++ b/packages/url_launcher/url_launcher/example/windows/runner/run_loop.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_RUN_LOOP_H_
#define RUNNER_RUN_LOOP_H_
diff --git a/packages/url_launcher/url_launcher/example/windows/runner/utils.cpp b/packages/url_launcher/url_launcher/example/windows/runner/utils.cpp
index 37501e5..9eba364 100644
--- a/packages/url_launcher/url_launcher/example/windows/runner/utils.cpp
+++ b/packages/url_launcher/url_launcher/example/windows/runner/utils.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "utils.h"
#include <flutter_windows.h>
diff --git a/packages/url_launcher/url_launcher/example/windows/runner/utils.h b/packages/url_launcher/url_launcher/example/windows/runner/utils.h
index d792603..640587e 100644
--- a/packages/url_launcher/url_launcher/example/windows/runner/utils.h
+++ b/packages/url_launcher/url_launcher/example/windows/runner/utils.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_UTILS_H_
#define RUNNER_UTILS_H_
diff --git a/packages/url_launcher/url_launcher/example/windows/runner/win32_window.cpp b/packages/url_launcher/url_launcher/example/windows/runner/win32_window.cpp
index c63ad01..9762817 100644
--- a/packages/url_launcher/url_launcher/example/windows/runner/win32_window.cpp
+++ b/packages/url_launcher/url_launcher/example/windows/runner/win32_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "win32_window.h"
#include <flutter_windows.h>
diff --git a/packages/url_launcher/url_launcher/example/windows/runner/win32_window.h b/packages/url_launcher/url_launcher/example/windows/runner/win32_window.h
index 4ae64a1..59b7838 100644
--- a/packages/url_launcher/url_launcher/example/windows/runner/win32_window.h
+++ b/packages/url_launcher/url_launcher/example/windows/runner/win32_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_WIN32_WINDOW_H_
#define RUNNER_WIN32_WINDOW_H_
diff --git a/packages/url_launcher/url_launcher_linux/example/integration_test/url_launcher_test.dart b/packages/url_launcher/url_launcher_linux/example/integration_test/url_launcher_test.dart
index e1008fd..aa668ed 100644
--- a/packages/url_launcher/url_launcher_linux/example/integration_test/url_launcher_test.dart
+++ b/packages/url_launcher/url_launcher_linux/example/integration_test/url_launcher_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/url_launcher/url_launcher_linux/example/linux/main.cc b/packages/url_launcher/url_launcher_linux/example/linux/main.cc
index e7c5c54..612325f 100644
--- a/packages/url_launcher/url_launcher_linux/example/linux/main.cc
+++ b/packages/url_launcher/url_launcher_linux/example/linux/main.cc
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
int main(int argc, char** argv) {
diff --git a/packages/url_launcher/url_launcher_linux/example/linux/my_application.cc b/packages/url_launcher/url_launcher_linux/example/linux/my_application.cc
index f079e19..1a873cd 100644
--- a/packages/url_launcher/url_launcher_linux/example/linux/my_application.cc
+++ b/packages/url_launcher/url_launcher_linux/example/linux/my_application.cc
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
diff --git a/packages/url_launcher/url_launcher_linux/example/linux/my_application.h b/packages/url_launcher/url_launcher_linux/example/linux/my_application.h
index 72271d5..b3d6244 100644
--- a/packages/url_launcher/url_launcher_linux/example/linux/my_application.h
+++ b/packages/url_launcher/url_launcher_linux/example/linux/my_application.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef FLUTTER_MY_APPLICATION_H_
#define FLUTTER_MY_APPLICATION_H_
diff --git a/packages/url_launcher/url_launcher_linux/example/test_driver/integration_test.dart b/packages/url_launcher/url_launcher_linux/example/test_driver/integration_test.dart
index a8a56aa..c62ef5d 100644
--- a/packages/url_launcher/url_launcher_linux/example/test_driver/integration_test.dart
+++ b/packages/url_launcher/url_launcher_linux/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/url_launcher/url_launcher_linux/lib/url_launcher_linux.dart b/packages/url_launcher/url_launcher_linux/lib/url_launcher_linux.dart
deleted file mode 100644
index 18f7af1..0000000
--- a/packages/url_launcher/url_launcher_linux/lib/url_launcher_linux.dart
+++ /dev/null
@@ -1,3 +0,0 @@
-// The url_launcher_platform_interface defaults to MethodChannelUrlLauncher
-// as its instance, which is all the Linux implementation needs. This file
-// is here to silence warnings when publishing to pub.
diff --git a/packages/url_launcher/url_launcher_macos/example/integration_test/url_launcher_test.dart b/packages/url_launcher/url_launcher_macos/example/integration_test/url_launcher_test.dart
index d0c1a8b..6775a63 100644
--- a/packages/url_launcher/url_launcher_macos/example/integration_test/url_launcher_test.dart
+++ b/packages/url_launcher/url_launcher_macos/example/integration_test/url_launcher_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/url_launcher/url_launcher_macos/example/macos/Runner/AppDelegate.swift b/packages/url_launcher/url_launcher_macos/example/macos/Runner/AppDelegate.swift
index d53ef64..ca19fe9 100644
--- a/packages/url_launcher/url_launcher_macos/example/macos/Runner/AppDelegate.swift
+++ b/packages/url_launcher/url_launcher_macos/example/macos/Runner/AppDelegate.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/url_launcher/url_launcher_macos/example/macos/Runner/MainFlutterWindow.swift b/packages/url_launcher/url_launcher_macos/example/macos/Runner/MainFlutterWindow.swift
index 2722837..2ce11b7 100644
--- a/packages/url_launcher/url_launcher_macos/example/macos/Runner/MainFlutterWindow.swift
+++ b/packages/url_launcher/url_launcher_macos/example/macos/Runner/MainFlutterWindow.swift
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import Cocoa
import FlutterMacOS
diff --git a/packages/url_launcher/url_launcher_macos/example/test_driver/integration_test.dart b/packages/url_launcher/url_launcher_macos/example/test_driver/integration_test.dart
index a8a56aa..c62ef5d 100644
--- a/packages/url_launcher/url_launcher_macos/example/test_driver/integration_test.dart
+++ b/packages/url_launcher/url_launcher_macos/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/url_launcher/url_launcher_macos/lib/url_launcher_macos.dart b/packages/url_launcher/url_launcher_macos/lib/url_launcher_macos.dart
deleted file mode 100644
index 5a1956c..0000000
--- a/packages/url_launcher/url_launcher_macos/lib/url_launcher_macos.dart
+++ /dev/null
@@ -1,3 +0,0 @@
-// The url_launcher_platform_interface defaults to MethodChannelUrlLauncher
-// as its instance, which is all the macOS implementation needs. This file
-// is here to silence warnings when publishing to pub.
diff --git a/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart b/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart
index 73d3bf3..7e72b5f 100644
--- a/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart
+++ b/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async' as _i4;
import 'dart:html' as _i2;
import 'dart:math' as _i5;
diff --git a/packages/url_launcher/url_launcher_web/example/run_test.sh b/packages/url_launcher/url_launcher_web/example/run_test.sh
index b243f29..5d23596 100755
--- a/packages/url_launcher/url_launcher_web/example/run_test.sh
+++ b/packages/url_launcher/url_launcher_web/example/run_test.sh
@@ -1,4 +1,8 @@
#!/usr/bin/bash
+# Copyright 2017 The Flutter Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
if pgrep -lf chromedriver > /dev/null; then
echo "chromedriver is running."
diff --git a/packages/url_launcher/url_launcher_web/test/tests_exist_elsewhere_test.dart b/packages/url_launcher/url_launcher_web/test/tests_exist_elsewhere_test.dart
index 334f521..11f9b24 100644
--- a/packages/url_launcher/url_launcher_web/test/tests_exist_elsewhere_test.dart
+++ b/packages/url_launcher/url_launcher_web/test/tests_exist_elsewhere_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:flutter_test/flutter_test.dart';
void main() {
diff --git a/packages/url_launcher/url_launcher_windows/example/integration_test/url_launcher_test.dart b/packages/url_launcher/url_launcher_windows/example/integration_test/url_launcher_test.dart
index e1008fd..aa668ed 100644
--- a/packages/url_launcher/url_launcher_windows/example/integration_test/url_launcher_test.dart
+++ b/packages/url_launcher/url_launcher_windows/example/integration_test/url_launcher_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/url_launcher/url_launcher_windows/example/test_driver/integration_test.dart b/packages/url_launcher/url_launcher_windows/example/test_driver/integration_test.dart
index a8a56aa..c62ef5d 100644
--- a/packages/url_launcher/url_launcher_windows/example/test_driver/integration_test.dart
+++ b/packages/url_launcher/url_launcher_windows/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/url_launcher/url_launcher_windows/example/windows/runner/flutter_window.cpp b/packages/url_launcher/url_launcher_windows/example/windows/runner/flutter_window.cpp
index c422723..b7d078e 100644
--- a/packages/url_launcher/url_launcher_windows/example/windows/runner/flutter_window.cpp
+++ b/packages/url_launcher/url_launcher_windows/example/windows/runner/flutter_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "flutter_window.h"
#include <optional>
diff --git a/packages/url_launcher/url_launcher_windows/example/windows/runner/flutter_window.h b/packages/url_launcher/url_launcher_windows/example/windows/runner/flutter_window.h
index b663ddd..9b4ef08 100644
--- a/packages/url_launcher/url_launcher_windows/example/windows/runner/flutter_window.h
+++ b/packages/url_launcher/url_launcher_windows/example/windows/runner/flutter_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_FLUTTER_WINDOW_H_
#define RUNNER_FLUTTER_WINDOW_H_
diff --git a/packages/url_launcher/url_launcher_windows/example/windows/runner/main.cpp b/packages/url_launcher/url_launcher_windows/example/windows/runner/main.cpp
index fc17fec..e74157e 100644
--- a/packages/url_launcher/url_launcher_windows/example/windows/runner/main.cpp
+++ b/packages/url_launcher/url_launcher_windows/example/windows/runner/main.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <windows.h>
diff --git a/packages/url_launcher/url_launcher_windows/example/windows/runner/run_loop.cpp b/packages/url_launcher/url_launcher_windows/example/windows/runner/run_loop.cpp
index 2d6636a..ee2e2fd 100644
--- a/packages/url_launcher/url_launcher_windows/example/windows/runner/run_loop.cpp
+++ b/packages/url_launcher/url_launcher_windows/example/windows/runner/run_loop.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "run_loop.h"
#include <windows.h>
diff --git a/packages/url_launcher/url_launcher_windows/example/windows/runner/run_loop.h b/packages/url_launcher/url_launcher_windows/example/windows/runner/run_loop.h
index 5f2c4a9..a24c47f 100644
--- a/packages/url_launcher/url_launcher_windows/example/windows/runner/run_loop.h
+++ b/packages/url_launcher/url_launcher_windows/example/windows/runner/run_loop.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_RUN_LOOP_H_
#define RUNNER_RUN_LOOP_H_
diff --git a/packages/url_launcher/url_launcher_windows/example/windows/runner/utils.cpp b/packages/url_launcher/url_launcher_windows/example/windows/runner/utils.cpp
index 37501e5..9eba364 100644
--- a/packages/url_launcher/url_launcher_windows/example/windows/runner/utils.cpp
+++ b/packages/url_launcher/url_launcher_windows/example/windows/runner/utils.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "utils.h"
#include <flutter_windows.h>
diff --git a/packages/url_launcher/url_launcher_windows/example/windows/runner/utils.h b/packages/url_launcher/url_launcher_windows/example/windows/runner/utils.h
index d792603..640587e 100644
--- a/packages/url_launcher/url_launcher_windows/example/windows/runner/utils.h
+++ b/packages/url_launcher/url_launcher_windows/example/windows/runner/utils.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_UTILS_H_
#define RUNNER_UTILS_H_
diff --git a/packages/url_launcher/url_launcher_windows/example/windows/runner/win32_window.cpp b/packages/url_launcher/url_launcher_windows/example/windows/runner/win32_window.cpp
index c63ad01..9762817 100644
--- a/packages/url_launcher/url_launcher_windows/example/windows/runner/win32_window.cpp
+++ b/packages/url_launcher/url_launcher_windows/example/windows/runner/win32_window.cpp
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "win32_window.h"
#include <flutter_windows.h>
diff --git a/packages/url_launcher/url_launcher_windows/example/windows/runner/win32_window.h b/packages/url_launcher/url_launcher_windows/example/windows/runner/win32_window.h
index 4ae64a1..59b7838 100644
--- a/packages/url_launcher/url_launcher_windows/example/windows/runner/win32_window.h
+++ b/packages/url_launcher/url_launcher_windows/example/windows/runner/win32_window.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#ifndef RUNNER_WIN32_WINDOW_H_
#define RUNNER_WIN32_WINDOW_H_
diff --git a/packages/url_launcher/url_launcher_windows/lib/url_launcher_windows.dart b/packages/url_launcher/url_launcher_windows/lib/url_launcher_windows.dart
deleted file mode 100644
index 83435f9..0000000
--- a/packages/url_launcher/url_launcher_windows/lib/url_launcher_windows.dart
+++ /dev/null
@@ -1,3 +0,0 @@
-// The url_launcher_platform_interface defaults to MethodChannelUrlLauncher
-// as its instance, which is all the Windows implementation needs. This file
-// is here to silence warnings when publishing to pub.
diff --git a/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/CustomSSLSocketFactory.java b/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/CustomSSLSocketFactory.java
index a7b609f..adccd2e 100644
--- a/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/CustomSSLSocketFactory.java
+++ b/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/CustomSSLSocketFactory.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.videoplayer;
import java.io.IOException;
diff --git a/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/Messages.java b/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/Messages.java
index 053e3fa..0d108ca 100644
--- a/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/Messages.java
+++ b/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/Messages.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// Autogenerated from Pigeon (v0.1.19), do not edit directly.
// See also: https://pub.dev/packages/pigeon
diff --git a/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java b/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java
index c3a3143..bba3016 100644
--- a/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java
+++ b/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.videoplayer;
import static com.google.android.exoplayer2.Player.REPEAT_MODE_ALL;
diff --git a/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerOptions.java b/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerOptions.java
index 7381f4a..fa51fbf 100644
--- a/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerOptions.java
+++ b/packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerOptions.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.videoplayer;
class VideoPlayerOptions {
diff --git a/packages/video_player/video_player/example/android/app/src/test/java/io/flutter/plugins/videoplayerexample/FlutterActivityTest.java b/packages/video_player/video_player/example/android/app/src/test/java/io/flutter/plugins/videoplayerexample/FlutterActivityTest.java
index 0286237..e62e70c 100644
--- a/packages/video_player/video_player/example/android/app/src/test/java/io/flutter/plugins/videoplayerexample/FlutterActivityTest.java
+++ b/packages/video_player/video_player/example/android/app/src/test/java/io/flutter/plugins/videoplayerexample/FlutterActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.videoplayerexample;
import static org.mockito.Mockito.mock;
diff --git a/packages/video_player/video_player/example/integration_test/video_player_test.dart b/packages/video_player/video_player/example/integration_test/video_player_test.dart
index 9e273e0..b39bb08 100644
--- a/packages/video_player/video_player/example/integration_test/video_player_test.dart
+++ b/packages/video_player/video_player/example/integration_test/video_player_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// TODO(amirh): Remove this once flutter_driver supports null safety.
// https://github.com/flutter/flutter/issues/71379
diff --git a/packages/video_player/video_player/example/test_driver/integration_test.dart b/packages/video_player/video_player/example/test_driver/integration_test.dart
index 7873aba..ca76cd8 100644
--- a/packages/video_player/video_player/example/test_driver/integration_test.dart
+++ b/packages/video_player/video_player/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// TODO(egarciad): Remove once Flutter driver is migrated to null safety.
// @dart = 2.9
diff --git a/packages/video_player/video_player/example/test_driver/video_player.dart b/packages/video_player/video_player/example/test_driver/video_player.dart
index c1ced19..b942d20 100644
--- a/packages/video_player/video_player/example/test_driver/video_player.dart
+++ b/packages/video_player/video_player/example/test_driver/video_player.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// TODO(egarciad): Remove once Flutter driver is migrated to null safety.
// @dart = 2.9
diff --git a/packages/video_player/video_player/example/test_driver/video_player_test.dart b/packages/video_player/video_player/example/test_driver/video_player_test.dart
index fcbdbb2..232a88d 100644
--- a/packages/video_player/video_player/example/test_driver/video_player_test.dart
+++ b/packages/video_player/video_player/example/test_driver/video_player_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// TODO(egarciad): Remove once Flutter driver is migrated to null safety.
// @dart = 2.9
diff --git a/packages/video_player/video_player/example/web/index.html b/packages/video_player/video_player/example/web/index.html
index b1c45bd..763ea66 100644
--- a/packages/video_player/video_player/example/web/index.html
+++ b/packages/video_player/video_player/example/web/index.html
@@ -1,4 +1,7 @@
<!DOCTYPE html>
+<!-- Copyright 2020 The Flutter Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file. -->
<html>
<head>
<meta charset="UTF-8">
diff --git a/packages/video_player/video_player/ios/Classes/messages.h b/packages/video_player/video_player/ios/Classes/messages.h
index 80137c9..8e2ae13 100644
--- a/packages/video_player/video_player/ios/Classes/messages.h
+++ b/packages/video_player/video_player/ios/Classes/messages.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// Autogenerated from Pigeon (v0.1.19), do not edit directly.
// See also: https://pub.dev/packages/pigeon
#import <Foundation/Foundation.h>
diff --git a/packages/video_player/video_player/ios/Classes/messages.m b/packages/video_player/video_player/ios/Classes/messages.m
index 3f787fc..368601b 100644
--- a/packages/video_player/video_player/ios/Classes/messages.m
+++ b/packages/video_player/video_player/ios/Classes/messages.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// Autogenerated from Pigeon (v0.1.19), do not edit directly.
// See also: https://pub.dev/packages/pigeon
#import "messages.h"
diff --git a/packages/video_player/video_player/pigeons/messages.dart b/packages/video_player/video_player/pigeons/messages.dart
index ebef9e5..33ca12e 100644
--- a/packages/video_player/video_player/pigeons/messages.dart
+++ b/packages/video_player/video_player/pigeons/messages.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// @dart = 2.9
import 'package:pigeon/pigeon_lib.dart';
diff --git a/packages/video_player/video_player_platform_interface/lib/messages.dart b/packages/video_player/video_player_platform_interface/lib/messages.dart
index dc5237f..96ff20e 100644
--- a/packages/video_player/video_player_platform_interface/lib/messages.dart
+++ b/packages/video_player/video_player_platform_interface/lib/messages.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// Autogenerated from Pigeon (v0.1.21), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import
diff --git a/packages/video_player/video_player_platform_interface/lib/test.dart b/packages/video_player/video_player_platform_interface/lib/test.dart
index 457a838..7365f6d 100644
--- a/packages/video_player/video_player_platform_interface/lib/test.dart
+++ b/packages/video_player/video_player_platform_interface/lib/test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
// Autogenerated from Pigeon (v0.1.21), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import
diff --git a/packages/video_player/video_player_web/lib/video_player_web.dart b/packages/video_player/video_player_web/lib/video_player_web.dart
index 18f9e5e..d22c8f4 100644
--- a/packages/video_player/video_player_web/lib/video_player_web.dart
+++ b/packages/video_player/video_player_web/lib/video_player_web.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:html';
import 'src/shims/dart_ui.dart' as ui;
diff --git a/packages/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter/DisplayListenerProxy.java b/packages/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter/DisplayListenerProxy.java
index 1273e73..e98c2b0 100644
--- a/packages/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter/DisplayListenerProxy.java
+++ b/packages/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter/DisplayListenerProxy.java
@@ -1,3 +1,7 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.webviewflutter;
import static android.hardware.display.DisplayManager.DisplayListener;
diff --git a/packages/webview_flutter/example/android/app/src/androidTestDebug/java/io/flutter/plugins/webviewflutterexample/EmbeddingV1ActivityTest.java b/packages/webview_flutter/example/android/app/src/androidTestDebug/java/io/flutter/plugins/webviewflutterexample/EmbeddingV1ActivityTest.java
index 07f9bf2..aebeb6d 100644
--- a/packages/webview_flutter/example/android/app/src/androidTestDebug/java/io/flutter/plugins/webviewflutterexample/EmbeddingV1ActivityTest.java
+++ b/packages/webview_flutter/example/android/app/src/androidTestDebug/java/io/flutter/plugins/webviewflutterexample/EmbeddingV1ActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.webviewflutterexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/webview_flutter/example/android/app/src/androidTestDebug/java/io/flutter/plugins/webviewflutterexample/MainActivityTest.java b/packages/webview_flutter/example/android/app/src/androidTestDebug/java/io/flutter/plugins/webviewflutterexample/MainActivityTest.java
index a9b1a94..e3d794e 100644
--- a/packages/webview_flutter/example/android/app/src/androidTestDebug/java/io/flutter/plugins/webviewflutterexample/MainActivityTest.java
+++ b/packages/webview_flutter/example/android/app/src/androidTestDebug/java/io/flutter/plugins/webviewflutterexample/MainActivityTest.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.webviewflutterexample;
import androidx.test.rule.ActivityTestRule;
diff --git a/packages/webview_flutter/example/integration_test/webview_flutter_test.dart b/packages/webview_flutter/example/integration_test/webview_flutter_test.dart
index d91ccc5..20391f7 100644
--- a/packages/webview_flutter/example/integration_test/webview_flutter_test.dart
+++ b/packages/webview_flutter/example/integration_test/webview_flutter_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/webview_flutter/example/test_driver/integration_test.dart b/packages/webview_flutter/example/test_driver/integration_test.dart
index a8a56aa..c62ef5d 100644
--- a/packages/webview_flutter/example/test_driver/integration_test.dart
+++ b/packages/webview_flutter/example/test_driver/integration_test.dart
@@ -1,6 +1,6 @@
-// Copyright 2019, 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 2019, the Chromium project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// @dart = 2.9
diff --git a/packages/wifi_info_flutter/wifi_info_flutter/example/android/app/src/main/java/io/flutter/plugins/wifi_info_flutter_example/MainActivity.java b/packages/wifi_info_flutter/wifi_info_flutter/example/android/app/src/main/java/io/flutter/plugins/wifi_info_flutter_example/MainActivity.java
index 87e41d0..f374766 100644
--- a/packages/wifi_info_flutter/wifi_info_flutter/example/android/app/src/main/java/io/flutter/plugins/wifi_info_flutter_example/MainActivity.java
+++ b/packages/wifi_info_flutter/wifi_info_flutter/example/android/app/src/main/java/io/flutter/plugins/wifi_info_flutter_example/MainActivity.java
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
package io.flutter.plugins.wifi_info_flutter_example;
import io.flutter.embedding.android.FlutterActivity;
diff --git a/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/AppDelegate.h b/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/AppDelegate.h
index 36e21bb..31fc381 100644
--- a/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/AppDelegate.h
+++ b/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/AppDelegate.h
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
diff --git a/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/AppDelegate.m b/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/AppDelegate.m
index 70e8393..558d1ad 100644
--- a/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/AppDelegate.m
+++ b/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/AppDelegate.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import "AppDelegate.h"
#import "GeneratedPluginRegistrant.h"
diff --git a/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/main.m b/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/main.m
index dff6597..f451b14 100644
--- a/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/main.m
+++ b/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Runner/main.m
@@ -1,3 +1,7 @@
+// Copyright 2017 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
diff --git a/script/build_all_plugins_app.sh b/script/build_all_plugins_app.sh
index 27726bd..cfd783e 100755
--- a/script/build_all_plugins_app.sh
+++ b/script/build_all_plugins_app.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
# Usage:
#
diff --git a/script/check_publish.sh b/script/check_publish.sh
index c92de4b..ead4aa3 100755
--- a/script/check_publish.sh
+++ b/script/check_publish.sh
@@ -1,4 +1,8 @@
#!/bin/bash
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
set -e
# This script checks to make sure that each of the plugins *could* be published.
diff --git a/script/common.sh b/script/common.sh
index 28c3754..9668688 100644
--- a/script/common.sh
+++ b/script/common.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
function error() {
echo "$@" 1>&2
diff --git a/script/incremental_build.sh b/script/incremental_build.sh
index 38a4d2d..b46f500 100755
--- a/script/incremental_build.sh
+++ b/script/incremental_build.sh
@@ -1,4 +1,8 @@
#!/bin/bash
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
set -e
readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
diff --git a/script/tool/lib/src/license_check_command.dart b/script/tool/lib/src/license_check_command.dart
new file mode 100644
index 0000000..4e0e593
--- /dev/null
+++ b/script/tool/lib/src/license_check_command.dart
@@ -0,0 +1,209 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'dart:async';
+
+import 'package:file/file.dart';
+import 'package:path/path.dart' as p;
+
+import 'common.dart';
+
+const Set<String> _codeFileExtensions = <String>{
+ '.c',
+ '.cc',
+ '.cpp',
+ '.dart',
+ '.h',
+ '.html',
+ '.java',
+ '.m',
+ '.mm',
+ '.swift',
+ '.sh',
+};
+
+// Basenames without extensions of files to ignore.
+const Set<String> _ignoreBasenameList = <String>{
+ 'flutter_export_environment',
+ 'GeneratedPluginRegistrant',
+ 'generated_plugin_registrant',
+};
+
+// File suffixes that otherwise match _codeFileExtensions to ignore.
+const Set<String> _ignoreSuffixList = <String>{
+ '.g.dart', // Generated API code.
+ '.mocks.dart', // Generated by Mockito.
+};
+
+// Full basenames of files to ignore.
+const Set<String> _ignoredFullBasenameList = <String>{
+ 'resource.h', // Generated by VS.
+};
+
+// Copyright and license regexes.
+//
+// These are intentionally very simple, since almost all source in this
+// repository should be using the same license text, comment style, etc., so
+// they shouldn't need to be very flexible. Complexity can be added as-needed
+// on a case-by-case basis.
+final RegExp _copyrightRegex =
+ RegExp(r'^(?://|#|<!--) Copyright \d+,? ([^.]+)', multiLine: true);
+// Non-Flutter code. When adding license regexes here, include the copyright
+// info to ensure that any new additions are flagged for added scrutiny in
+// review.
+// -----
+// Third-party code used in url_launcher_web.
+final RegExp _workivaLicenseRegex = RegExp(
+ r'^// Copyright 2017 Workiva Inc..*'
+ '^// Licensed under the Apache License, Version 2.0',
+ multiLine: true,
+ dotAll: true);
+
+// TODO(stuartmorgan): Replace this with a single string once all the copyrights
+// are standardized.
+final List<String> _firstPartyAuthors = <String>[
+ 'The Chromium Authors',
+ 'the Chromium project authors',
+ 'The Flutter Authors',
+ 'the Flutter project authors',
+];
+
+/// Validates that code files have copyright and license blocks.
+class LicenseCheckCommand extends PluginCommand {
+ /// Creates a new license check command for [packagesDir].
+ LicenseCheckCommand(
+ Directory packagesDir,
+ FileSystem fileSystem, {
+ Print print = print,
+ }) : _print = print,
+ super(packagesDir, fileSystem);
+
+ final Print _print;
+
+ @override
+ final String name = 'license-check';
+
+ @override
+ final String description =
+ 'Ensures that all code files have copyright/license blocks.';
+
+ @override
+ Future<Null> run() async {
+ Iterable<File> codeFiles = (await _getAllFiles()).where((File file) =>
+ _codeFileExtensions.contains(p.extension(file.path)) &&
+ !_shouldIgnoreFile(file));
+
+ bool succeeded = await _checkLicenses(codeFiles);
+
+ if (!succeeded) {
+ throw ToolExit(1);
+ }
+ }
+
+ // Creates the expected license block (without copyright) for first-party
+ // code.
+ String _generateLicense(String comment, {String suffix = ''}) {
+ return '${comment}Use of this source code is governed by a BSD-style license that can be\n'
+ '${comment}found in the LICENSE file.$suffix\n';
+ }
+
+ // Checks all license blocks for [codeFiles], returning false if any of them
+ // fail validation.
+ Future<bool> _checkLicenses(Iterable<File> codeFiles) async {
+ final List<File> filesWithoutDetectedCopyright = <File>[];
+ final List<File> filesWithoutDetectedLicense = <File>[];
+ final List<File> misplacedThirdPartyFiles = <File>[];
+
+ // Most code file types in the repository use '//' comments.
+ final String defaultBsdLicenseBlock = _generateLicense('// ');
+ // A few file types have a different comment structure.
+ final Map<String, String> bsdLicenseBlockByExtension = <String, String>{
+ '.sh': _generateLicense('# '),
+ '.html': _generateLicense('', suffix: ' -->'),
+ };
+
+ for (final File file in codeFiles) {
+ _print('Checking ${file.path}');
+ final String content = await file.readAsString();
+
+ final RegExpMatch copyright = _copyrightRegex.firstMatch(content);
+ if (copyright == null) {
+ filesWithoutDetectedCopyright.add(file);
+ continue;
+ }
+ final String author = copyright.group(1);
+ if (!_firstPartyAuthors.contains(author) &&
+ !p.split(file.path).contains('third_party')) {
+ misplacedThirdPartyFiles.add(file);
+ }
+
+ final String bsdLicense =
+ bsdLicenseBlockByExtension[p.extension(file.path)] ??
+ defaultBsdLicenseBlock;
+ if (!content.contains(bsdLicense) &&
+ !_workivaLicenseRegex.hasMatch(content)) {
+ filesWithoutDetectedLicense.add(file);
+ }
+ }
+ _print('\n\n');
+
+ // Sort by path for more usable output.
+ final pathCompare = (File a, File b) => a.path.compareTo(b.path);
+ filesWithoutDetectedCopyright.sort(pathCompare);
+ filesWithoutDetectedLicense.sort(pathCompare);
+ misplacedThirdPartyFiles.sort(pathCompare);
+
+ if (filesWithoutDetectedCopyright.isNotEmpty) {
+ _print('No copyright line was found for the following files:');
+ for (final File file in filesWithoutDetectedCopyright) {
+ _print(' ${file.path}');
+ }
+ _print('Please check that they have a copyright and license block. '
+ 'If they do, the license check may need to be updated to recognize its '
+ 'format.\n');
+ }
+
+ if (filesWithoutDetectedLicense.isNotEmpty) {
+ _print('No recognized license was found for the following files:');
+ for (final File file in filesWithoutDetectedLicense) {
+ _print(' ${file.path}');
+ }
+ _print('Please check that they have a license at the top of the file. '
+ 'If they do, the license check may need to be updated to recognize '
+ 'either the license or the specific format of the license '
+ 'block.\n');
+ }
+
+ if (misplacedThirdPartyFiles.isNotEmpty) {
+ _print('The following files do not have a recognized first-party author '
+ 'but are not in a "third_party/" directory:');
+ for (final File file in misplacedThirdPartyFiles) {
+ _print(' ${file.path}');
+ }
+ _print('Please move these files to "third_party/".\n');
+ }
+
+ bool succeeded = filesWithoutDetectedCopyright.isEmpty &&
+ filesWithoutDetectedLicense.isEmpty &&
+ misplacedThirdPartyFiles.isEmpty;
+ if (succeeded) {
+ _print('All files passed validation!');
+ }
+ return succeeded;
+ }
+
+ bool _shouldIgnoreFile(File file) {
+ final String path = file.path;
+ return _ignoreBasenameList.contains(p.basenameWithoutExtension(path)) ||
+ _ignoreSuffixList.any((String suffix) =>
+ path.endsWith(suffix) ||
+ _ignoredFullBasenameList.contains(p.basename(path)));
+ }
+
+ Future<List<File>> _getAllFiles() => packagesDir.parent
+ .list(recursive: true, followLinks: false)
+ .where((FileSystemEntity entity) => entity is File)
+ .map((FileSystemEntity file) => file as File)
+ .toList();
+}
diff --git a/script/tool/lib/src/main.dart b/script/tool/lib/src/main.dart
index fa81597..3291129 100644
--- a/script/tool/lib/src/main.dart
+++ b/script/tool/lib/src/main.dart
@@ -19,6 +19,7 @@
import 'firebase_test_lab_command.dart';
import 'format_command.dart';
import 'java_test_command.dart';
+import 'license_check_command.dart';
import 'lint_podspecs_command.dart';
import 'list_command.dart';
import 'test_command.dart';
@@ -50,6 +51,7 @@
..addCommand(FirebaseTestLabCommand(packagesDir, fileSystem))
..addCommand(FormatCommand(packagesDir, fileSystem))
..addCommand(JavaTestCommand(packagesDir, fileSystem))
+ ..addCommand(LicenseCheckCommand(packagesDir, fileSystem))
..addCommand(LintPodspecsCommand(packagesDir, fileSystem))
..addCommand(ListCommand(packagesDir, fileSystem))
..addCommand(PublishCheckCommand(packagesDir, fileSystem))
diff --git a/script/tool/lib/src/publish_plugin_command.dart b/script/tool/lib/src/publish_plugin_command.dart
index f7e3b5d..f61a769 100644
--- a/script/tool/lib/src/publish_plugin_command.dart
+++ b/script/tool/lib/src/publish_plugin_command.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:convert';
import 'dart:io';
diff --git a/script/tool/test/analyze_command_test.dart b/script/tool/test/analyze_command_test.dart
index 9e7a42b..63afb51 100644
--- a/script/tool/test/analyze_command_test.dart
+++ b/script/tool/test/analyze_command_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:flutter_plugin_tools/src/analyze_command.dart';
diff --git a/script/tool/test/build_examples_command_test.dart b/script/tool/test/build_examples_command_test.dart
index 6541752..e021389 100644
--- a/script/tool/test/build_examples_command_test.dart
+++ b/script/tool/test/build_examples_command_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:flutter_plugin_tools/src/build_examples_command.dart';
diff --git a/script/tool/test/common_test.dart b/script/tool/test/common_test.dart
index 0fb3ce7..a8deacc 100644
--- a/script/tool/test/common_test.dart
+++ b/script/tool/test/common_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:io';
import 'package:args/command_runner.dart';
diff --git a/script/tool/test/drive_examples_command_test.dart b/script/tool/test/drive_examples_command_test.dart
index f4bdd95..7a8e9f3 100644
--- a/script/tool/test/drive_examples_command_test.dart
+++ b/script/tool/test/drive_examples_command_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:flutter_plugin_tools/src/common.dart';
diff --git a/script/tool/test/firebase_test_lab_test.dart b/script/tool/test/firebase_test_lab_test.dart
index 97b9776..d116246 100644
--- a/script/tool/test/firebase_test_lab_test.dart
+++ b/script/tool/test/firebase_test_lab_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:io';
import 'package:args/command_runner.dart';
diff --git a/script/tool/test/license_check_command_test.dart b/script/tool/test/license_check_command_test.dart
new file mode 100644
index 0000000..524e727
--- /dev/null
+++ b/script/tool/test/license_check_command_test.dart
@@ -0,0 +1,306 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'package:args/command_runner.dart';
+import 'package:file/file.dart';
+import 'package:file/memory.dart';
+import 'package:flutter_plugin_tools/src/common.dart';
+import 'package:flutter_plugin_tools/src/license_check_command.dart';
+import 'package:test/test.dart';
+
+void main() {
+ group('$LicenseCheckCommand', () {
+ CommandRunner<Null> runner;
+ FileSystem fileSystem;
+ List<String> printedMessages;
+ Directory root;
+
+ setUp(() {
+ fileSystem = MemoryFileSystem();
+ final Directory packagesDir =
+ fileSystem.currentDirectory.childDirectory('packages');
+ root = packagesDir.parent;
+
+ printedMessages = <String>[];
+ final LicenseCheckCommand command = LicenseCheckCommand(
+ packagesDir,
+ fileSystem,
+ print: (Object message) => printedMessages.add(message.toString()),
+ );
+ runner =
+ CommandRunner<Null>('license_test', 'Test for $LicenseCheckCommand');
+ runner.addCommand(command);
+ });
+
+ /// Writes a copyright+license block to [file], defaulting to a standard
+ /// block for this repository.
+ ///
+ /// [commentString] is added to the start of each line.
+ /// [prefix] is added to the start of the entire block.
+ /// [suffix] is added to the end of the entire block.
+ void _writeLicense(
+ File file, {
+ String comment = '// ',
+ String prefix = '',
+ String suffix = '',
+ String copyright =
+ 'Copyright 2019 The Chromium Authors. All rights reserved.',
+ List<String> license = const <String>[
+ 'Use of this source code is governed by a BSD-style license that can be',
+ 'found in the LICENSE file.',
+ ],
+ }) {
+ List<String> lines = ['$prefix$comment$copyright'];
+ for (String line in license) {
+ lines.add('$comment$line');
+ }
+ file.writeAsStringSync(lines.join('\n') + suffix + '\n');
+ }
+
+ test('looks at only expected extensions', () async {
+ Map<String, bool> extensions = <String, bool>{
+ 'c': true,
+ 'cc': true,
+ 'cpp': true,
+ 'dart': true,
+ 'h': true,
+ 'html': true,
+ 'java': true,
+ 'json': false,
+ 'm': true,
+ 'md': false,
+ 'mm': true,
+ 'png': false,
+ 'swift': true,
+ 'sh': true,
+ 'yaml': false,
+ };
+
+ const String filenameBase = 'a_file';
+ for (final String fileExtension in extensions.keys) {
+ root.childFile('$filenameBase.$fileExtension').createSync();
+ }
+
+ try {
+ await runner.run(<String>['license-check']);
+ } on ToolExit {
+ // Ignore failure; the files are empty so the check is expected to fail,
+ // but this test isn't for that behavior.
+ }
+
+ extensions.forEach((String fileExtension, bool shouldCheck) {
+ final Matcher logLineMatcher =
+ contains('Checking $filenameBase.$fileExtension');
+ expect(printedMessages,
+ shouldCheck ? logLineMatcher : isNot(logLineMatcher));
+ });
+ });
+
+ test('ignore list overrides extension matches', () async {
+ List<String> ignoredFiles = <String>[
+ // Ignored base names.
+ 'flutter_export_environment.sh',
+ 'GeneratedPluginRegistrant.java',
+ 'GeneratedPluginRegistrant.m',
+ 'generated_plugin_registrant.cc',
+ 'generated_plugin_registrant.cpp',
+ // Ignored path suffixes.
+ 'foo.g.dart',
+ 'foo.mocks.dart',
+ // Ignored files.
+ 'resource.h',
+ ];
+
+ for (final String name in ignoredFiles) {
+ root.childFile(name).createSync();
+ }
+
+ await runner.run(<String>['license-check']);
+
+ for (final String name in ignoredFiles) {
+ expect(printedMessages, isNot(contains('Checking $name')));
+ }
+ });
+
+ test('passes if all checked files have license blocks', () async {
+ File checked = root.childFile('checked.cc');
+ checked.createSync();
+ _writeLicense(checked);
+ File not_checked = root.childFile('not_checked.md');
+ not_checked.createSync();
+
+ await runner.run(<String>['license-check']);
+
+ // Sanity check that the test did actually check a file.
+ expect(printedMessages, contains('Checking checked.cc'));
+ expect(printedMessages, contains('All files passed validation!'));
+ });
+
+ test('handles the comment styles for all supported languages', () async {
+ File file_a = root.childFile('file_a.cc');
+ file_a.createSync();
+ _writeLicense(file_a, comment: '// ');
+ File file_b = root.childFile('file_b.sh');
+ file_b.createSync();
+ _writeLicense(file_b, comment: '# ');
+ File file_c = root.childFile('file_c.html');
+ file_c.createSync();
+ _writeLicense(file_c, comment: '', prefix: '<!-- ', suffix: ' -->');
+
+ await runner.run(<String>['license-check']);
+
+ // Sanity check that the test did actually check the files.
+ expect(printedMessages, contains('Checking file_a.cc'));
+ expect(printedMessages, contains('Checking file_b.sh'));
+ expect(printedMessages, contains('Checking file_c.html'));
+ expect(printedMessages, contains('All files passed validation!'));
+ });
+
+ test('fails if any checked files are missing license blocks', () async {
+ File good_a = root.childFile('good.cc');
+ good_a.createSync();
+ _writeLicense(good_a);
+ File good_b = root.childFile('good.h');
+ good_b.createSync();
+ _writeLicense(good_b);
+ root.childFile('bad.cc').createSync();
+ root.childFile('bad.h').createSync();
+
+ await expectLater(() => runner.run(<String>['license-check']),
+ throwsA(const TypeMatcher<ToolExit>()));
+
+ // Failure should give information about the problematic files.
+ expect(printedMessages,
+ contains('No copyright line was found for the following files:'));
+ expect(printedMessages, contains(' bad.cc'));
+ expect(printedMessages, contains(' bad.h'));
+ // Failure shouldn't print the success message.
+ expect(printedMessages, isNot(contains('All files passed validation!')));
+ });
+
+ test('fails if any checked files are missing just the copyright', () async {
+ File good = root.childFile('good.cc');
+ good.createSync();
+ _writeLicense(good);
+ File bad = root.childFile('bad.cc');
+ bad.createSync();
+ _writeLicense(bad, copyright: '');
+
+ await expectLater(() => runner.run(<String>['license-check']),
+ throwsA(const TypeMatcher<ToolExit>()));
+
+ // Failure should give information about the problematic files.
+ expect(printedMessages,
+ contains('No copyright line was found for the following files:'));
+ expect(printedMessages, contains(' bad.cc'));
+ // Failure shouldn't print the success message.
+ expect(printedMessages, isNot(contains('All files passed validation!')));
+ });
+
+ test('fails if any checked files are missing just the license', () async {
+ File good = root.childFile('good.cc');
+ good.createSync();
+ _writeLicense(good);
+ File bad = root.childFile('bad.cc');
+ bad.createSync();
+ _writeLicense(bad, license: <String>[]);
+
+ await expectLater(() => runner.run(<String>['license-check']),
+ throwsA(const TypeMatcher<ToolExit>()));
+
+ // Failure should give information about the problematic files.
+ expect(printedMessages,
+ contains('No recognized license was found for the following files:'));
+ expect(printedMessages, contains(' bad.cc'));
+ // Failure shouldn't print the success message.
+ expect(printedMessages, isNot(contains('All files passed validation!')));
+ });
+
+ test('fails if any third-party code is not in a third_party directory',
+ () async {
+ File thirdPartyFile = root.childFile('third_party.cc');
+ thirdPartyFile.createSync();
+ _writeLicense(thirdPartyFile, copyright: 'Copyright 2017 Someone Else');
+
+ await expectLater(() => runner.run(<String>['license-check']),
+ throwsA(const TypeMatcher<ToolExit>()));
+
+ // Failure should give information about the problematic files.
+ expect(
+ printedMessages,
+ contains(
+ 'The following files do not have a recognized first-party author '
+ 'but are not in a "third_party/" directory:'));
+ expect(printedMessages, contains(' third_party.cc'));
+ // Failure shouldn't print the success message.
+ expect(printedMessages, isNot(contains('All files passed validation!')));
+ });
+
+ test('succeeds for third-party code in a third_party directory', () async {
+ File thirdPartyFile = root
+ .childDirectory('a_plugin')
+ .childDirectory('lib')
+ .childDirectory('src')
+ .childDirectory('third_party')
+ .childFile('file.cc');
+ thirdPartyFile.createSync(recursive: true);
+ _writeLicense(thirdPartyFile, copyright: 'Copyright 2017 Someone Else');
+
+ await runner.run(<String>['license-check']);
+
+ // Sanity check that the test did actually check the file.
+ expect(printedMessages,
+ contains('Checking a_plugin/lib/src/third_party/file.cc'));
+ expect(printedMessages, contains('All files passed validation!'));
+ });
+
+ test('fails for licenses that the tool does not expect', () async {
+ File good = root.childFile('good.cc');
+ good.createSync();
+ _writeLicense(good);
+ File bad = root.childDirectory('third_party').childFile('bad.cc');
+ bad.createSync(recursive: true);
+ _writeLicense(bad, license: <String>[
+ 'This program is free software: you can redistribute it and/or modify',
+ 'it under the terms of the GNU General Public License',
+ ]);
+
+ await expectLater(() => runner.run(<String>['license-check']),
+ throwsA(const TypeMatcher<ToolExit>()));
+
+ // Failure should give information about the problematic files.
+ expect(printedMessages,
+ contains('No recognized license was found for the following files:'));
+ expect(printedMessages, contains(' third_party/bad.cc'));
+ // Failure shouldn't print the success message.
+ expect(printedMessages, isNot(contains('All files passed validation!')));
+ });
+
+ test('Apache is not recognized for new authors without validation changes',
+ () async {
+ File good = root.childFile('good.cc');
+ good.createSync();
+ _writeLicense(good);
+ File bad = root.childDirectory('third_party').childFile('bad.cc');
+ bad.createSync(recursive: true);
+ _writeLicense(
+ bad,
+ copyright: 'Copyright 2017 Some New Authors',
+ license: <String>[
+ 'Licensed under the Apache License, Version 2.0',
+ ],
+ );
+
+ await expectLater(() => runner.run(<String>['license-check']),
+ throwsA(const TypeMatcher<ToolExit>()));
+
+ // Failure should give information about the problematic files.
+ expect(printedMessages,
+ contains('No recognized license was found for the following files:'));
+ expect(printedMessages, contains(' third_party/bad.cc'));
+ // Failure shouldn't print the success message.
+ expect(printedMessages, isNot(contains('All files passed validation!')));
+ });
+ });
+}
diff --git a/script/tool/test/lint_podspecs_command_test.dart b/script/tool/test/lint_podspecs_command_test.dart
index 1c59d2d..2a3e608 100644
--- a/script/tool/test/lint_podspecs_command_test.dart
+++ b/script/tool/test/lint_podspecs_command_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:io';
import 'package:args/command_runner.dart';
diff --git a/script/tool/test/list_command_test.dart b/script/tool/test/list_command_test.dart
index 4786252..d06f6d2 100644
--- a/script/tool/test/list_command_test.dart
+++ b/script/tool/test/list_command_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:flutter_plugin_tools/src/list_command.dart';
diff --git a/script/tool/test/mocks.dart b/script/tool/test/mocks.dart
index 3e17ff8..35a4eb7 100644
--- a/script/tool/test/mocks.dart
+++ b/script/tool/test/mocks.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:io' as io;
diff --git a/script/tool/test/publish_plugin_command_test.dart b/script/tool/test/publish_plugin_command_test.dart
index ada4bf0..4f770b2 100644
--- a/script/tool/test/publish_plugin_command_test.dart
+++ b/script/tool/test/publish_plugin_command_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:convert';
import 'dart:io' as io;
diff --git a/script/tool/test/test_command_test.dart b/script/tool/test/test_command_test.dart
index 514e4c2..520f4c3 100644
--- a/script/tool/test/test_command_test.dart
+++ b/script/tool/test/test_command_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:flutter_plugin_tools/src/test_command.dart';
diff --git a/script/tool/test/util.dart b/script/tool/test/util.dart
index 1538d9b..63cd5de 100644
--- a/script/tool/test/util.dart
+++ b/script/tool/test/util.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:io' as io;
diff --git a/script/tool/test/version_check_test.dart b/script/tool/test/version_check_test.dart
index ac0d378..400d426 100644
--- a/script/tool/test/version_check_test.dart
+++ b/script/tool/test/version_check_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
import 'dart:async';
import 'dart:io';