Commit 187d9ec3 authored by peihan.cph's avatar peihan.cph

迁移到embed2 api

parent ff4aee43
...@@ -324,10 +324,10 @@ public class FlutterBoost { ...@@ -324,10 +324,10 @@ public class FlutterBoost {
FlutterMain.ensureInitializationComplete( FlutterMain.ensureInitializationComplete(
mPlatform.getApplication().getApplicationContext(), flutterShellArgs.toArray()); mPlatform.getApplication().getApplicationContext(), flutterShellArgs.toArray());
mEngine = new FlutterEngine(mPlatform.getApplication().getApplicationContext(),FlutterLoader.getInstance(),new FlutterJNI(),null,false); mEngine = new FlutterEngine(mPlatform.getApplication().getApplicationContext(),FlutterLoader.getInstance(),new FlutterJNI(),null,true);
// registerPlugins(mEngine); // registerPlugins(mEngine);
mRegistry = new BoostPluginRegistry(createEngine()); // mRegistry = new BoostPluginRegistry(createEngine());
mPlatform.registerPlugins(mRegistry); // mPlatform.registerPlugins(mRegistry);
} }
return mEngine; return mEngine;
......
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
android:theme="@style/Theme.AppCompat" android:theme="@style/Theme.AppCompat"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
android:windowSoftInputMode="adjustResize"/> android:windowSoftInputMode="adjustResize"/>
<!--<meta-data android:name="flutterEmbedding"--> <meta-data android:name="flutterEmbedding"
<!--android:value="2">--> android:value="2">
<!--</meta-data>--> </meta-data>
</application> </application>
</manifest> </manifest>
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