Skip to content

Commit

Permalink
add SpinnerDatePickerExample back
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rawson authored and David Rawson committed Oct 18, 2017
1 parent c5ca8ce commit af1c18e
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 23 deletions.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,15 @@ Add this to your **app level** `build.gradle`:

```gradle
dependencies {
compile 'com.github.drawers:SpinnerDatePicker:0.0.6@aar'
compile 'com.github.drawers:SpinnerDatePicker:0.0.7'
}
```

Philosophy
==========

The aim of this project is to produce a lightweight and robust DatePicker. Hence the library has no external dependencies and no fancy features. Espresso automated UI pesting is performed on the sample project using Firebase test lab. When more funds are available, more devices will be tested.

License
=======

Expand Down
9 changes: 9 additions & 0 deletions SpinnerDatePickerExample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ android {
}
}

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.gms:google-services:3.1.0'
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ void showDate(int year, int monthOfYear, int dayOfMonth, int spinnerTheme) {
.build()
.show();
}
}
}
20 changes: 6 additions & 14 deletions SpinnerDatePickerLib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.drawers'
version = '0.0.4'
group = 'com.github.drawers'
version = '0.0.7'

android {
compileSdkVersion 26
Expand All @@ -11,8 +11,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 26
versionCode 6
versionName "0.0.6"
versionCode 7
versionName "0.0.7"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down Expand Up @@ -44,28 +44,20 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
testCompile 'junit:junit:4.12'
}

android.libraryVariants.all { variant ->
def name = variant.buildType.name
def task = project.tasks.create "jar${name.capitalize()}", Jar
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
artifacts.add('archives', task);
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
options.charSet = 'UTF-8'
failOnError false
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}

task javadocJar(type: Jar, dependsOn: javadoc) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.tsongkha.spinnerdatepicker;

import android.content.Context;
import android.support.v4.util.Preconditions;

public class SpinnerDatePickerDialogBuilder {

Expand Down
9 changes: 4 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
Expand All @@ -7,7 +11,6 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.1.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}
Expand All @@ -21,7 +24,3 @@ allprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}

task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include ':SpinnerDatePickerLib'
include ':SpinnerDatePickerLib', ':SpinnerDatePickerExample'
rootProject.name = 'SpinnerDatePicker'

0 comments on commit af1c18e

Please sign in to comment.