Skip to content

Commit

Permalink
Merge pull request jakob-grabner#4 from Evisceration/jitpack.io-support
Browse files Browse the repository at this point in the history
add JitPack.io support
  • Loading branch information
captainbupt committed Aug 15, 2015
2 parents 72ad605 + 71a1926 commit 7754f7f
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ExampleApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ android {

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':CircleProgressView')
compile project(':library')
compile 'com.android.support:appcompat-v7:22.1.1'
}
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,8 @@ An circle view, similar to Android's ProgressBar. Can be used in 'value mode' or

![alt tag](https://raw.githubusercontent.com/jakob-grabner/Circle-Progress-View/master/media/CircleProgressView.png)

Add it to you project:
Add it to you project
-----

- Download the CircleProgressView.aar into your libs folder.
- Add libs folder as a maven repo in your build.gradle

repositories {
mavenCentral()
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}

- add dependency
compile 'at.grabner.circleprogress:CircleProgressView:1.0@aar'

Get the latest version from [JitPack.io](https://jitpack.io/#jakob-grabner/Circle-Progress-View)

Binary file removed aar/CircleProgressView.aar
Binary file not shown.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
buildscript {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.1'
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -15,6 +17,7 @@ buildscript {
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}

File renamed without changes.
10 changes: 10 additions & 0 deletions CircleProgressView/build.gradle → library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ android {

dependencies {
}

apply plugin: 'android-maven'
// build a jar with source files
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
artifacts {
archives sourcesJar
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include ':ExampleApp', ':CircleProgressView', ':ExampleAppV2'
include ':library'
include ':ExampleApp'

0 comments on commit 7754f7f

Please sign in to comment.