1// Copyright (C) 2018 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 15java_defaults { 16 name: "framework-stubs-default", 17 errorprone: { 18 javacflags: [ 19 "-XepDisableAllChecks", 20 ], 21 }, 22 java_resources: [ 23 ":notices-for-framework-stubs", 24 ], 25 no_standard_libs: true, 26 system_modules: "none", 27 java_version: "1.8", 28 compile_dex: true, 29} 30 31java_library_static { 32 name: "android_stubs_current", 33 srcs: [ 34 ":api-stubs-docs", 35 ], 36 libs: [ 37 "stub-annotations", 38 ], 39 static_libs: [ 40 "private-stub-annotations-jar", 41 ], 42 defaults: ["framework-stubs-default"], 43} 44 45java_system_modules { 46 name: "android_stubs_current_system_modules", 47 libs: ["android_stubs_current"], 48} 49 50java_library_static { 51 name: "android_system_stubs_current", 52 srcs: [ 53 ":system-api-stubs-docs", 54 ], 55 libs: [ 56 "stub-annotations", 57 ], 58 static_libs: [ 59 "private-stub-annotations-jar", 60 ], 61 defaults: ["framework-stubs-default"], 62} 63 64java_system_modules { 65 name: "android_system_stubs_current_system_modules", 66 libs: ["android_system_stubs_current"], 67} 68 69java_library_static { 70 name: "android_test_stubs_current", 71 srcs: [ 72 ":test-api-stubs-docs", 73 ], 74 libs: [ 75 "stub-annotations", 76 ], 77 static_libs: [ 78 "private-stub-annotations-jar", 79 ], 80 defaults: ["framework-stubs-default"], 81} 82 83java_system_modules { 84 name: "android_test_stubs_current_system_modules", 85 libs: ["android_test_stubs_current"], 86} 87