Commit ebdb54f7 authored by nightfallsad's avatar nightfallsad

add custom dartEntrypoint

parent 7c6ed2d8
...@@ -183,7 +183,7 @@ public class FlutterBoost { ...@@ -183,7 +183,7 @@ public class FlutterBoost {
} }
DartExecutor.DartEntrypoint entrypoint = new DartExecutor.DartEntrypoint( DartExecutor.DartEntrypoint entrypoint = new DartExecutor.DartEntrypoint(
FlutterMain.findAppBundlePath(), FlutterMain.findAppBundlePath(),
"main" mPlatform.dartEntrypoint()
); );
flutterEngine.getDartExecutor().executeDartEntrypoint(entrypoint); flutterEngine.getDartExecutor().executeDartEntrypoint(entrypoint);
...@@ -285,6 +285,9 @@ public class FlutterBoost { ...@@ -285,6 +285,9 @@ public class FlutterBoost {
return ConfigBuilder.this.isDebug; return ConfigBuilder.this.isDebug;
} }
@Override
public String dartEntrypoint() { return ConfigBuilder.this.dartEntrypoint; }
@Override @Override
public String initialRoute() { public String initialRoute() {
return ConfigBuilder.this.initialRoute; return ConfigBuilder.this.initialRoute;
......
...@@ -41,6 +41,8 @@ public abstract class Platform { ...@@ -41,6 +41,8 @@ public abstract class Platform {
public abstract boolean isDebug(); public abstract boolean isDebug();
public abstract String dartEntrypoint();
public abstract String initialRoute(); public abstract String initialRoute();
public abstract List<String> shellArgs(); public abstract List<String> shellArgs();
......
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