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