Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from yahoo/aar
Changes for publishing
- Loading branch information
Showing
11 changed files
with
60 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ android: | |
- android-21 | ||
|
||
script: | ||
- ./gradlew clean assembleDebug test | ||
- ./gradlew clean build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
POM_NAME=Android RangeSeekBar Sample | ||
POM_ARTIFACT_ID=rangeseekbar-sample | ||
POM_PACKAGING=aar | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
POM_NAME=Android RangeSeekBar Library | ||
POM_ARTIFACT_ID=rangeseekbar-library | ||
POM_PACKAGING=aar | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.yahoo.mobile.client.android.util"> | ||
|
||
<application android:allowBackup="true" android:label="@string/app_name"> | ||
|
||
</application> | ||
package="com.yahoo.mobile.client.android.util.rangeseekbar"> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
...client/android/util/RangeSeekBarTest.java → ...d/util/rangeseekbar/RangeSeekBarTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package com.yahoo.mobile.client.android.util; | ||
|
||
package com.yahoo.mobile.client.android.util.rangeseekbar; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.robolectric.Robolectric; | ||
import org.robolectric.RobolectricTestRunner; | ||
import org.robolectric.RobolectricGradleTestRunner; | ||
import org.robolectric.RuntimeEnvironment; | ||
import org.robolectric.annotation.Config; | ||
|
||
@Config(emulateSdk = 18) | ||
@RunWith(RobolectricTestRunner.class) | ||
@RunWith(RobolectricGradleTestRunner.class) | ||
@Config(constants = BuildConfig.class, sdk = 21) | ||
public class RangeSeekBarTest { | ||
|
||
@Test | ||
public void rsb_should_handle_long_values() { | ||
RangeSeekBar<Long> mSeekBar = new RangeSeekBar<Long>(Robolectric.application); | ||
RangeSeekBar<Long> mSeekBar = new RangeSeekBar<>(RuntimeEnvironment.application); | ||
// Set up the seek bar | ||
mSeekBar.setRangeValues(0L, 100L); | ||
long minValue = mSeekBar.getAbsoluteMinValue(); | ||
Assert.assertEquals(0L, minValue); | ||
long maxValue = mSeekBar.getAbsoluteMaxValue(); | ||
Assert.assertEquals(100L, maxValue); | ||
} | ||
|
||
} |