Skip to content

Commit 7278136

Browse files
committed
Automatic deployment: KTX 1.12.1-rc2, gdx-liftoff 1.12.1.14.
1 parent dca23e4 commit 7278136

File tree

27 files changed

+308
-130
lines changed

27 files changed

+308
-130
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,12 @@ Thumbs.db
152152
*~
153153
*.*#
154154
*#*#
155+
/assets/assets.txt
156+
157+
## Special cases:
158+
159+
## There is a resource-config.json file generated by nativeimage.gradle if you use Graal Native Image.
160+
## Some usage may need extra resource configuration in a different file with the same name.
161+
## You could also add that configuration to the text in nativeimage.gradle .
162+
## You should delete or comment out the next line if you have configuration in a different resource-config.json .
163+
**/resource-config.json

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ktx-demo-web
22

3-
A [libGDX](https://libgdx.com/) project generated with [gdx-liftoff](https://github.com/tommyettinger/gdx-liftoff).
3+
A [libGDX](https://libgdx.com/) project generated with [gdx-liftoff](https://github.com/libgdx/gdx-liftoff).
44

55
This project was generated with a Kotlin project template that includes Kotlin application launchers and [KTX](https://libktx.github.io/) utilities.
66

@@ -14,7 +14,7 @@ This project was generated with a Kotlin project template that includes Kotlin a
1414

1515
## Gradle
1616

17-
This project uses [Gradle](http://gradle.org/) to manage dependencies.
17+
This project uses [Gradle](https://gradle.org/) to manage dependencies.
1818
The Gradle wrapper was included, so you can run Gradle tasks using `gradlew.bat` or `./gradlew` commands.
1919
Useful Gradle tasks and flags:
2020

@@ -29,7 +29,7 @@ Useful Gradle tasks and flags:
2929
- `clean`: removes `build` folders, which store compiled classes and built archives.
3030
- `eclipse`: generates Eclipse project data.
3131
- `idea`: generates IntelliJ project data.
32-
- `lwjgl3:jar`: builds application's runnable jar, which can be found at `lwjgl3/build/lib`.
32+
- `lwjgl3:jar`: builds application's runnable jar, which can be found at `lwjgl3/build/libs`.
3333
- `lwjgl3:run`: starts the application.
3434
- `teavm:build`: builds the JavaScript application into the build/dist/webapp folder.
3535
- `teavm:run`: serves the JavaScript application at http://localhost:8080 via a local Jetty server.

android/build.gradle

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@ apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
33

44
android {
5-
compileSdk 32
5+
namespace "ktx.demo"
6+
compileSdk 34
67
sourceSets {
78
main {
89
manifest.srcFile 'AndroidManifest.xml'
9-
java.srcDirs('src/main/java', 'src/main/kotlin')
10-
aidl.srcDirs('src/main/java', 'src/main/kotlin')
11-
renderscript.srcDirs('src/main/java', 'src/main/kotlin')
12-
res.srcDirs('res')
13-
assets.srcDirs('../assets')
14-
jniLibs.srcDirs('libs')
10+
java.setSrcDirs(['src/main/java', 'src/main/kotlin'])
11+
aidl.setSrcDirs(['src/main/java', 'src/main/kotlin'])
12+
renderscript.setSrcDirs(['src/main/java', 'src/main/kotlin'])
13+
res.setSrcDirs(['res'])
14+
assets.setSrcDirs(['../assets'])
15+
jniLibs.setSrcDirs(['libs'])
1516
}
1617
}
1718
packagingOptions {
18-
resources.with {
19-
excludes += ['META-INF/robovm/ios/robovm.xml',
20-
'META-INF/DEPENDENCIES.txt', 'META-INF/DEPENDENCIES', 'META-INF/dependencies.txt', '**/*.gwt.xml']
19+
resources {
20+
excludes += ['META-INF/robovm/ios/robovm.xml', 'META-INF/DEPENDENCIES.txt', 'META-INF/DEPENDENCIES',
21+
'META-INF/dependencies.txt', '**/*.gwt.xml']
2122
pickFirsts += ['META-INF/LICENSE.txt', 'META-INF/LICENSE', 'META-INF/license.txt', 'META-INF/LGPL2.1',
22-
'META-INF/NOTICE.txt', 'META-INF/NOTICE', 'META-INF/notice.txt']
23+
'META-INF/NOTICE.txt', 'META-INF/NOTICE', 'META-INF/notice.txt']
2324
}
2425
}
2526
defaultConfig {
2627
applicationId 'ktx.demo'
2728
minSdkVersion 19
28-
targetSdkVersion 32
29+
targetSdkVersion 34
2930
versionCode 1
3031
versionName "1.0"
3132
multiDexEnabled true
3233
}
33-
namespace "ktx.demo"
3434
compileOptions {
3535
sourceCompatibility "11"
3636
targetCompatibility "11"
@@ -43,9 +43,8 @@ android {
4343
}
4444
}
4545

46-
kotlin {
47-
jvmToolchain(11)
48-
}
46+
kotlin.compilerOptions.jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
47+
4948
}
5049

5150
repositories {
@@ -56,7 +55,7 @@ repositories {
5655
configurations { natives }
5756

5857
dependencies {
59-
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
58+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
6059
implementation "com.badlogicgames.gdx-controllers:gdx-controllers-android:$gdxControllersVersion"
6160
implementation "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
6261
implementation project(':core')
@@ -90,7 +89,7 @@ tasks.register('copyAndroidNatives') {
9089
file("libs/x86_64/").mkdirs()
9190
file("libs/x86/").mkdirs()
9291

93-
configurations.named("natives").orNull.copy().files.each { jar ->
92+
configurations.natives.copy().files.each { jar ->
9493
def outputDir = null
9594
if(jar.name.endsWith("natives-armeabi-v7a.jar")) outputDir = file("libs/armeabi-v7a")
9695
if(jar.name.endsWith("natives-arm64-v8a.jar")) outputDir = file("libs/arm64-v8a")
@@ -106,6 +105,7 @@ tasks.register('copyAndroidNatives') {
106105
}
107106
}
108107
}
108+
109109
tasks.matching { it.name.contains("merge") && it.name.contains("JniLibFolders") }.configureEach { packageTask ->
110110
packageTask.dependsOn 'copyAndroidNatives'
111111
}

android/ic_launcher-web.png

56.3 KB
Loading

android/proguard-rules.pro

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# include property in project.properties.
99
#
1010
# For more details, see
11-
# http://developer.android.com/guide/developing/tools/proguard.html
11+
# https://developer.android.com/guide/developing/tools/proguard.html
1212

1313
# Add any project specific keep options here:
1414

@@ -23,20 +23,11 @@
2323

2424
-dontwarn android.support.**
2525
-dontwarn com.badlogic.gdx.backends.android.AndroidFragmentApplication
26-
-dontwarn com.badlogic.gdx.utils.GdxBuild
27-
-dontwarn com.badlogic.gdx.physics.box2d.utils.Box2DBuild
28-
-dontwarn com.badlogic.gdx.jnigen.BuildTarget*
29-
-dontwarn com.badlogic.gdx.graphics.g2d.freetype.FreetypeBuild
3026

31-
# If you're encountering ProGuard issues and use gdx-controllers, THIS MIGHT BE WHY!!!
32-
33-
# Uncomment the following line if you use the gdx-controllers official extension.
34-
#-keep class com.badlogic.gdx.controllers.android.AndroidControllers
35-
36-
-keepclassmembers class com.badlogic.gdx.backends.android.AndroidInput* {
37-
<init>(com.badlogic.gdx.Application, android.content.Context, java.lang.Object, com.badlogic.gdx.backends.android.AndroidApplicationConfiguration);
38-
}
27+
# Needed by the gdx-controllers official extension.
28+
-keep class com.badlogic.gdx.controllers.android.AndroidControllers
3929

30+
# Needed by the Box2D official extension.
4031
-keepclassmembers class com.badlogic.gdx.physics.box2d.World {
4132
boolean contactFilter(long, long);
4233
void beginContact(long);
@@ -47,12 +38,12 @@
4738
float reportRayFixture(long, float, float, float, float, float);
4839
}
4940

50-
# You will need the next three lines if you use scene2d for UI or gameplay
51-
# If you don't use scene2d at all, you can remove or comment out the next line
41+
# You will need the next three lines if you use scene2d for UI or gameplay.
42+
# If you don't use scene2d at all, you can remove or comment out the next line:
5243
-keep public class com.badlogic.gdx.scenes.scene2d.** { *; }
53-
# You will need the next two lines if you use BitmapFont or any scene2d.ui text
44+
# You will need the next two lines if you use BitmapFont or any scene2d.ui text:
5445
-keep public class com.badlogic.gdx.graphics.g2d.BitmapFont { *; }
55-
# You will probably need this line in most cases
46+
# You will probably need this line in most cases:
5647
-keep public class com.badlogic.gdx.graphics.Color { *; }
5748

5849
# These two lines are used with mapping files; see https://developer.android.com/build/shrink-code#retracing
1.57 KB
Loading
993 Bytes
Loading
3.75 KB
Loading
7.7 KB
Loading
15.3 KB
Loading

0 commit comments

Comments
 (0)