update quest build project

This commit is contained in:
2019-06-13 12:38:03 +02:00
parent dc9da77cf8
commit ac47915658
3 changed files with 10 additions and 4 deletions

View File

@@ -64,13 +64,13 @@ def ver_tag = "git describe --tags --abbrev=0".execute().text.trim()
println classpath
android {
compileSdkVersion 26
compileSdkVersion 28
android.buildToolsVersion "28.0.3"
defaultConfig {
applicationId = 'com.omixlab.panopainter'
minSdkVersion 21
targetSdkVersion 26
minSdkVersion 23
targetSdkVersion 28
versionCode ver_count
versionName "${ver_tag}.${ver_count}"
// This block is different from the one you use to link Gradle

View File

@@ -18,8 +18,10 @@
android:value="vr_only"/>
<activity android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
android:launchMode="singleTask"
android:configChanges="screenSize|screenLayout|orientation|keyboardHidden|keyboard|navigation|uiMode"
android:configChanges="density|keyboard|keyboardHidden|navigation|orientation|screenLayout|screenSize|uiMode"
android:resizeableActivity="false"
android:excludeFromRecents="true"
android:screenOrientation="landscape">
<meta-data android:name="android.app.lib_name"

View File

@@ -8,6 +8,10 @@ branch = check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]).rstrip().dec
shorthash = check_output(["git", "log", "--pretty=format:%h", "-n 1"]).rstrip().decode("utf-8")
revcount = int(check_output(["git", "rev-list", "--count", "HEAD"]))
tag = check_output(["git", "describe", "--tags", "--abbrev=0"]).rstrip().decode("utf-8").split('-',1)[0]
if len(sys.argv) < 2:
print("pre-build.py failed")
exit(0)
config = sys.argv[1].lower()
version = "%s.%d (%s-%s-%s)" % (tag, revcount, shorthash, branch, config)