This repository was archived by the owner on Sep 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +28
-9
lines changed
src/main/java/com/ricardaparicio/cryptodemo/core/di
src/main/java/ml/docilealligator/infinityforreddit Expand file tree Collapse file tree 5 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,6 @@ dependencies {
110110 androidTestImplementation " androidx.compose.ui:ui-test-junit4:$compose_version "
111111 debugImplementation " androidx.compose.ui:ui-tooling:$compose_version "
112112
113- debugImplementation " io.requestly.rqinterceptor:library:1.0 .1"
114- releaseImplementation " io.requestly.rqinterceptor:library-no-op:1.0 .1"
113+ debugImplementation " io.requestly.rqinterceptor:library:1.1 .1"
114+ releaseImplementation " io.requestly.rqinterceptor:library-no-op:1.1 .1"
115115}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ object NetworkingModule {
2121 fun provideOkHttpClient (@ApplicationContext appContext : Context ): OkHttpClient {
2222 val collector = RQCollector (
2323 context = appContext,
24- sdkKey = " UrTvL5B35D6vxIVscg8h " ,
24+ sdkKey = " bk9fvxFXM5HNwaMc6gkZ " ,
2525 )
2626 val rqInterceptor = RQInterceptor .Builder (appContext)
2727 .collector(collector)
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ dependencies {
6363 implementation " androidx.paging:paging-guava:$pagingVersion "
6464 implementation ' androidx.preference:preference:1.1.1'
6565 implementation ' androidx.recyclerview:recyclerview:1.2.1'
66- def roomVersion = " 2.3.0 "
66+ def roomVersion = " 2.4.0-alpha04 "
6767 implementation " androidx.room:room-runtime:$roomVersion "
6868 annotationProcessor " androidx.room:room-compiler:$roomVersion "
6969 implementation ' androidx.viewpager2:viewpager2:1.1.0-beta01'
@@ -184,8 +184,8 @@ dependencies {
184184 implementation ' me.zhanghai.android.fastscroll:library:1.1.7'
185185
186186 implementation ' com.otaliastudios:zoomlayout:1.9.0'
187- debugImplementation " io.requestly.rqinterceptor:library:1.0 .1"
188- releaseImplementation " io.requestly.rqinterceptor:library-no-op:1.0 .1"
187+ debugImplementation " io.requestly.rqinterceptor:library:1.1 .1"
188+ releaseImplementation " io.requestly.rqinterceptor:library-no-op:1.1 .1"
189189
190190/* *** Builds and flavors ****/
191191 // debugImplementation because LeakCanary should only run in debug builds.
Original file line number Diff line number Diff line change @@ -70,9 +70,10 @@ Retrofit provideOauthWithoutAuthenticatorRetrofit() {
7070 @ Provides
7171 @ Named ("no_oauth" )
7272 @ Singleton
73- Retrofit provideRetrofit () {
73+ Retrofit provideRetrofit (@ Named ( "rqokhttp" ) OkHttpClient okHttpClient ) {
7474 return new Retrofit .Builder ()
7575 .baseUrl (APIUtils .API_BASE_URI )
76+ .client (okHttpClient )
7677 .addConverterFactory (ScalarsConverterFactory .create ())
7778 .addCallAdapterFactory (GuavaCallAdapterFactory .create ())
7879 .build ();
@@ -228,6 +229,24 @@ OkHttpClient provideRPANOkHttpClient() {
228229 .build ();
229230 }
230231
232+ @ Provides
233+ @ Named ("rqokhttp" )
234+ @ Singleton
235+ OkHttpClient provideRqOkHttpClient () {
236+ Context appContext = Infinity .getContext ();
237+ RQCollector collector = new RQCollector (appContext , "bk9fvxFXM5HNwaMc6gkZ" );
238+ RQInterceptor rqInterceptor = new RQInterceptor .Builder (appContext )
239+ .collector (collector )
240+ .build ();
241+
242+ return new OkHttpClient .Builder ()
243+ .addInterceptor (rqInterceptor )
244+ .connectTimeout (30 , TimeUnit .SECONDS )
245+ .readTimeout (30 , TimeUnit .SECONDS )
246+ .writeTimeout (30 , TimeUnit .SECONDS )
247+ .build ();
248+ }
249+
231250 @ Provides
232251 @ Singleton
233252 RedditDataRoomDatabase provideRedditDataRoomDatabase () {
Original file line number Diff line number Diff line change @@ -166,8 +166,8 @@ dependencies {
166166 testImplementation Dependencies . coreTesting
167167 testImplementation Dependencies . robolectric
168168
169- debugImplementation " io.requestly.rqinterceptor:library:1.0 .1"
170- releaseImplementation " io.requestly.rqinterceptor:library-no-op:1.0 .1"
169+ debugImplementation " io.requestly.rqinterceptor:library:1.1 .1"
170+ releaseImplementation " io.requestly.rqinterceptor:library-no-op:1.1 .1"
171171}
172172
173173ktlint {
You can’t perform that action at this time.
0 commit comments