Skip to content

Commit

Permalink
updated build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
kizitonwose committed Sep 24, 2016
1 parent 4aed33b commit 1beef30
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand All @@ -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'
}
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions colorpreference/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.kizitonwose'

android {
compileSdkVersion 23
Expand Down
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1beef30

Please sign in to comment.