diff --git a/build.gradle b/build.gradle index fd7f5bc..3d93626 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,6 @@ repositories { } dependencies { - api "com.badlogicgames.gdx:gdx:$gdxVersion" annotationProcessor "org.projectlombok:lombok:$lombokVersion" compileOnly "org.projectlombok:lombok:$lombokVersion" testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.3" diff --git a/gradle.properties b/gradle.properties index 57122b1..c37f644 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,2 @@ lombokVersion=1.18.34 -gdxVersion=1.12.1 - diff --git a/settings.gradle b/settings.gradle index 9d6e44c..3785097 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,4 +1,4 @@ // A list of which subprojects to load as part of the same larger project. // You can remove Strings from the list and reload the Gradle project // if you want to temporarily disable a subproject. -//include 'lwjgl3', 'android', 'html', 'core', 'pixel-backend-libgdx' +//include 'lwjgl3', 'android', 'html', 'core' diff --git a/src/main/java/com/pixelgamelibrary/api/utils/AssetsTxt.java b/src/main/java/com/pixelgamelibrary/api/utils/AssetsTxt.java index 0cc591d..6f22872 100644 --- a/src/main/java/com/pixelgamelibrary/api/utils/AssetsTxt.java +++ b/src/main/java/com/pixelgamelibrary/api/utils/AssetsTxt.java @@ -19,9 +19,6 @@ /////////////////////////////////////////////////////////////////////////////////////////////// package com.pixelgamelibrary.api.utils; -import com.badlogic.gdx.Application; -import com.badlogic.gdx.Gdx; -import com.badlogic.gdx.files.FileHandle; import com.pixelgamelibrary.api.Pixel; import com.pixelgamelibrary.api.storage.StorageException; import java.util.ArrayList; @@ -29,7 +26,6 @@ import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; -import java.util.function.Function; import java.util.stream.Collectors; /** @@ -156,17 +152,6 @@ public class AssetsTxt { } - public List list(FileHandle fileHandle) { - String pathToDirectory = fileHandle.path();//((fileHandle.path().isEmpty() ? "" : (fileHandle.path() + "/"))) + fileHandle.name(); - Function createFileHandle = s - -> Gdx.app.getType() == Application.ApplicationType.Desktop - ? Gdx.files.classpath(s) : Gdx.files.internal(s); - return AssetsTxt.this.list(pathToDirectory) - .stream() - .map(p -> createFileHandle.apply((pathToDirectory.equals(".") ? "" : (pathToDirectory + "/")) + p)) - .collect(Collectors.toList()); - } - static String convertListStringToStringPath(List list) { return list.stream().collect(Collectors.joining("/")); }