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
Example Android library project that works with jitpack.io.
6
-
7
-
See this [Tutorial](https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0) on how to publish an Android Library with JitPack.
8
-
9
-
For more details check out the [documentation](https://github.com/jitpack/jitpack.io/blob/master/ANDROID.md)
To enable installing into local maven repository and JitPack you need to add the [android-maven](https://github.com/dcendents/android-maven-gradle-plugin) plugin:
37
-
38
-
1. Add `classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'` to root build.gradle under `buildscript { dependencies {`
39
-
2. Add `com.github.dcendents.android-maven` to the library/build.gradle
40
-
41
-
After these changes you should be able to run:
42
-
43
-
./gradlew install
44
-
45
-
from the root of your project. If install works and you have added a GitHub release it should work on jitpack.io
46
-
47
-
## Adding a sample app
48
-
49
-
If you add a sample app to the same repo then your app needs to have a dependency on the library. To do this in your app/build.gradle add:
50
-
51
-
```gradle
52
-
dependencies {
53
-
compile project(':library')
54
-
}
55
-
```
3
+
For more details check out the [documentation](https://www.metricalp.com/docs/android)
0 commit comments