Skip to content

Instantly share code, notes, and snippets.

@gb103
Created January 2, 2021 04:29
Show Gist options
  • Save gb103/625527f760fdfafcc6436732950e3864 to your computer and use it in GitHub Desktop.
Save gb103/625527f760fdfafcc6436732950e3864 to your computer and use it in GitHub Desktop.
Add entry into application class to install split compat features.
class MyApplication : SplitCompatApplication() {
...
}
override fun attachBaseContext(base: Context) {
super.attachBaseContext(base)
// Emulates installation of future on demand modules using SplitCompat.
SplitCompat.install(this)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment