Created
January 24, 2019 07:53
-
-
Save Unlimity/84d4e00da2be4038ee358005f35a8528 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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