Commit 96b82a70 authored by yangwu.jia's avatar yangwu.jia

回滚反射

parent 1357271b
...@@ -41,6 +41,14 @@ public abstract class Platform { ...@@ -41,6 +41,14 @@ public abstract class Platform {
if(pluginsRegister!=null){ if(pluginsRegister!=null){
pluginsRegister.registerPlugins(mRegistry); pluginsRegister.registerPlugins(mRegistry);
}else{
try {
Class clz = Class.forName("io.flutter.plugins.GeneratedPluginRegistrant");
Method method = clz.getDeclaredMethod("registerWith", PluginRegistry.class);
method.invoke(null, mRegistry);
} catch (Throwable t) {
Log.i("flutterboost.platform",t.toString());
}
} }
if (lifecycleListener!= null) { if (lifecycleListener!= null) {
......
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