Class FlutterPlayStoreSplitApplication

java.lang.Object
android.content.Context
android.content.ContextWrapper
android.app.Application
com.google.android.play.core.splitcompat.SplitCompatApplication
io.flutter.app.FlutterPlayStoreSplitApplication
All Implemented Interfaces:
ComponentCallbacks, ComponentCallbacks2

public class FlutterPlayStoreSplitApplication extends com.google.android.play.core.splitcompat.SplitCompatApplication
Flutter's extension of SplitCompatApplication that injects a PlayStoreDeferredComponentManager with FlutterInjector to enable Split AOT Flutter apps.

To use this class, either have your custom application class extend FlutterPlayStoreSplitApplication or use it directly in the app's AndroidManifest.xml by adding the following line:


 <manifest
    ...
    <application
       android:name="io.flutter.app.FlutterPlayStoreSplitApplication"
       ...>
    </application>
  </manifest>
 
This class is meant to be used with the Google Play store. Custom non-play store applications do not need to extend SplitCompatApplication and should inject a custom DeferredComponentManager implementation like so:

 FlutterInjector.setInstance(
      new FlutterInjector.Builder().setDeferredComponentManager(yourCustomManager).build());
 
  • Constructor Details

    • FlutterPlayStoreSplitApplication

      public FlutterPlayStoreSplitApplication()
  • Method Details