Bump commons + gson-compile. Introduces safe writing (no more half-written config files!)
This commit is contained in:
parent
dff05af62f
commit
37872e6c79
|
@ -11,8 +11,8 @@ allprojects {
|
||||||
|
|
||||||
val lwjglVersion by extra("3.3.1")
|
val lwjglVersion by extra("3.3.1")
|
||||||
val imguiVersion by extra("1.86.4")
|
val imguiVersion by extra("1.86.4")
|
||||||
val jfCommonsVersion by extra("1.0-SNAPSHOT")
|
val jfCommonsVersion by extra("1.1-SNAPSHOT")
|
||||||
val gsonCompileVersion by extra("1.2-SNAPSHOT")
|
val gsonCompileVersion by extra("1.3-SNAPSHOT")
|
||||||
val jlhttpVersion by extra("2.6")
|
val jlhttpVersion by extra("2.6")
|
||||||
|
|
||||||
val flavorProp: String by extra(prop("flavor", "custom"))
|
val flavorProp: String by extra(prop("flavor", "custom"))
|
||||||
|
|
|
@ -10,5 +10,5 @@ repositories {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.2")
|
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.2")
|
||||||
implementation("de.undercouch:gradle-download-task:5.1.2")
|
implementation("de.undercouch:gradle-download-task:5.1.2")
|
||||||
implementation("io.gitlab.jfronny:convention:1.2-SNAPSHOT")
|
implementation("io.gitlab.jfronny:convention:1.3-SNAPSHOT")
|
||||||
}
|
}
|
|
@ -3,7 +3,6 @@ package io.gitlab.jfronny.inceptum.common;
|
||||||
import gsoncompile.extensions.io.gitlab.jfronny.inceptum.common.InceptumConfig.GC_InceptumConfig;
|
import gsoncompile.extensions.io.gitlab.jfronny.inceptum.common.InceptumConfig.GC_InceptumConfig;
|
||||||
import io.gitlab.jfronny.gson.compile.annotations.GComment;
|
import io.gitlab.jfronny.gson.compile.annotations.GComment;
|
||||||
import io.gitlab.jfronny.gson.compile.annotations.GSerializable;
|
import io.gitlab.jfronny.gson.compile.annotations.GSerializable;
|
||||||
import io.gitlab.jfronny.gson.stream.*;
|
|
||||||
import io.gitlab.jfronny.inceptum.common.model.inceptum.UpdateChannel;
|
import io.gitlab.jfronny.inceptum.common.model.inceptum.UpdateChannel;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
|
@ -76,8 +76,8 @@ public enum GtkEnvBackend implements LauncherEnv.EnvBackend { //TODO test
|
||||||
}
|
}
|
||||||
|
|
||||||
private Dialog.Response processResponses(Dialog dialog, @Nullable Runnable ok, @Nullable Runnable cancel) {
|
private Dialog.Response processResponses(Dialog dialog, @Nullable Runnable ok, @Nullable Runnable cancel) {
|
||||||
return response_id -> {
|
return responseId -> {
|
||||||
switch (ResponseType.of(response_id)) {
|
switch (ResponseType.of(responseId)) {
|
||||||
case OK -> {
|
case OK -> {
|
||||||
dialog.close();
|
dialog.close();
|
||||||
if (ok != null) ok.run();
|
if (ok != null) ok.run();
|
||||||
|
@ -87,7 +87,7 @@ public enum GtkEnvBackend implements LauncherEnv.EnvBackend { //TODO test
|
||||||
if (cancel != null) cancel.run();
|
if (cancel != null) cancel.run();
|
||||||
}
|
}
|
||||||
case DELETE_EVENT -> dialog.destroy();
|
case DELETE_EVENT -> dialog.destroy();
|
||||||
default -> Utils.LOGGER.error("Unexpected response type: " + response_id);
|
default -> Utils.LOGGER.error("Unexpected response type: " + responseId);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue