Skip to content

Commit 42e730c

Browse files
committed
room plugin test
1 parent c434e3a commit 42e730c

File tree

12 files changed

+48
-54
lines changed

12 files changed

+48
-54
lines changed

app-tracking-protection/vpn-store/build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,12 @@ plugins {
1818
id 'com.android.library'
1919
id 'kotlin-android'
2020
id 'com.google.devtools.ksp'
21+
id 'androidx.room'
2122
}
2223

2324
apply from: "$rootProject.projectDir/gradle/android-library.gradle"
2425

2526
android {
26-
defaultConfig {
27-
javaCompileOptions {
28-
annotationProcessorOptions {
29-
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
30-
}
31-
}
32-
}
3327
sourceSets {
3428
test.assets.srcDirs += files("$projectDir/schemas".toString())
3529
}
@@ -43,6 +37,10 @@ android {
4337
compileOptions {
4438
coreLibraryDesugaringEnabled = true
4539
}
40+
41+
room {
42+
schemaDirectory "$projectDir/schemas"
43+
}
4644
}
4745

4846
dependencies {

app/build.gradle

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'com.android.application'
3-
3+
id 'androidx.room'
44
id 'kotlin-android'
55
id 'kotlin-kapt'
66
id 'com.google.devtools.ksp'
@@ -26,11 +26,6 @@ android {
2626
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2727
archivesBaseName = "duckduckgo-$versionName"
2828
vectorDrawables.useSupportLibrary = true
29-
javaCompileOptions {
30-
annotationProcessorOptions {
31-
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
32-
}
33-
}
3429
sourceSets {
3530
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
3631
main {
@@ -183,6 +178,9 @@ android {
183178
jvmArgs '-XX:+TieredCompilation', '-XX:TieredStopAtLevel=1'
184179
}
185180
}
181+
room {
182+
schemaDirectory "$projectDir/schemas"
183+
}
186184
}
187185

188186
static def isValidSigningConfig(signingConfig) {

autofill/autofill-impl/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ plugins {
2020
id 'com.squareup.anvil'
2121
id 'kotlin-parcelize'
2222
id 'com.google.devtools.ksp'
23+
id 'androidx.room'
2324
}
2425

2526
apply from: "$rootProject.projectDir/gradle/android-library.gradle"
@@ -133,10 +134,9 @@ android {
133134
sourceSets {
134135
test.assets.srcDirs += files("$projectDir/schemas".toString())
135136
}
136-
}
137-
138-
ksp {
139-
arg("room.schemaLocation", "$projectDir/schemas")
137+
room {
138+
schemaDirectory "$projectDir/schemas"
139+
}
140140
}
141141

142142
tasks.register('installForAutofillTesting', Exec) {

broken-site/broken-site-store/build.gradle

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ plugins {
1818
id 'com.android.library'
1919
id 'kotlin-android'
2020
id 'com.google.devtools.ksp'
21+
id 'androidx.room'
2122
}
2223

2324
apply from: "$rootProject.projectDir/gradle/android-library.gradle"
@@ -40,18 +41,14 @@ dependencies {
4041
coreLibraryDesugaring Android.tools.desugarJdkLibs
4142
}
4243
android {
43-
defaultConfig {
44-
javaCompileOptions {
45-
annotationProcessorOptions {
46-
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
47-
}
48-
}
49-
}
5044
sourceSets {
5145
test.assets.srcDirs += files("$projectDir/schemas".toString())
5246
}
5347
namespace 'com.duckduckgo.brokensite.store'
5448
compileOptions {
5549
coreLibraryDesugaringEnabled = true
5650
}
51+
room {
52+
schemaDirectory "$projectDir/schemas"
53+
}
5754
}

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ buildscript {
2828
}
2929

3030
plugins {
31+
id 'androidx.room' apply false
3132
id 'com.squareup.anvil' apply false
3233
id 'org.jetbrains.dokka'
3334
id 'com.osacky.fulladle'

experiments/experiments-impl/build.gradle

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ plugins {
1919
id 'kotlin-android'
2020
id 'com.squareup.anvil'
2121
id 'com.google.devtools.ksp'
22+
id 'androidx.room'
2223
}
2324

2425
apply from: "$rootProject.projectDir/gradle/android-library.gradle"
@@ -92,19 +93,15 @@ android {
9293
includeAndroidResources = true
9394
}
9495
}
95-
defaultConfig {
96-
javaCompileOptions {
97-
annotationProcessorOptions {
98-
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
99-
}
100-
}
101-
}
10296
sourceSets {
10397
test.assets.srcDirs += files("$projectDir/schemas".toString())
10498
}
10599
compileOptions {
106100
coreLibraryDesugaringEnabled = true
107101
}
102+
room {
103+
schemaDirectory "$projectDir/schemas"
104+
}
108105
namespace 'com.duckduckgo.experiments.impl'
109106
}
110107

pir/pir-internal/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
id 'kotlin-android'
44
id 'com.squareup.anvil'
55
id 'com.google.devtools.ksp'
6+
id 'androidx.room'
67
}
78

89
apply from: "$rootProject.projectDir/gradle/android-library.gradle"
@@ -16,8 +17,8 @@ android {
1617
generateDaggerFactories = true // default is false
1718
}
1819
namespace 'com.duckduckgo.pir.internal'
19-
ksp {
20-
arg("room.schemaLocation", "$projectDir/schemas")
20+
room {
21+
schemaDirectory "$projectDir/schemas"
2122
}
2223
}
2324

remote-messaging/remote-messaging-store/build.gradle

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,12 @@ plugins {
1818
id 'com.android.library'
1919
id 'kotlin-android'
2020
id 'com.google.devtools.ksp'
21+
id 'androidx.room'
2122
}
2223

2324
apply from: "$rootProject.projectDir/gradle/android-library.gradle"
2425

2526
android {
26-
defaultConfig {
27-
javaCompileOptions {
28-
annotationProcessorOptions {
29-
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
30-
}
31-
}
32-
}
3327
sourceSets {
3428
test.assets.srcDirs += files("$projectDir/schemas".toString())
3529
}
@@ -42,6 +36,9 @@ android {
4236
includeAndroidResources = true
4337
}
4438
}
39+
room {
40+
schemaDirectory "$projectDir/schemas"
41+
}
4542
}
4643

4744
dependencies {

settings.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
pluginManagement {
2+
repositories {
3+
gradlePluginPortal()
4+
google()
5+
mavenCentral()
6+
}
7+
}
8+
19
plugins {
210
id("de.fayard.refreshVersions") version "0.60.5"
311
}

site-permissions/site-permissions-store/build.gradle

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ plugins {
1818
id 'com.android.library'
1919
id 'kotlin-android'
2020
id 'com.google.devtools.ksp'
21+
id 'androidx.room'
2122
}
2223

2324
apply from: "$rootProject.projectDir/gradle/android-library.gradle"
@@ -27,20 +28,16 @@ android {
2728
baseline file("lint-baseline.xml")
2829
abortOnError = !project.hasProperty("abortOnError") || project.property("abortOnError") != "false"
2930
}
30-
defaultConfig {
31-
javaCompileOptions {
32-
annotationProcessorOptions {
33-
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
34-
}
35-
}
36-
}
3731
sourceSets {
3832
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
3933
}
4034
namespace 'com.duckduckgo.site.permissions.store'
4135
compileOptions {
4236
coreLibraryDesugaringEnabled = true
4337
}
38+
room {
39+
schemaDirectory "$projectDir/schemas"
40+
}
4441
}
4542

4643
dependencies {

0 commit comments

Comments
 (0)