Skip to content

Instantly share code, notes, and snippets.

@jeremyrempel
Created May 17, 2021 02:52
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 jeremyrempel/e2f58b9c6f1b43f21f491831f708f857 to your computer and use it in GitHub Desktop.
Save jeremyrempel/e2f58b9c6f1b43f21f491831f708f857 to your computer and use it in GitHub Desktop.
class ApplicationInitializer @Inject constructor(
private val provideOkHttp: Provider<OkHttpClient>,
private val provideGson: Provider<Gson>
) {
fun initTracking() {
thread {
val okhttp = provideOkHttp.get()
val gson = provideGson.get()
// init async
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment