Skip to content

Commit 1beef30

Browse files
committed
updated build.gradle
1 parent 4aed33b commit 1beef30

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A custom preference item for easy implementation of a color picker in the prefer
99
## Preview
1010

1111
![ExampleMain][ExampleMain] ![ExampleDefault][ExampleDefault]
12-
![ExampleCustom][ExampleDefault2]
12+
![ExampleDefault2][ExampleDefault2]
1313

1414
Get the sample apk [here]()
1515
Also checkout the sample module [here](/sample/)
@@ -18,15 +18,20 @@ Also checkout the sample module [here](/sample/)
1818

1919
### Gradle
2020

21-
Add the dependency in your `build.gradle`
21+
Add this to your project level `build.gradle`:
2222

2323
```groovy
24-
repositories {
25-
maven {
26-
url "https://jitpack.io"
27-
}
24+
allprojects {
25+
repositories {
26+
jcenter()
27+
maven { url "https://jitpack.io" }
28+
}
2829
}
30+
```
31+
32+
Add this to your app `build.gradle`:
2933

34+
```groovy
3035
dependencies {
3136
compile 'com.github.kizitonwose:colorpreference:1.0.0'
3237
}
@@ -92,7 +97,7 @@ The custom picker in the sample uses the [Lobster Color Picker](https://github.c
9297
9398
## Credits
9499
95-
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.
100+
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.
96101
97102
## License
98103

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:2.1.2'
9+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
910

1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files

colorpreference/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven'
3+
4+
group='com.github.kizitonwose'
25

36
android {
47
compileSdkVersion 23

gradle/wrapper/gradle-wrapper.jar

52.4 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Mon Dec 28 10:00:20 PST 2015
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip

0 commit comments

Comments
 (0)