Configure KSP out of android

https://developer.android.com/jetpack/androidx/releases/room#compiler-options
This commit is contained in:
Goooler
2022-12-29 10:40:49 +08:00
parent 848ae402c8
commit c06f5fd51b
+5 -2
View File
@@ -144,8 +144,6 @@ android {
manifestPlaceholders.quickstepMaxSdk = quickstepMaxSdk
buildConfigField "int", "QUICKSTEP_MIN_SDK", quickstepMinSdk
buildConfigField "int", "QUICKSTEP_MAX_SDK", quickstepMaxSdk
ksp { arg("room.schemaLocation", "$projectDir/schemas".toString()) }
}
applicationVariants.all { variant ->
@@ -404,6 +402,11 @@ dependencies {
implementation 'com.airbnb.android:lottie:5.2.0'
}
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
arg("room.incremental", "true")
}
protobuf {
// Configure the protoc executable
protoc {