Overview
@NeedsPermission(Manifest.permission.CAMERA)
fun aFunction(option: kotlin.collections.List<String>) {
…
}
Expected
fun Activity.aFunctionWithPermissionCheck(option: kotlin.collections.List<String>) {
…
}
I expect both Kotlin List type.
Actual
fun Activity.aFunctionWithPermissionCheck(option: java.util.List<String>) {
…
}
Environment
Which library version are you using? : 4.3.0
@rishabh876 Thx. This actually derives from KotlinPoet and we've added some similar workarounds. Would you mind send us PR?
@hotchemi
Can you re-open this issues. I have the same problem with the last release 4.5.0
Type mismatch: inferred type is java.util.List<String> but kotlin.collections.List<String> was expected
Same here.
gonna take a look 🙇
I think this issue is addressed in 4.6.0.