Mårten Kongstad | 9008724 | 2024-04-16 09:55:56 +0200 | [diff] [blame] | 1 | // Copyright (C) 2024 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package { |
Mårten Kongstad | f242ec8 | 2024-04-16 17:12:26 +0200 | [diff] [blame^] | 16 | default_team: "trendy_team_updatable_sdk_apis", |
Mårten Kongstad | 9008724 | 2024-04-16 09:55:56 +0200 | [diff] [blame] | 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
Mårten Kongstad | f242ec8 | 2024-04-16 17:12:26 +0200 | [diff] [blame^] | 20 | java_defaults { |
| 21 | name: "check-flagged-apis-defaults", |
Mårten Kongstad | 9008724 | 2024-04-16 09:55:56 +0200 | [diff] [blame] | 22 | srcs: [ |
Mårten Kongstad | f242ec8 | 2024-04-16 17:12:26 +0200 | [diff] [blame^] | 23 | "src/com/android/checkflaggedapis/Main.kt", |
Mårten Kongstad | 9008724 | 2024-04-16 09:55:56 +0200 | [diff] [blame] | 24 | ], |
Mårten Kongstad | acfeb11 | 2024-04-16 10:30:26 +0200 | [diff] [blame] | 25 | static_libs: [ |
| 26 | "metalava-tools-common-m2-deps", |
| 27 | ], |
Mårten Kongstad | f242ec8 | 2024-04-16 17:12:26 +0200 | [diff] [blame^] | 28 | } |
| 29 | |
| 30 | java_binary_host { |
| 31 | name: "check-flagged-apis", |
| 32 | defaults: [ |
| 33 | "check-flagged-apis-defaults", |
| 34 | ], |
Mårten Kongstad | 9008724 | 2024-04-16 09:55:56 +0200 | [diff] [blame] | 35 | main_class: "com.android.checkflaggedapis.Main", |
| 36 | } |
Mårten Kongstad | f242ec8 | 2024-04-16 17:12:26 +0200 | [diff] [blame^] | 37 | |
| 38 | java_test_host { |
| 39 | name: "check-flagged-apis-test", |
| 40 | defaults: [ |
| 41 | "check-flagged-apis-defaults", |
| 42 | ], |
| 43 | srcs: [ |
| 44 | "src/com/android/checkflaggedapis/CheckFlaggedApisTest.kt", |
| 45 | ], |
| 46 | static_libs: [ |
| 47 | "tradefed", |
| 48 | ], |
| 49 | } |