ade
11/14/2022, 10:26 AMprivate fun String.strip() = this
.replace(oldValue = "https://", newValue = "", ignoreCase = true)
.replace(oldValue = "http://", newValue = "", ignoreCase = true)
.substringBefore(delimiter = "?")
which was called from the same file on a String. This has been working fine until recently. Now suddenly, the function does nothing ("https://" prefix is not removed from a string) on Android but works like before on iOS. I think it was after bumping to Kotlin 1.7.20, AGP 7.3 and compileSdk 33. What could be happening here?
Theory: Is something causing it to call through to the Java String.strip() function instead, which was added in Java 11? Does it have to do with desugaring?Matthias Geisler
11/14/2022, 10:43 AMade
11/14/2022, 10:44 AMade
11/14/2022, 10:44 AMade
11/14/2022, 5:12 PMade
11/16/2022, 7:59 AMade
11/16/2022, 8:08 AMade
11/16/2022, 8:10 AMade
11/16/2022, 8:13 AMade
11/16/2022, 8:17 AMade
11/16/2022, 8:31 AM