blob: 39eeeb638712715cfa8a89a057f4ccda5078e5cf [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
Santiago Etchebehere8dbefef2019-08-01 17:32:19 -070025LOCAL_JETIFIER_ENABLED := true
Jon Miranda16ea1b12017-12-12 14:52:48 -080026include $(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
Sunny Goyal8600a3f2018-08-15 12:48:01 -070044include $(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
Santiago Etchebehere8cad0dd2019-10-17 10:52:39 -070056LOCAL_MIN_SDK_VERSION := 26
Sunny Goyal8600a3f2018-08-15 12:48:01 -070057LOCAL_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
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080062
Jon Miranda16ea1b12017-12-12 14:52:48 -080063#
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080064# Build rule for WallpaperPicker2 dependencies lib.
Jon Miranda16ea1b12017-12-12 14:52:48 -080065#
66include $(CLEAR_VARS)
Jon Miranda078ea362018-01-25 18:09:12 -080067LOCAL_USE_AAPT2 := true
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080068LOCAL_MODULE_TAGS := optional
Jon Miranda078ea362018-01-25 18:09:12 -080069
70LOCAL_STATIC_ANDROID_LIBRARIES := \
Sunny Goyal8600a3f2018-08-15 12:48:01 -070071 androidx.appcompat_appcompat \
72 androidx.cardview_cardview \
73 androidx.recyclerview_recyclerview \
Santiago Etchebehere4ecb6aa2019-11-07 11:48:58 -080074 androidx.slice_slice-view \
Santiago Etchebehere0b5a0a12019-05-01 15:34:25 -070075 androidx-constraintlayout_constraintlayout \
Sunny Goyal8600a3f2018-08-15 12:48:01 -070076 com.google.android.material_material \
77 androidx.exifinterface_exifinterface \
78 wallpaper-subsampling-scale-image-view
Jon Miranda078ea362018-01-25 18:09:12 -080079
80LOCAL_STATIC_JAVA_LIBRARIES := \
Jon Miranda16ea1b12017-12-12 14:52:48 -080081 wallpaper2-glide-target \
82 wallpaper2-disklrucache-target \
83 wallpaper2-gifdecoder-target \
84 volley \
Santiago Etchebehere62603132019-01-11 18:27:22 -080085 libbackup
Jon Miranda16ea1b12017-12-12 14:52:48 -080086
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080087LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
88
89LOCAL_PROGUARD_ENABLED := disabled
90LOCAL_MANIFEST_FILE := AndroidManifest.xml
Hyunyoung Song03512b52019-02-22 21:35:37 -080091
Hyunyoung Song7f889152019-08-08 01:33:48 -070092LOCAL_SDK_VERSION := current
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080093LOCAL_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
Jon Miranda16ea1b12017-12-12 14:52:48 -0800109LOCAL_SRC_FILES := $(call all-java-files-under, src) \
Sunny Goyal8600a3f2018-08-15 12:48:01 -0700110 $(call all-java-files-under, src_override)
Jon Miranda16ea1b12017-12-12 14:52:48 -0800111
Sunny Goyal8600a3f2018-08-15 12:48:01 -0700112LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Jon Miranda16ea1b12017-12-12 14:52:48 -0800113
114LOCAL_PROGUARD_FLAG_FILES := proguard.flags
115LOCAL_PROGUARD_ENABLED := disabled
116
Santiago Etchebehere4ecb6aa2019-11-07 11:48:58 -0800117LOCAL_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
Jon Miranda16ea1b12017-12-12 14:52:48 -0800126LOCAL_PACKAGE_NAME := WallpaperPicker2
Sunny Goyal8600a3f2018-08-15 12:48:01 -0700127LOCAL_JETIFIER_ENABLED := true
Jon Miranda16ea1b12017-12-12 14:52:48 -0800128
Hyunyoung Song03512b52019-02-22 21:35:37 -0800129include $(BUILD_PACKAGE)
Santiago Etchebehere8cad0dd2019-10-17 10:52:39 -0700130
131include $(call all-makefiles-under,$(LOCAL_PATH))