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 \ |
Santiago Etchebehere | 6260313 | 2019-01-11 18:27:22 -0800 | [diff] [blame] | 85 | libbackup |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 86 | |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame] | 87 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 88 | |
| 89 | LOCAL_PROGUARD_ENABLED := disabled |
| 90 | LOCAL_MANIFEST_FILE := AndroidManifest.xml |
Hyunyoung Song | 03512b5 | 2019-02-22 21:35:37 -0800 | [diff] [blame] | 91 | |
Hyunyoung Song | 7f88915 | 2019-08-08 01:33:48 -0700 | [diff] [blame] | 92 | LOCAL_SDK_VERSION := current |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame] | 93 | LOCAL_MODULE := WallpaperPicker2CommonDepsLib |
| 94 | LOCAL_PRIVILEGED_MODULE := true |
| 95 | |
| 96 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 97 | |
| 98 | # |
| 99 | # Build app code. |
| 100 | # |
| 101 | include $(CLEAR_VARS) |
| 102 | |
| 103 | LOCAL_MODULE_TAGS := optional |
| 104 | |
| 105 | LOCAL_USE_AAPT2 := true |
| 106 | |
| 107 | LOCAL_STATIC_ANDROID_LIBRARIES := WallpaperPicker2CommonDepsLib |
| 108 | |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 109 | LOCAL_SRC_FILES := $(call all-java-files-under, src) \ |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 110 | $(call all-java-files-under, src_override) |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 111 | |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 112 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 113 | |
| 114 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 115 | LOCAL_PROGUARD_ENABLED := disabled |
| 116 | |
Santiago Etchebehere | 4ecb6aa | 2019-11-07 11:48:58 -0800 | [diff] [blame] | 117 | LOCAL_PRIVILEGED_MODULE := true |
| 118 | |
| 119 | ifneq (,$(wildcard frameworks/base)) |
| 120 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 121 | else |
| 122 | LOCAL_SDK_VERSION := system_current |
| 123 | LOCAL_STATIC_JAVA_LIBRARIES += libSharedWallpaper |
| 124 | endif |
| 125 | |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 126 | LOCAL_PACKAGE_NAME := WallpaperPicker2 |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 127 | LOCAL_JETIFIER_ENABLED := true |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 128 | |
Hyunyoung Song | 03512b5 | 2019-02-22 21:35:37 -0800 | [diff] [blame] | 129 | include $(BUILD_PACKAGE) |
Santiago Etchebehere | 8cad0dd | 2019-10-17 10:52:39 -0700 | [diff] [blame] | 130 | |
| 131 | include $(call all-makefiles-under,$(LOCAL_PATH)) |