fixed test dependency broken in D3168150

Summary:fixes Circle
Closes https://github.com/facebook/react-native/pull/6978

Differential Revision: D3179133

fb-gh-sync-id: 6558168735b4097a68bf7423a7c249a45cc2684a
fbshipit-source-id: 6558168735b4097a68bf7423a7c249a45cc2684a
This commit is contained in:
Konstantin Raev 2016-04-14 07:49:19 -07:00 committed by Facebook Github Bot 2
parent eaba2abc0b
commit b2ecc83ead
3 changed files with 18 additions and 6 deletions

View File

@ -271,7 +271,7 @@ dependencies {
testCompile "org.easytesting:fest-assert-core:${FEST_ASSERT_CORE_VERSION}" testCompile "org.easytesting:fest-assert-core:${FEST_ASSERT_CORE_VERSION}"
testCompile "org.robolectric:robolectric:${ROBOLECTRIC_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' apply from: 'release.gradle'

View File

@ -14,6 +14,7 @@ android_binary(
deps = [ deps = [
react_native_integration_tests_target('java/com/facebook/react/tests:tests'), react_native_integration_tests_target('java/com/facebook/react/tests:tests'),
react_native_integration_tests_target('assets:assets'), 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:reactnative-libs'),
react_native_target('jni/prebuilt:android-jsc'), react_native_target('jni/prebuilt:android-jsc'),
react_native_dep('libraries/soloader/java/com/facebook/soloader:soloader'), react_native_dep('libraries/soloader/java/com/facebook/soloader:soloader'),

View File

@ -1,12 +1,23 @@
android_prebuilt_aar( android_prebuilt_aar(
name = 'testing-support-lib', name = 'runner',
aar = ':testing-support-lib-download', aar = ':testing-support-lib-runner-download',
visibility = ['//ReactAndroid/...',], visibility = ['//ReactAndroid/...',],
) )
remote_file( remote_file(
name = 'testing-support-lib-download', name = 'testing-support-lib-runner-download',
url = 'mvn:com.android.support.test:testing-support-lib:aar:0.1', url = 'mvn:com.android.support.test:runner:aar:0.3',
sha1 = '36e4f08b2a3389dd5a5093411df35091bdd68361', 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',
)