Skip to content

Commit 8cc772d

Browse files
cortinicofacebook-github-bot
authored andcommitted
Make PackagerStatusCheck Internal (facebook#49575)
Summary: Pull Request resolved: facebook#49575 I've verified that this class is not used in OSS so I'm making it internal. [Source](https://www.google.com/url?q=https://github.com/search?type%3Dcode%26q%3DNOT%2Bis%253Afork%2BNOT%2Borg%253Afacebook%2BNOT%2Brepo%253Areact-native-tvos%252Freact-native-tvos%2BNOT%2Brepo%253Anuagoz%252Freact-native%2BNOT%2Brepo%253A2lambda123%252Freact-native%2BNOT%2Brepo%253Abeanchips%252Ffacebookreactnative%2BNOT%2Brepo%253AfabOnReact%252Freact-native-notes%2BNOT%2Buser%253Ahuntie%2BNOT%2Buser%253Acortinico%2BNOT%2Brepo%253AMaxdev18%252Fpowersync_app%2BNOT%2Brepo%253Acarter-0%252Finstagram-decompiled%2BNOT%2Brepo%253Am0mosenpai%252Finstadamn%2BNOT%2Brepo%253AA-Star100%252FA-Star100-AUG2-2024%2BNOT%2Brepo%253Alclnrd%252Fdetox-scrollview-reproductible%2BNOT%2Brepo%253ADionisisChytiris%252FWorldWiseTrivia_Main%2BNOT%2Brepo%253Apast3l%252Fhi2%2BNOT%2Brepo%253AoneDotpy%252FCaribouQuest%2BNOT%2Brepo%253Abejayoharen%252Fdailytodo%2BNOT%2Brepo%253Amolangning%252Freversing-discord%2BNOT%2Brepo%253AScottPrzy%252Freact-native%2BNOT%2Brepo%253Agabrieldonadel%252Freact-native-visionos%2BNOT%2Brepo%253AGabriel2308%252FTestes-Soft%2BNOT%2Brepo%253Adawnzs03%252FflakyBuild%2BNOT%2Brepo%253Acga2351%252Fcode%2BNOT%2Brepo%253Astreeg%252Ftcc%2BNOT%2Brepo%253Asoftware-mansion-labs%252Freact-native-swiftui%2Bcom.facebook.react.devsupport.PackagerStatusCheck&sa=D&source=editors&ust=1740079563838123&usg=AOvVaw09B3GTFOynL-bbMHF6M4m2) Changelog: [Internal] [Changed] - Reviewed By: arushikesarwani94 Differential Revision: D69933995 fbshipit-source-id: 77e308bd01fb4d51d4cf54e4666f15b532b43453
1 parent 4bb03f3 commit 8cc772d

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

packages/react-native/ReactAndroid/api/ReactAndroid.api

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,12 +2157,6 @@ public final class com/facebook/react/devsupport/LogBoxModule : com/facebook/fbr
21572157
public final class com/facebook/react/devsupport/LogBoxModule$Companion {
21582158
}
21592159

2160-
public class com/facebook/react/devsupport/PackagerStatusCheck {
2161-
public fun <init> ()V
2162-
public fun <init> (Lokhttp3/OkHttpClient;)V
2163-
public fun run (Ljava/lang/String;Lcom/facebook/react/devsupport/interfaces/PackagerStatusCallback;)V
2164-
}
2165-
21662160
public final class com/facebook/react/devsupport/PerftestDevSupportManager : com/facebook/react/devsupport/ReleaseDevSupportManager {
21672161
public fun <init> (Landroid/content/Context;)V
21682162
public fun getDevSettings ()Lcom/facebook/react/modules/debug/interfaces/DeveloperSettings;

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/PackagerStatusCheck.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import okhttp3.Request
2222
import okhttp3.Response
2323

2424
/** Use this class to check if the JavaScript packager is running on the provided host. */
25-
public open class PackagerStatusCheck {
25+
internal class PackagerStatusCheck {
2626

2727
private val client: OkHttpClient
2828

29-
public constructor() {
29+
constructor() {
3030
client =
3131
OkHttpClient.Builder()
3232
.connectTimeout(HTTP_CONNECT_TIMEOUT_MS.toLong(), TimeUnit.MILLISECONDS)
@@ -35,11 +35,11 @@ public open class PackagerStatusCheck {
3535
.build()
3636
}
3737

38-
public constructor(client: OkHttpClient) {
38+
constructor(client: OkHttpClient) {
3939
this.client = client
4040
}
4141

42-
public open fun run(host: String, callback: PackagerStatusCallback): Unit {
42+
fun run(host: String, callback: PackagerStatusCallback): Unit {
4343
val statusURL = createPackagerStatusURL(host)
4444
val request = Request.Builder().url(statusURL).build()
4545

0 commit comments

Comments
 (0)