From c1af302d1e2992782e20303cfd456bd3d4749056 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Fri, 20 Sep 2024 13:18:42 +0200 Subject: [PATCH] Add "oculus" build variant for the Oculus Store --- AndroidManifest.xml | 10 ++++++++-- build.gradle | 15 +++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 84685912..737e6571 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -3,6 +3,11 @@ xmlns:tools="http://schemas.android.com/tools" android:installLocation="auto"> + + + + + @@ -23,10 +28,11 @@ - + + @@ -63,7 +69,7 @@ - + diff --git a/build.gradle b/build.gradle index 74936493..ac3e9fda 100644 --- a/build.gradle +++ b/build.gradle @@ -66,6 +66,7 @@ android { // for AImage_getHardwareBuffer, API 26 minSdkVersion 29 compileSdkVersion 29 + targetSdkVersion 32 // for Oculus Store versionName = "1.0" versionCode = 1 @@ -105,6 +106,10 @@ android { } } + release { + manifestPlaceholders.ComOculusSupportedDevices = "all" + } + releaseDebuggable { initWith release debuggable true @@ -118,6 +123,16 @@ android { // } } + oculus + { + initWith release + manifestPlaceholders.ComOculusSupportedDevices = "quest2|quest3|questpro" + } + + debug { + manifestPlaceholders.ComOculusSupportedDevices = "all" + } + debugWithValidationLayer { initWith debug externalNativeBuild {