pull/32/head
kunfei 5 years ago
parent d359571c6c
commit 664c48af0f
  1. 7
      app/src/main/java/io/legado/app/constant/AppConst.kt
  2. 12
      app/src/main/java/io/legado/app/constant/AppUtils.kt
  3. 3
      app/src/main/java/io/legado/app/constant/Status.kt

@ -1,5 +1,7 @@
package io.legado.app.constant
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import io.legado.app.App
import io.legado.app.R
import javax.script.ScriptEngine
@ -19,4 +21,9 @@ object AppConst {
val NOT_AVAILABLE = App.INSTANCE.getString(R.string.not_available)
val GSON_CONVERTER: Gson = GsonBuilder()
.disableHtmlEscaping()
.setPrettyPrinting()
.setDateFormat("yyyy-MM-dd HH:mm:ssZ")
.create()
}

@ -1,12 +0,0 @@
package io.legado.app.constant
import com.google.gson.Gson
import com.google.gson.GsonBuilder
object AppUtils {
val GSON_CONVERTER: Gson = GsonBuilder()
.disableHtmlEscaping()
.setPrettyPrinting()
.setDateFormat("yyyy-MM-dd HH:mm:ssZ")
.create()
}

@ -1,5 +1,8 @@
package io.legado.app.constant
object Status {
const val STOP = 0
const val PLAY = 1
const val NEXT = 2
}
Loading…
Cancel
Save