canelmas / let

Annotation based simple API flavored with AOP to handle new Android runtime permission model
Apache License 2.0
530 stars 40 forks source link

Use with Kotlin #17

Open embydextrous-zz opened 7 years ago

embydextrous-zz commented 7 years ago

I am currently using this library in an activity written in kotlin. I think it is not taking annotations

@AskPermission(Manifest.permission.READ_SMS) private fun checkSMSPermission() { permissionListener?.permissionGranted() // this method is called }

It is calling listener but not checking for permissions. Is this library not compatible with kotlin?

canelmas commented 7 years ago

@embydextrous I haven't tried the library with kotlin yet.

chinchponkli commented 6 years ago

Any plans for kotlin support.

canelmas commented 6 years ago

@chinchponkli @embydextrous I may have have found a way to hook weaving via Transform API which will help support Kotlin as well.

So I would say, very soon.

canelmas commented 6 years ago

@chinchponkli do you mind giving 1.0.0-beta1 a try?

monowar1993 commented 6 years ago

@canelmas I tried with kotlin on android 7.1.2. But its not asking for permission. Please do check. Its a very good library. It works fine with JAVA. Please solve the issues.