File tree Expand file tree Collapse file tree 12 files changed +48
-54
lines changed
app-tracking-protection/vpn-store
broken-site/broken-site-store
experiments/experiments-impl
remote-messaging/remote-messaging-store
site-permissions/site-permissions-store
voice-search/voice-search-store Expand file tree Collapse file tree 12 files changed +48
-54
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,12 @@ plugins {
18
18
id ' com.android.library'
19
19
id ' kotlin-android'
20
20
id ' com.google.devtools.ksp'
21
+ id ' androidx.room'
21
22
}
22
23
23
24
apply from : " $rootProject . projectDir /gradle/android-library.gradle"
24
25
25
26
android {
26
- defaultConfig {
27
- javaCompileOptions {
28
- annotationProcessorOptions {
29
- arguments = [" room.schemaLocation" : " $projectDir /schemas" . toString()]
30
- }
31
- }
32
- }
33
27
sourceSets {
34
28
test. assets. srcDirs + = files(" $projectDir /schemas" . toString())
35
29
}
@@ -43,6 +37,10 @@ android {
43
37
compileOptions {
44
38
coreLibraryDesugaringEnabled = true
45
39
}
40
+
41
+ room {
42
+ schemaDirectory " $projectDir /schemas"
43
+ }
46
44
}
47
45
48
46
dependencies {
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' com.android.application'
3
-
3
+ id ' androidx.room '
4
4
id ' kotlin-android'
5
5
id ' kotlin-kapt'
6
6
id ' com.google.devtools.ksp'
@@ -26,11 +26,6 @@ android {
26
26
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
27
27
archivesBaseName = " duckduckgo-$versionName "
28
28
vectorDrawables. useSupportLibrary = true
29
- javaCompileOptions {
30
- annotationProcessorOptions {
31
- arguments = [" room.schemaLocation" : " $projectDir /schemas" . toString()]
32
- }
33
- }
34
29
sourceSets {
35
30
androidTest. assets. srcDirs + = files(" $projectDir /schemas" . toString())
36
31
main {
@@ -183,6 +178,9 @@ android {
183
178
jvmArgs ' -XX:+TieredCompilation' , ' -XX:TieredStopAtLevel=1'
184
179
}
185
180
}
181
+ room {
182
+ schemaDirectory " $projectDir /schemas"
183
+ }
186
184
}
187
185
188
186
static def isValidSigningConfig (signingConfig ) {
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ plugins {
20
20
id ' com.squareup.anvil'
21
21
id ' kotlin-parcelize'
22
22
id ' com.google.devtools.ksp'
23
+ id ' androidx.room'
23
24
}
24
25
25
26
apply from : " $rootProject . projectDir /gradle/android-library.gradle"
@@ -133,10 +134,9 @@ android {
133
134
sourceSets {
134
135
test. assets. srcDirs + = files(" $projectDir /schemas" . toString())
135
136
}
136
- }
137
-
138
- ksp {
139
- arg(" room.schemaLocation" , " $projectDir /schemas" )
137
+ room {
138
+ schemaDirectory " $projectDir /schemas"
139
+ }
140
140
}
141
141
142
142
tasks. register(' installForAutofillTesting' , Exec ) {
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ plugins {
18
18
id ' com.android.library'
19
19
id ' kotlin-android'
20
20
id ' com.google.devtools.ksp'
21
+ id ' androidx.room'
21
22
}
22
23
23
24
apply from : " $rootProject . projectDir /gradle/android-library.gradle"
@@ -40,18 +41,14 @@ dependencies {
40
41
coreLibraryDesugaring Android . tools. desugarJdkLibs
41
42
}
42
43
android {
43
- defaultConfig {
44
- javaCompileOptions {
45
- annotationProcessorOptions {
46
- arguments = [" room.schemaLocation" : " $projectDir /schemas" . toString()]
47
- }
48
- }
49
- }
50
44
sourceSets {
51
45
test. assets. srcDirs + = files(" $projectDir /schemas" . toString())
52
46
}
53
47
namespace ' com.duckduckgo.brokensite.store'
54
48
compileOptions {
55
49
coreLibraryDesugaringEnabled = true
56
50
}
51
+ room {
52
+ schemaDirectory " $projectDir /schemas"
53
+ }
57
54
}
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ buildscript {
28
28
}
29
29
30
30
plugins {
31
+ id ' androidx.room' apply false
31
32
id ' com.squareup.anvil' apply false
32
33
id ' org.jetbrains.dokka'
33
34
id ' com.osacky.fulladle'
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ plugins {
19
19
id ' kotlin-android'
20
20
id ' com.squareup.anvil'
21
21
id ' com.google.devtools.ksp'
22
+ id ' androidx.room'
22
23
}
23
24
24
25
apply from : " $rootProject . projectDir /gradle/android-library.gradle"
@@ -92,19 +93,15 @@ android {
92
93
includeAndroidResources = true
93
94
}
94
95
}
95
- defaultConfig {
96
- javaCompileOptions {
97
- annotationProcessorOptions {
98
- arguments = [" room.schemaLocation" : " $projectDir /schemas" . toString()]
99
- }
100
- }
101
- }
102
96
sourceSets {
103
97
test. assets. srcDirs + = files(" $projectDir /schemas" . toString())
104
98
}
105
99
compileOptions {
106
100
coreLibraryDesugaringEnabled = true
107
101
}
102
+ room {
103
+ schemaDirectory " $projectDir /schemas"
104
+ }
108
105
namespace ' com.duckduckgo.experiments.impl'
109
106
}
110
107
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ plugins {
3
3
id ' kotlin-android'
4
4
id ' com.squareup.anvil'
5
5
id ' com.google.devtools.ksp'
6
+ id ' androidx.room'
6
7
}
7
8
8
9
apply from : " $rootProject . projectDir /gradle/android-library.gradle"
@@ -16,8 +17,8 @@ android {
16
17
generateDaggerFactories = true // default is false
17
18
}
18
19
namespace ' com.duckduckgo.pir.internal'
19
- ksp {
20
- arg( " room.schemaLocation " , " $projectDir /schemas" )
20
+ room {
21
+ schemaDirectory " $projectDir /schemas"
21
22
}
22
23
}
23
24
Original file line number Diff line number Diff line change @@ -18,18 +18,12 @@ plugins {
18
18
id ' com.android.library'
19
19
id ' kotlin-android'
20
20
id ' com.google.devtools.ksp'
21
+ id ' androidx.room'
21
22
}
22
23
23
24
apply from : " $rootProject . projectDir /gradle/android-library.gradle"
24
25
25
26
android {
26
- defaultConfig {
27
- javaCompileOptions {
28
- annotationProcessorOptions {
29
- arguments = [" room.schemaLocation" : " $projectDir /schemas" . toString()]
30
- }
31
- }
32
- }
33
27
sourceSets {
34
28
test. assets. srcDirs + = files(" $projectDir /schemas" . toString())
35
29
}
@@ -42,6 +36,9 @@ android {
42
36
includeAndroidResources = true
43
37
}
44
38
}
39
+ room {
40
+ schemaDirectory " $projectDir /schemas"
41
+ }
45
42
}
46
43
47
44
dependencies {
Original file line number Diff line number Diff line change
1
+ pluginManagement {
2
+ repositories {
3
+ gradlePluginPortal()
4
+ google()
5
+ mavenCentral()
6
+ }
7
+ }
8
+
1
9
plugins {
2
10
id(" de.fayard.refreshVersions" ) version " 0.60.5"
3
11
}
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ plugins {
18
18
id ' com.android.library'
19
19
id ' kotlin-android'
20
20
id ' com.google.devtools.ksp'
21
+ id ' androidx.room'
21
22
}
22
23
23
24
apply from : " $rootProject . projectDir /gradle/android-library.gradle"
@@ -27,20 +28,16 @@ android {
27
28
baseline file(" lint-baseline.xml" )
28
29
abortOnError = ! project. hasProperty(" abortOnError" ) || project. property(" abortOnError" ) != " false"
29
30
}
30
- defaultConfig {
31
- javaCompileOptions {
32
- annotationProcessorOptions {
33
- arguments = [" room.schemaLocation" : " $projectDir /schemas" . toString()]
34
- }
35
- }
36
- }
37
31
sourceSets {
38
32
androidTest. assets. srcDirs + = files(" $projectDir /schemas" . toString())
39
33
}
40
34
namespace ' com.duckduckgo.site.permissions.store'
41
35
compileOptions {
42
36
coreLibraryDesugaringEnabled = true
43
37
}
38
+ room {
39
+ schemaDirectory " $projectDir /schemas"
40
+ }
44
41
}
45
42
46
43
dependencies {
You can’t perform that action at this time.
0 commit comments