Skip to content

Commit 0a069c2

Browse files
committed
Merge branch 'release/5.10.3'
2 parents 887f070 + 6b593f5 commit 0a069c2

File tree

194 files changed

+4799
-2159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+4799
-2159
lines changed

app/CMakeLists.txt

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,31 @@ cmake_minimum_required(VERSION 3.4.1)
1111
# Gradle automatically packages shared libraries with your APK.
1212

1313
add_library( # Sets the name of the library.
14-
adblockclient-lib
14+
adblockclient-lib
1515

16-
# Sets the library as a shared library.
17-
SHARED
16+
# Sets the library as a shared library.
17+
SHARED
1818

19-
# Provides a relative path to your source file(s).
20-
src/main/cpp/adblockclient-lib.cpp
21-
src/main/cpp/third-party/ad-block/ad_block_client.cc
22-
src/main/cpp/third-party/ad-block/cosmetic_filter.cc
23-
src/main/cpp/third-party/ad-block/filter.cc
24-
src/main/cpp/third-party/bloom-filter-cpp/BloomFilter.cpp
25-
src/main/cpp/third-party/bloom-filter-cpp/hashFn.cpp
26-
src/main/cpp/third-party/hashset-cpp/HashSet.cpp
27-
)
19+
# Provides a relative path to your source file(s).
20+
src/main/cpp/adblockclient-lib.cpp
21+
src/main/cpp/third-party/ad-block/ad_block_client.cc
22+
src/main/cpp/third-party/ad-block/cosmetic_filter.cc
23+
src/main/cpp/third-party/ad-block/filter.cc
24+
src/main/cpp/third-party/bloom-filter-cpp/BloomFilter.cpp
25+
src/main/cpp/third-party/bloom-filter-cpp/hashFn.cpp
26+
src/main/cpp/third-party/hashset-cpp/HashSet.cpp
27+
)
2828

2929
add_library( # Sets the name of the library.
30-
https-bloom-lib
30+
https-bloom-lib
3131

32-
# Sets the library as a shared library.
33-
SHARED
32+
# Sets the library as a shared library.
33+
SHARED
3434

35-
# Provides a relative path to your source file(s).
36-
src/main/cpp/https-bloom-lib.cpp
37-
src/main/cpp/third-party/bloom_cpp/src/BloomFilter.cpp
38-
)
35+
# Provides a relative path to your source file(s).
36+
src/main/cpp/https-bloom-lib.cpp
37+
src/main/cpp/third-party/bloom_cpp/src/BloomFilter.cpp
38+
)
3939

4040
# Searches for a specified prebuilt library and stores the path as a
4141
# variable. Because CMake includes system libraries in the search path by
@@ -44,19 +44,19 @@ add_library( # Sets the name of the library.
4444
# completing its build.
4545

4646
find_library( # Sets the name of the path variable.
47-
log-lib
47+
log-lib
4848

49-
# Specifies the name of the NDK library that
50-
# you want CMake to locate.
51-
log )
49+
# Specifies the name of the NDK library that
50+
# you want CMake to locate.
51+
log)
5252

5353
# Specifies libraries CMake should link to your target library. You
5454
# can link multiple libraries, such as libraries you define in this
5555
# build script, prebuilt third-party libraries, or system libraries.
5656

5757
target_link_libraries( # Specifies the target library.
58-
adblockclient-lib
58+
adblockclient-lib
5959

60-
# Links the target library to the log library
61-
# included in the NDK.
62-
${log-lib} )
60+
# Links the target library to the log library
61+
# included in the NDK.
62+
${log-lib})

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ apply plugin: 'kotlin-kapt'
66
apply from: '../versioning.gradle'
77

88
ext {
9-
VERSION_NAME = "5.10.2"
9+
VERSION_NAME = "5.10.3"
1010
USE_ORCHESTRATOR = project.hasProperty('orchestrator') ? project.property('orchestrator') : false
1111
}
1212

app/src/androidTest/java/com/duckduckgo/app/TestApplication.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class TestApplication : DuckDuckGoApplication() {
3030

3131
override fun configureDependencyInjection() {
3232
DaggerTestAppComponent.builder()
33-
.application(this)
34-
.create(this)
35-
.inject(this)
33+
.application(this)
34+
.create(this)
35+
.inject(this)
3636
}
3737

3838
// We don't need to actually use leak canary for tests

app/src/androidTest/java/com/duckduckgo/app/bookmarks/db/BookmarksDaoTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class BookmarksDaoTest {
3939
@Before
4040
fun before() {
4141
db = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(), AppDatabase::class.java)
42-
.allowMainThreadQueries()
43-
.build()
42+
.allowMainThreadQueries()
43+
.build()
4444
dao = db.bookmarksDao()
4545
}
4646

app/src/androidTest/java/com/duckduckgo/app/browser/BrowserTabViewModelTest.kt

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ import com.duckduckgo.app.browser.BrowserTabViewModel.Command.DisplayMessage
3232
import com.duckduckgo.app.browser.BrowserTabViewModel.Command.Navigate
3333
import com.duckduckgo.app.browser.LongPressHandler.RequiredAction.DownloadFile
3434
import com.duckduckgo.app.browser.LongPressHandler.RequiredAction.OpenInNewTab
35-
import com.duckduckgo.app.browser.defaultBrowsing.DefaultBrowserDetector
36-
import com.duckduckgo.app.browser.defaultBrowsing.DefaultBrowserNotification
3735
import com.duckduckgo.app.browser.favicon.FaviconDownloader
3836
import com.duckduckgo.app.browser.omnibar.OmnibarEntryConverter
3937
import com.duckduckgo.app.browser.session.WebViewSessionStorage
@@ -47,7 +45,6 @@ import com.duckduckgo.app.privacy.db.SiteVisitedEntity
4745
import com.duckduckgo.app.privacy.model.PrivacyGrade
4846
import com.duckduckgo.app.privacy.store.TermsOfServiceStore
4947
import com.duckduckgo.app.settings.db.SettingsDataStore
50-
import com.duckduckgo.app.statistics.VariantManager
5148
import com.duckduckgo.app.statistics.api.StatisticsUpdater
5249
import com.duckduckgo.app.tabs.model.TabRepository
5350
import com.duckduckgo.app.trackerdetection.model.TrackerNetwork
@@ -104,21 +101,12 @@ class BrowserTabViewModelTest {
104101
@Mock
105102
private lateinit var mockOmnibarConverter: OmnibarEntryConverter
106103

107-
@Mock
108-
private lateinit var mockDefaultBrowserDetector: DefaultBrowserDetector
109-
110-
@Mock
111-
private lateinit var mockDefaultBrowserNotification: DefaultBrowserNotification
112-
113104
@Mock
114105
private lateinit var mockTabsRepository: TabRepository
115106

116107
@Mock
117108
private lateinit var webViewSessionStorage: WebViewSessionStorage
118109

119-
@Mock
120-
private lateinit var variantManager: VariantManager
121-
122110
@Mock
123111
private lateinit var mockFaviconDownloader: FaviconDownloader
124112

@@ -154,14 +142,11 @@ class BrowserTabViewModelTest {
154142
autoCompleteApi = mockAutoCompleteApi,
155143
appSettingsPreferencesStore = mockSettingsStore,
156144
bookmarksDao = bookmarksDao,
157-
defaultBrowserNotification = mockDefaultBrowserNotification,
158-
defaultBrowserDetector = mockDefaultBrowserDetector,
159145
longPressHandler = mockLongPressHandler,
160146
appConfigurationDao = appConfigurationDao,
161147
webViewSessionStorage = webViewSessionStorage,
162148
specialUrlDetector = SpecialUrlDetector(),
163-
faviconDownloader = mockFaviconDownloader,
164-
variantManager = variantManager
149+
faviconDownloader = mockFaviconDownloader
165150
)
166151

167152
testee.loadData("abc", null)

0 commit comments

Comments
 (0)