You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running it will result in this error message (the app doesn't crash, but the decryption doesn't happen either):
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: No providers registered. Please provide a dependency or register provider explicitly
at dev.whyoleg.cryptography.e.b(Unknown Source)
at kotlin.SynchronizedLazyImpl.getValue(Unknown Source)
at d.d.e.k.a(Unknown Source)
at d.d.e.k.a(Unknown Source)
at d.d.e.p.invokeSuspend(Unknown Source)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source)
at kotlinx.coroutines.W.run(Unknown Source)
at kotlinx.coroutines.c.a.a(Unknown Source)
at kotlinx.coroutines.c.d.run(Unknown Source)
Suppressed: kotlinx.coroutines.internal.h: [CoroutineName(d.d.e.a:d.d.e.k:default), aU{Cancelling}@2ab8b3b7, Dispatchers.Main]
The debug build works perfectly fine, as well as a release build for Android.
To fix the above issue, I had to add this to my proguard file (compose-desktop.pro):
-keep class dev.whyoleg.cryptography.*
-keep class dev.whyoleg.cryptography.providers.jdk.*
Hey!
Thanks for filling the issue, yeah, we will need to provide pro guard rules for the library out of the box, similar to have it's done in kotlinx.coroutines or similar.
The reason for this, is that providers are loaded via JDK ServiceLoader, and so class name is important.
Additionally integration test will need to be added
Hello.
I have a KMP project with Desktop and Android as target OSes. I have this in my dependencies (the latest 4.0.0 version):
I'm using ProGuard:
If I compile a release uber jar:
Running it will result in this error message (the app doesn't crash, but the decryption doesn't happen either):
The debug build works perfectly fine, as well as a release build for Android.
To fix the above issue, I had to add this to my proguard file (
compose-desktop.pro
):and this to my
build.gradle.kts
:The text was updated successfully, but these errors were encountered: