mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
53 lines
1.3 KiB
Groovy
53 lines
1.3 KiB
Groovy
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.kotlin.android)
|
|
}
|
|
|
|
// 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()
|
|
|
|
// TODO: Pull out surfaceeffects outside of src and have separate build files there.
|
|
android {
|
|
buildToolsVersion "36.1.0"
|
|
namespace "com.android.systemui.animation"
|
|
buildFeatures {
|
|
aidl true
|
|
}
|
|
sourceSets {
|
|
main {
|
|
java.srcDirs = ['src']
|
|
aidl.srcDirs = ['src']
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
res.srcDirs = ['res']
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
tasks.lint.enabled = false
|
|
tasks.withType(JavaCompile) {
|
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
|
}
|
|
}
|
|
|
|
addFrameworkJar('framework-16.jar')
|
|
compileOnlyCommonJars()
|
|
|
|
dependencies {
|
|
implementation libs.androidx.core.animation
|
|
compileOnly projects.animationlib
|
|
compileOnly projects.wmshell
|
|
compileOnly projects.flags
|
|
|
|
}
|