Skip to content

Commit

Permalink
Merge pull request #9 from turshija/master
Browse files Browse the repository at this point in the history
Fix for @nonnull error when compiling .apk
  • Loading branch information
skwasjer authored May 4, 2017
2 parents 20eb21f + 35dbab1 commit f7df4e8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Cordova Plugin for showing a native date, time or datetime picker.

## Changelog

#### 0.8.0 ####
- Android: fix @NonNull error when building apk

#### 0.7.0 ####
- iOS: use auto layout
- iOS: remove < iOS 7 support (UIActionSheet)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.7.0",
"version": "0.8.0",
"name": "skwas-cordova-plugin-datetimepicker",
"cordova_name": "DateTime picker",
"description": "Cordova DateTime picker plugin",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ THE SOFTWARE.
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="skwas-cordova-plugin-datetimepicker"
version="0.7.0">
version="0.8.0">
<name>DateTime picker</name>
<description>Cordova DateTime picker plugin</description>
<license>MIT</license>
Expand Down
5 changes: 2 additions & 3 deletions src/android/DateTimePicker.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
import android.app.DatePickerDialog;
import android.app.DatePickerDialog.OnDateSetListener;
import android.app.TimePickerDialog.OnTimeSetListener;
import android.support.annotation.NonNull;
import android.util.Log;
import android.widget.DatePicker;
import android.widget.TimePicker;

import javax.annotation.Nonnull;

public class DateTimePicker extends CordovaPlugin {

/**
Expand All @@ -33,7 +32,7 @@ public class DateTimePicker extends CordovaPlugin {
* Note that not all options are supported, they are here to match the options across all platforms.
*/
private class DateTimePickerOptions {
@Nonnull
@NonNull
public String mode = "date";
public Date date = new Date();
public boolean allowOldDates = true;
Expand Down

0 comments on commit f7df4e8

Please sign in to comment.