CoraLibre / CoraLibre-android-sdk

CoraLibre-android-sdk fork of prestandard DP-3T to make compatible with the Google/Apple protocol
Mozilla Public License 2.0
127 stars 7 forks source link

Jitpack build support #42

Closed Stypox closed 4 years ago

Stypox commented 4 years ago

In order to have Jitpack correctly recognize the artifacts, the requirements for an android library are a little bit different from those of a normal java library. So I didn't draw inspiration from NewPipeExtractor, but rather from another android library published on Jitpack (MPAndroidChart). Now the build succeeds and the correct artifacts are collected (if I remove the com.github.dcendents.android-maven plugin, as I would do in a java-only library, the artifact collection fails).

This PR removes the coralibre-sdk/ subfolder and moves all of its contents to the repository root. Other java libraries are usually structured this way (see NewPipeExtractor for example), and this allows jitpack to be used without problems. The two resulting .gitignores were merged.

Fixes #36

Stypox commented 4 years ago

Is moving the files necesary for jitpack support?

Yes. I now included here moving the files, and undone that in #41, so that this does not depend on anything.