1// Copyright (C) 2012 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//################################################# 16// Build appcompat library 17 18android_library { 19 name: "libphotoviewer_appcompat", 20 21 libs: ["androidx.annotation_annotation"], 22 23 static_libs: [ 24 "androidx.core_core", 25 "androidx.legacy_legacy-support-core-ui", 26 "androidx.legacy_legacy-support-core-utils", 27 "androidx.fragment_fragment", 28 "androidx.appcompat_appcompat", 29 ], 30 31 sdk_version: "current", 32 srcs: [ 33 "src/**/*.java", 34 "appcompat/src/**/*.java", 35 "src/**/*.logtags", 36 ], 37 38 resource_dirs: [ 39 "appcompat/res", 40 "res", 41 ], 42 43 aaptflags: ["--legacy"], 44} 45 46//################################################# 47// Build non-appcompat library 48 49android_library { 50 name: "libphotoviewer", 51 52 libs: ["androidx.annotation_annotation"], 53 54 static_libs: [ 55 "androidx.core_core", 56 "androidx.legacy_legacy-support-core-ui", 57 "androidx.legacy_legacy-support-core-utils", 58 "androidx.fragment_fragment", 59 ], 60 61 sdk_version: "current", 62 srcs: [ 63 "src/**/*.java", 64 "activity/src/**/*.java", 65 "src/**/*.logtags", 66 ], 67 68 resource_dirs: [ 69 "activity/res", 70 "res", 71 ], 72 73 aaptflags: ["--legacy"], 74} 75