1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-08 23:22:25 +02:00
Files
vcmi/android/settings.gradle
Andrey Filipenkov 34e56c362f update Gradle to 8.13 and AGP to 8.11
also updates:
- targetSdkVersion to 35
- buildToolsVersion to 35.0.0

# Conflicts:
#	android/vcmi-app/build.gradle
2025-07-09 11:13:04 +03:00

25 lines
749 B
Groovy

import groovy.xml.XmlNodePrinter
import groovy.xml.XmlParser
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "VCMI"
include ':vcmi-app'
// when file is symlinked from source directory, relative path will be resolved against the source directory
File absolutePath(String fileName) {
return new File(rootProject.projectDir, fileName)
}
// androiddeployqt requires presence of package attribute, but AGP 8.0+ requires it to be absent
def xmlFile = absolutePath('AndroidManifest.xml')
def xml = new XmlParser().parse(xmlFile)
xml.attributes().remove('package')
new XmlNodePrinter(new PrintWriter(new FileWriter(xmlFile))).print(xml)