mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-29 21:44:26 +02:00

Amended: Remove secret @ Fri Sep 6 21:06:58 2024 +0700 Signed-off-by: validcube <pun.butrach@gmail.com>
49 lines
1.9 KiB
Groovy
49 lines
1.9 KiB
Groovy
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven {
|
|
// A repository must be speficied for some reason. "registry" is a dummy.
|
|
url = uri("https://maven.pkg.github.com/revanced/registry")
|
|
credentials {
|
|
username = project.findProperty("gpr.user") as String ?: System.getenv("GITHUB_ACTOR")
|
|
password = project.findProperty("gpr.key") as String ?: System.getenv("GITHUB_TOKEN")
|
|
}
|
|
}
|
|
mavenLocal()
|
|
}
|
|
}
|
|
|
|
rootProject.buildDir = '../build'
|
|
// TODO: Bump SDK
|
|
// Reference: https://github.com/flutter/flutter/issues/153281#issuecomment-2292201697
|
|
subprojects {
|
|
afterEvaluate { project ->
|
|
if (project.extensions.findByName("android") != null) {
|
|
Integer pluginCompileSdk = project.android.compileSdk
|
|
if (pluginCompileSdk != null && pluginCompileSdk < 31) {
|
|
project.logger.error(
|
|
"Warning: Overriding compileSdk version in Flutter plugin: "
|
|
+ project.name
|
|
+ " from "
|
|
+ pluginCompileSdk
|
|
+ " to 31 (to work around https://issuetracker.google.com/issues/199180389)."
|
|
+ "\nIf there is not a new version of " + project.name + ", consider filing an issue against "
|
|
+ project.name
|
|
+ " to increase their compileSdk to the latest (otherwise try updating to the latest version)."
|
|
)
|
|
project.android {
|
|
compileSdk 31
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
project.evaluationDependsOn(":app")
|
|
}
|
|
|
|
tasks.register("clean", Delete) {
|
|
delete rootProject.buildDir
|
|
}
|