diff --git a/sketch-core/src/desktopMain/kotlin/com/github/panpf/sketch/fetch/KotlinResourceUriFetcher.kt b/sketch-core/src/desktopMain/kotlin/com/github/panpf/sketch/fetch/KotlinResourceUriFetcher.kt index a048c0eaa1..92efd3df6a 100644 --- a/sketch-core/src/desktopMain/kotlin/com/github/panpf/sketch/fetch/KotlinResourceUriFetcher.kt +++ b/sketch-core/src/desktopMain/kotlin/com/github/panpf/sketch/fetch/KotlinResourceUriFetcher.kt @@ -15,6 +15,8 @@ fun newKotlinResourceUri(resourceName: String): String = /** * Check if the uri is a Kotlin resource uri + * + * Sample: 'file:///kotlin_resource/test.png' */ fun isKotlinResourceUri(uri: Uri): Boolean = KotlinResourceUriFetcher.SCHEME.equals(uri.scheme, ignoreCase = true) diff --git a/sketch-core/src/iosMain/kotlin/com/github/panpf/sketch/fetch/KotlinResourceUriFetcher.kt b/sketch-core/src/iosMain/kotlin/com/github/panpf/sketch/fetch/KotlinResourceUriFetcher.kt index a048c0eaa1..92efd3df6a 100644 --- a/sketch-core/src/iosMain/kotlin/com/github/panpf/sketch/fetch/KotlinResourceUriFetcher.kt +++ b/sketch-core/src/iosMain/kotlin/com/github/panpf/sketch/fetch/KotlinResourceUriFetcher.kt @@ -15,6 +15,8 @@ fun newKotlinResourceUri(resourceName: String): String = /** * Check if the uri is a Kotlin resource uri + * + * Sample: 'file:///kotlin_resource/test.png' */ fun isKotlinResourceUri(uri: Uri): Boolean = KotlinResourceUriFetcher.SCHEME.equals(uri.scheme, ignoreCase = true)