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 |
| 25 | include $(BUILD_PREBUILT) |
| 26 | |
| 27 | include $(CLEAR_VARS) |
| 28 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 29 | LOCAL_MODULE := wallpaper2-disklrucache-target |
| 30 | LOCAL_SDK_VERSION := current |
| 31 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 32 | LOCAL_UNINSTALLABLE_MODULE := true |
| 33 | include $(BUILD_PREBUILT) |
| 34 | |
| 35 | include $(CLEAR_VARS) |
| 36 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 37 | LOCAL_MODULE := wallpaper2-gifdecoder-target |
| 38 | LOCAL_SDK_VERSION := current |
| 39 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 40 | LOCAL_UNINSTALLABLE_MODULE := true |
| 41 | include $(BUILD_PREBUILT) |
| 42 | |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 43 | include $(CLEAR_VARS) |
| 44 | LOCAL_USE_AAPT2 := true |
| 45 | LOCAL_AAPT2_ONLY := true |
| 46 | LOCAL_MODULE_TAGS := optional |
| 47 | |
| 48 | LOCAL_STATIC_ANDROID_LIBRARIES := android-support-exifinterface |
| 49 | LOCAL_SRC_FILES := $(call all-java-files-under, ../../../external/subsampling-scale-image-view/library/src) |
| 50 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/../../../external/subsampling-scale-image-view/library/src/main/res |
| 51 | |
| 52 | LOCAL_PROGUARD_ENABLED := disabled |
| 53 | |
| 54 | LOCAL_SDK_VERSION := current |
| 55 | LOCAL_MIN_SDK_VERSION := 21 |
| 56 | LOCAL_MODULE := wallpaper-subsampling-scale-image-view |
| 57 | LOCAL_MANIFEST_FILE := ../../../external/subsampling-scale-image-view/library/src/main/AndroidManifest.xml |
| 58 | |
| 59 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 60 | |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame^] | 61 | |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 62 | # |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame^] | 63 | # Build rule for WallpaperPicker2 dependencies lib. |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 64 | # |
| 65 | include $(CLEAR_VARS) |
Jon Miranda | 078ea36 | 2018-01-25 18:09:12 -0800 | [diff] [blame] | 66 | LOCAL_USE_AAPT2 := true |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame^] | 67 | LOCAL_MODULE_TAGS := optional |
Jon Miranda | 078ea36 | 2018-01-25 18:09:12 -0800 | [diff] [blame] | 68 | |
| 69 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 70 | androidx.appcompat_appcompat \ |
| 71 | androidx.cardview_cardview \ |
| 72 | androidx.recyclerview_recyclerview \ |
| 73 | com.google.android.material_material \ |
| 74 | androidx.exifinterface_exifinterface \ |
| 75 | wallpaper-subsampling-scale-image-view |
Jon Miranda | 078ea36 | 2018-01-25 18:09:12 -0800 | [diff] [blame] | 76 | |
| 77 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 78 | wallpaper2-glide-target \ |
| 79 | wallpaper2-disklrucache-target \ |
| 80 | wallpaper2-gifdecoder-target \ |
| 81 | volley \ |
| 82 | libbackup \ |
| 83 | icc_profiles |
| 84 | |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame^] | 85 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 86 | |
| 87 | LOCAL_PROGUARD_ENABLED := disabled |
| 88 | LOCAL_MANIFEST_FILE := AndroidManifest.xml |
| 89 | LOCAL_SDK_VERSION := current |
| 90 | |
| 91 | LOCAL_MODULE := WallpaperPicker2CommonDepsLib |
| 92 | LOCAL_PRIVILEGED_MODULE := true |
| 93 | |
| 94 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 95 | |
| 96 | # |
| 97 | # Build app code. |
| 98 | # |
| 99 | include $(CLEAR_VARS) |
| 100 | |
| 101 | LOCAL_MODULE_TAGS := optional |
| 102 | |
| 103 | LOCAL_USE_AAPT2 := true |
| 104 | |
| 105 | LOCAL_STATIC_ANDROID_LIBRARIES := WallpaperPicker2CommonDepsLib |
| 106 | |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 107 | LOCAL_SRC_FILES := $(call all-java-files-under, src) \ |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 108 | $(call all-java-files-under, src_override) |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 109 | |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 110 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 111 | |
| 112 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 113 | LOCAL_PROGUARD_ENABLED := disabled |
| 114 | |
Jon Miranda | 078ea36 | 2018-01-25 18:09:12 -0800 | [diff] [blame] | 115 | LOCAL_SDK_VERSION := current |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 116 | LOCAL_PACKAGE_NAME := WallpaperPicker2 |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 117 | LOCAL_JETIFIER_ENABLED := true |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 118 | |
Santiago Etchebehere | 7d2741f | 2018-11-27 13:24:12 -0800 | [diff] [blame^] | 119 | include $(BUILD_PACKAGE) |