question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kotlin 1.7 Support

See original GitHub issue

We 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:open
  • Created a year ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
carterhudsoncommented, Nov 19, 2022

@carterhudson can you paste the link of your fork? I’ll download it, Yeah it looks like this library is unmaintained.

https://github.com/carterhudson/PermissionsDispatcher

0reactions
ubarua123commented, Nov 23, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found