Commit cdc08394 authored by justin's avatar justin Committed by GitHub

Merge pull request #675 from nightfallsad/master

add custom dartEntrypoint
parents 698e6a73 16f497e9
......@@ -176,7 +176,7 @@ public class FlutterBoost {
}
DartExecutor.DartEntrypoint entrypoint = new DartExecutor.DartEntrypoint(
FlutterMain.findAppBundlePath(),
"main"
mPlatform.dartEntrypoint()
);
flutterEngine.getDartExecutor().executeDartEntrypoint(entrypoint);
......@@ -265,6 +265,9 @@ public class FlutterBoost {
return ConfigBuilder.this.isDebug;
}
@Override
public String dartEntrypoint() { return ConfigBuilder.this.dartEntrypoint; }
@Override
public String initialRoute() {
return ConfigBuilder.this.initialRoute;
......
......@@ -38,6 +38,8 @@ public abstract class Platform {
public abstract boolean isDebug();
public abstract String dartEntrypoint();
public abstract String initialRoute();
public FlutterBoost.BoostLifecycleListener lifecycleListener;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment