Hey folks, we successfully published our first kot...
# multiplatform
t
Hey folks, we successfully published our first kotlin multiplatform library targeting android & iOS to sign aws requests. While integrating it in one of our production android apps I stumbled over a
java.lang.ClassNotFoundException
while running a JUnit test for the class that collaborates with our library. This is just a problem while running JUnit tests, using the library while running the app works fine 🤔 Any idea?
kotlinx/serialization/SerializationKt
is an extension method from
kotlinx/serialization
we’re using internally in the library.
the dependency to our library in the android project is declared as
implementation 'com.novoda:aws-v4-signer:0.0.1'
Ok, I just realised this just happens when running the test from Android Studio, running it from the cli works fine.
d
Probably a bug with using
implementation
, which I wouldn't recommend using over
api
(which used to be
compile
) until you expect other developers may consume your library.
t
yep, it’s a known one: https://youtrack.jetbrains.com/issue/KT-29343