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
I want to package the source code .jar with the Teller package so that users of the library can browse the source inside of Android Studio.
After some research, I am still not quite sure how to do this. However, from this SO question, I have an idea of the configuration to use. I have used this configuration in the past before, but I had no luck. I believe that is because of one of the comments someone mentioned, "it works for tagged releases for us". I did not tag a release.
In the teller/build.gradle file, include this code at the base of the file:
I learned, also from that SO question, on how to view the directory of built artifacts for JitPack. Go to this link and it shows all the index of the tagged releases for that project. Append a tagged release to the URL of the browser to view the contents of that release. You will notice for 0.0.1 release of Teller, you do not see a -sources.jar resource.
The text was updated successfully, but these errors were encountered:
When you now run ./gradlew install, you should see javadoc files being generated in teller-android/build/javadoc. Then, the 2 jar files should be located in teller-android/build/libs/. Just to be sure everything worked correctly, unzip the .jar files and view the inside files to make sure that sources.jar actually contains source code and not just directories.
Then, when the code is uploaded to jCenter (have not tested with Jitpack), then the sources should be downloaded and shown inside of Android Studio. If not, delete your ~/.gradle/caches directory and re-open your Android Studio project where it will redownload dependencies.
I want to package the source code .jar with the Teller package so that users of the library can browse the source inside of Android Studio.
After some research, I am still not quite sure how to do this. However, from this SO question, I have an idea of the configuration to use. I have used this configuration in the past before, but I had no luck. I believe that is because of one of the comments someone mentioned, "it works for tagged releases for us". I did not tag a release.
In the
teller/build.gradle
file, include this code at the base of the file:I learned, also from that SO question, on how to view the directory of built artifacts for JitPack. Go to this link and it shows all the index of the tagged releases for that project. Append a tagged release to the URL of the browser to view the contents of that release. You will notice for 0.0.1 release of Teller, you do not see a
-sources.jar
resource.The text was updated successfully, but these errors were encountered: