1############################################## 2# Compile Robolectric sandbox 3############################################## 4LOCAL_PATH := $(call my-dir) 5include $(CLEAR_VARS) 6 7LOCAL_MODULE := Robolectric_sandbox 8 9LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) 10 11LOCAL_JAVA_LIBRARIES := \ 12 Robolectric_annotations \ 13 Robolectric_shadowapi \ 14 Robolectric_utils \ 15 robolectric-asm-commons-6.0 \ 16 robolectric-guava-25.1-jre \ 17 robolectric-asm-tree-6.0 \ 18 robolectric-asm-6.0 \ 19 jsr305 20 21include $(BUILD_HOST_JAVA_LIBRARY) 22 23############################################## 24# Compile Robolectric sandbox tests 25############################################## 26include $(CLEAR_VARS) 27 28LOCAL_MODULE := Robolectric_sandbox_tests 29 30LOCAL_SRC_FILES := $(call all-java-files-under, src/test/java) 31 32LOCAL_JAVA_LIBRARIES := \ 33 Robolectric_annotations \ 34 Robolectric_shadowapi \ 35 Robolectric_sandbox \ 36 Robolectric_junit \ 37 Robolectric_utils \ 38 robolectric-mockito-core-2.16.0 \ 39 robolectric-asm-commons-6.0 \ 40 robolectric-guava-25.1-jre \ 41 robolectric-asm-tree-6.0 \ 42 robolectric-junit-4.12 \ 43 robolectric-truth-0.42 \ 44 robolectric-asm-6.0 \ 45 jsr305 46 47include $(BUILD_HOST_JAVA_LIBRARY) 48 49############################################## 50# Execute Robolectric sandbox tests 51############################################## 52include $(CLEAR_VARS) 53 54LOCAL_MODULE := Run_robolectric_sandbox_tests 55 56test_source_directory := $(LOCAL_PATH)/src/test/java 57 58test_runtime_libraries := \ 59 Robolectric_sandbox_tests \ 60 Robolectric_annotations \ 61 Robolectric_shadowapi \ 62 Robolectric_sandbox \ 63 Robolectric_junit \ 64 Robolectric_utils \ 65 robolectric-byte-buddy-agent-1.6.5 \ 66 robolectric-mockito-core-2.16.0 \ 67 robolectric-hamcrest-core-1.3 \ 68 robolectric-byte-buddy-1.6.5 \ 69 robolectric-asm-commons-6.0 \ 70 robolectric-guava-25.1-jre \ 71 robolectric-objenesis-2.5 \ 72 robolectric-asm-tree-6.0 \ 73 robolectric-junit-4.12 \ 74 robolectric-truth-0.42 \ 75 robolectric-asm-6.0 \ 76 jsr305 77 78include external/robolectric-shadows/run_robolectric_module_tests.mk 79