Bradleycorn
04/23/2024, 8:17 PMSkie
in my KMP library, and I use Ktor for making http requests. I recently updated to the latest version of Skie, and it started giving me a warning about Ktor … :
w: 'var MyPackage.Ktor_httpHttpStatusCode.description' was renamed to 'var MyPackage.Ktor_httpHttpStatusCode.description_' because of a name collision with an another declaration 'func MyPackage.KotlinBase.description() -> Swift.String'. Consider resolving the conflict either by changing the name in Kotlin, or via the @ObjCName annotation. You can also suppress this warning using the 'SuppressSkieWarning.NameCollision' configuration. However using renamed declarations from Swift is not recommended because their name will change if the conflict is resolved.
(at val description: String defined in io.ktor.http.HttpStatusCode)
Obviously Ktor is a dependency, so I can’t suppress the warning by adding an inline annotation. I could add it in my gradle configuration, but then it would apply to everything in my library.
How can I resolve this?Filip Dolník
04/24/2024, 7:39 AMskie {
features {
group("MyPackage.Ktor_httpHttpStatusCode.description") {
SuppressSkieWarning.NameCollision(true)
}
}
}
Bradleycorn
04/24/2024, 1:29 PM