File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# android-example
22
3- [ ![ Release] (https://img.shields.io/github/release/jitpack/android-example.svg?label=maven version )] ( https://jitpack.io/#jitpack/android-example )
3+ [ ![ Release] ( https://img.shields.io/github/release/jitpack/android-example.svg?label=Jitpack )] ( https://jitpack.io/#jitpack/android-example )
44
5- Example Android library project that works with jitpack.io. The
6- See also the guide for [ building Android projects] ( https://github.com/jitpack/jitpack.io/blob/master/ANDROID.md )
5+ Example Android library project that works with jitpack.io.
6+ Also see the guide for [ building Android projects] ( https://github.com/jitpack/jitpack.io/blob/master/ANDROID.md )
77
8- https://jitpack.io/#jitpack/android-example/1.0.2
8+ https://jitpack.io/#jitpack/android-example
99
1010Add it to your build.gradle with:
1111``` gradle
1212repositories {
13- jcenter()
1413 maven { url "https://jitpack.io" }
1514}
1615```
1716and:
1817
1918``` gradle
2019dependencies {
21- compile 'com.github.jitpack:android-example:1.0.2 '
20+ compile 'com.github.jitpack:android-example:{latest version} '
2221}
2322```
2423
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
55 jcenter()
66 }
77 dependencies {
8- classpath ' com.android.tools.build:gradle:1.2.3 '
8+ classpath ' com.android.tools.build:gradle:1.3.1 '
99 classpath ' com.github.dcendents:android-maven-gradle-plugin:1.3'
1010 }
1111}
Original file line number Diff line number Diff line change 1- # Wed Apr 10 15:27:10 PDT 2013
1+ # Sun Dec 13 15:17:37 PST 2015
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-2.9-bin .zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-2.9-all .zip
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ apply plugin: 'com.android.library'
22apply plugin : ' com.github.dcendents.android-maven' // ADD THIS
33
44android {
5- compileSdkVersion 21
6- buildToolsVersion " 21.1 .2"
5+ compileSdkVersion 23
6+ buildToolsVersion " 23.0 .2"
77
88 defaultConfig {
99 minSdkVersion 21
10- targetSdkVersion 21
10+ targetSdkVersion 23
1111 versionCode 1
1212 versionName " 1.0"
1313 }
@@ -33,6 +33,7 @@ task javadoc(type: Javadoc) {
3333 failOnError false
3434 source = android. sourceSets. main. java. sourceFiles
3535 classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
36+ classpath + = configurations. compile
3637}
3738
3839// build a jar with javadoc
Original file line number Diff line number Diff line change 1- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2- package =" io.jitpack.example.examplelib" >
3-
4- <application android : allowBackup =" true" android : label =" @string/app_name"
5- android : icon =" @drawable/ic_launcher" android : theme =" @style/AppTheme" >
6-
7- </application >
1+ <manifest package =" io.jitpack.example.examplelib" >
82
93</manifest >
You can’t perform that action at this time.
0 commit comments