update package

This commit is contained in:
InsanusMokrassar 2020-12-02 14:32:26 +06:00
parent eb9456a233
commit 7bc1e822fc
26 changed files with 42 additions and 42 deletions

View File

@ -18,7 +18,7 @@ plugins {
} }
project.version = "$library_version" project.version = "$library_version"
project.group = "com.insanusmokrassar" project.group = "dev.inmo"
apply from: "publish.gradle" apply from: "publish.gradle"
apply from: "github_release.gradle" apply from: "github_release.gradle"

View File

@ -1,17 +0,0 @@
package com.insanusmokrassar.SauceNaoAPI
sealed class OutputType {
abstract val typeCode: Int
}
object HtmlOutputType : OutputType() {
override val typeCode: Int = 0
}
object XmlOutputType : OutputType() {
override val typeCode: Int = 1
}
object JsonOutputType : OutputType() {
override val typeCode: Int = 2
}

View File

@ -0,0 +1,17 @@
package dev.inmo.SauceNaoAPI
sealed class OutputType {
abstract val typeCode: Int
}
object HtmlOutputType : dev.inmo.SauceNaoAPI.OutputType() {
override val typeCode: Int = 0
}
object XmlOutputType : dev.inmo.SauceNaoAPI.OutputType() {
override val typeCode: Int = 1
}
object JsonOutputType : dev.inmo.SauceNaoAPI.OutputType() {
override val typeCode: Int = 2
}

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI package dev.inmo.SauceNaoAPI
import com.insanusmokrassar.SauceNaoAPI.exceptions.TooManyRequestsException import com.insanusmokrassar.SauceNaoAPI.exceptions.TooManyRequestsException
import com.insanusmokrassar.SauceNaoAPI.exceptions.sauceNaoAPIException import com.insanusmokrassar.SauceNaoAPI.exceptions.sauceNaoAPIException
@ -40,7 +40,7 @@ val defaultSauceNaoParser = Json {
data class SauceNaoAPI( data class SauceNaoAPI(
private val apiToken: String? = null, private val apiToken: String? = null,
private val outputType: OutputType = JsonOutputType, private val outputType: dev.inmo.SauceNaoAPI.OutputType = dev.inmo.SauceNaoAPI.JsonOutputType,
private val client: HttpClient = HttpClient(), private val client: HttpClient = HttpClient(),
private val searchUrl: String = SEARCH_URL, private val searchUrl: String = SEARCH_URL,
private val scope: CoroutineScope = CoroutineScope(Dispatchers.Default), private val scope: CoroutineScope = CoroutineScope(Dispatchers.Default),

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI package dev.inmo.SauceNaoAPI
import io.ktor.http.ContentType import io.ktor.http.ContentType
import io.ktor.utils.io.core.Input import io.ktor.utils.io.core.Input

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.additional package dev.inmo.SauceNaoAPI.additional
import com.insanusmokrassar.SauceNaoAPI.additional.header.ResultMetaInfo import com.insanusmokrassar.SauceNaoAPI.additional.header.ResultMetaInfo
import com.insanusmokrassar.SauceNaoAPI.additional.header.adapted import com.insanusmokrassar.SauceNaoAPI.additional.header.adapted

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.additional package dev.inmo.SauceNaoAPI.additional
import com.soywiz.klock.TimeSpan import com.soywiz.klock.TimeSpan

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.additional.header package dev.inmo.SauceNaoAPI.additional.header
import com.insanusmokrassar.SauceNaoAPI.additional.* import com.insanusmokrassar.SauceNaoAPI.additional.*
import com.insanusmokrassar.SauceNaoAPI.models.Header import com.insanusmokrassar.SauceNaoAPI.models.Header

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.additional.header package dev.inmo.SauceNaoAPI.additional.header
import com.insanusmokrassar.SauceNaoAPI.models.Header import com.insanusmokrassar.SauceNaoAPI.models.Header

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.additional.header package dev.inmo.SauceNaoAPI.additional.header
import com.insanusmokrassar.SauceNaoAPI.models.Header import com.insanusmokrassar.SauceNaoAPI.models.Header

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.additional.header package dev.inmo.SauceNaoAPI.additional.header
import com.insanusmokrassar.SauceNaoAPI.models.Header import com.insanusmokrassar.SauceNaoAPI.models.Header

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.additional.results package dev.inmo.SauceNaoAPI.additional.results
import com.insanusmokrassar.SauceNaoAPI.additional.header.IndexInfo import com.insanusmokrassar.SauceNaoAPI.additional.header.IndexInfo
import com.insanusmokrassar.SauceNaoAPI.additional.header.ResultMetaInfo import com.insanusmokrassar.SauceNaoAPI.additional.header.ResultMetaInfo

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.additional.results package dev.inmo.SauceNaoAPI.additional.results
import com.insanusmokrassar.SauceNaoAPI.additional.header.IndexInfo import com.insanusmokrassar.SauceNaoAPI.additional.header.IndexInfo

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.exceptions package dev.inmo.SauceNaoAPI.exceptions
import com.insanusmokrassar.SauceNaoAPI.additional.LONG_TIME_RECALCULATING_MILLIS import com.insanusmokrassar.SauceNaoAPI.additional.LONG_TIME_RECALCULATING_MILLIS
import com.insanusmokrassar.SauceNaoAPI.additional.SHORT_TIME_RECALCULATING_MILLIS import com.insanusmokrassar.SauceNaoAPI.additional.SHORT_TIME_RECALCULATING_MILLIS

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.models package dev.inmo.SauceNaoAPI.models
import com.insanusmokrassar.SauceNaoAPI.defaultSauceNaoParser import com.insanusmokrassar.SauceNaoAPI.defaultSauceNaoParser
import kotlinx.serialization.* import kotlinx.serialization.*

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.models package dev.inmo.SauceNaoAPI.models
import kotlinx.serialization.Serializable import kotlinx.serialization.Serializable

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.models package dev.inmo.SauceNaoAPI.models
import kotlinx.serialization.Serializable import kotlinx.serialization.Serializable

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.models package dev.inmo.SauceNaoAPI.models
import kotlinx.serialization.Serializable import kotlinx.serialization.Serializable

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.models package dev.inmo.SauceNaoAPI.models
import com.insanusmokrassar.SauceNaoAPI.utils.CommonMultivariantStringSerializer import com.insanusmokrassar.SauceNaoAPI.utils.CommonMultivariantStringSerializer
import kotlinx.serialization.SerialName import kotlinx.serialization.SerialName

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.models package dev.inmo.SauceNaoAPI.models
import kotlinx.serialization.SerialName import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable import kotlinx.serialization.Serializable

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.models package dev.inmo.SauceNaoAPI.models
import com.insanusmokrassar.SauceNaoAPI.defaultSauceNaoParser import com.insanusmokrassar.SauceNaoAPI.defaultSauceNaoParser
import kotlinx.serialization.* import kotlinx.serialization.*

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.utils package dev.inmo.SauceNaoAPI.utils
import kotlinx.serialization.KSerializer import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializer import kotlinx.serialization.Serializer

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.utils package dev.inmo.SauceNaoAPI.utils
import com.insanusmokrassar.SauceNaoAPI.additional.LONG_TIME_RECALCULATING_MILLIS import com.insanusmokrassar.SauceNaoAPI.additional.LONG_TIME_RECALCULATING_MILLIS
import com.insanusmokrassar.SauceNaoAPI.additional.SHORT_TIME_RECALCULATING_MILLIS import com.insanusmokrassar.SauceNaoAPI.additional.SHORT_TIME_RECALCULATING_MILLIS

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.utils package dev.inmo.SauceNaoAPI.utils
import kotlinx.coroutines.supervisorScope import kotlinx.coroutines.supervisorScope

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.utils package dev.inmo.SauceNaoAPI.utils
import com.insanusmokrassar.SauceNaoAPI.additional.LONG_TIME_RECALCULATING_MILLIS import com.insanusmokrassar.SauceNaoAPI.additional.LONG_TIME_RECALCULATING_MILLIS
import com.insanusmokrassar.SauceNaoAPI.additional.SHORT_TIME_RECALCULATING_MILLIS import com.insanusmokrassar.SauceNaoAPI.additional.SHORT_TIME_RECALCULATING_MILLIS

View File

@ -1,4 +1,4 @@
package com.insanusmokrassar.SauceNaoAPI.utils package dev.inmo.SauceNaoAPI.utils
import com.insanusmokrassar.SauceNaoAPI.additional.LONG_TIME_RECALCULATING_MILLIS import com.insanusmokrassar.SauceNaoAPI.additional.LONG_TIME_RECALCULATING_MILLIS
import com.insanusmokrassar.SauceNaoAPI.additional.SHORT_TIME_RECALCULATING_MILLIS import com.insanusmokrassar.SauceNaoAPI.additional.SHORT_TIME_RECALCULATING_MILLIS