diff --git a/dev/bots/analyze.dart b/dev/bots/analyze.dart index 1552a58c546..a09ba787d12 100644 --- a/dev/bots/analyze.dart +++ b/dev/bots/analyze.dart @@ -606,6 +606,7 @@ Future verifyNoMissingLicense(String workingDirectory, { bool checkMinimum await _verifyNoMissingLicenseForExtension(workingDirectory, 'java', overrideMinimumMatches ?? 39, _generateLicense('// ')); await _verifyNoMissingLicenseForExtension(workingDirectory, 'h', overrideMinimumMatches ?? 30, _generateLicense('// ')); await _verifyNoMissingLicenseForExtension(workingDirectory, 'm', overrideMinimumMatches ?? 30, _generateLicense('// ')); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'cc', overrideMinimumMatches ?? 10, _generateLicense('// ')); await _verifyNoMissingLicenseForExtension(workingDirectory, 'cpp', overrideMinimumMatches ?? 0, _generateLicense('// ')); await _verifyNoMissingLicenseForExtension(workingDirectory, 'swift', overrideMinimumMatches ?? 10, _generateLicense('// ')); await _verifyNoMissingLicenseForExtension(workingDirectory, 'gradle', overrideMinimumMatches ?? 80, _generateLicense('// ')); @@ -2073,8 +2074,10 @@ bool _isGeneratedPluginRegistrant(File file) { final String filename = path.basename(file.path); return !file.path.contains('.pub-cache') && (filename == 'GeneratedPluginRegistrant.java' || + filename == 'GeneratedPluginRegistrant.swift' || filename == 'GeneratedPluginRegistrant.h' || filename == 'GeneratedPluginRegistrant.m' || filename == 'generated_plugin_registrant.dart' || - filename == 'generated_plugin_registrant.h'); + filename == 'generated_plugin_registrant.h' || + filename == 'generated_plugin_registrant.cc'); } diff --git a/dev/integration_tests/flutter_gallery/linux/main.cc b/dev/integration_tests/flutter_gallery/linux/main.cc index 058e6178fe8..3253d374395 100644 --- a/dev/integration_tests/flutter_gallery/linux/main.cc +++ b/dev/integration_tests/flutter_gallery/linux/main.cc @@ -1,3 +1,7 @@ +// Copyright 2014 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/dev/integration_tests/flutter_gallery/linux/my_application.cc b/dev/integration_tests/flutter_gallery/linux/my_application.cc index 3052ed1b0ad..3a4c060b07d 100644 --- a/dev/integration_tests/flutter_gallery/linux/my_application.cc +++ b/dev/integration_tests/flutter_gallery/linux/my_application.cc @@ -1,3 +1,7 @@ +// Copyright 2014 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 diff --git a/dev/integration_tests/ui/linux/main.cc b/dev/integration_tests/ui/linux/main.cc index e7c5c543703..281a29e16b5 100644 --- a/dev/integration_tests/ui/linux/main.cc +++ b/dev/integration_tests/ui/linux/main.cc @@ -1,3 +1,7 @@ +// Copyright 2014 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/dev/integration_tests/ui/linux/my_application.cc b/dev/integration_tests/ui/linux/my_application.cc index 947e77ccb6e..cc91bcf2b14 100644 --- a/dev/integration_tests/ui/linux/my_application.cc +++ b/dev/integration_tests/ui/linux/my_application.cc @@ -1,3 +1,7 @@ +// Copyright 2014 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 diff --git a/examples/api/linux/main.cc b/examples/api/linux/main.cc index e7c5c543703..281a29e16b5 100644 --- a/examples/api/linux/main.cc +++ b/examples/api/linux/main.cc @@ -1,3 +1,7 @@ +// Copyright 2014 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/examples/api/linux/my_application.cc b/examples/api/linux/my_application.cc index f1891f49fdc..654c0788bbd 100644 --- a/examples/api/linux/my_application.cc +++ b/examples/api/linux/my_application.cc @@ -1,3 +1,7 @@ +// Copyright 2014 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 diff --git a/examples/hello_world/linux/main.cc b/examples/hello_world/linux/main.cc index e7c5c543703..281a29e16b5 100644 --- a/examples/hello_world/linux/main.cc +++ b/examples/hello_world/linux/main.cc @@ -1,3 +1,7 @@ +// Copyright 2014 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/examples/platform_channel/linux/main.cc b/examples/platform_channel/linux/main.cc index e7c5c543703..281a29e16b5 100644 --- a/examples/platform_channel/linux/main.cc +++ b/examples/platform_channel/linux/main.cc @@ -1,3 +1,7 @@ +// Copyright 2014 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) {