Files
Lawnchair/systemUnFold/build.gradle
T
Goooler 46fd9043fe Migrate to Hilt KSP compiler (#3760)
* Migrate to Hilt KSP compiler

* Use generated code from AIDL

* Comment

* Revert "Use generated code from AIDL"

This reverts commit 64c3ecce843134d91c964980274ee1dd2fca90d5.

* Workaround for it
2023-11-24 19:38:29 +08:00

43 lines
1.1 KiB
Groovy

plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'com.google.devtools.ksp'
}
android {
namespace "com.android.systemui.unfold"
buildFeatures {
aidl true
}
sourceSets {
main {
java.srcDirs = ['src']
aidl.srcDirs = ['src']
}
}
}
addFrameworkJar('framework-13.jar')
compileOnlyCommonJars()
// Workaround for https://github.com/google/dagger/issues/4158
androidComponents {
onVariants(selector().all(), { variant ->
afterEvaluate {
def capName = variant.name.capitalize()
tasks.getByName("ksp${capName}Kotlin") {
setSource(tasks.getByName("compile${capName}Aidl").outputs)
}
}
})
}
dependencies {
implementation "com.google.dagger:hilt-android:$daggerVersion"
ksp "com.google.dagger:hilt-compiler:$daggerVersion"
implementation "androidx.concurrent:concurrent-futures:1.1.0"
implementation "androidx.lifecycle:lifecycle-common:2.6.2"
implementation "androidx.dynamicanimation:dynamicanimation:1.0.0"
}