Skip to content

Commit

Permalink
Fixes a bug where remote config is not downloaded correctly (#5469)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/488551667048375/1209150899635962/f

### Description
This PR fixes a bug where users on blocklist experiments won't get new
remote config versions

### Steps to test this PR

- [ ] Code review
  • Loading branch information
marcosholgado authored Jan 14, 2025
1 parent d1aaf62 commit 49a0158
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,16 @@ import com.duckduckgo.app.global.api.ApiInterceptorPlugin
import com.duckduckgo.app.trackerdetection.api.TDS_BASE_URL
import com.duckduckgo.app.trackerdetection.blocklist.BlockList.Cohorts.CONTROL
import com.duckduckgo.app.trackerdetection.blocklist.BlockList.Cohorts.TREATMENT
import com.duckduckgo.di.scopes.AppScope
import com.duckduckgo.feature.toggles.api.FeatureTogglesInventory
import com.squareup.anvil.annotations.ContributesMultibinding
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
import javax.inject.Inject
import kotlinx.coroutines.runBlocking
import okhttp3.Interceptor
import okhttp3.Interceptor.Chain
import okhttp3.Response

@ContributesMultibinding(
scope = AppScope::class,
boundType = ApiInterceptorPlugin::class,
)
class BlockListInterceptorApiPlugin @Inject constructor(
class BlockListInterceptorApiPlugin constructor(
private val inventory: FeatureTogglesInventory,
private val moshi: Moshi,
) : Interceptor, ApiInterceptorPlugin {
Expand Down

0 comments on commit 49a0158

Please sign in to comment.