Files
youtube_personal/android/build.gradle.kts
T

49 lines
1.4 KiB
Kotlin

allprojects {
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
val newBuildDir: Directory =
rootProject.layout.buildDirectory
.dir("../../build")
.get()
rootProject.layout.buildDirectory.value(newBuildDir)
subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
project.evaluationDependsOn(":app")
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
// BEGIN YOUTUBE_PERSONAL_AGP9_KOTLIN_BRIDGE_18_10_6
// Flutter 3.44 + AGP 9 peut fonctionner temporairement avec
// android.builtInKotlin=false. Certains plugins regardent uniquement la
// version d'AGP et n'appliquent alors plus KGP : leurs sources .kt ne sont
// jamais compilees et GeneratedPluginRegistrant ne trouve plus les classes.
val youtubePersonalLegacyKotlinPlugins = setOf(
"package_info_plus",
"wakelock_plus",
)
subprojects {
if (name in youtubePersonalLegacyKotlinPlugins) {
val pluginProject = this
pluginManager.withPlugin("com.android.library") {
if (!pluginProject.pluginManager.hasPlugin("org.jetbrains.kotlin.android")) {
pluginProject.pluginManager.apply("org.jetbrains.kotlin.android")
}
}
}
}
// END YOUTUBE_PERSONAL_AGP9_KOTLIN_BRIDGE_18_10_6