android: fix injection of MetadataExtractor

This commit is contained in:
Harsh Shandilya 2022-08-05 23:12:14 +05:30
parent 23298dd0f5
commit 2ca150c666
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 20 additions and 1 deletions

View file

@ -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)
}
}

View file

@ -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)