Skip to content

Commit 7433cc8

Browse files
committed
build: 3.0.0
1 parent 6b3e49d commit 7433cc8

File tree

11 files changed

+7
-36
lines changed

11 files changed

+7
-36
lines changed

baidu-aip/build.gradle.kts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,11 @@ mavenCentralPublish {
1212

1313
dependencies {
1414
api(project(":baidu-oauth"))
15-
api("io.ktor:ktor-client:1.6.7")
16-
api("io.ktor:ktor-client-serialization:1.6.7")
17-
api("io.ktor:ktor-client-encoding:1.6.7")
18-
api("io.ktor:ktor-client-okhttp:1.6.7")
1915
testImplementation(kotlin("test"))
2016
}
2117

2218
kotlin {
2319
explicitApi()
24-
sourceSets {
25-
all {
26-
languageSettings.optIn("kotlin.RequiresOptIn")
27-
}
28-
}
2920
target.compilations {
3021
all {
3122
kotlinOptions {

baidu-aip/src/main/kotlin/xyz/cssxsh/baidu/aip/AbstractAipClient.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package xyz.cssxsh.baidu.aip
22

33
import xyz.cssxsh.baidu.oauth.*
4-
import xyz.cssxsh.baidu.oauth.data.ScopeType
4+
import xyz.cssxsh.baidu.oauth.data.*
55

66
public abstract class AbstractAipClient : AipClient, AbstractBaiduAuthClient<BaiduAuthConfig>() {
77

8-
override val timeout: Long get() = AipClient.Timeout
8+
override val timeout: Long get() = AipClient.TIMEOUT
99

1010
public override val scope: List<String>
1111
get() = status.scope.ifEmpty { listOf(ScopeType.PUBLIC, ScopeType.WISE_ADAPT) }

baidu-aip/src/main/kotlin/xyz/cssxsh/baidu/aip/AipClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import xyz.cssxsh.baidu.oauth.*
99
public interface AipClient : BaiduAuthClient<BaiduAuthConfig> {
1010

1111
public companion object {
12-
public const val Timeout: Long = 30 * 1000L
12+
public const val TIMEOUT: Long = 30 * 1000L
1313
}
1414

1515
/**

baidu-api/build.gradle.kts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ dependencies {
2020

2121
kotlin {
2222
explicitApi()
23-
sourceSets {
24-
all {
25-
languageSettings.optIn("kotlin.RequiresOptIn")
26-
}
27-
}
2823
target.compilations {
2924
all {
3025
kotlinOptions {

baidu-api/src/main/kotlin/xyz/cssxsh/baidu/api/AbstractBaiduApiClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import io.ktor.client.features.cookies.*
88
import io.ktor.client.features.json.*
99
import io.ktor.client.features.json.serializer.*
1010
import io.ktor.http.*
11+
import io.ktor.utils.io.errors.*
1112
import kotlinx.coroutines.*
12-
import java.io.IOException
1313

1414
public abstract class AbstractBaiduApiClient<C> : BaiduApiClient<C> {
1515
protected open val cookiesStorage: CookiesStorage = AcceptAllCookiesStorage()

baidu-netdisk/build.gradle.kts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,11 @@ mavenCentralPublish {
1212

1313
dependencies {
1414
api(project(":baidu-oauth"))
15-
api("io.ktor:ktor-client:1.6.7")
16-
api("io.ktor:ktor-client-serialization:1.6.7")
17-
api("io.ktor:ktor-client-encoding:1.6.7")
18-
api("io.ktor:ktor-client-okhttp:1.6.7")
1915
testImplementation(kotlin("test"))
2016
}
2117

2218
kotlin {
2319
explicitApi()
24-
sourceSets {
25-
all {
26-
languageSettings.optIn("kotlin.RequiresOptIn")
27-
}
28-
}
2920
target.compilations {
3021
all {
3122
kotlinOptions {

baidu-netdisk/src/main/kotlin/xyz/cssxsh/baidu/disk/AbstractNetDiskClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import kotlin.io.path.*
77

88
public abstract class AbstractNetDiskClient : NetDiskClient, AbstractBaiduAuthClient<BaiduAuthConfig>() {
99

10-
override val timeout: Long get() = NetDiskClient.Timeout
10+
override val timeout: Long get() = NetDiskClient.TIMEOUT
1111

1212
override val userAgent: String get() = USER_AGENT
1313

baidu-netdisk/src/main/kotlin/xyz/cssxsh/baidu/disk/NetDiskClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ public interface NetDiskClient : BaiduUserAuthClient<BaiduAuthConfig> {
99
public fun appDataFolder(path: String): Path = appDataFolder.resolve(path)
1010

1111
public companion object {
12-
public const val Timeout: Long = 30 * 1000L
12+
public const val TIMEOUT: Long = 30 * 1000L
1313
}
1414
}

baidu-oauth/build.gradle.kts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ dependencies {
1717

1818
kotlin {
1919
explicitApi()
20-
sourceSets {
21-
all {
22-
languageSettings.optIn("kotlin.RequiresOptIn")
23-
}
24-
}
2520
target.compilations {
2621
all {
2722
kotlinOptions {

baidu-oauth/src/main/kotlin/xyz/cssxsh/baidu/oauth/exception/AuthorizeException.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import xyz.cssxsh.baidu.oauth.*
66
import xyz.cssxsh.baidu.oauth.data.*
77

88

9-
109
/**
1110
* @see AuthorizeErrorType
1211
* @see AuthorizeAccessToken

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
allprojects {
22
group = "xyz.cssxsh.baidu"
3-
version = "2.2.0"
3+
version = "3.0.0"
44
}
55

66
subprojects {

0 commit comments

Comments
 (0)