mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-29 21:44:26 +02:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
import com.android.build.api.dsl.CommonExtension
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/revanced/registry")
|
|
credentials {
|
|
username = providers.gradleProperty("gpr.user").orNull ?: System.getenv("GITHUB_ACTOR")
|
|
password = providers.gradleProperty("gpr.key").orNull ?: System.getenv("GITHUB_TOKEN")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
layout.buildDirectory = File("../build")
|
|
|
|
project(":screenshot_callback") {
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
afterEvaluate {
|
|
extensions.findByName("android")?.let {
|
|
it as CommonExtension<*, *, *, *, *, *>
|
|
if (it.compileSdk != null && it.compileSdk!! < 31)
|
|
it.compileSdk = 34
|
|
}
|
|
}
|
|
|
|
layout.buildDirectory = rootProject.layout.buildDirectory.file(name).get().asFile
|
|
evaluationDependsOn(":app")
|
|
}
|