diff --git a/.github/workflows/gradle-build-push.yml b/.github/workflows/gradle-build-push.yml index 556d76d..218024a 100644 --- a/.github/workflows/gradle-build-push.yml +++ b/.github/workflows/gradle-build-push.yml @@ -13,10 +13,6 @@ jobs: with: distribution: corretto java-version: 17 - - name: Generating debug keystore and SHA1 key - run: | - mkdir -p $HOME/.android - keytool -genkey -v -keystore $HOME/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US" - name: Build with Gradle run: ./gradlew --debug --stacktrace build - name: Pass tests and checks diff --git a/build.gradle b/build.gradle index b076b8b..57a7642 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { google() } dependencies { - //classpath "com.badlogicgames.gdx:gdx-tools:$gdxVersion" + classpath "com.badlogicgames.gdx:gdx-tools:$gdxVersion" //classpath "com.mobidevelop.robovm:robovm-gradle-plugin:$robovmVersion" classpath "com.android.tools.build:gradle:$androidPluginVersion" } @@ -65,20 +65,20 @@ subprojects { eclipse.project.name = 'blade-ink-template' + '-parent' // Run `gradle pack` task to generate skin.atlas file at assets/ui. -//import com.badlogic.gdx.tools.texturepacker.TexturePacker -// -//tasks.register('pack') { -// -// doLast { -// -// // Note that if you need multiple atlases, you can duplicate the -// // TexturePacker.process invocation and change paths to generate -// // additional atlases with this task. -// TexturePacker.process( -// 'raw/ui', // Raw assets path. -// 'assets/ui/1/', // Output directory. -// 'ui' // Name of the generated atlas (without extension). -// ) -// } -//} +import com.badlogic.gdx.tools.texturepacker.TexturePacker + +tasks.register('pack') { + + doLast { + + // Note that if you need multiple atlases, you can duplicate the + // TexturePacker.process invocation and change paths to generate + // additional atlases with this task. + TexturePacker.process( + 'raw/ui', // Raw assets path. + 'assets/ui/1/', // Output directory. + 'ui' // Name of the generated atlas (without extension). + ) + } +}