mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-14 16:52:08 +01:00
Suppress a few warnings
This commit is contained in:
@@ -34,6 +34,7 @@ abstract class AppComponent(
|
|||||||
@SuppressLint("StaticFieldLeak")
|
@SuppressLint("StaticFieldLeak")
|
||||||
private var appComponentInstance: AppComponent? = null
|
private var appComponentInstance: AppComponent? = null
|
||||||
|
|
||||||
|
@Suppress("UNRESOLVED_REFERENCE", "EXPRESSION_EXPECTED_PACKAGE_FOUND")
|
||||||
fun getInstance(context: Context) = appComponentInstance ?: create(context)
|
fun getInstance(context: Context) = appComponentInstance ?: create(context)
|
||||||
.also { appComponentInstance = it }
|
.also { appComponentInstance = it }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ package ca.gosyer.jui.data.base
|
|||||||
|
|
||||||
import kotlinx.datetime.Instant
|
import kotlinx.datetime.Instant
|
||||||
|
|
||||||
|
@Suppress("NO_ACTUAL_FOR_EXPECT")
|
||||||
expect class DateHandler {
|
expect class DateHandler {
|
||||||
val formatOptions: List<String>
|
val formatOptions: List<String>
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ import io.ktor.client.plugins.auth.Auth as AuthPlugin
|
|||||||
|
|
||||||
typealias Http = HttpClient
|
typealias Http = HttpClient
|
||||||
|
|
||||||
|
@Suppress("NO_ACTUAL_FOR_EXPECT")
|
||||||
expect val Engine: HttpClientEngineFactory<HttpClientEngineConfig>
|
expect val Engine: HttpClientEngineFactory<HttpClientEngineConfig>
|
||||||
|
|
||||||
class HttpProvider @Inject constructor() {
|
class HttpProvider @Inject constructor() {
|
||||||
|
|||||||
Reference in New Issue
Block a user