mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 08:17:04 +05:30
android: fix injection of MetadataExtractor
This commit is contained in:
parent
23298dd0f5
commit
2ca150c666
2 changed files with 20 additions and 1 deletions
|
@ -0,0 +1,19 @@
|
|||
package dev.msfjarvis.claw.android.injection
|
||||
|
||||
import com.chimbori.crux.Crux
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.components.SingletonComponent
|
||||
import okhttp3.OkHttpClient
|
||||
|
||||
@Module
|
||||
@InstallIn(SingletonComponent::class)
|
||||
object MetadataExtractorModule {
|
||||
@Provides
|
||||
fun provideCrux(
|
||||
okHttpClient: OkHttpClient,
|
||||
): Crux {
|
||||
return Crux(okHttpClient = okHttpClient)
|
||||
}
|
||||
}
|
|
@ -6,8 +6,8 @@ plugins {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
api(libs.crux)
|
||||
implementation(projects.model)
|
||||
implementation(libs.crux)
|
||||
implementation(libs.dagger.hilt.core)
|
||||
implementation(libs.jsoup)
|
||||
implementation(libs.kotlinx.coroutines.core)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue