Created
August 12, 2021 15:01
-
-
Save barbeau/4f605debb756a54594d5bc13f2f9a93b to your computer and use it in GitHub Desktop.
Flow - lightweight architecture article - LocationApplication
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
// Required for Hilt dependency injection | |
@HiltAndroidApp | |
class LocationApplication : Application() { | |
// No need to cancel this scope as it'll be torn down with the process - see https://medium.com/androiddevelopers/coroutines-patterns-for-work-that-shouldnt-be-cancelled-e26c40f142ad | |
val applicationScope = GlobalScope | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment