From: fredboy Date: Sun, 5 Mar 2023 14:57:58 +0000 (+0700) Subject: upgrade dependencies and gradle X-Git-Tag: alpha0.4~4 X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=13bbf6902d8d0f7477f2b3fa04dacce06ab036e3;p=cavedroid.git upgrade dependencies and gradle --- diff --git a/build.gradle b/build.gradle index ed846ef..11e9837 100644 --- a/build.gradle +++ b/build.gradle @@ -5,13 +5,12 @@ buildscript { mavenCentral() maven { url "https://plugins.gradle.org/m2/" } maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } - jcenter() google() } dependencies { - classpath 'com.android.tools.build:gradle:3.5.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72" + classpath 'com.android.tools.build:gradle:7.3.1' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10" } } @@ -20,18 +19,14 @@ allprojects { version = 'alpha0.4' ext { appName = "CaveDroid" - gdxVersion = '1.9.10' - roboVMVersion = '2.3.7' - box2DLightsVersion = '1.4' - ashleyVersion = '1.7.0' - aiVersion = '1.8.0' + gdxVersion = '1.11.0' guavaVersion = '28.1' + daggerVersion = '2.40.1' } repositories { mavenLocal() mavenCentral() - jcenter() google() maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } maven { url "https://oss.sonatype.org/content/repositories/releases/" } @@ -70,9 +65,9 @@ project(":core") { dependencies { api "com.badlogicgames.gdx:gdx:$gdxVersion" api "com.google.guava:guava:$guavaVersion-android" - api 'com.google.dagger:dagger:2.27' - implementation 'org.jetbrains:annotations:15.0' + api 'com.google.dagger:dagger:2.40.1' + implementation 'org.jetbrains:annotations:23.1.0' implementation "org.jetbrains.kotlin:kotlin-stdlib" - annotationProcessor 'com.google.dagger:dagger-compiler:2.27' + annotationProcessor 'com.google.dagger:dagger-compiler:2.40.1' } } \ No newline at end of file diff --git a/core/build.gradle b/core/build.gradle index f17b102..af764b0 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -2,11 +2,10 @@ plugins { id "org.jetbrains.kotlin.jvm" id "java" id "idea" - id "net.ltgt.apt" version "0.21" } sourceCompatibility = 1.8 -[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' +sourceSets.main.java.srcDirs = [ "src/" ] -sourceSets.main.java.srcDirs = [ "src/" ] \ No newline at end of file +java.targetCompatibility = JavaVersion.VERSION_1_8 \ No newline at end of file diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameInput.java b/core/src/ru/deadsoftware/cavedroid/game/GameInput.java index ca60317..594f8cc 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/GameInput.java +++ b/core/src/ru/deadsoftware/cavedroid/game/GameInput.java @@ -400,10 +400,10 @@ public class GameInput { } } - public void scrolled(int amount) { + public void scrolled(float amountX, float amountY) { switch (mMainConfig.getGameUiWindow()) { case NONE: - mPlayer.slot += amount; + mPlayer.slot += (int) amountY; if (mPlayer.slot < 0) { mPlayer.slot = 8; } @@ -412,7 +412,7 @@ public class GameInput { } break; case CREATIVE_INVENTORY: - mCreativeScroll += amount; + mCreativeScroll += (int) amountY; if (mCreativeScroll < 0) { mCreativeScroll = 0; } diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameInputProcessor.java b/core/src/ru/deadsoftware/cavedroid/game/GameInputProcessor.java index 51cc897..5d86b2e 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/GameInputProcessor.java +++ b/core/src/ru/deadsoftware/cavedroid/game/GameInputProcessor.java @@ -152,8 +152,8 @@ public class GameInputProcessor extends InputAdapter { } @Override - public boolean scrolled(int amount) { - mGameInput.scrolled(amount); + public boolean scrolled(float amountX, float amountY) { + mGameInput.scrolled(amountX, amountY); return false; } } diff --git a/core/src/ru/deadsoftware/cavedroid/misc/Renderer.java b/core/src/ru/deadsoftware/cavedroid/misc/Renderer.java index b59e977..a4b19ab 100644 --- a/core/src/ru/deadsoftware/cavedroid/misc/Renderer.java +++ b/core/src/ru/deadsoftware/cavedroid/misc/Renderer.java @@ -101,7 +101,7 @@ public abstract class Renderer implements InputProcessor { } @Override - public boolean scrolled(int amount) { + public boolean scrolled(float amountX, float amountY) { return false; } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 3745855..074840a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Thu Sep 26 22:30:23 NOVT 2019 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME