mirror of
https://github.com/vcmi/vcmi.git
synced 2025-10-08 23:22:25 +02:00
also updates: - targetSdkVersion to 35 - buildToolsVersion to 35.0.0 # Conflicts: # android/vcmi-app/build.gradle
25 lines
749 B
Groovy
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)
|