diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index 022b15801..0fbc0d744 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -271,7 +271,7 @@ dependencies { testCompile "org.easytesting:fest-assert-core:${FEST_ASSERT_CORE_VERSION}" testCompile "org.robolectric:robolectric:${ROBOLECTRIC_VERSION}" - androidTestCompile "com.android.support.test:testing-support-lib:0.1" + androidTestCompile 'com.android.support.test:runner:0.3' } apply from: 'release.gradle' diff --git a/ReactAndroid/src/androidTest/buck-runner/BUCK b/ReactAndroid/src/androidTest/buck-runner/BUCK index 337e846c1..b513e807e 100644 --- a/ReactAndroid/src/androidTest/buck-runner/BUCK +++ b/ReactAndroid/src/androidTest/buck-runner/BUCK @@ -14,6 +14,7 @@ android_binary( deps = [ react_native_integration_tests_target('java/com/facebook/react/tests:tests'), react_native_integration_tests_target('assets:assets'), + react_native_dep('third-party/java/testing-support-lib:exposed-instrumentation-api'), react_native_target('jni/prebuilt:reactnative-libs'), react_native_target('jni/prebuilt:android-jsc'), react_native_dep('libraries/soloader/java/com/facebook/soloader:soloader'), diff --git a/ReactAndroid/src/main/third-party/java/testing-support-lib/BUCK b/ReactAndroid/src/main/third-party/java/testing-support-lib/BUCK index f3b93922c..3c314a35b 100644 --- a/ReactAndroid/src/main/third-party/java/testing-support-lib/BUCK +++ b/ReactAndroid/src/main/third-party/java/testing-support-lib/BUCK @@ -1,12 +1,23 @@ android_prebuilt_aar( - name = 'testing-support-lib', - aar = ':testing-support-lib-download', + name = 'runner', + aar = ':testing-support-lib-runner-download', visibility = ['//ReactAndroid/...',], ) remote_file( - name = 'testing-support-lib-download', - url = 'mvn:com.android.support.test:testing-support-lib:aar:0.1', - sha1 = '36e4f08b2a3389dd5a5093411df35091bdd68361', + name = 'testing-support-lib-runner-download', + url = 'mvn:com.android.support.test:runner:aar:0.3', + sha1 = 'a31e7e8db98ca19fb3fab23f120d19a6f4e3e8a9', ) +android_prebuilt_aar( + name = 'exposed-instrumentation-api', + aar = ':testing-support-instrumentation', + visibility = ['//ReactAndroid/...',], +) + +remote_file( + name = 'testing-support-instrumentation', + url = 'mvn:com.android.support.test:exposed-instrumentation-api-publish:aar:0.3', + sha1 = 'a7161eafdfbd02a39461f076c9dce0c8e5e7a149', +)