@NeedsPermission(Manifest.permission.CAMERA)
- fun aFunction(option: Array<out String>) {
…
}
fun Activity.aFunctionWithPermissionCheck(option: Array<out String>) {
…
}
I expect both Kotlin String type and out modifier to be kept.
fun Activity.aFunctionWithPermissionCheck(option: Array<java.lang.String>) {
…
}
Note that Any is translated to java.lang.Object too (probably same problem)
Same behavior with ArrayList<String>
@vincentnock thx! we gotta fix the problem...our implementation relies on https://github.com/square/kotlinpoet and it might cause the thing 🤔
Maybe related to this issue ?
https://github.com/square/kotlinpoet/issues/86
Working on https://github.com/permissions-dispatcher/PermissionsDispatcher/pull/509 but CI failed.. 🤔
You can test with 4.0.0 snapshot! thank you for your heads up.
Most helpful comment
@vincentnock thx! we gotta fix the problem...our implementation relies on https://github.com/square/kotlinpoet and it might cause the thing 🤔