This commit is contained in:
Ricki Hirner 2023-07-22 13:09:04 +02:00
parent 7038bbf70a
commit 4f192c253d
2 changed files with 21 additions and 14 deletions

View file

@ -2,11 +2,14 @@
* Copyright © All Contributors. See LICENSE and AUTHORS in the root directory for details.
**************************************************************************************************/
apply plugin: 'com.android.application'
apply plugin: 'com.mikepenz.aboutlibraries.plugin'
apply plugin: 'dagger.hilt.android.plugin'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
plugins {
id 'com.android.application'
id 'com.google.devtools.ksp'
id 'com.mikepenz.aboutlibraries.plugin'
id 'dagger.hilt.android.plugin'
id 'kotlin-android'
id 'kotlin-kapt' // remove as soon as Hilt supports KSP [https://issuetracker.google.com/179057202]
}
// Android configuration
android {
@ -29,12 +32,6 @@ android {
buildConfigField "String", "userAgent", "\"DAVx5\""
testInstrumentationRunner "at.bitfire.davdroid.CustomTestRunner"
kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
}
}
}
compileOptions {
@ -107,6 +104,10 @@ android {
}
}
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}
configurations {
all {
// exclude modules which are in conflict with system libraries
@ -124,7 +125,7 @@ dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
implementation "com.google.dagger:hilt-android:${versions.hilt}"
kapt "com.google.dagger:hilt-android-compiler:${versions.hilt}"
kapt "com.google.dagger:hilt-android-compiler:${versions.hilt}" // replace by KSP when ready [https://issuetracker.google.com/179057202]
// support libs
implementation 'androidx.appcompat:appcompat:1.6.1'
@ -158,7 +159,7 @@ dependencies {
implementation "androidx.room:room-runtime:${versions.room}"
implementation "androidx.room:room-ktx:${versions.room}"
implementation "androidx.room:room-paging:${versions.room}"
kapt "androidx.room:room-compiler:${versions.room}"
ksp "androidx.room:room-compiler:${versions.room}"
androidTestImplementation "androidx.room:room-testing:${versions.room}"
// own libraries

View file

@ -8,7 +8,8 @@ buildscript {
appIntro: '6.2.0',
composeBom: '2023.06.01',
hilt: '2.47',
kotlin: '1.8.22', // keep in sync with app/build.gradle composeOptions.kotlinCompilerExtensionVersion
kotlin: '1.8.22', // keep in sync with * app/build.gradle composeOptions.kotlinCompilerExtensionVersion
// * com.google.devtools.ksp at the end of this file
okhttp: '4.11.0',
room: '2.5.2',
// latest Apache Commons versions that don't require Java 8 (Android 7)
@ -38,6 +39,11 @@ buildscript {
}
}
plugins {
// see https://github.com/google/ksp/releases for version numbers
id 'com.google.devtools.ksp' version '1.8.22-1.0.11' apply false
}
allprojects {
repositories {
google()