https://github.com/osfunapps/android-lib-example
https://github.com/osfunapps/android-lib-example
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/osfunapps/android-lib-example
- Owner: osfunapps
- Created: 2018-05-24T21:45:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-24T22:09:19.000Z (about 8 years ago)
- Last Synced: 2025-03-23T04:45:13.676Z (over 1 year ago)
- Language: Java
- Size: 95.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# android-example
[](https://jitpack.io/#jitpack/android-example)
Example Android library project that works with jitpack.io. The
See also the guide for [building Android projects](https://github.com/jitpack/jitpack.io/blob/master/ANDROID.md)
https://jitpack.io/#jitpack/android-example/1.0.2
Add it to your build.gradle with:
```gradle
repositories {
maven { url "https://jitpack.io" }
}
```
and:
```gradle
dependencies {
compile 'com.github.jitpack:android-example:1.0.2'
}
```
# Adding the maven plugin
To enable installing into local maven repository and JitPack you need to add the [android-maven](https://github.com/dcendents/android-maven-plugin) plugin:
1. Add `classpath 'com.github.dcendents:android-maven-plugin:1.2'` to root build.gradle under buildscripts
2. Add `apply plugin: 'android-maven'` to the library/build.gradle
After these changes you should be able to run:
gradle install
from the root of your project. If install works and you have added a GitHub release it should work on jitpack.io
# Adding a sample app
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:
```gradle
dependencies {
compile project(':library')
}
```
# android-lib-example