Skip to content

Commit 8cc63c5

Browse files
authored
Format project source (#346)
1 parent 4396167 commit 8cc63c5

File tree

167 files changed

+4736
-1087
lines changed

Some content is hidden

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

167 files changed

+4736
-1087
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/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

0 commit comments

Comments
 (0)