Commit 45482261 authored by yangwu.jia's avatar yangwu.jia

替换ShimPluginRegistry 为 BoostPluginRegistry

parent c1c82460
......@@ -154,7 +154,12 @@ public class NewFlutterBoost {
);
flutterEngine.getDartExecutor().executeDartEntrypoint(entrypoint);
mRegistry = new ShimPluginRegistry(engineProvider());
mRegistry = new BoostPluginRegistry(engineProvider(),mPlatform.getApplication());
((BoostPluginRegistry) mRegistry).currentActivity(mCurrentActiveActivity);
mPlatform.registerPlugins(mRegistry);
}
......
......@@ -111,7 +111,6 @@ public class FlutterActivityAndFragmentDelegate implements IFlutterViewContaine
host.getLifecycle()
);
NewFlutterBoost.instance().platform().registerPlugins( NewFlutterBoost.instance().getPluginRegistry());
}
host.configureFlutterEngine(flutterEngine);
......
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