2022-07-30 21:09:59 +02:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
2022-08-06 15:04:18 +02:00
|
|
|
maven {
|
2024-03-04 12:47:38 +01:00
|
|
|
// 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")
|
|
|
|
}
|
2022-08-06 15:04:18 +02:00
|
|
|
}
|
2023-08-14 02:40:05 +02:00
|
|
|
mavenLocal()
|
2022-07-30 21:09:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-08 16:51:04 +01:00
|
|
|
rootProject.buildDir = '../build'
|
2024-09-06 16:06:58 +02:00
|
|
|
// TODO: Bump SDK
|
|
|
|
// Reference: https://github.com/flutter/flutter/issues/153281#issuecomment-2292201697
|
2023-11-08 16:51:04 +01:00
|
|
|
subprojects {
|
2024-09-06 16:06:58 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-08 16:51:04 +01:00
|
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
2024-09-06 15:12:01 +02:00
|
|
|
project.evaluationDependsOn(":app")
|
2022-07-30 21:09:59 +02:00
|
|
|
}
|
|
|
|
|
2023-05-14 12:45:35 +02:00
|
|
|
tasks.register("clean", Delete) {
|
2023-11-08 16:51:04 +01:00
|
|
|
delete rootProject.buildDir
|
2022-07-30 21:09:59 +02:00
|
|
|
}
|