Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[flutter_plugin_tools] Check licenses in Kotlin
The license check overlooked Kotlin, since it's not currently widely
used in our repositories.

Also adds the missing license to one Kotlin file, from an example that
was (likely accidentally) re-generated using Kotlin instead of Java.
  • Loading branch information
stuartmorgan-g committed Sep 22, 2021
commit 22e44cc190f1c0e286d2ff7cc550ff6a34e83243
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2013 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.example

import io.flutter.embedding.android.FlutterActivity
Expand Down
1 change: 1 addition & 0 deletions script/tool/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
federated packages that have been done in such a way that they will pass in
CI, but fail once the change is landed and published.
- `publish-check` now validates that there is an `AUTHORS` file.
- `license-check` now validates Kotlin files.

## 0.7.1

Expand Down
1 change: 1 addition & 0 deletions script/tool/lib/src/license_check_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const Set<String> _codeFileExtensions = <String>{
'.h',
'.html',
'.java',
'.kt',
'.m',
'.mm',
'.swift',
Expand Down
1 change: 1 addition & 0 deletions script/tool/test/license_check_command_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void main() {
'html': true,
'java': true,
'json': false,
'kt': true,
'm': true,
'md': false,
'mm': true,
Expand Down