Skip to content

Commit

Permalink
Fix worker inject
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Sep 14, 2022
1 parent 6ea3127 commit 2861bfb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package eu.darken.capod.reaction.core.playpause

import dagger.Reusable
import eu.darken.capod.common.MediaControl
import eu.darken.capod.common.bluetooth.BluetoothManager2
import eu.darken.capod.common.debug.logging.Logging.Priority.VERBOSE
Expand All @@ -14,8 +13,9 @@ import eu.darken.capod.pods.core.HasEarDetectionDual
import eu.darken.capod.reaction.core.ReactionSettings
import kotlinx.coroutines.flow.*
import javax.inject.Inject
import javax.inject.Singleton

@Reusable
@Singleton
class PlayPause @Inject constructor(
private val podMonitor: PodMonitor,
private val bluetoothManager: BluetoothManager2,
Expand Down
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ dependencies {
implementation("androidx.navigation:navigation-fragment-ktx:2.5.0")
implementation("androidx.navigation:navigation-ui-ktx:2.5.0")


addBaseWorkManager()

implementation("androidx.core:core-splashscreen:1.0.0-alpha02")
Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fun DependencyHandlerScope.addDagger() {
kapt("com.google.dagger:dagger-android-processor:${Versions.Dagger.core}")

implementation("com.google.dagger:hilt-android:${Versions.Dagger.core}")
kapt("androidx.hilt:hilt-compiler:1.0.0")
kapt("com.google.dagger:hilt-android-compiler:${Versions.Dagger.core}")

testImplementation("com.google.dagger:hilt-android-testing:${Versions.Dagger.core}")
Expand Down

0 comments on commit 2861bfb

Please sign in to comment.