Fixes Wallet import encoding bug

This commit is contained in:
Vitor Pamplona
2026-03-31 19:10:15 -04:00
parent 69099728b2
commit 48d90a8252
6 changed files with 33 additions and 17 deletions
@@ -45,9 +45,15 @@ actual class UriParser actual constructor(
return queryItems.mapNotNull { (it as? NSURLQueryItem)?.name }.toSet()
}
actual fun getQueryParameter(param: String): String? {
actual fun getQueryParameter(param: String): List<String>? {
val queryItems = nsUrlComponents.queryItems ?: return null
return (queryItems.firstOrNull { (it as? NSURLQueryItem)?.name == param } as? NSURLQueryItem)?.value
return queryItems.mapNotNull {
if ((it as? NSURLQueryItem)?.name == param) {
it.value
} else {
null
}
}
}
val fragments: Map<String, String> by lazy {