Skip to content

Commit 3ac972c

Browse files
committed
Fix simple warnings
1 parent 926f9a0 commit 3ac972c

File tree

6 files changed

+11
-15
lines changed

6 files changed

+11
-15
lines changed

Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/AuthConfig.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ open class AuthConfigDefaults : MainConfig() {
4040
var autoSaveToStorage: Boolean = true
4141

4242
/**
43-
* The session manager used to store/load the session. When null, the default [SettingsSessionManager] will be used
43+
* The session manager used to store/load the session. When null, the default [io.github.jan.supabase.auth.SettingsSessionManager] will be used
4444
*/
4545
var sessionManager: SessionManager? = null
4646

4747
/**
48-
* The cache used to store/load the code verifier for the [FlowType.PKCE] flow. When null, the default [SettingsCodeVerifierCache] will be used
48+
* The cache used to store/load the code verifier for the [FlowType.PKCE] flow. When null, the default [io.github.jan.supabase.auth.SettingsCodeVerifierCache] will be used
4949
*/
5050
var codeVerifierCache: CodeVerifierCache? = null
5151

@@ -120,6 +120,7 @@ enum class FlowType {
120120
/**
121121
* The deeplink used for the implicit and PKCE flow. Throws an [IllegalArgumentException], if either the scheme or host is not set
122122
*/
123+
@Suppress("unused")
123124
val AuthConfig.deepLink: String
124125
get() {
125126
val scheme = scheme ?: noDeeplinkError("scheme")
@@ -147,7 +148,7 @@ val AuthConfig.deepLinkOrNull: String?
147148
* @param enableLifecycleCallbacks Whether to stop auto-refresh on focus loss, and resume it on focus again. Currently only supported on Android.
148149
* @see AuthConfigDefaults
149150
*/
150-
@Suppress("LongParameterList")
151+
@Suppress("LongParameterList", "unused")
151152
fun AuthConfigDefaults.minimalSettings(
152153
alwaysAutoRefresh: Boolean = false,
153154
autoLoadFromStorage: Boolean = false,

Storage/src/commonMain/kotlin/io/github/jan/supabase/storage/Storage.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ interface Storage : MainPlugin<Storage.Config>, CustomSerializationPlugin {
113113

114114
/**
115115
* Config for the storage plugin
116-
* @param customUrl the custom url to use for the storage api
117-
* @param jwtToken the jwt token to use for the storage api
118116
* @param transferTimeout the timeout for uploading and downloading files (default: 120 seconds)
117+
* @param resumable the resume settings to use for the storage api
118+
* @param serializer the serializer to use for the storage api, use null to use the default serializer
119119
*/
120120
data class Config(
121121
var transferTimeout: Duration = 120.seconds,
@@ -140,7 +140,7 @@ interface Storage : MainPlugin<Storage.Config>, CustomSerializationPlugin {
140140
var defaultChunkSize: Long = DEFAULT_CHUNK_SIZE
141141
set(value) {
142142
if(value != DEFAULT_CHUNK_SIZE) {
143-
Storage.logger.w { "Supabase currently only supports a chunk size of 6MB" }
143+
logger.w { "Supabase currently only supports a chunk size of 6MB" }
144144
}
145145
field = value
146146
}

Storage/src/commonMain/kotlin/io/github/jan/supabase/storage/resumable/ResumableClient.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ interface ResumableClient {
5353
* @param path The path to upload the data to
5454
* @param options The options for the upload
5555
*/
56+
@Suppress("unused")
5657
suspend fun createOrContinueUpload(data: ByteArray, source: String, path: String, options: UploadOptionBuilder.() -> Unit = {}) = createOrContinueUpload({ ByteReadChannel(data).apply { discard(it) } }, source, data.size.toLong(), path)
5758

5859
/**

sample/chat-demo-mpp/desktop/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ version = "1.0-SNAPSHOT"
1111

1212
kotlin {
1313
jvmToolchain(8)
14-
jvm {
15-
withJava()
16-
}
14+
jvm()
1715
sourceSets {
1816
val jvmMain by getting {
1917
dependencies {

sample/file-upload/desktop/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ version = "1.0-SNAPSHOT"
1313

1414
kotlin {
1515
jvmToolchain(8)
16-
jvm {
17-
withJava()
18-
}
16+
jvm()
1917
sourceSets {
2018
val jvmMain by getting {
2119
dependencies {

sample/multi-factor-auth/desktop/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ version = "1.0-SNAPSHOT"
1111

1212
kotlin {
1313
jvmToolchain(8)
14-
jvm {
15-
withJava()
16-
}
14+
jvm()
1715
sourceSets {
1816
val jvmMain by getting {
1917
dependencies {

0 commit comments

Comments
 (0)