1# 2# Copyright (C) 2017 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 17LOCAL_PATH := $(call my-dir) 18 19include $(CLEAR_VARS) 20LOCAL_MODULE_CLASS := JAVA_LIBRARIES 21LOCAL_MODULE := wallpaper2-glide-target 22LOCAL_SDK_VERSION := current 23LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) 24LOCAL_UNINSTALLABLE_MODULE := true 25LOCAL_JETIFIER_ENABLED := true 26include $(BUILD_PREBUILT) 27 28include $(CLEAR_VARS) 29LOCAL_MODULE_CLASS := JAVA_LIBRARIES 30LOCAL_MODULE := wallpaper2-disklrucache-target 31LOCAL_SDK_VERSION := current 32LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) 33LOCAL_UNINSTALLABLE_MODULE := true 34include $(BUILD_PREBUILT) 35 36include $(CLEAR_VARS) 37LOCAL_MODULE_CLASS := JAVA_LIBRARIES 38LOCAL_MODULE := wallpaper2-gifdecoder-target 39LOCAL_SDK_VERSION := current 40LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) 41LOCAL_UNINSTALLABLE_MODULE := true 42include $(BUILD_PREBUILT) 43 44include $(CLEAR_VARS) 45LOCAL_USE_AAPT2 := true 46LOCAL_AAPT2_ONLY := true 47LOCAL_MODULE_TAGS := optional 48 49LOCAL_STATIC_ANDROID_LIBRARIES := android-support-exifinterface 50LOCAL_SRC_FILES := $(call all-java-files-under, ../../../external/subsampling-scale-image-view/library/src) 51LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/../../../external/subsampling-scale-image-view/library/src/main/res 52 53LOCAL_PROGUARD_ENABLED := disabled 54 55LOCAL_SDK_VERSION := current 56LOCAL_MIN_SDK_VERSION := 26 57LOCAL_MODULE := wallpaper-subsampling-scale-image-view 58LOCAL_MANIFEST_FILE := ../../../external/subsampling-scale-image-view/library/src/main/AndroidManifest.xml 59 60include $(BUILD_STATIC_JAVA_LIBRARY) 61 62 63# 64# Build rule for WallpaperPicker2 dependencies lib. 65# 66include $(CLEAR_VARS) 67LOCAL_USE_AAPT2 := true 68LOCAL_MODULE_TAGS := optional 69 70LOCAL_STATIC_ANDROID_LIBRARIES := \ 71 androidx.appcompat_appcompat \ 72 androidx.cardview_cardview \ 73 androidx.recyclerview_recyclerview \ 74 androidx.slice_slice-view \ 75 androidx-constraintlayout_constraintlayout \ 76 com.google.android.material_material \ 77 androidx.exifinterface_exifinterface \ 78 wallpaper-subsampling-scale-image-view 79 80LOCAL_STATIC_JAVA_LIBRARIES := \ 81 wallpaper2-glide-target \ 82 wallpaper2-disklrucache-target \ 83 wallpaper2-gifdecoder-target \ 84 volley \ 85 libbackup 86 87LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 88 89LOCAL_PROGUARD_ENABLED := disabled 90LOCAL_MANIFEST_FILE := AndroidManifest.xml 91 92LOCAL_SDK_VERSION := current 93LOCAL_MODULE := WallpaperPicker2CommonDepsLib 94LOCAL_PRIVILEGED_MODULE := true 95 96include $(BUILD_STATIC_JAVA_LIBRARY) 97 98# 99# Build app code. 100# 101include $(CLEAR_VARS) 102 103LOCAL_MODULE_TAGS := optional 104 105LOCAL_USE_AAPT2 := true 106 107LOCAL_STATIC_ANDROID_LIBRARIES := WallpaperPicker2CommonDepsLib 108 109LOCAL_SRC_FILES := $(call all-java-files-under, src) \ 110 $(call all-java-files-under, src_override) 111 112LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 113 114LOCAL_PROGUARD_FLAG_FILES := proguard.flags 115LOCAL_PROGUARD_ENABLED := disabled 116 117LOCAL_PRIVILEGED_MODULE := true 118 119ifneq (,$(wildcard frameworks/base)) 120 LOCAL_PRIVATE_PLATFORM_APIS := true 121else 122 LOCAL_SDK_VERSION := system_current 123 LOCAL_STATIC_JAVA_LIBRARIES += libSharedWallpaper 124endif 125 126LOCAL_PACKAGE_NAME := WallpaperPicker2 127LOCAL_JETIFIER_ENABLED := true 128 129include $(BUILD_PACKAGE) 130 131include $(call all-makefiles-under,$(LOCAL_PATH)) 132