Files
lawnchair/systemUI/shared/build.gradle
Pun Butrach 11f7abcb66 chore: Cleanup, and hidden feature logged
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
2026-01-10 20:48:25 +07:00

56 lines
1.4 KiB
Groovy

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'com.google.devtools.ksp'
}
// LC-Build-TODO: addFrameworkJar() doesn't work, what???
def frameworkJar = new File("$rootDir/prebuilts/libs", "framework-16.jar")
tasks.withType(JavaCompile).configureEach {
classpath = files(frameworkJar)
}
tasks.withType(KotlinCompile).configureEach {
libraries.from(files(frameworkJar))
}
compileOnlyCommonJars()
android {
buildToolsVersion "36.1.0"
namespace "com.android.systemui.shared"
buildFeatures {
aidl true
}
sourceSets {
main {
java.srcDirs = ['src']
aidl.srcDirs = ['src']
manifest.srcFile 'AndroidManifest.xml'
res.srcDirs = ['res']
}
}
ksp {
arg("dagger.hilt.disableModulesHaveInstallInCheck", "true")
}
}
addFrameworkJar('framework-16.jar')
compileOnlyCommonJars()
dependencies {
compileOnly projects.hiddenApi
compileOnly projects.unfold
compileOnly projects.plugin
compileOnly projects.plugincore
compileOnly projects.flags
compileOnly projects.wmshell
compileOnly projects.animationlib
compileOnly projects.utils
implementation libs.dagger.hilt.android
ksp libs.dagger.hilt.compiler
implementation libs.androidx.concurrent.futures
}