James Lemieux | 3165e86 | 2017-12-01 13:23:47 -0800 | [diff] [blame] | 1 | ############################################## |
| 2 | # Assemble Robolectric_all |
| 3 | ############################################## |
James Lemieux | f5a4ae4 | 2017-09-22 18:51:10 -0700 | [diff] [blame] | 4 | LOCAL_PATH := $(call my-dir) |
| 5 | include $(CLEAR_VARS) |
| 6 | |
| 7 | LOCAL_MODULE := Robolectric_all |
| 8 | |
| 9 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
James Lemieux | 0ea9560 | 2018-10-10 12:57:30 -0700 | [diff] [blame] | 10 | Robolectric_shadows_androidx_fragment \ |
James Lemieux | f5a4ae4 | 2017-09-22 18:51:10 -0700 | [diff] [blame] | 11 | Robolectric_shadows_httpclient \ |
| 12 | Robolectric_shadows_framework \ |
| 13 | Robolectric_shadows_supportv4 \ |
| 14 | Robolectric_shadows_multidex \ |
| 15 | Robolectric_robolectric \ |
| 16 | Robolectric_annotations \ |
| 17 | Robolectric_resources \ |
| 18 | Robolectric_shadowapi \ |
| 19 | Robolectric_sandbox \ |
| 20 | Robolectric_junit \ |
James Lemieux | 2a2559e | 2018-01-28 02:56:27 -0800 | [diff] [blame] | 21 | Robolectric_utils \ |
| 22 | robolectric-asm-6.0 \ |
| 23 | robolectric-junit-4.12 \ |
| 24 | robolectric-asm-tree-6.0 \ |
James Lemieux | 0ea9560 | 2018-10-10 12:57:30 -0700 | [diff] [blame] | 25 | robolectric-guava-25.1-jre \ |
James Lemieux | 2a2559e | 2018-01-28 02:56:27 -0800 | [diff] [blame] | 26 | robolectric-asm-commons-6.0 \ |
| 27 | robolectric-bouncycastle-1.46 \ |
James Lemieux | c0195e1 | 2018-02-26 00:49:53 -0800 | [diff] [blame] | 28 | robolectric-sqlite4java-0.282 \ |
James Lemieux | 2a2559e | 2018-01-28 02:56:27 -0800 | [diff] [blame] | 29 | robolectric-hamcrest-core-1.3 \ |
| 30 | robolectric-hamcrest-library-1.3 \ |
James Lemieux | a6fb346 | 2018-12-12 17:53:46 -0800 | [diff] [blame] | 31 | robolectric-host-androidx-test-runner \ |
James Lemieux | 2a2559e | 2018-01-28 02:56:27 -0800 | [diff] [blame] | 32 | robolectric-host-org_apache_http_legacy |
James Lemieux | f5a4ae4 | 2017-09-22 18:51:10 -0700 | [diff] [blame] | 33 | |
| 34 | LOCAL_JAVA_RESOURCE_DIRS := \ |
| 35 | shadows/framework/src/main/resources \ |
| 36 | src/main/resources |
| 37 | |
| 38 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 39 | |
| 40 | include $(call first-makefiles-under, $(LOCAL_PATH)) |
| 41 | |
James Lemieux | 3165e86 | 2017-12-01 13:23:47 -0800 | [diff] [blame] | 42 | ############################################## |
| 43 | # Run all Robolectric tests |
| 44 | ############################################## |
| 45 | include $(CLEAR_VARS) |
| 46 | |
James Lemieux | 292ab7f | 2018-11-15 11:45:03 -0800 | [diff] [blame] | 47 | .PHONY: Run_robolectric_test_suite |
James Lemieux | 3165e86 | 2017-12-01 13:23:47 -0800 | [diff] [blame] | 48 | |
James Lemieux | 292ab7f | 2018-11-15 11:45:03 -0800 | [diff] [blame] | 49 | Run_robolectric_test_suite: \ |
James Lemieux | 3165e86 | 2017-12-01 13:23:47 -0800 | [diff] [blame] | 50 | Run_robolectric_utils_tests \ |
| 51 | Run_robolectric_sandbox_tests \ |
| 52 | Run_robolectric_processor_tests \ |
| 53 | Run_robolectric_resources_tests \ |
| 54 | Run_robolectric_shadowapi_tests \ |
| 55 | Run_robolectric_robolectric_tests \ |
| 56 | Run_robolectric_shadows_supportv4_tests \ |
James Lemieux | 0ea9560 | 2018-10-10 12:57:30 -0700 | [diff] [blame] | 57 | Run_robolectric_shadows_httpclient_tests \ |
| 58 | Run_robolectric_shadows_androidx_fragment_tests |
James Lemieux | 3165e86 | 2017-12-01 13:23:47 -0800 | [diff] [blame] | 59 | |
James Lemieux | 0ea9560 | 2018-10-10 12:57:30 -0700 | [diff] [blame] | 60 | ############################################## |
James Lemieux | b00c766 | 2017-12-15 16:07:22 -0800 | [diff] [blame] | 61 | # target prebuilts for Robolectric |
James Lemieux | 0ea9560 | 2018-10-10 12:57:30 -0700 | [diff] [blame] | 62 | ############################################## |
James Lemieux | b00c766 | 2017-12-15 16:07:22 -0800 | [diff] [blame] | 63 | |
| 64 | include $(CLEAR_VARS) |
| 65 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ |
| 66 | robolectric-monitor-1.0.2-alpha1:../../../prebuilts/tools/common/m2/repository/com/android/support/test/monitor/1.0.2-alpha1/monitor-1.0.2-alpha1.aar |
| 67 | |
| 68 | include $(BUILD_MULTI_PREBUILT) |
| 69 | |
James Lemieux | 3165e86 | 2017-12-01 13:23:47 -0800 | [diff] [blame] | 70 | ############################################## |
James Lemieux | f5a4ae4 | 2017-09-22 18:51:10 -0700 | [diff] [blame] | 71 | # host prebuilts for Robolectric |
James Lemieux | 3165e86 | 2017-12-01 13:23:47 -0800 | [diff] [blame] | 72 | ############################################## |
James Lemieux | f5a4ae4 | 2017-09-22 18:51:10 -0700 | [diff] [blame] | 73 | include $(CLEAR_VARS) |
| 74 | LOCAL_PREBUILT_JAVA_LIBRARIES := \ |
James Lemieux | b00c766 | 2017-12-15 16:07:22 -0800 | [diff] [blame] | 75 | robolectric-accessibility-test-framework-2.1:../../../prebuilts/tools/common/m2/repository/com/google/android/apps/common/testing/accessibility/framework/accessibility-test-framework/2.1/accessibility-test-framework-2.1.jar \ |
| 76 | robolectric-ant-1.8.0:../../../prebuilts/tools/common/m2/repository/org/apache/ant/ant/1.8.0/ant-1.8.0.jar \ |
| 77 | robolectric-asm-6.0:../../../prebuilts/tools/common/m2/repository/org/ow2/asm/asm/6.0/asm-6.0.jar \ |
| 78 | robolectric-asm-commons-6.0:../../../prebuilts/tools/common/m2/repository/org/ow2/asm/asm-commons/6.0/asm-commons-6.0.jar \ |
| 79 | robolectric-asm-tree-6.0:../../../prebuilts/tools/common/m2/repository/org/ow2/asm/asm-tree/6.0/asm-tree-6.0.jar \ |
| 80 | robolectric-bouncycastle-1.46:../../../prebuilts/tools/common/m2/repository/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar \ |
James Lemieux | 3165e86 | 2017-12-01 13:23:47 -0800 | [diff] [blame] | 81 | robolectric-byte-buddy-1.6.5:../../../prebuilts/tools/common/m2/repository/net/bytebuddy/byte-buddy/1.6.5/byte-buddy-1.6.5.jar \ |
| 82 | robolectric-byte-buddy-agent-1.6.5:../../../prebuilts/tools/common/m2/repository/net/bytebuddy/byte-buddy-agent/1.6.5/byte-buddy-agent-1.6.5.jar \ |
James Lemieux | 0ea9560 | 2018-10-10 12:57:30 -0700 | [diff] [blame] | 83 | robolectric-compile-testing-0.15:../../../prebuilts/tools/common/m2/repository/com/google/testing/compile/compile-testing/0.15/compile-testing-0.15.jar \ |
| 84 | robolectric-diffutils-1.3.0:../../../prebuilts/tools/common/m2/repository/com/googlecode/java-diff-utils/diffutils/1.3.0/diffutils-1.3.0.jar \ |
| 85 | robolectric-truth-0.42:../../../prebuilts/tools/common/m2/repository/com/google/truth/truth/0.42/truth-0.42.jar \ |
James Lemieux | b00c766 | 2017-12-15 16:07:22 -0800 | [diff] [blame] | 86 | robolectric-gson-2.8:../../../prebuilts/tools/common/m2/repository/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar \ |
James Lemieux | 0ea9560 | 2018-10-10 12:57:30 -0700 | [diff] [blame] | 87 | robolectric-guava-25.1-jre:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/25.1-jre/guava-25.1-jre.jar \ |
James Lemieux | b00c766 | 2017-12-15 16:07:22 -0800 | [diff] [blame] | 88 | robolectric-hamcrest-core-1.3:../../../prebuilts/tools/common/m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar \ |
| 89 | robolectric-hamcrest-library-1.3:../../../prebuilts/tools/common/m2/repository/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.jar \ |
| 90 | robolectric-httpclient-4.0.3:../../../prebuilts/tools/common/m2/repository/org/apache/httpcomponents/httpclient/4.0.3/httpclient-4.0.3.jar \ |
| 91 | robolectric-httpcore-4.0.1:../../../prebuilts/tools/common/m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar \ |
James Lemieux | 3165e86 | 2017-12-01 13:23:47 -0800 | [diff] [blame] | 92 | robolectric-icu4j-53.1:../../../prebuilts/tools/common/m2/repository/com/ibm/icu/icu4j/53.1/icu4j-53.1.jar \ |
Tobias Thierer | 7cebe9a | 2018-01-25 23:20:40 +0000 | [diff] [blame] | 93 | robolectric-javax.annotation-api-1.2:../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar \ |
James Lemieux | b00c766 | 2017-12-15 16:07:22 -0800 | [diff] [blame] | 94 | robolectric-junit-4.12:../../../prebuilts/tools/common/m2/repository/junit/junit/4.12/junit-4.12.jar \ |
James Lemieux | 3165e86 | 2017-12-01 13:23:47 -0800 | [diff] [blame] | 95 | robolectric-objenesis-2.5:../../../prebuilts/tools/common/m2/repository/org/objenesis/objenesis/2.5/objenesis-2.5.jar \ |
James Lemieux | b00c766 | 2017-12-15 16:07:22 -0800 | [diff] [blame] | 96 | robolectric-maven-ant-tasks-2.1.3:../../../prebuilts/tools/common/m2/repository/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar \ |
Fan Zhang | 451a5dc | 2018-06-04 15:17:07 -0700 | [diff] [blame] | 97 | robolectric-mockito-core-2.16.0:../../../prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.16.0/mockito-core-2.16.0.jar \ |
James Lemieux | b00c766 | 2017-12-15 16:07:22 -0800 | [diff] [blame] | 98 | robolectric-sqlite4java-0.282:../../../prebuilts/tools/common/m2/repository/com/almworks/sqlite4java/sqlite4java/0.282/sqlite4java-0.282.jar \ |
| 99 | robolectric-xstream-1.4.8:../../../prebuilts/tools/common/m2/repository/com/thoughtworks/xstream/xstream/1.4.8/xstream-1.4.8.jar |
James Lemieux | 2a2559e | 2018-01-28 02:56:27 -0800 | [diff] [blame] | 100 | include $(BUILD_HOST_PREBUILT) |
| 101 | |
James Lemieux | 0ea9560 | 2018-10-10 12:57:30 -0700 | [diff] [blame] | 102 | ############################################## |
James Lemieux | 2a2559e | 2018-01-28 02:56:27 -0800 | [diff] [blame] | 103 | # HACK: specify these *HOST* jars needed to execute robolectric as though they are prebuilt *TARGET* java libraries |
James Lemieux | 0ea9560 | 2018-10-10 12:57:30 -0700 | [diff] [blame] | 104 | ############################################## |
James Lemieux | 2a2559e | 2018-01-28 02:56:27 -0800 | [diff] [blame] | 105 | include $(CLEAR_VARS) |
| 106 | |
Colin Cross | 09eaeff | 2018-10-08 14:12:03 -0700 | [diff] [blame] | 107 | LOCAL_MODULE := Robolectric_all-target |
| 108 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 109 | LOCAL_UNINSTALLABLE_MODULE := true |
| 110 | LOCAL_BUILT_MODULE_STEM := javalib.jar |
| 111 | LOCAL_PREBUILT_MODULE_FILE := $(call java-lib-files, Robolectric_all, HOST) |
James Lemieux | 2a2559e | 2018-01-28 02:56:27 -0800 | [diff] [blame] | 112 | |
Colin Cross | 09eaeff | 2018-10-08 14:12:03 -0700 | [diff] [blame] | 113 | include $(BUILD_PREBUILT) |