1/* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17java_library_host { 18 name: "smali-dexlib2", 19 20 srcs: [ 21 "src/main/java/**/*.java", 22 ":third_party-smali-dexlib2", 23 ], 24 25 static_libs: [ 26 "jsr305", 27 ], 28 29 errorprone: { 30 javacflags: [ 31 "-Xep:ComparableType:WARN", 32 ], 33 }, 34} 35 36java_library_host { 37 name: "smali-dexlib2-no-guava", 38 39 srcs: [ 40 "src/main/java/**/*.java", 41 ":third_party-smali-dexlib2", 42 ], 43 44 static_libs: [ 45 "jsr305", 46 ], 47 48 errorprone: { 49 javacflags: [ 50 "-Xep:ComparableType:WARN", 51 ], 52 }, 53} 54 55java_library { 56 name: "smali-dexlib2-device", 57 58 srcs: [ 59 "src/main/java/**/*.java", 60 ":third_party-smali-dexlib2", 61 ], 62 63 static_libs: [ 64 "jsr305", 65 ], 66 67 sdk_version: "system_server_current", 68 min_sdk_version: "33", 69 70 optimize: { 71 enabled: true, 72 shrink: true, 73 }, 74 75 errorprone: { 76 javacflags: [ 77 "-Xep:ComparableType:WARN", 78 ], 79 }, 80 81 apex_available: [ 82 "//apex_available:anyapex", 83 ], 84} 85