Kotlin 1.7 Support
See original GitHub issueWe are trying to upgrade project code to Kotlin 1.7 however PermissionsDispatcher blocks us as it only supports Kotlin 1.5. Is there any plan to support Kotlin 1.7? Below is the error:
Caused by: java.lang.IllegalArgumentException: Modifiers [PRIVATE] are not allowed on Kotlin parameters. Allowed modifiers: [VARARG, NOINLINE, CROSSINLINE]
at com.squareup.kotlinpoet.ParameterSpec.<init>(ParameterSpec.kt:41)
at com.squareup.kotlinpoet.ParameterSpec.<init>(ParameterSpec.kt:29)
at com.squareup.kotlinpoet.ParameterSpec$Builder.build(ParameterSpec.kt:157)
at com.squareup.kotlinpoet.FunSpec$Builder.addParameter(FunSpec.kt:500)
at permissions.dispatcher.processor.impl.kotlin.KotlinBaseProcessorUnit.createPermissionRequestClass(KotlinBaseProcessorUnit.kt:452)
at permissions.dispatcher.processor.impl.kotlin.KotlinBaseProcessorUnit.createPermissionRequestClasses(KotlinBaseProcessorUnit.kt:415)
at permissions.dispatcher.processor.impl.kotlin.KotlinBaseProcessorUnit.createFile(KotlinBaseProcessorUnit.kt:43)
at permissions.dispatcher.processor.impl.kotlin.KotlinBaseProcessorUnit.createFile(KotlinBaseProcessorUnit.kt:17)
at permissions.dispatcher.processor.PermissionsProcessor.processKotlin(PermissionsProcessor.kt:68)
at permissions.dispatcher.processor.PermissionsProcessor.process(PermissionsProcessor.kt:58)
at org.jetbrains.kotlin.kapt3.base.incremental.IncrementalProcessor.process(incrementalProcessors.kt:90)
at org.jetbrains.kotlin.kapt3.base.ProcessorWrapper.process(annotationProcessing.kt:197)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:980)
Issue Analytics
- State:
- Created a year ago
- Comments:11
Top Results From Across the Web
What's new in Kotlin 1.7.20
Kotlin 1.7.20 contains changes to support Gradle 7.1. Deprecated methods and properties were removed or replaced, reducing the number of ...
Read more >Kotlin 1.7.20 Released - The JetBrains Blog
We announced support for Gradle 7.1. For the complete list of changes, refer to What's new in Kotlin 1.7.20 or release notes on...
Read more >Releases · JetBrains/kotlin - GitHub
It doesn't contain any fixes that aren't included in Kotlin 1.7.21. ... KT-53916 Support Xcode 14 and new Objective-C frameworks in Kotlin/Native compiler ......
Read more >Using Kotlin - Quarkus
Quarkus provides first class support for using Kotlin as will be explained ... these dependencies is declared in the Quarkus BOM and is...
Read more >gradle - Cannot use Kotlin 1.7.10 - Stack Overflow
After this, gradlew builds Kotlin 1.7.10 code, and it also builds ... like IntelliJ IDEA CE does not officially support Kotlin 1.7.10 yet?...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/carterhudson/PermissionsDispatcher
Well, the best alternative is, use the
com.github.permissions-dispatcher:permissionsdispatcher-ktx
version of the library. Works perfect and without the need of annotations.