Add "oculus" build variant for the Oculus Store
This commit is contained in:
+8
-2
@@ -3,6 +3,11 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:installLocation="auto">
|
||||
|
||||
<!-- https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_VULKAN_HARDWARE_VERSION -->
|
||||
<uses-feature android:name="android.hardware.vulkan.version" android:version="0x400000" android:required="true"/>
|
||||
<!-- https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_VULKAN_HARDWARE_LEVEL -->
|
||||
<uses-feature android:name="android.hardware.vulkan.level" android:version="0" android:required="true"/>
|
||||
|
||||
<!-- Tell the system this app works in either 3dof or 6dof mode -->
|
||||
<uses-feature android:name="android.hardware.vr.headtracking" android:required="true" android:version="1" />
|
||||
|
||||
@@ -23,10 +28,11 @@
|
||||
|
||||
<!-- Allow network access -->
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
|
||||
<!-- Required for WiFi locking, see https://developer.android.com/reference/android/net/wifi/WifiManager.WifiLock -->
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
|
||||
<!-- Allow starting the application even without controllers -->
|
||||
@@ -63,7 +69,7 @@
|
||||
<meta-data android:name="pvr.sdk.version" android:value="OpenXR" />
|
||||
<meta-data android:name="picovr.software.eye_tracking" android:value="true" />
|
||||
<meta-data android:name="com.oculus.intent.category.VR" android:value="vr_only"/>
|
||||
<meta-data android:name="com.oculus.supportedDevices" android:value="all"/>
|
||||
<meta-data android:name="com.oculus.supportedDevices" android:value="${ComOculusSupportedDevices}"/> <!-- "quest2|questpro|quest3" on Oculus Store, "all" otherwise -->
|
||||
<meta-data android:name="com.oculus.vr.focusaware" android:value="true"/>
|
||||
|
||||
<!-- See https://hub.vive.com/storage/docs/en-us/ConfigureAppCapabilities.html -->
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user