2019-09-03 02:31:51 +02:00
|
|
|
ext.versions = [
|
2020-03-04 18:21:59 +01:00
|
|
|
androidGradlePlugin: '3.6.0',
|
|
|
|
compileSdk : 29,
|
|
|
|
minSdk : 18,
|
|
|
|
targetSdk : 29,
|
|
|
|
buildTools : '29.0.1',
|
2020-02-25 17:18:36 +01:00
|
|
|
supportCoreUtils : '28.0.0',
|
|
|
|
kotlinVersion : '1.3.61'
|
2019-09-03 02:31:51 +02:00
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
ext.libraries = [
|
2020-03-04 18:21:59 +01:00
|
|
|
androidGradlePlugin: "com.android.tools.build:gradle:$versions.androidGradlePlugin",
|
2020-02-25 17:18:36 +01:00
|
|
|
supportCoreUtils : "com.android.support:support-core-utils:$versions.supportCoreUtils",
|
|
|
|
kotlinGradlePlugin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlinVersion",
|
|
|
|
kotlinStdLib : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlinVersion"
|
2019-09-03 02:31:51 +02:00
|
|
|
]
|
2019-12-13 01:52:57 +01:00
|
|
|
|
|
|
|
ext.getExportPackageName = { ->
|
2020-03-04 18:21:59 +01:00
|
|
|
// Retrieve the app id from the project property set by the Godot build command.
|
|
|
|
String appId = project.hasProperty("export_package_name") ? project.property("export_package_name") : ""
|
|
|
|
// Check if the app id is valid, otherwise use the default.
|
|
|
|
if (appId == null || appId.isEmpty()) {
|
|
|
|
appId = "com.godot.game"
|
|
|
|
}
|
|
|
|
return appId
|
2019-12-13 01:52:57 +01:00
|
|
|
}
|