Removal of references to APIs using the Swift bridge.

This commit is contained in:
KotlinGeekDev
2026-03-23 19:38:10 +01:00
parent a9c41e1d55
commit f2bdb24ee5
2 changed files with 3 additions and 10 deletions
@@ -21,9 +21,7 @@
package com.vitorpamplona.quartz.utils
import io.kotlingeekdev.urireference.URIReference
import kotlinx.cinterop.ExperimentalForeignApi
@OptIn(ExperimentalForeignApi::class)
actual object Rfc3986 {
actual fun normalize(uri: String): String =
@@ -20,12 +20,7 @@
*/
package com.vitorpamplona.quartz.utils
import kotlinx.cinterop.ExperimentalForeignApi
import swiftbridge.UrlDetector
import com.vitorpamplona.quartz.utils.urldetector.detection.UrlDetector
@Suppress("UNCHECKED_CAST")
@OptIn(ExperimentalForeignApi::class)
actual fun fastFindURLs(text: String): List<String> {
val detectorInstance = UrlDetector()
return detectorInstance.findURLsWithText(text) as List<String>
}
actual fun fastFindURLs(text: String): List<String> = UrlDetector(text).detect().map { it.originalUrl }