From 0c5bb532c337b6191a2f799f037e9866b0662c20 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <anonymous.maarten@gmail.com>
Date: Thu, 1 Aug 2024 17:46:55 +0200
Subject: [PATCH] Remove support for building a SDL3 library from gradle

---
 android-project/app/build.gradle | 28 +++++-----------------------
 1 file changed, 5 insertions(+), 23 deletions(-)

diff --git a/android-project/app/build.gradle b/android-project/app/build.gradle
index d34ba31457..514e594a4c 100644
--- a/android-project/app/build.gradle
+++ b/android-project/app/build.gradle
@@ -1,17 +1,11 @@
-def buildWithCMake = project.hasProperty('BUILD_WITH_CMAKE');
-def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY');
-def buildAsApplication = !buildAsLibrary
-if (buildAsApplication) {
-    apply plugin: 'com.android.application'
-}
-else {
-    apply plugin: 'com.android.library'
+plugins {
+     id 'com.android.application'
 }
 
+def buildWithCMake = project.hasProperty('BUILD_WITH_CMAKE');
+
 android {
-    if (buildAsApplication) {
-        namespace "org.libsdl.app"
-    }
+    namespace "org.libsdl.app"
     compileSdkVersion 34
     defaultConfig {
         minSdkVersion 19
@@ -61,18 +55,6 @@ android {
     lint {
         abortOnError false
     }
-
-    if (buildAsLibrary) {
-        libraryVariants.all { variant ->
-            variant.outputs.each { output ->
-                def outputFile = output.outputFile
-                if (outputFile != null && outputFile.name.endsWith(".aar")) {
-                    def fileName = "org.libsdl.app.aar";
-                    output.outputFile = new File(outputFile.parent, fileName);
-                }
-            }
-        }
-    }
 }
 
 dependencies {