Skip to content

Commit 4fb42c8

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Delete ScreenshotTestsManagerModule (#53746)
Summary: Pull Request resolved: #53746 ScreenshotTestsManagerModule and ReactAppScreenshotTestActivity are not in use anymore, let's delete them changelog: [internal] internal Reviewed By: javache Differential Revision: D82249453 fbshipit-source-id: 73b0f2ef2e9a5370057c07c3bee03f9c0793d61a
1 parent ebe51d6 commit 4fb42c8

File tree

1 file changed

+1
-10
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo

1 file changed

+1
-10
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.kt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class AndroidInfoModule(reactContext: ReactApplicationContext) :
5555
constants["ServerHost"] =
5656
AndroidInfoHelpers.getServerHost(reactApplicationContext.applicationContext)
5757
}
58-
constants["isTesting"] = "true" == System.getProperty(IS_TESTING) || isRunningScreenshotTest()
58+
constants["isTesting"] = "true" == System.getProperty(IS_TESTING)
5959
val isDisableAnimations = System.getProperty(IS_DISABLE_ANIMATIONS)
6060
if (isDisableAnimations != null) {
6161
constants["isDisableAnimations"] = "true" == isDisableAnimations
@@ -71,15 +71,6 @@ public class AndroidInfoModule(reactContext: ReactApplicationContext) :
7171

7272
override fun invalidate() {}
7373

74-
private fun isRunningScreenshotTest(): Boolean {
75-
return try {
76-
Class.forName("com.facebook.testing.react.screenshots.ReactAppScreenshotTestActivity")
77-
true
78-
} catch (ignored: ClassNotFoundException) {
79-
false
80-
}
81-
}
82-
8374
public companion object {
8475
public const val NAME: String = NativePlatformConstantsAndroidSpec.NAME
8576
private const val IS_TESTING = "IS_TESTING"

0 commit comments

Comments
 (0)