Explorar o código

Merge pull request #110260 from m4gr3d/investigate_csharp_build_issue

Fix the issue preventing installing C# binaries on Android devices with api <= 29
Clay John hai 5 días
pai
achega
9edc290328
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      platform/android/java/app/config.gradle

+ 7 - 1
platform/android/java/app/config.gradle

@@ -388,7 +388,13 @@ ext.shouldUseLegacyPackaging = { ->
         return Boolean.parseBoolean(legacyPackagingFlag)
     }
 
-    // Default behavior for minSdk >= 24
+    if (getExportMinSdkVersion() <= 29) {
+        // Use legacy packaging for compatibility with device running api <= 29.
+        // See https://github.com/godotengine/godot/issues/108842 for reference.
+        return true
+    }
+
+    // Default behavior for minSdk > 29.
     return false
 }