moko-permissions icon indicating copy to clipboard operation
moko-permissions copied to clipboard

Could not resolve dev.icerock.moko:permissions

Open ffgiraldez opened this issue 11 months ago • 3 comments

I want to use your library on a pure Kotlin module(I'm working on a legacy project and cannot use KMP yet)

I added the dependency as compileOnly

 compileOnly("dev.icerock.moko:permissions:0.19.1") // To simplify the example I don't use versions catalog here

And I get this error.

:domain: Could not resolve dev.icerock.moko:permissions:0.19.1.

I only need the PermissionState class inside that module. I think the problem is PermissionDelegate and PermissionController that requires the android/ios impl.

To avoid this, can it be split into two modules, permission-core and permission-controller(or similar)?

ffgiraldez avatar Mar 24 '25 09:03 ffgiraldez

if your module is jvm instead of android - resolve will be failed, yes. supported only android and ios targets

Alex009 avatar Mar 24 '25 10:03 Alex009

@Alex009 I'm using it in a modularized Android app, and I need to use it in a pure kotlin module, but the end target is Android.

ffgiraldez avatar Mar 24 '25 10:03 ffgiraldez

Please provide a dummy artifact for JVM....

Unresolved platforms: [desktop]

zombiehub avatar Sep 12 '25 15:09 zombiehub