The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/oxr_android: Set package version from Git

+10 -2
+3
build.gradle
··· 15 15 plugins { 16 16 // Used for getting the eigen dir from local.properties 17 17 id 'com.github.b3er.local.properties' version '1.1' 18 + 19 + // For getting git describe data and formatting it how Android wants. 20 + id "com.gladed.androidgitversion" version "0.4.13" 18 21 } 19 22 20 23 ext {
+7 -2
src/xrt/targets/openxr_android/build.gradle
··· 4 4 apply plugin: 'com.android.application' 5 5 apply plugin: 'kotlin-android' 6 6 7 + androidGitVersion { 8 + tagPattern(/^v[0-9]+.*/) 9 + codeFormat = 'MNNPPPBBB' 10 + } 7 11 android { 8 12 compileSdkVersion project.sharedTargetSdk 9 13 buildToolsVersion '30.0.2' ··· 14 18 applicationId 'org.freedesktop.monado.openxr_runtime' 15 19 minSdkVersion project.sharedMinSdk 16 20 targetSdkVersion project.sharedTargetSdk 17 - versionCode 1 18 - versionName '1.0' 21 + 22 + versionCode androidGitVersion.code() 23 + versionName androidGitVersion.name() 19 24 externalNativeBuild { 20 25 cmake { 21 26 arguments "-DEIGEN3_INCLUDE_DIR=${project.eigenIncludeDir}", "-DANDROID_PLATFORM=26", "-DANDROID_STL=c++_shared", "-DANDROID_ARM_NEON=TRUE"