Jeff Sharkey | 9e0036e | 2013-04-26 16:54:55 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | LOCAL_MODULE_TAGS := optional |
| 5 | |
Jeff Sharkey | 6d97d3c | 2013-09-06 10:43:45 -0700 | [diff] [blame] | 6 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
Jeff Sharkey | 9e0036e | 2013-04-26 16:54:55 -0700 | [diff] [blame] | 7 | |
Ben Kwa | a747d2e | 2015-08-24 10:15:56 -0700 | [diff] [blame] | 8 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4 |
| 9 | # The design lib requires that the client package use appcompat themes. |
| 10 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat |
Ben Kwa | e3dfebf | 2016-02-18 16:45:45 -0800 | [diff] [blame] | 11 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13 |
Ben Kwa | a747d2e | 2015-08-24 10:15:56 -0700 | [diff] [blame] | 12 | # Supplies material design components, e.g. Snackbar. |
| 13 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-design |
| 14 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview |
| 15 | LOCAL_STATIC_JAVA_LIBRARIES += guava |
| 16 | |
Ying Wang | 94252de | 2015-09-02 11:17:04 -0700 | [diff] [blame] | 17 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
Ben Kwa | a747d2e | 2015-08-24 10:15:56 -0700 | [diff] [blame] | 18 | # Not quite sure why it is necessary to explicitly pull in resources from the |
| 19 | # appcompat lib, but the demo code indicates it's necessary (see |
| 20 | # development/samples/Support7Demos/Android.mk) |
Ying Wang | 94252de | 2015-09-02 11:17:04 -0700 | [diff] [blame] | 21 | LOCAL_RESOURCE_DIR += \ |
| 22 | frameworks/support/v7/appcompat/res \ |
| 23 | frameworks/support/design/res \ |
| 24 | frameworks/support/v7/recyclerview/res |
Ben Kwa | a747d2e | 2015-08-24 10:15:56 -0700 | [diff] [blame] | 25 | |
| 26 | # Again, required to pull in appcompat resources. See abovementioned demo code. |
Ying Wang | 94252de | 2015-09-02 11:17:04 -0700 | [diff] [blame] | 27 | LOCAL_AAPT_FLAGS := \ |
| 28 | --auto-add-overlay \ |
| 29 | --extra-packages android.support.v7.appcompat \ |
| 30 | --extra-packages android.support.design \ |
| 31 | --extra-packages android.support.v7.recyclerview |
Jeff Sharkey | bc2971d | 2013-07-31 20:53:22 -0700 | [diff] [blame] | 32 | |
Jeff Sharkey | 9e0036e | 2013-04-26 16:54:55 -0700 | [diff] [blame] | 33 | LOCAL_PACKAGE_NAME := DocumentsUI |
| 34 | LOCAL_CERTIFICATE := platform |
| 35 | |
| 36 | include $(BUILD_PACKAGE) |
Ben Kwa | 62539a2 | 2015-04-22 15:43:17 -0700 | [diff] [blame] | 37 | |
| 38 | include $(LOCAL_PATH)/tests/Android.mk |