64
64
*/
65
65
public class DevServerHelper {
66
66
public static final String RELOAD_APP_EXTRA_JS_PROXY = "jsproxy" ;
67
- private static final String RELOAD_APP_ACTION_SUFFIX = ".RELOAD_APP_ACTION" ;
68
67
69
68
private static final String BUNDLE_URL_FORMAT =
70
69
"http://%s/%s.%s?platform=android&dev=%s&minify=%s" ;
@@ -75,7 +74,6 @@ public class DevServerHelper {
75
74
"http://%s/onchange" ;
76
75
private static final String WEBSOCKET_PROXY_URL_FORMAT = "ws://%s/debugger-proxy?role=client" ;
77
76
private static final String PACKAGER_STATUS_URL_FORMAT = "http://%s/status" ;
78
- private static final String HEAP_CAPTURE_UPLOAD_URL_FORMAT = "http://%s/jscheapcaptureupload" ;
79
77
private static final String INSPECTOR_DEVICE_URL_FORMAT = "http://%s/inspector/device?name=%s&app=%s" ;
80
78
private static final String INSPECTOR_ATTACH_URL_FORMAT = "http://%s/nuclide/attach-debugger-nuclide?title=%s&app=%s&device=%s" ;
81
79
private static final String SYMBOLICATE_URL_FORMAT = "http://%s/symbolicate" ;
@@ -246,12 +244,6 @@ protected Void doInBackground(Void... params) {
246
244
}.executeOnExecutor (AsyncTask .THREAD_POOL_EXECUTOR );
247
245
}
248
246
249
- public void sendEventToAllConnections (String event ) {
250
- if (mInspectorPackagerConnection != null ) {
251
- mInspectorPackagerConnection .sendEventToAllConnections (event );
252
- }
253
- }
254
-
255
247
public void disableDebugger () {
256
248
if (mInspectorPackagerConnection != null ) {
257
249
mInspectorPackagerConnection .sendEventToAllConnections (DEBUGGER_MSG_DISABLE );
@@ -370,26 +362,14 @@ public void onResponse(Call call, final Response response) throws IOException {
370
362
});
371
363
}
372
364
373
- /** Intent action for reloading the JS */
374
- public static String getReloadAppAction (Context context ) {
375
- return context .getPackageName () + RELOAD_APP_ACTION_SUFFIX ;
376
- }
377
-
378
365
public String getWebsocketProxyURL () {
379
366
return String .format (
380
367
Locale .US ,
381
368
WEBSOCKET_PROXY_URL_FORMAT ,
382
369
mSettings .getPackagerConnectionSettings ().getDebugServerHost ());
383
370
}
384
371
385
- public String getHeapCaptureUploadUrl () {
386
- return String .format (
387
- Locale .US ,
388
- HEAP_CAPTURE_UPLOAD_URL_FORMAT ,
389
- mSettings .getPackagerConnectionSettings ().getDebugServerHost ());
390
- }
391
-
392
- public String getInspectorDeviceUrl () {
372
+ private String getInspectorDeviceUrl () {
393
373
return String .format (
394
374
Locale .US ,
395
375
INSPECTOR_DEVICE_URL_FORMAT ,
@@ -398,7 +378,7 @@ public String getInspectorDeviceUrl() {
398
378
mPackageName );
399
379
}
400
380
401
- public String getInspectorAttachUrl (String title ) {
381
+ private String getInspectorAttachUrl (String title ) {
402
382
return String .format (
403
383
Locale .US ,
404
384
INSPECTOR_ATTACH_URL_FORMAT ,
0 commit comments