Skip to content

Commit

Permalink
getValue method was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
travijuu committed Jun 20, 2016
1 parent 314d15e commit 231b5b9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Download

Download [the latest JAR][2] or grab via Gradle:
```groovy
compile 'com.travijuu.numberpicker:numberpicker:1.0.3'
compile 'com.travijuu.numberpicker:numberpicker:1.0.4'
```
or Maven:
```xml
<dependency>
<groupId>com.travijuu.numberpicker</groupId>
<artifactId>numberpicker</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
</dependency>
```

Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# org.gradle.parallel=true

#VERSION_NAME=1.0.3-SNAPSHOT
VERSION_NAME=1.0.3
VERSION_CODE=2
VERSION_NAME=1.0.4
VERSION_CODE=3
GROUP=com.github.travijuu

POM_DESCRIPTION=A simple customizable NumberPicker plugin for Android
Expand All @@ -35,4 +35,4 @@ POM_DEVELOPER_NAME=Erkin Cakar


RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2
SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots
SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0.0"
versionCode versionCode
versionName version
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,15 @@ public void setValue(int value) {
this.updateView();
}

public int getValue() {
return this.currentValue;
}

public void increment() {
this.setValue(this.currentValue + this.unit);
}

public void decrement() {
this.setValue(this.currentValue - this.unit);
}
}
}

0 comments on commit 231b5b9

Please sign in to comment.