1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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")
- }
|