Permissionsdispatcher: Kotlin generation doesn't keep kotlin.collections.List<String>

Created on 19 Mar 2019  Â·  5Comments  Â·  Source: permissions-dispatcher/PermissionsDispatcher

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

bug contributionwelcome

All 5 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings