diff --git a/README.md b/README.md index 6824f2d..6f90346 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A custom preference item for easy implementation of a color picker in the prefer ## Preview ![ExampleMain][ExampleMain] ![ExampleDefault][ExampleDefault] -![ExampleCustom][ExampleDefault2] +![ExampleDefault2][ExampleDefault2] Get the sample apk [here]() Also checkout the sample module [here](/sample/) @@ -18,15 +18,20 @@ Also checkout the sample module [here](/sample/) ### Gradle -Add the dependency in your `build.gradle` +Add this to your project level `build.gradle`: ```groovy -repositories { - maven { - url "https://jitpack.io" - } +allprojects { + repositories { + jcenter() + maven { url "https://jitpack.io" } + } } +``` + +Add this to your app `build.gradle`: +```groovy dependencies { compile 'com.github.kizitonwose:colorpreference:1.0.0' } @@ -92,7 +97,7 @@ The custom picker in the sample uses the [Lobster Color Picker](https://github.c ## Credits -Original code belongs to @romannurik of @google, I did some additions like the view size, color shape and the ability to use a custom color picker(more to come). It's also now available as a Gradle dependency for easy usage. +Original code belongs to [Roman Nurik](https://github.com/romannurik) of [Google](https://github.com/google), I did some additions like the view size, color shape and the ability to use a custom color picker(more to come). It's also now available as a Gradle dependency for easy usage. ## License diff --git a/build.gradle b/build.gradle index aff4f41..721d0cb 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' + 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 diff --git a/colorpreference/build.gradle b/colorpreference/build.gradle index 0826630..834b57a 100644 --- a/colorpreference/build.gradle +++ b/colorpreference/build.gradle @@ -1,4 +1,7 @@ apply plugin: 'com.android.library' +apply plugin: 'com.github.dcendents.android-maven' + +group='com.github.kizitonwose' android { compileSdkVersion 23 diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..13372ae Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..122a0dc --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Mon Dec 28 10:00:20 PST 2015 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip