1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00
Files
vcmi/android/settings.gradle

25 lines
749 B
Groovy
Raw Normal View History

import groovy.xml.XmlNodePrinter
import groovy.xml.XmlParser
2023-02-16 11:11:39 +03:00
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
2023-02-16 11:11:39 +03:00
}
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)