File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed
src/main/java/com/duckduckgo/app Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ apply plugin: 'kotlin-kapt'
66apply from : ' ../versioning.gradle'
77
88ext {
9- VERSION_NAME = " 5.10.5 "
9+ VERSION_NAME = " 5.10.6 "
1010 USE_ORCHESTRATOR = project. hasProperty(' orchestrator' ) ? project. property(' orchestrator' ) : false
1111}
1212
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ import com.duckduckgo.app.global.simpleUrl
3131import com.duckduckgo.app.httpsupgrade.HttpsUpgrader
3232import com.duckduckgo.app.statistics.pixels.Pixel
3333import com.duckduckgo.app.statistics.pixels.Pixel.PixelName.HTTPS_UPGRADE_SITE_ERROR
34- import com.duckduckgo.app.statistics.pixels.Pixel.PixelParameter
34+ import com.duckduckgo.app.statistics.pixels.Pixel.PixelParameter.APP_VERSION
35+ import com.duckduckgo.app.statistics.pixels.Pixel.PixelParameter.ERROR_CODE
36+ import com.duckduckgo.app.statistics.pixels.Pixel.PixelParameter.URL
3537import com.duckduckgo.app.statistics.store.StatisticsDataStore
3638import timber.log.Timber
3739import javax.inject.Inject
@@ -179,8 +181,9 @@ class BrowserWebViewClient @Inject constructor(
179181
180182 private fun reportHttpsUpgradeSiteError (url : Uri , error : String? ) {
181183 val params = mapOf (
182- PixelParameter .URL to url.simpleUrl,
183- PixelParameter .ERROR_CODE to error
184+ APP_VERSION to " ${BuildConfig .VERSION_NAME } " ,
185+ URL to url.simpleUrl,
186+ ERROR_CODE to error
184187 )
185188 pixel.fire(HTTPS_UPGRADE_SITE_ERROR , params)
186189 }
Original file line number Diff line number Diff line change 1616
1717package com.duckduckgo.app.httpsupgrade.api
1818
19+ import com.duckduckgo.app.browser.BuildConfig
1920import com.duckduckgo.app.global.api.isCached
2021import com.duckduckgo.app.global.db.AppDatabase
2122import com.duckduckgo.app.global.store.BinaryDataStore
@@ -25,6 +26,7 @@ import com.duckduckgo.app.httpsupgrade.db.HttpsWhitelistDao
2526import com.duckduckgo.app.httpsupgrade.model.HttpsBloomFilterSpec
2627import com.duckduckgo.app.httpsupgrade.model.HttpsBloomFilterSpec.Companion.HTTPS_BINARY_FILE
2728import com.duckduckgo.app.statistics.pixels.Pixel
29+ import com.duckduckgo.app.statistics.pixels.Pixel.PixelParameter.APP_VERSION
2830import com.duckduckgo.app.statistics.pixels.Pixel.PixelParameter.FAILURE_COUNT
2931import com.duckduckgo.app.statistics.pixels.Pixel.PixelParameter.TOTAL_COUNT
3032import com.duckduckgo.app.statistics.store.StatisticsDataStore
@@ -120,6 +122,7 @@ class HttpsUpgradeDataDownloader @Inject constructor(
120122 return @defer complete()
121123 }
122124 val params = mapOf (
125+ APP_VERSION to " ${BuildConfig .VERSION_NAME } " ,
123126 TOTAL_COUNT to statisticsDataStore.httpsUpgradesTotal.toString(),
124127 FAILURE_COUNT to statisticsDataStore.httpsUpgradesFailures.toString()
125128 )
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ import retrofit2.http.GET
2525
2626interface HttpsUpgradeService {
2727
28- @GET(" https://staticcdn.duckduckgo.com/https/https-mobile-whitelist.json" )
28+ @GET(" https://staticcdn.duckduckgo.com/https/https-mobile-whitelist.json?cache_version=1 " )
2929 fun whitelist (): Call <List <HttpsWhitelistedDomain >>
3030
31- @GET(" https://staticcdn.duckduckgo.com/https/https-mobile-bloom-spec.json" )
31+ @GET(" https://staticcdn.duckduckgo.com/https/https-mobile-bloom-spec.json?cache_version=1 " )
3232 fun httpsBloomFilterSpec (): Observable <HttpsBloomFilterSpec >
3333
34- @GET(" https://staticcdn.duckduckgo.com/https/https-mobile-bloom.bin" )
34+ @GET(" https://staticcdn.duckduckgo.com/https/https-mobile-bloom.bin?cache_version=1 " )
3535 fun httpsBloomFilter (): Call <ResponseBody >
3636}
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ interface Pixel {
5858 const val ERROR_CODE = " error_code"
5959 const val TOTAL_COUNT = " total"
6060 const val FAILURE_COUNT = " failures"
61+ const val APP_VERSION = " app_version"
6162 }
6263
6364 fun fire (pixel : PixelName , parameters : Map <String , String ?> = emptyMap())
You can’t perform that action at this time.
0 commit comments