Skip to content

Commit 837ef5b

Browse files
committed
Increase version number to v4.0.0
1 parent d08aafd commit 837ef5b

File tree

3 files changed

+31
-13
lines changed

3 files changed

+31
-13
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Material DateTime Picker tries to offer you the date and time pickers as shown i
99
easy themable API.
1010
The library uses [the code from the Android frameworks](https://android.googlesource.com/platform/frameworks/opt/datetimepicker/) as a base and tweaked it to be as close as possible to Material Design example.
1111

12-
Support for Android 4.0 and up.
12+
Support for Android 4.1 and up. (Android 4.0 was supported until 3.6.4)
1313

1414
Feel free to fork or issue pull requests on github. Issues can be reported on the github issue tracker.
1515

@@ -42,7 +42,7 @@ Date Picker | Time Picker
4242
The easiest way to add the Material DateTime Picker library to your project is by adding it as a dependency to your `build.gradle`
4343
```groovy
4444
dependencies {
45-
compile 'com.wdullaer:materialdatetimepicker:3.6.4'
45+
compile 'com.wdullaer:materialdatetimepicker:4.0.0'
4646
}
4747
```
4848

@@ -98,7 +98,10 @@ DatePickerDialog dpd = DatePickerDialog.newInstance(
9898
now.get(Calendar.MONTH), // Initial month selection
9999
now.get(Calendar.DAY_OF_MONTH) // Inital day selection
100100
);
101+
// If you're calling this from a support Fragment
101102
dpd.show(getFragmentManager(), "Datepickerdialog");
103+
// If you're calling this from an AppCompatActivity
104+
// dpd.show(getSupportFragmentManager(), "Datepickerdialog");
102105
```
103106

104107
### Theme the pickers
@@ -240,7 +243,7 @@ This library depends on some androidx support libraries. Because the jvm allows
240243
Using the following snippet in your apps `build.gradle` file you can exclude this library's transitive appcompat library dependency from being installed.
241244

242245
```groovy
243-
compile ('com.wdullaer:materialdatetimepicker:3.6.4') {
246+
compile ('com.wdullaer:materialdatetimepicker:4.0.0') {
244247
exclude group: 'androidx.appcompat'
245248
}
246249
```
@@ -362,7 +365,6 @@ public void onResume() {
362365

363366
## Potential Improvements
364367
* Landscape timepicker can use some improvement
365-
* Implement the new style of pickers
366368
* Code cleanup: there is a bit too much spit and ductape in the tweaks I've done.
367369
* Document all options on both pickers
368370

README_ES.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Material DateTime Picker intenta ofrecerle los selectores de fecha y hora como s
99
fácil de usar.
1010
La biblioteca utiliza [el código de los marcos de Android](https://android.googlesource.com/platform/frameworks/opt/datetimepicker/) La biblioteca utiliza [el código de los marcos de Android] como base y lo ajusta para que esté lo más idéntico posible al ejemplo de los diseños de materiales.
1111

12-
Soporte para Android 4.0 y superior.
12+
Soporte para Android 4.1 y superior.
1313

1414
Siéntase libre de crear un _fork_ o emitir solicitudes de _pull request_ en github. Los problemas se pueden informar en el rastreador de problemas github.
1515

@@ -42,12 +42,27 @@ Selector de fecha | Selector de tiempo
4242
La forma más fácil de agregar a la Biblioteca la _Material DateTime Picker_ a su proyecto es agregarla como una dependencia `build.gradle`
4343
```groovy
4444
a sus dependencias{
45-
compile 'com.wdullaer:materialdatetimepicker:3.6.4'
45+
compile 'com.wdullaer:materialdatetimepicker:4.0.0'
4646
}
4747
```
4848
4949
También puede agregar la biblioteca como una biblioteca de Android a su proyecto. Todos los archivos de la biblioteca están en `library`
5050
51+
The library also uses some Java 8 features, which Android Studio will need to transpile. This requires the following stanza in your app's `build.gradle`.
52+
See https://developer.android.com/studio/write/java8-support.html for more information on Java 8 support in Android.
53+
```groovy
54+
android {
55+
...
56+
// Configure only for each module that uses Java 8
57+
// language features (either in its source code or
58+
// through dependencies).
59+
compileOptions {
60+
sourceCompatibility JavaVersion.VERSION_1_8
61+
targetCompatibility JavaVersion.VERSION_1_8
62+
}
63+
}
64+
```
65+
5166

5267
## Usar Material DateTime Picker <tt>selectores de fecha/hora</tt>
5368
La biblioteca sigue la misma API que otros selectores en el marco de Android.
@@ -84,7 +99,10 @@ DatePickerDialog dpd = DatePickerDialog.newInstance(
8499
now.get(Calendar.MONTH),
85100
now.get(Calendar.DAY_OF_MONTH)
86101
);
102+
// If you are calling this from a support Fragment
87103
dpd.show(getFragmentManager(), "Datepickerdialog");
104+
// If you are calling this from an AppCompatActivity
105+
// dpd.show(getSupportFragmentManager(), "Datepickerdialog");
88106
```
89107

90108
### Darle un tema a los selectores
@@ -226,17 +244,16 @@ puede desactivar la carga de la biblioteca de soporte para MaterialDateTimePicke
226244
Usando el siguiente fragmento en el archivo `build.gradle` de su aplicación, puede excluir la posibilidad de que se instale la biblioteca de soporte transitivo de esta biblioteca.
227245

228246
```groovy
229-
compile ('com.wdullaer:materialdatetimepicker:3.6.4') {
247+
implementation ('com.wdullaer:materialdatetimepicker:4.0.0') {
230248
exclude group: 'com.android.support'
231249
}
232250
```
233251

234252
Su aplicación deberá depender al menos de las siguientes piezas de la biblioteca de soporte
235253

236254
```groovy
237-
compile 'com.android.support:support-v4:26.0.1'
238-
compile 'com.android.support:support-v13:26.0.1'
239-
compile 'com.android.support:design:26.0.1'
255+
implementation 'androidx.appcompat:appcompat:1.0.0'
256+
implementation 'androidx.recyclerview:recyclerview:1.0.0'
240257
```
241258

242259
Esto funcionará bien, siempre y cuando la versión de la biblioteca de soporte de la que depende su aplicación sea lo suficientemente reciente (admite `RecyclerView` <tt>Vista al reciclador</tt>) y google no lance una versión en el futuro que contenga cambios de última hora. (Si/Cuando esto ocurra, intentaré documentarlo). Vea el documento [#338](https://github.com/wdullaer/MaterialDateTimePicker/issues/338) para más información.
@@ -349,7 +366,6 @@ public void onResume() {
349366

350367
## Mejoras potenciales
351368
* Landscape timepicker puede usar alguna mejora
352-
* Implementar el nuevo estilo de seleccionadores
353369
* Limpieza de código: hay un poco de saliva y cinta adhesiva en los ajustes que he hecho.
354370
* Documente todas las opciones en ambos selectores
355371

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
1919

20-
VERSION_NAME=3.6.4
21-
VERSION_CODE=45
20+
VERSION_NAME=4.0.0
21+
VERSION_CODE=46
2222
GROUP=com.wdullaer
2323

2424
ANDROID_BUILD_MIN_SDK_VERSION=16

0 commit comments

Comments
 (0)