Skip to content

Commit

Permalink
Bind PrivacyConfigCallbackPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
CrisBarreiro committed Dec 2, 2024
1 parent 23b34a0 commit d3b16a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import com.duckduckgo.duckplayer.impl.ui.DuckPlayerPrimeBottomSheet
import com.duckduckgo.duckplayer.impl.ui.DuckPlayerPrimeDialogFragment
import com.duckduckgo.privacy.config.api.PrivacyConfigCallbackPlugin
import com.squareup.anvil.annotations.ContributesBinding
import com.squareup.anvil.annotations.ContributesMultibinding
import dagger.SingleInstanceIn
import java.io.InputStream
import javax.inject.Inject
Expand Down Expand Up @@ -98,6 +99,7 @@ interface DuckPlayerInternal : DuckPlayer {

@ContributesBinding(AppScope::class, boundType = DuckPlayer::class)
@ContributesBinding(AppScope::class, boundType = DuckPlayerInternal::class)
@ContributesMultibinding(AppScope::class, boundType = PrivacyConfigCallbackPlugin::class)
class RealDuckPlayer @Inject constructor(
private val duckPlayerFeatureRepository: DuckPlayerFeatureRepository,
private val duckPlayerFeature: DuckPlayerFeature,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ import com.duckduckgo.di.scopes.AppScope
import com.duckduckgo.malicioussiteprotection.api.MaliciousSiteProtection
import com.duckduckgo.privacy.config.api.PrivacyConfigCallbackPlugin
import com.squareup.anvil.annotations.ContributesBinding
import com.squareup.anvil.annotations.ContributesMultibinding
import javax.inject.Inject
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import org.json.JSONObject

@ContributesBinding(AppScope::class, MaliciousSiteProtection::class)
@ContributesBinding(AppScope::class, PrivacyConfigCallbackPlugin::class)
@ContributesMultibinding(AppScope::class, PrivacyConfigCallbackPlugin::class)
class RealMaliciousSiteProtection @Inject constructor(
private val dispatchers: DispatcherProvider,
private val maliciousSiteProtectionFeature: MaliciousSiteProtectionFeature,
Expand Down

0 comments on commit d3b16a4

Please sign in to comment.