Last active
May 27, 2018 20:09
-
-
Save naturalwarren/c01e573f35844262362c1512fd63870f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Provides | |
fun retrofit(okHttpClient: Lazy<OkHttpClient>) = Retrofit.Builder() | |
.baseUrl("https://sandbox.tradier.com/v1/") | |
.addCallAdapterFactory(RxJava2CallAdapterFactory.createWithScheduler(Schedulers.io())) | |
.callFactory { okHttpClient.get().newCall(it) } | |
.build() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment