From e8b9c36c76ff82e55d578cbe85d59af10b16de94 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 28 Nov 2021 15:18:46 -0500 Subject: [PATCH] Use Kotlin for BuildConfig class stub --- server/build.gradle.kts | 2 +- .../src/main/kotlin/eu/kanade/tachiyomi/BuildConfig.java | 6 ------ server/src/main/kotlin/eu/kanade/tachiyomi/BuildConfig.kt | 8 ++++++++ 3 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 server/src/main/kotlin/eu/kanade/tachiyomi/BuildConfig.java create mode 100644 server/src/main/kotlin/eu/kanade/tachiyomi/BuildConfig.kt diff --git a/server/build.gradle.kts b/server/build.gradle.kts index 44645d1..dda27f4 100644 --- a/server/build.gradle.kts +++ b/server/build.gradle.kts @@ -59,7 +59,7 @@ sourceSets { } // should be bumped with each stable release -val inspectorVersion = "v0.5.0" +val inspectorVersion = "v0.5.1" // counts commit count on master val inspectorRevision = runCatching { diff --git a/server/src/main/kotlin/eu/kanade/tachiyomi/BuildConfig.java b/server/src/main/kotlin/eu/kanade/tachiyomi/BuildConfig.java deleted file mode 100644 index e121192..0000000 --- a/server/src/main/kotlin/eu/kanade/tachiyomi/BuildConfig.java +++ /dev/null @@ -1,6 +0,0 @@ -package eu.kanade.tachiyomi; - -public class BuildConfig { - public static int VERSION_CODE = -1; - public static String VERSION_NAME = "stub"; -} diff --git a/server/src/main/kotlin/eu/kanade/tachiyomi/BuildConfig.kt b/server/src/main/kotlin/eu/kanade/tachiyomi/BuildConfig.kt new file mode 100644 index 0000000..058a4e2 --- /dev/null +++ b/server/src/main/kotlin/eu/kanade/tachiyomi/BuildConfig.kt @@ -0,0 +1,8 @@ +package eu.kanade.tachiyomi + +class BuildConfig { + companion object { + const val VERSION_NAME = "stub" + const val VERSION_CODE = -1 + } +}