forked from GodotVR/godot_openxr_vendors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.gradle
34 lines (29 loc) · 1.21 KB
/
config.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ext {
versions = [
gradlePluginVersion : '8.2.0',
compileSdk : 34,
minSdk : 21,
targetSdk : 34,
javaVersion : JavaVersion.VERSION_17,
nexusPublishVersion : '1.3.0',
kotlinVersion : '1.9.20',
cmakeVersion : '3.22.1',
ndkVersion : '23.2.8568313',
openxrVersion : '1.0.34'
]
libraries = [
godotAndroidLib: "org.godotengine:godot:4.3.0.stable",
]
// Parse the release version from the gradle project properties (e.g: -Prelease_version=<version>)
getReleaseVersion = { ->
final String defaultVersion = "3.1.0-dev-SNAPSHOT"
String releaseVersion = project.hasProperty("release_version") ? project.property("release_version") : defaultVersion
if (releaseVersion == null || releaseVersion.isEmpty()) {
releaseVersion = defaultVersion
}
if (!releaseVersion.endsWithIgnoreCase("-stable") && !releaseVersion.endsWithIgnoreCase("-snapshot")) {
releaseVersion += "-SNAPSHOT"
}
return releaseVersion
}
}