mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
Clears the two java.net.* importers from commons/commonMain. - Adds expect fun isValidUrl(url: String?): Boolean in commons/commonMain/util/. The jvmAndroid actual preserves the exact JVM semantics (URI.toURL() + the same 3 catch arms); iOS actual will use NSURL when the target lands. - RichTextParser.isValidURL becomes a thin wrapper around isValidUrl. Keeps the existing static call site so callers in the Android app and Desktop need no change. - UrlInfoItem.kt (link-preview model that wraps URI) moves to jvmAndroid; its only consumers are the Android link-preview pipeline (HtmlCharsetParser, UrlPreviewState, UrlPreviewCard), which already live outside commonMain. commons/commonMain is now down to 3 java.* importers: Note (BigDecimal) and the two SortedSet-based observables.