Skip to content

Commit 1334ef0

Browse files
authored
Update Android API level to 33 (#316)
* Update Android API level to 33 * Move to non deprecated version of upload artifact Github action * Move CI to java 11 * Fix name collision for CI * Resolve jar name collision for CI
1 parent 00483ad commit 1334ef0

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

.github/workflows/android.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v2
1919

20-
- name: Set up JDK 8
20+
- name: Set up JDK 11
2121
uses: actions/setup-java@v2
2222
with:
23-
java-version: '8'
23+
java-version: '11'
2424
distribution: 'adopt'
2525

2626
- name: Grant execute permission for gradlew
@@ -33,13 +33,13 @@ jobs:
3333
run: ./gradlew DungeoneerAndroid:assembleRelease
3434

3535
- name: Bundle Debug Apk
36-
uses: actions/upload-artifact@v2
36+
uses: actions/upload-artifact@v4
3737
with:
38-
name: apks
38+
name: debug-apk
3939
path: DungeoneerAndroid/build/outputs/apk/debug/DungeoneerAndroid-debug.apk
4040

4141
- name: Bundle Release Apk
42-
uses: actions/upload-artifact@v2
42+
uses: actions/upload-artifact@v4
4343
with:
44-
name: apks
44+
name: release-apk
4545
path: DungeoneerAndroid/build/outputs/apk/release/DungeoneerAndroid-release-unsigned.apk

.github/workflows/gradle.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Build Delver Engine
66
on:
77
push:
88
branches: [ master ]
9-
9+
1010
pull_request:
1111
branches: [ master ]
1212

@@ -16,30 +16,30 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19-
20-
- name: Set up JDK 8
19+
20+
- name: Set up JDK 11
2121
uses: actions/setup-java@v2
2222
with:
23-
java-version: '8'
23+
java-version: '11'
2424
distribution: 'adopt'
25-
25+
2626
- name: Grant execute permission for gradlew
2727
run: chmod +x gradlew
28-
28+
2929
- name: Build DungeoneerDesktop
3030
run: ./gradlew DungeoneerDesktop:dist
31-
31+
3232
- name: Build DelvEdit
3333
run: ./gradlew DelvEdit:dist
3434

3535
- name: Bundle Game Jar
36-
uses: actions/upload-artifact@v2
36+
uses: actions/upload-artifact@v4
3737
with:
38-
name: jars
38+
name: game-jar
3939
path: DungeoneerDesktop/build/libs/game.jar
4040

4141
- name: Bundle Editor Jar
42-
uses: actions/upload-artifact@v2
42+
uses: actions/upload-artifact@v4
4343
with:
44-
name: jars
44+
name: editor-jar
4545
path: DelvEdit/build/libs/editor.jar

DungeoneerAndroid/AndroidManifest.xml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
android:name="com.interrupt.dungeoneer.DungeoneerAndroidActivity"
1414
android:label="@string/app_name"
1515
android:screenOrientation="landscape"
16+
android:exported="true"
1617
android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenSize|screenLayout">
1718
<intent-filter>
1819
<action android:name="android.intent.action.MAIN" />

DungeoneerAndroid/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
android {
2-
buildToolsVersion "31.0.0"
3-
compileSdkVersion 31
2+
buildToolsVersion "33.0.0"
3+
compileSdkVersion 33
44
sourceSets {
55
main {
66
manifest.srcFile 'AndroidManifest.xml'
@@ -18,7 +18,7 @@ android {
1818
defaultConfig {
1919
applicationId "com.interrupt.dungeoneer"
2020
minSdkVersion 16
21-
targetSdkVersion 31
21+
targetSdkVersion 33
2222
versionCode 40
2323
versionName "1.05"
2424
}

build.gradle

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ buildscript {
44
mavenCentral()
55
maven { url "https://plugins.gradle.org/m2/" }
66
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
7-
jcenter()
87
google()
98
}
109
dependencies {
@@ -19,7 +18,7 @@ allprojects {
1918
version = '1.4.0'
2019
ext {
2120
appName = "delver"
22-
gdxVersion = '1.11.1-SNAPSHOT'
21+
gdxVersion = '1.12.1'
2322
gdxControllersVersion = '2.2.2'
2423
jamepadVersion = '2.0.14.2'
2524
roboVMVersion = '2.3.9'
@@ -73,7 +72,7 @@ project(":DungeoneerAndroid") {
7372
configurations { natives }
7473

7574
dependencies {
76-
implementation("com.badlogicgames.gdx:gdx-backend-android:1.11.0!!")
75+
implementation("com.badlogicgames.gdx:gdx-backend-android:$gdxVersion")
7776

7877
implementation project(":Dungeoneer")
7978
api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)