Skip to content

Commit

Permalink
Mode workmanager generator to external library
Browse files Browse the repository at this point in the history
  • Loading branch information
illarionov committed Jan 16, 2024
1 parent fb16579 commit 9ebfb6a
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 320 deletions.

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions foundation/di/workmanager/di-workmanager.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies {
implementation(projects.foundation.di.rootComponent)
api(libs.dagger)

api(libs.pixnews.anvil.workmanager.inject)
api(libs.androidx.workmanager.ktx)
api(libs.androidx.core)
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import androidx.annotation.RestrictTo
import androidx.work.CoroutineWorker
import com.squareup.anvil.annotations.ContributesSubcomponent
import com.squareup.anvil.annotations.optional.SingleIn
import ru.pixnews.anvil.codegen.workmanager.inject.wiring.CoroutineWorkerFactory
import ru.pixnews.anvil.codegen.workmanager.inject.wiring.WorkManagerScope
import ru.pixnews.foundation.di.base.DaggerMap
import ru.pixnews.foundation.di.base.scopes.AppScope

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import androidx.work.CoroutineWorker
import com.squareup.anvil.annotations.ContributesTo
import dagger.Module
import dagger.multibindings.Multibinds
import ru.pixnews.anvil.codegen.workmanager.inject.wiring.CoroutineWorkerFactory
import ru.pixnews.anvil.codegen.workmanager.inject.wiring.WorkManagerScope
import ru.pixnews.foundation.di.base.DaggerMap

@ContributesTo(WorkManagerScope::class)
Expand Down

0 comments on commit 9ebfb6a

Please sign in to comment.