2025-07-07 23:02:46 +03:00
|
|
|
import groovy.xml.XmlNodePrinter
|
|
|
|
|
import groovy.xml.XmlParser
|
|
|
|
|
|
2023-02-16 11:11:39 +03:00
|
|
|
dependencyResolutionManagement {
|
2025-07-07 23:02:46 +03:00
|
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
2023-02-16 11:11:39 +03:00
|
|
|
}
|
|
|
|
|
rootProject.name = "VCMI"
|
|
|
|
|
include ':vcmi-app'
|
2025-07-07 23:02:46 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// 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)
|