permissions-dispatcher / PermissionsDispatcher

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

compilation not happening for fragments in kotlin #543

Closed iamaravindh closed 5 years ago

iamaravindh commented 5 years ago

I am trying to implement the permission dispatcher in fragment by using kotlin language .. when i use onRequestPermissionsResult ,it is giving error saying that Generated onRequestPermission method not called. but I have called anyway

Please check this

override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray) { super.onRequestPermissionsResult(requestCode, permissions, grantResults) onRequestPermissionsResult(requestCode,grantResults) }

hotchemi commented 5 years ago

@aravindvogo you mean lint error?

Ref: https://github.com/permissions-dispatcher/PermissionsDispatcher/blob/3d063cc27f27d95bb4c90b814f48707e806ea68b/sample-kotlin/src/main/kotlin/permissions/dispatcher/samplekotlin/MainActivity.kt#L33

NunciosChums commented 5 years ago

I have same error.

screenshot
implementation "com.github.hotchemi:permissionsdispatcher:4.0.0"
annotationProcessor "com.github.hotchemi:permissionsdispatcher-processor:4.0.0"
hotchemi commented 5 years ago

@susemi99 seems you're not using kapt? could you try bundled sample-kotlin module?

hotchemi commented 5 years ago

@aravindvogo as there're few info we'll close the issue. reopen if needed with more detail.