Skip to content

Commit

Permalink
Fix deprecated syntaxes
Browse files Browse the repository at this point in the history
  • Loading branch information
agateau committed Oct 23, 2024
1 parent c501696 commit 20f1be4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
10 changes: 5 additions & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ android {
Properties versionProps = new Properties()
versionProps.load(new FileInputStream(file('../version.properties')))

// Must match ci/install-android-sdk
compileSdkVersion 34
defaultConfig {
applicationId "com.agateau.tinywheels.android"
minSdkVersion 19
targetSdkVersion 34
minSdk 19
targetSdk 34
// Must match ci/install-android-sdk
compileSdk 34
versionCode versionProps['VERSION_CODE'].toInteger()
versionName versionProps['VERSION']
}

flavorDimensions 'store'
flavorDimensions = ['store']
productFlavors {
itchio {
dimension 'store'
Expand Down
4 changes: 3 additions & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ task generateVersionInfoClass {
}
}

sourceCompatibility = JavaVersion.VERSION_1_8
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

compileJava.dependsOn(generateVersionInfoClass)
Expand Down
4 changes: 3 additions & 1 deletion desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ dependencies {
implementation "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion"
}

sourceCompatibility = JavaVersion.VERSION_1_8
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
sourceSets.main.java.srcDirs = [ "src/" ]

project.ext.mainClassName = "com.agateau.pixelwheels.desktop.DesktopLauncher"
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ org.gradle.jvmargs=-Xms128m -Xmx512m
org.gradle.configureondemand=true
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false

0 comments on commit 20f1be4

Please sign in to comment.