Skip to content Skip to sidebar Skip to footer

How To Make My Android Library Source Code Visible When A User Adds The Gradle Dependency (so Code Doesn't Have To Be Decompiled In Android Studio)

I have an Android library on jitpack.io and let devs add my library but just adding the dependency. But what I've noticed is that if this dependency is added, my library classes ha

Solution 1:

It depends if you're publishing the library as an aar or a jar.

For aar files it doesn't seem to be possible at the moment How to publish Android .aar sources to make Android Studio automatically find them?

For jar you just need to publish the -sources.jar file along your main jar.

Post a Comment for "How To Make My Android Library Source Code Visible When A User Adds The Gradle Dependency (so Code Doesn't Have To Be Decompiled In Android Studio)"