更新依赖

This commit is contained in:
czp3009 2019-03-05 11:56:54 +08:00
parent 2f1a765f5a
commit 1209a96e5a
4 changed files with 4 additions and 5 deletions

View File

@ -49,7 +49,7 @@ dependencies {
// https://mvnrepository.com/artifact/io.github.microutils/kotlin-logging // https://mvnrepository.com/artifact/io.github.microutils/kotlin-logging
compile group: 'io.github.microutils', name: 'kotlin-logging', version: '1.6.25' compile group: 'io.github.microutils', name: 'kotlin-logging', version: '1.6.25'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple // https://mvnrepository.com/artifact/org.slf4j/slf4j-simple
testCompile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25' testCompile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.26'
} }
//http //http

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip

View File

@ -41,6 +41,7 @@ import javax.crypto.Cipher
* @param billingClientProperties 客户端的固有属性, 是一种常量 * @param billingClientProperties 客户端的固有属性, 是一种常量
* @param logLevel 日志打印等级 * @param logLevel 日志打印等级
*/ */
@Suppress("unused")
class BilibiliClient( class BilibiliClient(
@Suppress("MemberVisibilityCanBePrivate") @Suppress("MemberVisibilityCanBePrivate")
val billingClientProperties: BilibiliClientProperties = BilibiliClientProperties(), val billingClientProperties: BilibiliClientProperties = BilibiliClientProperties(),
@ -54,13 +55,11 @@ class BilibiliClient(
/** /**
* 登陆操作得到的 Response * 登陆操作得到的 Response
*/ */
@Suppress("MemberVisibilityCanBePrivate")
var loginResponse: LoginResponse? = null var loginResponse: LoginResponse? = null
/** /**
* 是否已登录 * 是否已登录
*/ */
@Suppress("MemberVisibilityCanBePrivate")
val isLogin val isLogin
get() = loginResponse != null get() = loginResponse != null

View File

@ -31,5 +31,5 @@ fun InputStream.boundedReader(maxCharsFromTargetReader: Int, charset: Charset =
fun InputStream.bounded(size: Long) = BoundedInputStream(this, size) fun InputStream.bounded(size: Long) = BoundedInputStream(this, size)
@Suppress("EXPERIMENTAL_API_USAGE") @UseExperimental(ExperimentalUnsignedTypes::class)
fun InputStream.bounded(size: UInt) = bounded(size.toLong()) fun InputStream.bounded(size: UInt) = bounded(size.toLong())