1 ############################################## 2 # Compile Robolectric shadowapi 3 ############################################## 4 LOCAL_PATH := $(call my-dir) 5 include $(CLEAR_VARS) 6 7 LOCAL_MODULE := Robolectric_shadowapi 8 9 LOCAL_JAVA_LIBRARIES := jsr305 10 11 LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) 12 13 include $(BUILD_HOST_JAVA_LIBRARY) 14 15 ############################################## 16 # Compile Robolectric shadowapi tests 17 ############################################## 18 include $(CLEAR_VARS) 19 20 LOCAL_MODULE := Robolectric_shadowapi_tests 21 22 LOCAL_SRC_FILES := $(call all-java-files-under, src/test/java) 23 24 LOCAL_JAVA_LIBRARIES := \ 25 Robolectric_shadowapi \ 26 robolectric-guava-25.1-jre \ 27 robolectric-junit-4.12 \ 28 robolectric-truth-0.42 29 30 include $(BUILD_HOST_JAVA_LIBRARY) 31 32 ############################################## 33 # Execute Robolectric shadowapi tests 34 ############################################## 35 include $(CLEAR_VARS) 36 37 LOCAL_MODULE := Run_robolectric_shadowapi_tests 38 39 test_source_directory := $(LOCAL_PATH)/src/test/java 40 41 test_runtime_libraries := \ 42 Robolectric_shadowapi_tests \ 43 Robolectric_shadowapi \ 44 robolectric-hamcrest-core-1.3 \ 45 robolectric-guava-25.1-jre \ 46 robolectric-junit-4.12 \ 47 robolectric-truth-0.42 48 49 include external/robolectric-shadows/run_robolectric_module_tests.mk