You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classAppConfiguration { valfoo = barclassBuilder {
constructor(appId: String)
funbaseUrl(url: String) // Or if better URL abstraction exits
}
}
// usage (same as Java)valapp = App(AppConfiguration.Builder(appId).baseUrl(myUrl).build())
In Realm Java baseUrl accepted a String because URL throws a checked exception and that was too annoying to deal with for the safety it provided. We should probably re-evaluate if we can use URL or URI for Kotlin.
The text was updated successfully, but these errors were encountered:
Add minimum API for AppConfiguration
In Realm Java
baseUrl
accepted a String becauseURL
throws a checked exception and that was too annoying to deal with for the safety it provided. We should probably re-evaluate if we can use URL or URI for Kotlin.The text was updated successfully, but these errors were encountered: