Skip to content

Commit

Permalink
add JitPack.io support. Thanks to Evisceration.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-grabner committed Aug 15, 2015
1 parent f69d27f commit 60d0dab
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 28 deletions.
37 changes: 13 additions & 24 deletions CircleProgressView/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.1"
}
buildTypes {
release {
Expand All @@ -22,29 +22,18 @@ android {
productFlavors {
}

// android.libraryVariants.all { variant ->
// task("generate${variant.name}Javadoc", type: Javadoc) {
// description "Generates Javadoc for $variant.name."
// source = variant.javaCompile.source
// ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
// classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar)
// }
//
// task("javadoc${variant.name}", type: Jar) {
// classifier = "javadoc"
// description "Bundles Javadoc into a JAR file for $variant.name."
// from tasks["generate${variant.name}Javadoc"]
//
// }
//
// task("jar${variant.name}", type: Jar) {
// description "Bundles compiled .class files into a JAR file for $variant.name."
// dependsOn variant.javaCompile
// from variant.javaCompile.destinationDir
// exclude '**/R.class', '**/R$*.class', '**/R.html', '**/R.*.html'
// }
// }

}

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
}
8 changes: 6 additions & 2 deletions ExampleApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ android {
compileSdkVersion 22
buildToolsVersion '22.0.1'

repositories {
maven { url "https://jitpack.io" }
}

defaultConfig {
applicationId "at.grabner.circleview"
minSdkVersion 15
Expand All @@ -21,6 +25,6 @@ android {

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':CircleProgressView')
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.github.jakob-grabner:Circle-Progress-View:da297366da'
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
Expand Down Expand Up @@ -105,7 +104,7 @@ public void onStopTrackingTouch(SeekBar seekBar) {



mCircleView.setBackgroundCircleColor(Color.RED);
// mCircleView.setBackgroundCircleColor(Color.RED);

}

Expand Down

0 comments on commit 60d0dab

Please sign in to comment.