Skip to content

Commit

Permalink
jCenter support
Browse files Browse the repository at this point in the history
  • Loading branch information
vikramkakkar committed Jun 28, 2015
1 parent 48298aa commit bb405d8
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 43 deletions.
Binary file modified app/app-release.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
</content>
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="support-annotations-22.1.1" level="project" />
<orderEntry type="library" exported="" name="support-annotations-22.2.0" level="project" />
<orderEntry type="module" module-name="sublimepickerlibrary" exported="" />
</component>
</module>
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
classpath 'com.github.dcendents:android-maven-plugin:1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
38 changes: 35 additions & 3 deletions sublimepickerlibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
apply plugin: 'com.android.library'

ext {
bintrayRepo = 'maven'
bintrayName = 'sublime-picker'

publishedGroupId = 'com.appeaser.sublimepickerlibrary'
libraryName = 'SublimePicker'
artifact = 'sublimepickerlibrary'

libraryDescription = 'A material-styled android view that provisions picking of a date, time & recurrence option, all from a single user-interface.'

siteUrl = 'https://github.com/vikramkakkar/SublimePicker'
gitUrl = 'https://github.com/vikramkakkar/SublimePicker.git'

libraryVersion = '1.0.0'

developerId = 'vikramkakkar'
developerName = 'Vikram Kakkar'
developerEmail = '[email protected]'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
Expand All @@ -8,18 +32,26 @@ android {
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
versionName "1.0.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.android.support:support-v4:22.1.1'
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:support-v4:22.2.0'
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@

/**
* A customizable view that provisions picking of a date,
* time & recurrence option, all from a single user-interface.
* time and recurrence option, all from a single user-interface.
* You can also view 'SublimePicker' as a collection of
* material-styled (API 22, & _not_ 21) DatePicker, TimePicker
* & RecurrencePicker, backported to API 16.
* material-styled (API 22, and _not_ 21) DatePicker, TimePicker
* and RecurrencePicker, backported to API 16.
* You can opt for any combination of these three Pickers.
*/
public class SublimePicker extends FrameLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public void applyOptions(boolean switcherRequired, @NonNull Callback callback,

/**
* Updates 'ButtonBarBgDrawable' when the picker is switched.
* This is required because 'SublimeDatePicker' & 'SublimeTimePicker'
* This is required because 'SublimeDatePicker' and 'SublimeTimePicker'
* have different header-partition widths.
*
* @param callingPicker Currently visible picker
Expand All @@ -280,7 +280,7 @@ public void updateSwitcherText(CharSequence text) {
mSwitcherButton.setText(text);
}

// Disables the positive button as & when the user selected options
// Disables the positive button as and when the user selected options
// become invalid.
public void updateValidity(boolean valid) {
mPositiveButton.setEnabled(valid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import android.widget.ViewAnimator;

/**
* Houses DayPickerView & YearPickerView
* Houses DayPickerView and YearPickerView
*/
public class AccessibleDateAnimator extends ViewAnimator {
private long mDateMillis;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public CRectFEvaluator(RectF reuseRect) {
* between the start and end values. The calculation is a simple parametric
* calculation on each of the separate components in the Rect objects
* (left, top, right, and bottom).
* <p/>
* <p>If #CRectFEvaluator(android.graphics.Rect) was used to construct
* this RectEvaluator, the object returned will be the <code>reuseRect</code>
* passed into the constructor.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

/**
* Currently not used.
* Draws a pair of lines at 45 degrees & 135 degrees
* Draws a pair of lines at 45 degrees and 135 degrees
* that pass through the center.
*/
public class CancelDrawable extends Drawable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import android.view.animation.OvershootInterpolator;

/**
* Provides animated transition between 'on' & 'off' state.
* Provides animated transition between 'on' and 'off' state.
* Used as background for 'WeekButton'.
*/
public class CheckableDrawable extends Drawable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,8 @@ public boolean repeatsOnEveryWeekDay() {
/**
* Determines whether this rule specifies a simple monthly rule by weekday, such as
* "FREQ=MONTHLY;BYDAY=3TU" (the 3rd Tuesday of every month).
* <p/>
* Negative days, e.g. "FREQ=MONTHLY;BYDAY=-1TU" (the last Tuesday of every month),
* will cause "false" to be returned.
* <p/>
* Rules that fire every week, such as "FREQ=MONTHLY;BYDAY=TU" (every Tuesday of every
* month) will cause "false" to be returned. (Note these are usually expressed as
* WEEKLY rules, and hence are uncommon.)
Expand All @@ -447,12 +445,10 @@ public boolean repeatsMonthlyOnDayCount() {

/**
* Determines whether two integer arrays contain identical elements.
* <p/>
* The native implementation over-allocated the arrays (and may have stuff left over from
* a previous run), so we can't just check the arrays -- the separately-maintained count
* field also matters. We assume that a null array will have a count of zero, and that the
* array can hold as many elements as the associated count indicates.
* <p/>
* TODO: replace this with Arrays.equals() when the old parser goes away.
*/
private static boolean arraysEqual(int[] array1, int count1, int[] array2, int count2) {
Expand Down Expand Up @@ -505,12 +501,10 @@ public int hashCode() {

/**
* Resets parser-modified fields to their initial state. Does not alter startDate.
* <p/>
* The original parser always set all of the "count" fields, "wkst", and "until",
* essentially allowing the same object to be used multiple times by calling parse().
* It's unclear whether this behavior was intentional. For now, be paranoid and
* preserve the existing behavior by resetting the fields.
* <p/>
* We don't need to touch the integer arrays; they will either be ignored or
* overwritten. The "startDate" field is not set by the parser, so we ignore it here.
*/
Expand Down
19 changes: 0 additions & 19 deletions sublimepickerlibrary/src/main/res/values-h720p/dimens.xml

This file was deleted.

11 changes: 7 additions & 4 deletions sublimepickerlibrary/sublimepickerlibrary.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":sublimepickerlibrary" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="SublimePicker" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<module external.linked.project.id=":sublimepickerlibrary" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.appeaser.sublimepickerlibrary" external.system.module.version="1.0.0" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
Expand Down Expand Up @@ -63,6 +63,7 @@
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/docs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
Expand All @@ -82,13 +83,15 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/libs" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/poms" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="support-annotations-22.1.1" level="project" />
<orderEntry type="library" exported="" name="support-v4-22.1.1" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-22.1.1" level="project" />
<orderEntry type="library" exported="" name="support-annotations-22.2.0" level="project" />
<orderEntry type="library" exported="" name="support-v4-22.2.0" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-22.2.0" level="project" />
</component>
</module>

0 comments on commit bb405d8

Please sign in to comment.