Skip to content

Instantly share code, notes, and snippets.

@Unlimity
Created January 24, 2019 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Unlimity/84d4e00da2be4038ee358005f35a8528 to your computer and use it in GitHub Desktop.
Save Unlimity/84d4e00da2be4038ee358005f35a8528 to your computer and use it in GitHub Desktop.
class MainApplication : Application() {
@Inject
lateinit var boots: Set<Bootable>
fun onCreate() {
/* Dagger init */
Boots {
add(listOf(boots))
boot(Keys.STEP_APPLICATION) {
onBoot = { report -> sendToAnalytics(report) }
onFailure = { report -> logErrors(report) }
}
}
/* Other jobs */
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment