1818 */
1919
2020plugins {
21- id( " com.android.application " ) version " 8.8.0 "
22- id( " org.jetbrains .kotlin.android" )
23- id( " org.jetbrains.kotlin.kapt " )
24- id( " org.jlleitschuh.gradle. ktlint" )
21+ alias(libs.plugins.agp)
22+ alias(libs.plugins .kotlin.android)
23+ alias(libs.plugins.ksp )
24+ alias(libs.plugins. ktlint.plugin )
2525}
2626
2727tasks.compileLint {
@@ -40,7 +40,6 @@ kotlin {
4040}
4141
4242android {
43-
4443 namespace = " org.isoron.uhabits"
4544 compileSdk = 35
4645 // compileSdkPreview = "VanillaIceCream"
@@ -66,16 +65,16 @@ android {
6665 }
6766
6867 buildTypes {
69- getByName( " release" ) {
68+ release {
7069 isMinifyEnabled = true
7170 proguardFiles(getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.txt" )
7271 if (signingConfigs.findByName(" release" ) != null ) {
7372 signingConfig = signingConfigs.getByName(" release" )
7473 }
7574 }
7675
77- getByName( " debug" ) {
78- isTestCoverageEnabled = true
76+ debug {
77+ enableUnitTestCoverage = true
7978 }
8079 }
8180
@@ -84,64 +83,35 @@ android {
8483 targetCompatibility(JavaVersion .VERSION_11 )
8584 sourceCompatibility(JavaVersion .VERSION_11 )
8685 }
87- kotlinOptions {
88- jvmTarget = JavaVersion .VERSION_11 .toString()
89- }
90-
91- buildFeatures {
92- viewBinding = true
93- }
9486
95- lint {
96- abortOnError = false
97- }
87+ kotlinOptions.jvmTarget = JavaVersion . VERSION_11 .toString()
88+ buildFeatures.viewBinding = true
89+ lint.abortOnError = false
9890}
9991
10092dependencies {
101- val daggerVersion = " 2.51.1"
102- val kotlinVersion = " 2.1.10"
103- val kxCoroutinesVersion = " 1.10.1"
104- val ktorVersion = " 1.6.8"
105- val espressoVersion = " 3.6.1"
106-
107- androidTestImplementation(" androidx.test.espresso:espresso-contrib:$espressoVersion " )
108- androidTestImplementation(" androidx.test.espresso:espresso-core:$espressoVersion " )
109- androidTestImplementation(" com.google.dagger:dagger:$daggerVersion " )
110- androidTestImplementation(" com.linkedin.dexmaker:dexmaker-mockito:2.28.3" )
111- androidTestImplementation(" io.ktor:ktor-client-mock:$ktorVersion " )
112- androidTestImplementation(" io.ktor:ktor-jackson:$ktorVersion " )
113- androidTestImplementation(" androidx.annotation:annotation:1.7.1" )
114- androidTestImplementation(" androidx.test.ext:junit:1.2.1" )
115- androidTestImplementation(" androidx.test.uiautomator:uiautomator:2.3.0" )
116- androidTestImplementation(" androidx.test:rules:1.6.1" )
117- androidTestImplementation(" org.mockito.kotlin:mockito-kotlin:5.4.0" )
118- compileOnly(" javax.annotation:jsr250-api:1.0" )
119- coreLibraryDesugaring(" com.android.tools:desugar_jdk_libs:2.1.4" )
120- implementation(" com.github.AppIntro:AppIntro:6.3.1" )
121- implementation(" com.google.code.findbugs:jsr305:3.0.2" )
122- implementation(" com.google.dagger:dagger:$daggerVersion " )
123- implementation(" com.google.guava:guava:33.1.0-android" )
124- implementation(" io.ktor:ktor-client-android:$ktorVersion " )
125- implementation(" io.ktor:ktor-client-core:$ktorVersion " )
126- implementation(" io.ktor:ktor-client-jackson:$ktorVersion " )
127- implementation(" io.ktor:ktor-client-json:$ktorVersion " )
128- implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion " )
129- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-android:$kxCoroutinesVersion " )
130- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:$kxCoroutinesVersion " )
131- implementation(" androidx.appcompat:appcompat:1.7.0" )
132- implementation(" androidx.legacy:legacy-preference-v14:1.0.0" )
133- implementation(" androidx.legacy:legacy-support-v4:1.0.0" )
134- implementation(" com.google.android.material:material:1.12.0" )
135- implementation(" com.opencsv:opencsv:5.9" )
136- implementation(" nl.dionsegijn:konfetti-xml:2.0.2" )
93+ compileOnly(libs.jsr250.api)
94+ coreLibraryDesugaring(libs.desugar.jdk.libs)
95+ implementation(libs.appIntro)
96+ implementation(libs.jsr305)
97+ implementation(libs.dagger)
98+ implementation(libs.guava)
99+ implementation(libs.ktor.client.android)
100+ implementation(libs.ktor.client.core)
101+ implementation(libs.ktor.client.jackson)
102+ implementation(libs.ktor.client.json)
103+ implementation(libs.kotlin.stdlib.jdk8)
104+ implementation(libs.kotlinx.coroutines.android)
105+ implementation(libs.kotlinx.coroutines.core)
106+ implementation(libs.appcompat)
107+ implementation(libs.legacy.preference.v14)
108+ implementation(libs.legacy.support.v4)
109+ implementation(libs.material)
110+ implementation(libs.opencsv)
111+ implementation(libs.konfetti.xml)
137112 implementation(project(" :uhabits-core" ))
138- kapt(" com.google.dagger:dagger-compiler:$daggerVersion " )
139- kaptAndroidTest(" com.google.dagger:dagger-compiler:$daggerVersion " )
140- testImplementation(" com.google.dagger:dagger:$daggerVersion " )
141- testImplementation(" junit:junit:4.13.2" )
142- testImplementation(" org.mockito.kotlin:mockito-kotlin:5.4.0" )
143- }
113+ ksp(libs.dagger.compiler)
144114
145- kapt {
146- correctErrorTypes = true
115+ androidTestImplementation(libs.bundles.androidTest)
116+ testImplementation(libs.bundles.test)
147117}
0 commit comments