From c43ea252673f4c33f1fae68eb44b0b0a5ddaffed Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Wed, 3 May 2023 03:27:17 -0700 Subject: [PATCH] Remove references to REACT_NATIVE_ROBOLECTRIC_MIRROR (#37201) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37201 As we don't need to have a Robolectric Offline Mirror anymore due to how we execute Robolectric tests only on Gradle/CircleCI or Buck/Internal, we can remove this configuration. Changelog: [Internal] [Changed] - Remove references to REACT_NATIVE_ROBOLECTRIC_MIRROR Reviewed By: philIip, mdvacca Differential Revision: D45497431 fbshipit-source-id: e26e3117eb456c313dc8bf366bf71bb4dedea048 --- packages/react-native/ReactAndroid/build.gradle | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/react-native/ReactAndroid/build.gradle b/packages/react-native/ReactAndroid/build.gradle index 6f5cff28852..ecc1fb534af 100644 --- a/packages/react-native/ReactAndroid/build.gradle +++ b/packages/react-native/ReactAndroid/build.gradle @@ -657,17 +657,6 @@ android { includeBuildTypeValues('debug', 'release') } } - - testOptions { - unitTests.all { - // Robolectric tests are downloading JARs at runtime. This allows to specify - // a local file mirror with REACT_NATIVE_ROBOLECTRIC_MIRROR to go in offline more. - if (System.getenv("REACT_NATIVE_ROBOLECTRIC_MIRROR") != null) { - systemProperty 'robolectric.offline', 'true' - systemProperty 'robolectric.dependency.dir', System.getenv("REACT_NATIVE_ROBOLECTRIC_MIRROR") - } - } - } } dependencies {