Skip to content

Commit

Permalink
#10 Assertion failure
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Oct 29, 2016
1 parent 85d2245 commit f54fb08
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ You can provide your own reason for accessing the calendar by adding something l

_To not crash your app in case you forgot to provide the reason this plugin adds an empty reason to the `.plist` during build. This value gets overridden by anything you specified yourself. You're welcome._

## TypeScript Usage
Of course you can use this plugin with TypeScript, just import the plugin and use
the functions summed up below like this:

```js
import * as Calendar from "nativescript-calendar";

// example for listCalendars:
Calendar.listCalendars().then(/* .. */);
```

## Usage

Expand Down
4 changes: 2 additions & 2 deletions calendar.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,11 @@ Calendar.createEvent = function (arg) {
}
if (calendar === null) {
// create it
calendar = EKCalendar.calendarForEntityTypeEventStore("EKEntityTypeEvent", Calendar._eventStore);
calendar = EKCalendar.calendarForEntityTypeEventStore(EKEntityTypeEvent, Calendar._eventStore);
calendar.title = settings.calendar.name;
if (false && settings.calendar.color !== null) {
// TODO hex to UIColor
calendar.CGColor = settings.calendar.color;
// calendar.CGColor = settings.calendar.color;
}
calendar.source = Calendar._findEKSource();
Calendar._eventStore.saveCalendarCommitError(calendar, true, null);
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "nativescript-calendar",
"version": "1.1.2",
"version": "1.1.3",
"description": "Interact with the native calendar. Add, Update, Read, you name it.",
"main": "calendar.js",
"typings": "index.d.ts",
"nativescript": {
"platforms": {
"android": "2.0.0",
Expand Down

0 comments on commit f54fb08

Please sign in to comment.