Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | include $(CLEAR_VARS) |
| 20 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 21 | LOCAL_MODULE := wallpaper2-glide-target |
| 22 | LOCAL_SDK_VERSION := current |
| 23 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 24 | LOCAL_UNINSTALLABLE_MODULE := true |
Santiago Etchebehere | 8dbefef | 2019-08-01 17:32:19 -0700 | [diff] [blame] | 25 | LOCAL_JETIFIER_ENABLED := true |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 26 | include $(BUILD_PREBUILT) |
| 27 | |
| 28 | include $(CLEAR_VARS) |
| 29 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 30 | LOCAL_MODULE := wallpaper2-disklrucache-target |
| 31 | LOCAL_SDK_VERSION := current |
| 32 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 33 | LOCAL_UNINSTALLABLE_MODULE := true |
| 34 | include $(BUILD_PREBUILT) |
| 35 | |
| 36 | include $(CLEAR_VARS) |
| 37 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 38 | LOCAL_MODULE := wallpaper2-gifdecoder-target |
| 39 | LOCAL_SDK_VERSION := current |
| 40 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 41 | LOCAL_UNINSTALLABLE_MODULE := true |
| 42 | include $(BUILD_PREBUILT) |
| 43 | |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 44 | include $(CLEAR_VARS) |
| 45 | LOCAL_USE_AAPT2 := true |
| 46 | LOCAL_AAPT2_ONLY := true |
| 47 | LOCAL_MODULE_TAGS := optional |
| 48 | |
| 49 | LOCAL_STATIC_ANDROID_LIBRARIES := android-support-exifinterface |
| 50 | LOCAL_SRC_FILES := $(call all-java-files-under, ../../../external/subsampling-scale-image-view/library/src) |
| 51 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/../../../external/subsampling-scale-image-view/library/src/main/res |
| 52 | |
| 53 | LOCAL_PROGUARD_ENABLED := disabled |
| 54 | |
| 55 | LOCAL_SDK_VERSION := current |
Santiago Etchebehere | 8cad0dd | 2019-10-17 10:52:39 -0700 | [diff] [blame] | 56 | LOCAL_MIN_SDK_VERSION := 26 |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 57 | LOCAL_MODULE := wallpaper-subsampling-scale-image-view |
| 58 | LOCAL_MANIFEST_FILE := ../../../external/subsampling-scale-image-view/library/src/main/AndroidManifest.xml |
| 59 | |
| 60 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 61 | |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame] | 62 | |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 63 | # |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame] | 64 | # Build rule for WallpaperPicker2 dependencies lib. |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 65 | # |
| 66 | include $(CLEAR_VARS) |
Jon Miranda | 078ea36 | 2018-01-25 18:09:12 -0800 | [diff] [blame] | 67 | LOCAL_USE_AAPT2 := true |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame] | 68 | LOCAL_MODULE_TAGS := optional |
Jon Miranda | 078ea36 | 2018-01-25 18:09:12 -0800 | [diff] [blame] | 69 | |
| 70 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 71 | androidx.appcompat_appcompat \ |
| 72 | androidx.cardview_cardview \ |
| 73 | androidx.recyclerview_recyclerview \ |
Santiago Etchebehere | 4ecb6aa | 2019-11-07 11:48:58 -0800 | [diff] [blame] | 74 | androidx.slice_slice-view \ |
Santiago Etchebehere | 0b5a0a1 | 2019-05-01 15:34:25 -0700 | [diff] [blame] | 75 | androidx-constraintlayout_constraintlayout \ |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 76 | com.google.android.material_material \ |
| 77 | androidx.exifinterface_exifinterface \ |
| 78 | wallpaper-subsampling-scale-image-view |
Jon Miranda | 078ea36 | 2018-01-25 18:09:12 -0800 | [diff] [blame] | 79 | |
| 80 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 81 | wallpaper2-glide-target \ |
| 82 | wallpaper2-disklrucache-target \ |
| 83 | wallpaper2-gifdecoder-target \ |
| 84 | volley \ |
Winson Chung | 1804306 | 2020-03-16 21:07:10 +0000 | [diff] [blame] | 85 | libbackup \ |
| 86 | SystemUISharedLib |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 87 | |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame] | 88 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 89 | |
| 90 | LOCAL_PROGUARD_ENABLED := disabled |
| 91 | LOCAL_MANIFEST_FILE := AndroidManifest.xml |
Hyunyoung Song | 03512b5 | 2019-02-22 21:35:37 -0800 | [diff] [blame] | 92 | |
Winson Chung | 9ef6c94 | 2020-03-16 21:07:10 +0000 | [diff] [blame] | 93 | ifneq (,$(wildcard frameworks/base)) |
| 94 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 95 | else |
| 96 | LOCAL_SDK_VERSION := current |
| 97 | endif |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame] | 98 | LOCAL_MODULE := WallpaperPicker2CommonDepsLib |
| 99 | LOCAL_PRIVILEGED_MODULE := true |
| 100 | |
| 101 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 102 | |
| 103 | # |
| 104 | # Build app code. |
| 105 | # |
| 106 | include $(CLEAR_VARS) |
| 107 | |
| 108 | LOCAL_MODULE_TAGS := optional |
| 109 | |
| 110 | LOCAL_USE_AAPT2 := true |
| 111 | |
| 112 | LOCAL_STATIC_ANDROID_LIBRARIES := WallpaperPicker2CommonDepsLib |
| 113 | |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 114 | LOCAL_SRC_FILES := $(call all-java-files-under, src) \ |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 115 | $(call all-java-files-under, src_override) |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 116 | |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 117 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 118 | |
| 119 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 120 | LOCAL_PROGUARD_ENABLED := disabled |
| 121 | |
Santiago Etchebehere | 4ecb6aa | 2019-11-07 11:48:58 -0800 | [diff] [blame] | 122 | LOCAL_PRIVILEGED_MODULE := true |
| 123 | |
| 124 | ifneq (,$(wildcard frameworks/base)) |
| 125 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 126 | else |
| 127 | LOCAL_SDK_VERSION := system_current |
| 128 | LOCAL_STATIC_JAVA_LIBRARIES += libSharedWallpaper |
| 129 | endif |
| 130 | |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 131 | LOCAL_PACKAGE_NAME := WallpaperPicker2 |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 132 | LOCAL_JETIFIER_ENABLED := true |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 133 | |
Hyunyoung Song | 03512b5 | 2019-02-22 21:35:37 -0800 | [diff] [blame] | 134 | include $(BUILD_PACKAGE) |
Santiago Etchebehere | 8cad0dd | 2019-10-17 10:52:39 -0700 | [diff] [blame] | 135 | |
| 136 | include $(call all-makefiles-under,$(LOCAL_PATH)) |