Browse Source

Merge pull request #106466 from m4gr3d/misc_build_fixes

[Android] Misc build fixes
Thaddeus Crews 4 months ago
parent
commit
43be1ed01b

+ 2 - 2
platform/android/java/app/build.gradle

@@ -269,8 +269,8 @@ task copyAndRenameBinary(type: Copy) {
  * Used to validate the version of the Java SDK used for the Godot gradle builds.
  */
 task validateJavaVersion {
-    if (JavaVersion.current() != versions.javaVersion) {
-        throw new GradleException("Invalid Java version ${JavaVersion.current()}. Version ${versions.javaVersion} is the required Java version for Godot gradle builds.")
+    if (!JavaVersion.current().isCompatibleWith(versions.javaVersion)) {
+        throw new GradleException("Invalid Java version ${JavaVersion.current()}. Version ${versions.javaVersion} is the minimum supported Java version for Godot gradle builds.")
     }
 }
 

+ 0 - 12
platform/android/java/editor/src/horizonos/AndroidManifest.xml

@@ -79,18 +79,6 @@
             android:value="quest3|questpro"
             tools:replace="android:value" />
 
-        <!--
-        We remove this meta-data originating from the vendors plugin as we only need the loader for
-        now since the project being edited provides its own version of the vendors plugin.
-
-        This needs to be removed once we start implementing the immersive version of the project
-        manager and editor windows.
-         -->
-        <meta-data
-            android:name="org.godotengine.plugin.v2.GodotOpenXRMeta"
-            android:value="org.godotengine.openxr.vendors.meta.GodotOpenXRMeta"
-            tools:node="remove" />
-
         <!-- Enable system splash screen -->
         <meta-data android:name="com.oculus.ossplash" android:value="true"/>
         <!-- Enable passthrough background during the splash screen -->

+ 12 - 0
platform/android/java/editor/src/main/AndroidManifest.xml

@@ -102,6 +102,18 @@
             android:resizeableActivity="false"
             android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
         </activity>
+
+        <!--
+        We remove this meta-data originating from the vendors plugin as we only need the loader for
+        now since the project being edited provides its own version of the vendors plugin.
+
+        This needs to be removed once we start implementing the immersive version of the project
+        manager and editor windows.
+         -->
+        <meta-data
+            android:name="org.godotengine.plugin.v2.GodotOpenXR"
+            android:value="org.godotengine.openxr.vendors.GodotOpenXR"
+            tools:node="remove" />
     </application>
 
 </manifest>

+ 0 - 12
platform/android/java/editor/src/picoos/AndroidManifest.xml

@@ -38,18 +38,6 @@
             </intent-filter>
         </activity>
 
-        <!--
-        We remove this meta-data originating from the vendors plugin as we only need the loader for
-        now since the project being edited provides its own version of the vendors plugin.
-
-        This needs to be removed once we start implementing the immersive version of the project
-        manager and editor windows.
-         -->
-        <meta-data
-            android:name="org.godotengine.plugin.v2.GodotOpenXRPico"
-            android:value="org.godotengine.openxr.vendors.pico.GodotOpenXRPico"
-            tools:node="remove"/>
-
         <!-- Enable system splash screen. Passthrough splash screen is not supported yet-->
         <meta-data
             android:name="pvr.app.splash"