1 ############################################## 2 # Compile Robolectric resources 3 ############################################## 4 LOCAL_PATH := $(call my-dir) 5 include $(CLEAR_VARS) 6 7 LOCAL_MODULE := Robolectric_resources 8 9 LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) 10 11 LOCAL_JAVA_LIBRARIES := \ 12 Robolectric_annotations \ 13 Robolectric_utils \ 14 robolectric-guava-25.1-jre \ 15 jsr305 16 17 include $(BUILD_HOST_JAVA_LIBRARY) 18 19 ############################################## 20 # Compile Robolectric resources tests 21 ############################################## 22 include $(CLEAR_VARS) 23 24 LOCAL_MODULE := Robolectric_resources_tests 25 26 LOCAL_SRC_FILES := $(call all-java-files-under, src/test/java) 27 28 LOCAL_JAVA_LIBRARIES := \ 29 Robolectric_resources \ 30 robolectric-mockito-core-2.16.0 \ 31 robolectric-guava-25.1-jre \ 32 robolectric-junit-4.12 \ 33 robolectric-truth-0.42 34 35 include $(BUILD_HOST_JAVA_LIBRARY) 36 37 ############################################## 38 # Execute Robolectric resources tests 39 ############################################## 40 include $(CLEAR_VARS) 41 42 LOCAL_MODULE := Run_robolectric_resources_tests 43 44 test_source_directory := $(LOCAL_PATH)/src/test/java 45 46 test_runtime_libraries := \ 47 Robolectric_resources_tests \ 48 Robolectric_annotations \ 49 Robolectric_resources \ 50 Robolectric_utils \ 51 robolectric-byte-buddy-agent-1.6.5 \ 52 robolectric-mockito-core-2.16.0 \ 53 robolectric-hamcrest-core-1.3 \ 54 robolectric-byte-buddy-1.6.5 \ 55 robolectric-guava-25.1-jre \ 56 robolectric-objenesis-2.5 \ 57 robolectric-junit-4.12 \ 58 robolectric-truth-0.42 59 60 include external/robolectric-shadows/run_robolectric_module_tests.mk 61