blob: a6aebed51a00b87824981ace7a9d7086573c29c5 [file] [log] [blame]
Jon Miranda16ea1b12017-12-12 14:52:48 -08001#
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
25include $(BUILD_PREBUILT)
26
27include $(CLEAR_VARS)
28LOCAL_MODULE_CLASS := JAVA_LIBRARIES
29LOCAL_MODULE := wallpaper2-disklrucache-target
30LOCAL_SDK_VERSION := current
31LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
32LOCAL_UNINSTALLABLE_MODULE := true
33include $(BUILD_PREBUILT)
34
35include $(CLEAR_VARS)
36LOCAL_MODULE_CLASS := JAVA_LIBRARIES
37LOCAL_MODULE := wallpaper2-gifdecoder-target
38LOCAL_SDK_VERSION := current
39LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
40LOCAL_UNINSTALLABLE_MODULE := true
41include $(BUILD_PREBUILT)
42
Sunny Goyal8600a3f2018-08-15 12:48:01 -070043include $(CLEAR_VARS)
44LOCAL_USE_AAPT2 := true
45LOCAL_AAPT2_ONLY := true
46LOCAL_MODULE_TAGS := optional
47
48LOCAL_STATIC_ANDROID_LIBRARIES := android-support-exifinterface
49LOCAL_SRC_FILES := $(call all-java-files-under, ../../../external/subsampling-scale-image-view/library/src)
50LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/../../../external/subsampling-scale-image-view/library/src/main/res
51
52LOCAL_PROGUARD_ENABLED := disabled
53
54LOCAL_SDK_VERSION := current
55LOCAL_MIN_SDK_VERSION := 21
56LOCAL_MODULE := wallpaper-subsampling-scale-image-view
57LOCAL_MANIFEST_FILE := ../../../external/subsampling-scale-image-view/library/src/main/AndroidManifest.xml
58
59include $(BUILD_STATIC_JAVA_LIBRARY)
60
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080061
Jon Miranda16ea1b12017-12-12 14:52:48 -080062#
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080063# Build rule for WallpaperPicker2 dependencies lib.
Jon Miranda16ea1b12017-12-12 14:52:48 -080064#
65include $(CLEAR_VARS)
Jon Miranda078ea362018-01-25 18:09:12 -080066LOCAL_USE_AAPT2 := true
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080067LOCAL_MODULE_TAGS := optional
Jon Miranda078ea362018-01-25 18:09:12 -080068
69LOCAL_STATIC_ANDROID_LIBRARIES := \
Sunny Goyal8600a3f2018-08-15 12:48:01 -070070 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 Miranda078ea362018-01-25 18:09:12 -080076
77LOCAL_STATIC_JAVA_LIBRARIES := \
Jon Miranda16ea1b12017-12-12 14:52:48 -080078 wallpaper2-glide-target \
79 wallpaper2-disklrucache-target \
80 wallpaper2-gifdecoder-target \
81 volley \
Santiago Etchebehere62603132019-01-11 18:27:22 -080082 libbackup
Jon Miranda16ea1b12017-12-12 14:52:48 -080083
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080084LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
85
86LOCAL_PROGUARD_ENABLED := disabled
87LOCAL_MANIFEST_FILE := AndroidManifest.xml
88LOCAL_SDK_VERSION := current
89
90LOCAL_MODULE := WallpaperPicker2CommonDepsLib
91LOCAL_PRIVILEGED_MODULE := true
92
93include $(BUILD_STATIC_JAVA_LIBRARY)
94
95#
96# Build app code.
97#
98include $(CLEAR_VARS)
99
100LOCAL_MODULE_TAGS := optional
101
102LOCAL_USE_AAPT2 := true
103
104LOCAL_STATIC_ANDROID_LIBRARIES := WallpaperPicker2CommonDepsLib
105
Jon Miranda16ea1b12017-12-12 14:52:48 -0800106LOCAL_SRC_FILES := $(call all-java-files-under, src) \
Sunny Goyal8600a3f2018-08-15 12:48:01 -0700107 $(call all-java-files-under, src_override)
Jon Miranda16ea1b12017-12-12 14:52:48 -0800108
Sunny Goyal8600a3f2018-08-15 12:48:01 -0700109LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Jon Miranda16ea1b12017-12-12 14:52:48 -0800110
111LOCAL_PROGUARD_FLAG_FILES := proguard.flags
112LOCAL_PROGUARD_ENABLED := disabled
113
Jon Miranda078ea362018-01-25 18:09:12 -0800114LOCAL_SDK_VERSION := current
Jon Miranda16ea1b12017-12-12 14:52:48 -0800115LOCAL_PACKAGE_NAME := WallpaperPicker2
Sunny Goyal8600a3f2018-08-15 12:48:01 -0700116LOCAL_JETIFIER_ENABLED := true
Jon Miranda16ea1b12017-12-12 14:52:48 -0800117
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -0800118include $(BUILD_PACKAGE)