From 3b469309ce092d56b3987d28ed259d71158a8837 Mon Sep 17 00:00:00 2001 From: qwq233 Date: Sat, 26 Mar 2022 02:18:30 +0800 Subject: [PATCH] feat: update deps Signed-off-by: qwq233 --- build.gradle.kts | 4 +-- .../java/top/qwq2333/generate/XMLContent.kt | 6 ++-- src/main/java/top/qwq2333/util/FileUtils.kt | 2 +- versions.properties | 34 ++++++++++++++----- 4 files changed, 32 insertions(+), 14 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index beb9f03..970d93d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -30,7 +30,7 @@ plugins { } group = "top.qwq2333" -version = "1.0.2" +version = "1.0.4" repositories { mavenCentral() @@ -41,7 +41,7 @@ val kotlinVersion = "1.6.20-M1" dependencies { implementation("com.charleskorn.kaml:kaml:_") implementation("org.dom4j:dom4j:_") - implementation("com.vladsch.flexmark:flexmark-all:0.64.0") + implementation("com.vladsch.flexmark:flexmark-all:_") implementation(Kotlin.stdlib.common) implementation(Kotlin.stdlib) implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:_") diff --git a/src/main/java/top/qwq2333/generate/XMLContent.kt b/src/main/java/top/qwq2333/generate/XMLContent.kt index 0a94211..3a94d04 100644 --- a/src/main/java/top/qwq2333/generate/XMLContent.kt +++ b/src/main/java/top/qwq2333/generate/XMLContent.kt @@ -38,9 +38,9 @@ import java.text.SimpleDateFormat import java.util.* object XMLContent { - private var depth = 1 - private var currentDepth = 1 - private var order = 1 + private var depth = 0 + private var currentDepth = 0 + private var order = 0 private val uuid = UUID.randomUUID() /** diff --git a/src/main/java/top/qwq2333/util/FileUtils.kt b/src/main/java/top/qwq2333/util/FileUtils.kt index 5bbb6fd..8435a52 100644 --- a/src/main/java/top/qwq2333/util/FileUtils.kt +++ b/src/main/java/top/qwq2333/util/FileUtils.kt @@ -129,7 +129,7 @@ object FileUtils { */ fun convertInputStreamToString(inputStream: InputStream): String { val bufferedReader = BufferedReader(InputStreamReader(inputStream)) - var line: String? = "" + var line: String? var result: String? = "" while (bufferedReader.readLine().also { line = it } != null) { result += line diff --git a/versions.properties b/versions.properties index 7e340b6..8ce6903 100644 --- a/versions.properties +++ b/versions.properties @@ -1,3 +1,25 @@ +# +# EPUB Generator +# Copyright (C) 2022 qwq233 qwq233@qwq2333.top +# https://github.com/qwq233/epub-generator +# +# This software is non-free but opensource software: you can redistribute it +# and/or modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation; either +# version 3 of the License, or any later version and our eula as published +# by qwq233. +# +# This software is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# and eula along with this software. If not, see +# +# . +# + #### Dependencies and Plugin versions with their available updates. #### Generated by `./gradlew refreshVersions` version 0.40.1 #### @@ -6,14 +28,10 @@ #### #### suppress inspection "SpellCheckingInspection" for whole file #### suppress inspection "UnusedProperty" for whole file - -version.com.charleskorn.kaml..kaml=0.42.0 - -version.es.nitaur.markdown..txtmark=0.16 - +version.com.charleskorn.kaml..kaml=0.43.0 +## # available=0.43.0 +version.com.vladsch.flexmark..flexmark-all=0.64.0 version.kotlin=1.6.20-M1 ## # available=1.6.20-RC - -version.me.tongfei..progressbar=0.9.3 - +## # available=1.6.20-RC2 version.org.dom4j..dom4j=2.1.3