https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
t

Tobi

06/05/2019, 4:01 PM
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

Dico

06/06/2019, 2:27 AM
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

Tobi

06/07/2019, 1:03 PM