Skip to content

Commit 5e15812

Browse files
falhassenglide-copybara-robot
authored andcommitted
Converting a second set of Groovy Gradle files to Kotlin DSL.
PiperOrigin-RevId: 829157965
1 parent 1991dd9 commit 5e15812

File tree

25 files changed

+547
-593
lines changed

25 files changed

+547
-593
lines changed

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[versions]
22
avif = "1.1.1.14d8e3c4"
3+
gson = "2.8.2"
34
pmd = "6.0.0"
45
dagger = "2.47"
56
compose = "1.5.1"
@@ -88,6 +89,7 @@ androidx-test-runner = { group = "androidx.test", name = "runner", version.ref =
8889
androidx-tracing = { group = "androidx.tracing", name = "tracing", version.ref = "androidx-tracing" }
8990
androidx-vectordrawable = { group = "androidx.vectordrawable", name = "vectordrawable-animated", version.ref = "androidx-vectordrawable" }
9091
avif = { module = "org.aomedia.avif.android:avif", version.ref = "avif" }
92+
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
9193
proguard-gradle = { group = "com.guardsquare", name = "proguard-gradle", version.ref = "proguard-gradle" }
9294
compose-material = { group = "androidx.compose.material", name = "material", version.ref = "compose" }
9395
coroutines-binarycompat-gradle = { group = "org.jetbrains.kotlinx", name = "binary-compatibility-validator", version.ref = "coroutines-binarycompat-gradle" }

instrumentation/build.gradle

Lines changed: 0 additions & 55 deletions
This file was deleted.

instrumentation/build.gradle.kts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
tasks.configureEach {
2+
if (name == "lint") {
3+
enabled = false
4+
}
5+
}
6+
7+
plugins {
8+
id("com.android.application")
9+
}
10+
11+
android {
12+
namespace = "com.bumptech.glide.instrumentation"
13+
compileSdkVersion = libs.versions.compile.sdk.version.get()
14+
15+
defaultConfig {
16+
minSdk = libs.versions.min.sdk.version.get().toInt()
17+
18+
versionCode = 1
19+
versionName = "1.0"
20+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
21+
multiDexEnabled = true
22+
}
23+
24+
compileOptions {
25+
sourceCompatibility = JavaVersion.VERSION_11
26+
targetCompatibility = JavaVersion.VERSION_11
27+
}
28+
29+
buildTypes {
30+
getByName("debug") {
31+
isDefault = true
32+
}
33+
}
34+
}
35+
36+
dependencies {
37+
annotationProcessor(project(":annotation:compiler"))
38+
implementation(project(":library"))
39+
implementation(libs.androidx.multidex)
40+
implementation(libs.androidx.appcompat)
41+
42+
androidTestImplementation(project(":library"))
43+
androidTestImplementation(project(":mocks"))
44+
androidTestImplementation(project(":testutil"))
45+
androidTestImplementation(libs.mockito.android)
46+
androidTestImplementation(libs.androidx.junit)
47+
androidTestImplementation(libs.androidx.test.rules)
48+
androidTestImplementation(libs.androidx.test.core)
49+
androidTestImplementation(libs.androidx.espresso.idling)
50+
androidTestImplementation(libs.androidx.espresso)
51+
androidTestImplementation(libs.truth)
52+
androidTestImplementation(libs.junit)
53+
androidTestImplementation(libs.androidx.exifinterface)
54+
androidTestImplementation(libs.findbugs.jsr305)
55+
}

integration/compose/build.gradle

Lines changed: 0 additions & 109 deletions
This file was deleted.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
3+
plugins {
4+
id("com.android.library")
5+
id("org.jetbrains.kotlin.android")
6+
}
7+
8+
android {
9+
namespace = "com.bumptech.glide.integration.compose"
10+
compileSdk = 34
11+
12+
defaultConfig {
13+
minSdk = 21
14+
15+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
16+
}
17+
18+
buildFeatures { compose = true }
19+
20+
buildTypes { getByName("release") { isMinifyEnabled = false } }
21+
22+
composeOptions {
23+
kotlinCompilerExtensionVersion = libs.versions.kotlin.compiler.extension.get()
24+
}
25+
26+
compileOptions {
27+
sourceCompatibility = JavaVersion.VERSION_1_8
28+
targetCompatibility = JavaVersion.VERSION_1_8
29+
}
30+
31+
kotlin { compilerOptions { jvmTarget.set(JvmTarget.JVM_1_8) } }
32+
33+
testOptions { unitTests { isIncludeAndroidResources = true } }
34+
}
35+
36+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
37+
if (!name.contains("Test")) {
38+
kotlinOptions.freeCompilerArgs += "-Xexplicit-api=strict"
39+
}
40+
}
41+
42+
dependencies {
43+
implementation(project(":library"))
44+
implementation(project(":integration:ktx"))
45+
46+
implementation(project(":integration:recyclerview")) { isTransitive = false }
47+
48+
implementation(libs.compose.foundation)
49+
implementation(libs.compose.ui)
50+
implementation(libs.drawablepainter)
51+
implementation(libs.androidx.core.ktx)
52+
implementation(libs.androidx.lifecycle.runtime.compose)
53+
debugImplementation(libs.compose.ui.testmanifest)
54+
testImplementation(libs.compose.ui.testmanifest)
55+
testImplementation(libs.compose.ui.testjunit4)
56+
testImplementation(libs.junit)
57+
testImplementation(libs.robolectric)
58+
testImplementation(libs.androidx.appcompat)
59+
testImplementation(libs.androidx.junit)
60+
testImplementation(libs.androidx.test.runner)
61+
testImplementation(libs.androidx.lifecycle.runtime.testing)
62+
androidTestImplementation(libs.junit)
63+
androidTestImplementation(libs.compose.ui.testjunit4)
64+
androidTestImplementation(libs.androidx.espresso)
65+
androidTestImplementation(libs.androidx.espresso.idling)
66+
androidTestImplementation(libs.androidx.junit)
67+
androidTestImplementation(libs.compose.material)
68+
androidTestImplementation(libs.truth)
69+
androidTestImplementation(project(":testutil"))
70+
}
71+
72+
apply(from = "${rootProject.projectDir}/scripts/upload.gradle.kts")

integration/ktx/build.gradle

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)