2023-03-02 18:32:10 +01:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2023 The Calyx Institute
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2023-10-13 07:42:24 +02:00
|
|
|
import org.jlleitschuh.gradle.ktlint.KtlintExtension
|
|
|
|
|
|
|
|
plugins {
|
2024-05-30 08:07:16 +02:00
|
|
|
alias(libs.plugins.android.application) apply false
|
|
|
|
alias(libs.plugins.android.library) apply false
|
2024-05-30 08:50:20 +02:00
|
|
|
alias(libs.plugins.google.ksp) apply false
|
2024-05-30 08:07:16 +02:00
|
|
|
alias(libs.plugins.google.protobuf) apply false
|
|
|
|
alias(libs.plugins.jetbrains.kotlin.android) apply false
|
|
|
|
alias(libs.plugins.jetbrains.dokka) apply false
|
|
|
|
alias(libs.plugins.jlleitschuh.ktlint) apply false
|
2024-07-25 23:55:01 +02:00
|
|
|
alias(libs.plugins.jetbrains.kotlin.jvm) apply false
|
|
|
|
}
|
|
|
|
|
|
|
|
val aospLibs by extra {
|
2024-08-28 21:36:02 +02:00
|
|
|
fileTree("$rootDir/libs/aosp") {
|
2024-07-25 23:55:01 +02:00
|
|
|
// For more information about this module:
|
|
|
|
// https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-11.0.0_r3/Android.bp#507
|
|
|
|
// framework_intermediates/classes-header.jar works for gradle build as well,
|
|
|
|
// but not unit tests, so we use the actual classes (without updatable modules).
|
|
|
|
//
|
|
|
|
// out/target/common/obj/JAVA_LIBRARIES/framework-minus-apex_intermediates/classes.jar
|
|
|
|
include("android.jar")
|
|
|
|
// out/target/common/obj/JAVA_LIBRARIES/core-libart.com.android.art_intermediates/classes.jar
|
|
|
|
include("libcore.jar")
|
|
|
|
}
|
2023-10-13 07:42:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
2023-10-19 06:23:06 +02:00
|
|
|
if (path != ":storage:demo") {
|
2023-10-13 07:42:24 +02:00
|
|
|
apply(plugin = "org.jlleitschuh.gradle.ktlint")
|
|
|
|
|
|
|
|
configure<KtlintExtension> {
|
|
|
|
version.set("0.42.1")
|
|
|
|
android.set(true)
|
|
|
|
enableExperimentalRules.set(false)
|
|
|
|
verbose.set(true)
|
|
|
|
disabledRules.set(listOf("import-ordering", "no-blank-line-before-rbrace", "indent"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|