1############################################## 2# Compile Robolectric shadows httpclient 3############################################## 4LOCAL_PATH := $(call my-dir) 5include $(CLEAR_VARS) 6 7LOCAL_MODULE := Robolectric_shadows_httpclient 8 9LOCAL_JAVA_LIBRARIES := \ 10 Robolectric_shadows_framework \ 11 Robolectric_annotations \ 12 Robolectric_shadowapi \ 13 Robolectric_utils \ 14 robolectric-host-org_apache_http_legacy \ 15 robolectric-host-android_all \ 16 robolectric-httpclient-4.0.3 \ 17 robolectric-httpcore-4.0.1 \ 18 robolectric-javax.annotation-api-1.2 19 20LOCAL_ANNOTATION_PROCESSORS := \ 21 Robolectric_annotations \ 22 Robolectric_processor \ 23 robolectric-asm-commons-6.0 \ 24 robolectric-guava-25.1-jre \ 25 robolectric-asm-tree-6.0 \ 26 robolectric-gson-2.8 \ 27 robolectric-asm-6.0 28 29LOCAL_ANNOTATION_PROCESSOR_CLASSES := org.robolectric.annotation.processing.RobolectricProcessor 30 31LOCAL_JAVACFLAGS := -Aorg.robolectric.annotation.processing.shadowPackage=org.robolectric.shadows.httpclient 32 33LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) 34 35include $(BUILD_HOST_JAVA_LIBRARY) 36 37############################################## 38# Compile Robolectric shadows httpclient tests 39############################################## 40include $(CLEAR_VARS) 41 42LOCAL_MODULE := Robolectric_shadows_httpclient_tests 43 44LOCAL_SRC_FILES := $(call all-java-files-under, src/test/java) 45 46LOCAL_JAVA_RESOURCE_DIRS := src/test/resources 47 48LOCAL_JAVA_LIBRARIES := \ 49 Robolectric_shadows_httpclient \ 50 Robolectric_shadows_framework \ 51 Robolectric_annotations \ 52 Robolectric_robolectric \ 53 Robolectric_resources \ 54 Robolectric_shadowapi \ 55 Robolectric_junit \ 56 Robolectric_utils \ 57 robolectric-host-org_apache_http_legacy \ 58 robolectric-host-android_all \ 59 robolectric-httpclient-4.0.3 \ 60 robolectric-httpcore-4.0.1 \ 61 robolectric-guava-25.1-jre \ 62 robolectric-junit-4.12 \ 63 robolectric-truth-0.42 \ 64 jsr305 65 66include $(BUILD_HOST_JAVA_LIBRARY) 67 68############################################## 69# Execute Robolectric shadows httpclient tests 70############################################## 71include $(CLEAR_VARS) 72 73LOCAL_MODULE := Run_robolectric_shadows_httpclient_tests 74 75test_source_directory := $(LOCAL_PATH)/src/test/java 76 77test_resources_directory := $(LOCAL_PATH)/src/test/resources 78 79test_runtime_libraries := \ 80 Robolectric_shadows_httpclient_tests \ 81 Robolectric_shadows_httpclient \ 82 Robolectric_shadows_framework \ 83 Robolectric_annotations \ 84 Robolectric_robolectric \ 85 Robolectric_resources \ 86 Robolectric_shadowapi \ 87 Robolectric_sandbox \ 88 Robolectric_junit \ 89 Robolectric_utils \ 90 robolectric-host-monitor-1.0.2-alpha1 \ 91 robolectric-maven-ant-tasks-2.1.3 \ 92 robolectric-bouncycastle-1.46 \ 93 robolectric-hamcrest-core-1.3 \ 94 robolectric-host-android_all \ 95 robolectric-httpclient-4.0.3 \ 96 robolectric-asm-commons-6.0 \ 97 robolectric-httpcore-4.0.1 \ 98 robolectric-guava-25.1-jre \ 99 robolectric-asm-tree-6.0 \ 100 robolectric-junit-4.12 \ 101 robolectric-truth-0.42 \ 102 robolectric-ant-1.8.0 \ 103 robolectric-asm-6.0 \ 104 jsr305 \ 105 robolectric-host-org_apache_http_legacy 106 107include external/robolectric-shadows/run_robolectric_module_tests.mk