@@ -419,15 +419,26 @@ private boolean getJSMinifyMode() {
419
419
}
420
420
421
421
private String createBundleURL (String mainModuleID , BundleType type , String host ) {
422
+ return createBundleURL (mainModuleID , type , host , false , true );
423
+ }
424
+
425
+ private String createSplitBundleURL (String mainModuleID , String host ) {
426
+ return createBundleURL (mainModuleID , BundleType .BUNDLE , host , true , false );
427
+ }
428
+
429
+ private String createBundleURL (
430
+ String mainModuleID , BundleType type , String host , boolean modulesOnly , boolean runModule ) {
422
431
return String .format (
423
432
Locale .US ,
424
- "http://%s/%s.%s?platform=android&dev=%s&minify=%s&app=%s" ,
433
+ "http://%s/%s.%s?platform=android&dev=%s&minify=%s&app=%s&modulesOnly=%s&runModule=%s " ,
425
434
host ,
426
435
mainModuleID ,
427
436
type .typeID (),
428
437
getDevMode (),
429
438
getJSMinifyMode (),
430
- mPackageName );
439
+ mPackageName ,
440
+ modulesOnly ? "true" : "false" ,
441
+ runModule ? "true" : "false" );
431
442
}
432
443
433
444
private String createBundleURL (String mainModuleID , BundleType type ) {
@@ -454,6 +465,11 @@ public String getDevServerBundleURL(final String jsModulePath) {
454
465
mSettings .getPackagerConnectionSettings ().getDebugServerHost ());
455
466
}
456
467
468
+ public String getDevServerSplitBundleURL (String jsModulePath ) {
469
+ return createSplitBundleURL (
470
+ jsModulePath , mSettings .getPackagerConnectionSettings ().getDebugServerHost ());
471
+ }
472
+
457
473
public void isPackagerRunning (final PackagerStatusCallback callback ) {
458
474
String statusURL =
459
475
createPackagerStatusURL (mSettings .getPackagerConnectionSettings ().getDebugServerHost ());
0 commit comments