permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.
https://github.com/permissions-dispatcher/PermissionsDispatcher
Apache License 2.0
11.21k stars 1.44k forks source link

Wrong visibility of generated functions under kotlin 1.5.0, generated classes won't compile. #727

Closed bgeradz closed 2 years ago

bgeradz commented 3 years ago

Prerequisites:

Generated MainActivityPermissionDispatcher.kt class generates public methods like fun MainActivity.internalInitWithPermissionCheck()

leading to errors like

/app/build/generated/source/kapt/debug/com/example/newapp/MainActivityPermissionsDispatcher.kt: (17, 5): 'public' member exposes its 'internal' receiver type MainActivity

Switching back to kotlin 1.4.30 - the generated functions become internal, everything works

bgeradz commented 3 years ago

Here is a fresh project created with latest AndroidStudio with minimum PermissionDispatcher code to manifest the issue. NewApp.zip

hotchemi commented 3 years ago

thx for the report, we need to fix this issue!

hotchemi commented 2 years ago

Sorry for the late, 4.9.1 has been released.