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-asm-tree-6.0 \
17  robolectric-guava-20.0 \
18  robolectric-asm-6.0 \
19  jsr305lib
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-assertj-core-3.8.0 \
39  robolectric-mockito-core-2.7.6 \
40  robolectric-asm-commons-6.0 \
41  robolectric-asm-tree-6.0 \
42  robolectric-guava-20.0 \
43  robolectric-junit-4.12 \
44  robolectric-asm-6.0 \
45  jsr305lib
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-assertj-core-3.8.0 \
67  robolectric-mockito-core-2.7.6 \
68  robolectric-hamcrest-core-1.3 \
69  robolectric-byte-buddy-1.6.5 \
70  robolectric-asm-commons-6.0 \
71  robolectric-objenesis-2.5 \
72  robolectric-asm-tree-6.0 \
73  robolectric-guava-20.0 \
74  robolectric-junit-4.12 \
75  robolectric-asm-6.0 \
76  jsr305lib
77
78include external/robolectric-shadows/run_robolectric_module_tests.mk