@ebarooni/capacitor-calendar 7.1.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EbarooniCapacitorCalendar.podspec +2 -2
- package/Package.swift +4 -4
- package/README.md +238 -162
- package/android/build.gradle +20 -18
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +17 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +2 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +105 -61
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventRecurrenceRule.kt +135 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +5 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +13 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +2 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +3 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +48 -4
- package/dist/docs.json +792 -330
- package/dist/esm/definitions.d.ts +5 -5
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +47 -45
- package/dist/esm/index.js +16 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-role.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-status.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-type.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
- package/dist/esm/schemas/enums/event-status.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-event.d.ts +7 -5
- package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.d.ts +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar.d.ts +2 -2
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +63 -46
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +42 -31
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +10 -1
- package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-event-options.d.ts +1 -1
- package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +1 -1
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +1 -1
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.d.ts +35 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/event-recurrence-rule.d.ts +96 -0
- package/dist/esm/schemas/interfaces/event-recurrence-rule.js +2 -0
- package/dist/esm/schemas/interfaces/event-recurrence-rule.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +21 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-event-options.d.ts +61 -44
- package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +1 -1
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +12 -1
- package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +1 -1
- package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +1 -1
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder.d.ts +1 -1
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminders-list.d.ts +2 -2
- package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +1 -1
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/types/event-edit-action.d.ts +1 -1
- package/dist/esm/schemas/types/event-edit-action.js.map +1 -1
- package/dist/esm/schemas/types/recurrence-frequency.d.ts +4 -0
- package/dist/esm/schemas/types/recurrence-frequency.js +2 -0
- package/dist/esm/schemas/types/recurrence-frequency.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-access.d.ts +4 -4
- package/dist/esm/sub-definitions/calendar-access.js.map +1 -1
- package/dist/esm/sub-definitions/calendar-operations.d.ts +14 -6
- package/dist/esm/sub-definitions/calendar-operations.js.map +1 -1
- package/dist/esm/sub-definitions/event-operations.d.ts +10 -10
- package/dist/esm/sub-definitions/event-operations.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-access.d.ts +1 -1
- package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-operations.d.ts +19 -9
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
- package/dist/esm/web.d.ts +37 -30
- package/dist/esm/web.js +7 -1
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +7 -24
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +7 -24
- package/dist/plugin.js.map +1 -1
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/CapacitorCalendarPlugin.swift +110 -65
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Implementation/CapacitorCalendar.swift +83 -59
- package/ios/Plugin/Info.plist +24 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateEventInput.swift +25 -21
- package/ios/Plugin/Models/Inputs/CreateEventWithPromptInput.swift +171 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateReminderInput.swift +2 -2
- package/ios/Plugin/Models/Inputs/DeleteReminderWithPromptInput.swift +46 -0
- package/ios/Plugin/Models/Inputs/ModifyCalendarInput.swift +32 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyEventInput.swift +63 -41
- package/ios/Plugin/Models/Structs/RecurrenceInput.swift +31 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/PluginConfig.swift +3 -1
- package/package.json +37 -45
- package/dist/esm/schemas/enums/recurrence-frequency.d.ts +0 -21
- package/dist/esm/schemas/enums/recurrence-frequency.js +0 -23
- package/dist/esm/schemas/enums/recurrence-frequency.js.map +0 -1
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +0 -89
- package/ios/Tests/CapacitorCalendarPluginTests/CapacitorCalendarPluginTests.swift +0 -15
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/CAPPermissionState.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/CalendarPermissionScope.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/EventEditAction.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CheckPermissionInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateCalendarInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteCalendarInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventWithPromptInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventsByIdInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteReminderInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteRemindersByIdInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/GetReminderByIdInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/GetRemindersFromListsInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ListEventsInRangeInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyEventWithPromptInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyReminderInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/OpenCalendarInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/RequestPermissionInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/SelectCalendarsWithPromptInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CheckAllPermissionsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CheckPermissionResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateCalendarResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateEventResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateEventWithPromptResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateReminderResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteEventWithPromptResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteEventsByIdResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteRemindersByIdResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/FetchAllCalendarSourcesResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetDefaultCalendarResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetReminderByIdResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetRemindersFromListsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/ListCalendarsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/ListEventsInRangeResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/ModifyEventWithPromptResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/RequestAllPermissionsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/RequestPermissionResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/SelectCalendarsWithPromptResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Templates/JSResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/PluginError.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Utils/ImplementationHelper.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Utils/UIColorFromHexExtension.swift +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Capacitor
|
|
2
|
-
import EventKit
|
|
3
2
|
|
|
4
3
|
@objc(CapacitorCalendarPlugin)
|
|
5
4
|
public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
@@ -12,18 +11,18 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
12
11
|
do {
|
|
13
12
|
let input = try CheckPermissionInput(call: call)
|
|
14
13
|
let result = try implementation.checkPermission(input: input)
|
|
15
|
-
call
|
|
14
|
+
resolveCall(call, result)
|
|
16
15
|
} catch let error {
|
|
17
|
-
call
|
|
16
|
+
rejectCall(call, error)
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
@objc public func checkAllPermissions(_ call: CAPPluginCall) {
|
|
22
21
|
do {
|
|
23
22
|
let result = try implementation.checkAllPermissions()
|
|
24
|
-
call
|
|
23
|
+
resolveCall(call, result)
|
|
25
24
|
} catch let error {
|
|
26
|
-
call
|
|
25
|
+
rejectCall(call, error)
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
|
|
@@ -32,9 +31,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
32
31
|
do {
|
|
33
32
|
let input = try RequestPermissionInput(call: call)
|
|
34
33
|
let result = try await implementation.requestionPermission(input: input)
|
|
35
|
-
call
|
|
34
|
+
resolveCall(call, result)
|
|
36
35
|
} catch let error {
|
|
37
|
-
call
|
|
36
|
+
rejectCall(call, error)
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
}
|
|
@@ -43,9 +42,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
43
42
|
Task {
|
|
44
43
|
do {
|
|
45
44
|
let result = try await implementation.requestAllPermissions()
|
|
46
|
-
call
|
|
45
|
+
resolveCall(call, result)
|
|
47
46
|
} catch let error {
|
|
48
|
-
call
|
|
47
|
+
rejectCall(call, error)
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
}
|
|
@@ -54,9 +53,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
54
53
|
Task {
|
|
55
54
|
do {
|
|
56
55
|
let result = try await implementation.requestWriteOnlyCalendarAccess()
|
|
57
|
-
call
|
|
56
|
+
resolveCall(call, result)
|
|
58
57
|
} catch let error {
|
|
59
|
-
call
|
|
58
|
+
rejectCall(call, error)
|
|
60
59
|
}
|
|
61
60
|
}
|
|
62
61
|
}
|
|
@@ -69,9 +68,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
69
68
|
Task {
|
|
70
69
|
do {
|
|
71
70
|
let result = try await implementation.requestFullCalendarAccess()
|
|
72
|
-
call
|
|
71
|
+
resolveCall(call, result)
|
|
73
72
|
} catch let error {
|
|
74
|
-
call
|
|
73
|
+
rejectCall(call, error)
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
76
|
}
|
|
@@ -80,9 +79,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
80
79
|
Task {
|
|
81
80
|
do {
|
|
82
81
|
let result = try await implementation.requestFullRemindersAccess()
|
|
83
|
-
call
|
|
82
|
+
resolveCall(call, result)
|
|
84
83
|
} catch let error {
|
|
85
|
-
call
|
|
84
|
+
rejectCall(call, error)
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
}
|
|
@@ -92,9 +91,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
92
91
|
do {
|
|
93
92
|
let input = CreateEventWithPromptInput(call: call)
|
|
94
93
|
let result = try await implementation.createEventWithPrompt(with: input)
|
|
95
|
-
call
|
|
94
|
+
resolveCall(call, result)
|
|
96
95
|
} catch let error {
|
|
97
|
-
call
|
|
96
|
+
rejectCall(call, error)
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
99
|
}
|
|
@@ -104,9 +103,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
104
103
|
do {
|
|
105
104
|
let input = try ModifyEventWithPromptInput(call: call)
|
|
106
105
|
let result = try await implementation.modifyEventWithPrompt(input: input)
|
|
107
|
-
call
|
|
106
|
+
resolveCall(call, result)
|
|
108
107
|
} catch let error {
|
|
109
|
-
call
|
|
108
|
+
rejectCall(call, error)
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
111
|
}
|
|
@@ -115,18 +114,18 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
115
114
|
do {
|
|
116
115
|
let input = try CreateEventInput(call: call)
|
|
117
116
|
let result = try implementation.createEvent(input: input)
|
|
118
|
-
call
|
|
117
|
+
resolveCall(call, result)
|
|
119
118
|
} catch let error {
|
|
120
|
-
call
|
|
119
|
+
rejectCall(call, error)
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
@objc public func commit(_ call: CAPPluginCall) {
|
|
125
124
|
do {
|
|
126
125
|
try implementation.commit()
|
|
127
|
-
call
|
|
126
|
+
resolveCall(call)
|
|
128
127
|
} catch let error {
|
|
129
|
-
call
|
|
128
|
+
rejectCall(call, error)
|
|
130
129
|
}
|
|
131
130
|
}
|
|
132
131
|
|
|
@@ -134,9 +133,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
134
133
|
do {
|
|
135
134
|
let input: ModifyEventInput = try ModifyEventInput(call: call)
|
|
136
135
|
try implementation.modifyEvent(input: input)
|
|
137
|
-
call
|
|
136
|
+
resolveCall(call)
|
|
138
137
|
} catch let error {
|
|
139
|
-
call
|
|
138
|
+
rejectCall(call, error)
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
|
|
@@ -145,26 +144,26 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
145
144
|
do {
|
|
146
145
|
let input = SelectCalendarsWithPromptInput(call: call)
|
|
147
146
|
let result = try await implementation.selectCalendarsWithPrompt(input: input)
|
|
148
|
-
call
|
|
147
|
+
resolveCall(call, result)
|
|
149
148
|
} catch let error {
|
|
150
|
-
call
|
|
149
|
+
rejectCall(call, error)
|
|
151
150
|
}
|
|
152
151
|
}
|
|
153
152
|
}
|
|
154
153
|
|
|
155
154
|
@objc public func fetchAllCalendarSources(_ call: CAPPluginCall) {
|
|
156
155
|
do {
|
|
157
|
-
call
|
|
156
|
+
resolveCall(call, try implementation.fetchAllCalendarSources())
|
|
158
157
|
} catch let error {
|
|
159
|
-
call
|
|
158
|
+
rejectCall(call, error)
|
|
160
159
|
}
|
|
161
160
|
}
|
|
162
161
|
|
|
163
162
|
@objc public func listCalendars(_ call: CAPPluginCall) {
|
|
164
163
|
do {
|
|
165
|
-
call
|
|
164
|
+
resolveCall(call, try implementation.listCalendars())
|
|
166
165
|
} catch let error {
|
|
167
|
-
call
|
|
166
|
+
rejectCall(call, error)
|
|
168
167
|
}
|
|
169
168
|
}
|
|
170
169
|
|
|
@@ -176,9 +175,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
176
175
|
Task {
|
|
177
176
|
do {
|
|
178
177
|
try await implementation.openReminders()
|
|
179
|
-
call
|
|
178
|
+
resolveCall(call)
|
|
180
179
|
} catch let error {
|
|
181
|
-
call
|
|
180
|
+
rejectCall(call, error)
|
|
182
181
|
}
|
|
183
182
|
}
|
|
184
183
|
}
|
|
@@ -186,27 +185,27 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
186
185
|
@objc public func getDefaultCalendar(_ call: CAPPluginCall) {
|
|
187
186
|
do {
|
|
188
187
|
let result = try implementation.getDefaultCalendar()
|
|
189
|
-
call
|
|
188
|
+
resolveCall(call, result)
|
|
190
189
|
} catch let error {
|
|
191
|
-
call
|
|
190
|
+
rejectCall(call, error)
|
|
192
191
|
}
|
|
193
192
|
}
|
|
194
193
|
|
|
195
194
|
@objc public func getDefaultRemindersList(_ call: CAPPluginCall) {
|
|
196
195
|
do {
|
|
197
196
|
let result = try implementation.getDefaultRemindersList()
|
|
198
|
-
call
|
|
197
|
+
resolveCall(call, result)
|
|
199
198
|
} catch let error {
|
|
200
|
-
call
|
|
199
|
+
rejectCall(call, error)
|
|
201
200
|
}
|
|
202
201
|
}
|
|
203
202
|
|
|
204
203
|
@objc public func getRemindersLists(_ call: CAPPluginCall) {
|
|
205
204
|
do {
|
|
206
205
|
let result = try implementation.getRemindersLists()
|
|
207
|
-
call
|
|
206
|
+
resolveCall(call, result)
|
|
208
207
|
} catch let error {
|
|
209
|
-
call
|
|
208
|
+
rejectCall(call, error)
|
|
210
209
|
}
|
|
211
210
|
}
|
|
212
211
|
|
|
@@ -215,9 +214,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
215
214
|
do {
|
|
216
215
|
let input = OpenCalendarInput(call: call)
|
|
217
216
|
try await implementation.openCalendar(input: input)
|
|
218
|
-
call
|
|
217
|
+
resolveCall(call)
|
|
219
218
|
} catch let error {
|
|
220
|
-
call
|
|
219
|
+
rejectCall(call, error)
|
|
221
220
|
}
|
|
222
221
|
}
|
|
223
222
|
}
|
|
@@ -226,9 +225,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
226
225
|
do {
|
|
227
226
|
let input = try CreateCalendarInput(call: call)
|
|
228
227
|
let result = try implementation.createCalendar(input: input)
|
|
229
|
-
call
|
|
228
|
+
resolveCall(call, result)
|
|
230
229
|
} catch let error {
|
|
231
|
-
call
|
|
230
|
+
rejectCall(call, error)
|
|
232
231
|
}
|
|
233
232
|
}
|
|
234
233
|
|
|
@@ -236,9 +235,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
236
235
|
do {
|
|
237
236
|
let input = try DeleteCalendarInput(call: call)
|
|
238
237
|
try implementation.deleteCalendar(input: input)
|
|
239
|
-
call
|
|
238
|
+
resolveCall(call)
|
|
240
239
|
} catch let error {
|
|
241
|
-
call
|
|
240
|
+
rejectCall(call, error)
|
|
242
241
|
}
|
|
243
242
|
}
|
|
244
243
|
|
|
@@ -246,9 +245,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
246
245
|
do {
|
|
247
246
|
let input = try CreateReminderInput(call: call)
|
|
248
247
|
let result = try implementation.createReminder(input: input)
|
|
249
|
-
call
|
|
248
|
+
resolveCall(call, result)
|
|
250
249
|
} catch let error {
|
|
251
|
-
call
|
|
250
|
+
rejectCall(call, error)
|
|
252
251
|
}
|
|
253
252
|
}
|
|
254
253
|
|
|
@@ -256,9 +255,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
256
255
|
do {
|
|
257
256
|
let input = try DeleteRemindersByIdInput(call: call)
|
|
258
257
|
let result = try implementation.deleteRemindersById(input)
|
|
259
|
-
call
|
|
258
|
+
resolveCall(call, result)
|
|
260
259
|
} catch let error {
|
|
261
|
-
call
|
|
260
|
+
rejectCall(call, error)
|
|
262
261
|
}
|
|
263
262
|
}
|
|
264
263
|
|
|
@@ -266,9 +265,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
266
265
|
do {
|
|
267
266
|
let input = try DeleteReminderInput(call: call)
|
|
268
267
|
try implementation.deleteReminder(input)
|
|
269
|
-
call
|
|
268
|
+
resolveCall(call)
|
|
270
269
|
} catch let error {
|
|
271
|
-
call
|
|
270
|
+
rejectCall(call, error)
|
|
272
271
|
}
|
|
273
272
|
}
|
|
274
273
|
|
|
@@ -276,9 +275,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
276
275
|
do {
|
|
277
276
|
let input = try ModifyReminderInput(call: call)
|
|
278
277
|
try implementation.modifyReminder(input)
|
|
279
|
-
call
|
|
278
|
+
resolveCall(call)
|
|
280
279
|
} catch let error {
|
|
281
|
-
call
|
|
280
|
+
rejectCall(call, error)
|
|
282
281
|
}
|
|
283
282
|
}
|
|
284
283
|
|
|
@@ -286,9 +285,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
286
285
|
do {
|
|
287
286
|
let input = try GetReminderByIdInput(call: call)
|
|
288
287
|
let result = try implementation.getReminderById(input)
|
|
289
|
-
call
|
|
288
|
+
resolveCall(call, result)
|
|
290
289
|
} catch let error {
|
|
291
|
-
call
|
|
290
|
+
rejectCall(call, error)
|
|
292
291
|
}
|
|
293
292
|
}
|
|
294
293
|
|
|
@@ -297,9 +296,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
297
296
|
do {
|
|
298
297
|
let input = try GetRemindersFromListsInput(call: call)
|
|
299
298
|
let result = try await implementation.getRemindersFromLists(input)
|
|
300
|
-
call
|
|
299
|
+
resolveCall(call, result)
|
|
301
300
|
} catch let error {
|
|
302
|
-
call
|
|
301
|
+
rejectCall(call, error)
|
|
303
302
|
}
|
|
304
303
|
}
|
|
305
304
|
}
|
|
@@ -308,9 +307,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
308
307
|
do {
|
|
309
308
|
let input = try DeleteEventsByIdInput(call: call)
|
|
310
309
|
let result = try implementation.deleteEventsById(input)
|
|
311
|
-
call
|
|
310
|
+
resolveCall(call, result)
|
|
312
311
|
} catch let error {
|
|
313
|
-
call
|
|
312
|
+
rejectCall(call, error)
|
|
314
313
|
}
|
|
315
314
|
}
|
|
316
315
|
|
|
@@ -318,9 +317,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
318
317
|
do {
|
|
319
318
|
let input = try DeleteEventInput(call: call)
|
|
320
319
|
try implementation.deleteEvent(input)
|
|
321
|
-
call
|
|
320
|
+
resolveCall(call)
|
|
322
321
|
} catch let error {
|
|
323
|
-
call
|
|
322
|
+
rejectCall(call, error)
|
|
324
323
|
}
|
|
325
324
|
}
|
|
326
325
|
|
|
@@ -329,9 +328,9 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
329
328
|
do {
|
|
330
329
|
let input = try DeleteEventWithPromptInput(call: call)
|
|
331
330
|
let result = try await implementation.deleteEventWithPrompt(input)
|
|
332
|
-
call
|
|
331
|
+
resolveCall(call, result)
|
|
333
332
|
} catch let error {
|
|
334
|
-
call
|
|
333
|
+
rejectCall(call, error)
|
|
335
334
|
}
|
|
336
335
|
}
|
|
337
336
|
}
|
|
@@ -340,9 +339,55 @@ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
340
339
|
do {
|
|
341
340
|
let input = try ListEventsInRangeInput(call: call)
|
|
342
341
|
let result = try implementation.listEventsInRange(input)
|
|
343
|
-
call
|
|
342
|
+
resolveCall(call, result)
|
|
344
343
|
} catch let error {
|
|
345
|
-
call
|
|
344
|
+
rejectCall(call, error)
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@objc public func modifyCalendar(_ call: CAPPluginCall) {
|
|
349
|
+
do {
|
|
350
|
+
let input = try ModifyCalendarInput(call: call)
|
|
351
|
+
try implementation.modifyCalendar(input)
|
|
352
|
+
resolveCall(call)
|
|
353
|
+
} catch let error {
|
|
354
|
+
rejectCall(call, error)
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
@objc public func deleteReminderWithPrompt(_ call: CAPPluginCall) {
|
|
359
|
+
do {
|
|
360
|
+
let input = try DeleteReminderWithPromptInput(call: call)
|
|
361
|
+
try implementation.deleteReminderWithPrompt(input) { result in
|
|
362
|
+
switch result {
|
|
363
|
+
case .success(let result):
|
|
364
|
+
self.resolveCall(call, result)
|
|
365
|
+
case .failure(let error):
|
|
366
|
+
self.rejectCall(call, error)
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
} catch let error {
|
|
370
|
+
rejectCall(call, error)
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
private func rejectCall(_ call: CAPPluginCall, _ error: Error?) {
|
|
375
|
+
if let msg = error?.localizedDescription {
|
|
376
|
+
call.reject(msg)
|
|
377
|
+
} else {
|
|
378
|
+
call.reject(PluginError.customError("An unknown error has occured.").localizedDescription)
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
private func resolveCall(_ call: CAPPluginCall) {
|
|
383
|
+
resolveCall(call, nil)
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
private func resolveCall(_ call: CAPPluginCall, _ result: JSResult?) {
|
|
387
|
+
if let result {
|
|
388
|
+
call.resolve(result.toJSON())
|
|
389
|
+
} else {
|
|
390
|
+
call.resolve()
|
|
346
391
|
}
|
|
347
392
|
}
|
|
348
393
|
}
|
package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Implementation/CapacitorCalendar.swift
RENAMED
|
@@ -3,12 +3,12 @@ import Combine
|
|
|
3
3
|
import EventKitUI
|
|
4
4
|
import Capacitor
|
|
5
5
|
|
|
6
|
-
class CapacitorCalendar: NSObject
|
|
7
|
-
private
|
|
6
|
+
class CapacitorCalendar: NSObject {
|
|
7
|
+
private var createEventWithPromptContinuation: CheckedContinuation<CreateEventWithPromptResult, Error>?
|
|
8
8
|
private let eventStore = EKEventStore()
|
|
9
|
-
private
|
|
10
|
-
private let
|
|
11
|
-
private
|
|
9
|
+
private var modifyEventWithPromptContinuation: CheckedContinuation<ModifyEventWithPromptResult, Error>?
|
|
10
|
+
private let plugin: CapacitorCalendarPlugin
|
|
11
|
+
private var selectCalendarsWithPromptContinuation: CheckedContinuation<SelectCalendarsWithPromptResult, Error>?
|
|
12
12
|
|
|
13
13
|
init(plugin: CapacitorCalendarPlugin) {
|
|
14
14
|
self.plugin = plugin
|
|
@@ -107,6 +107,8 @@ class CapacitorCalendar: NSObject, EKEventEditViewDelegate, EKCalendarChooserDel
|
|
|
107
107
|
event.endDate = input.getEndDate()
|
|
108
108
|
event.url = input.getUrl()
|
|
109
109
|
event.notes = input.getDescription()
|
|
110
|
+
event.recurrenceRules = input.getRecurrenceRule()
|
|
111
|
+
|
|
110
112
|
if let availability = input.getAvailability() {
|
|
111
113
|
event.availability = availability
|
|
112
114
|
}
|
|
@@ -121,7 +123,7 @@ class CapacitorCalendar: NSObject, EKEventEditViewDelegate, EKCalendarChooserDel
|
|
|
121
123
|
eventEditViewController.eventStore = eventStore
|
|
122
124
|
eventEditViewController.editViewDelegate = self
|
|
123
125
|
viewController.present(eventEditViewController, animated: true) {
|
|
124
|
-
self.
|
|
126
|
+
self.createEventWithPromptContinuation = continuation
|
|
125
127
|
}
|
|
126
128
|
}
|
|
127
129
|
}
|
|
@@ -169,7 +171,7 @@ class CapacitorCalendar: NSObject, EKEventEditViewDelegate, EKCalendarChooserDel
|
|
|
169
171
|
eventEditViewController.eventStore = eventStore
|
|
170
172
|
eventEditViewController.editViewDelegate = self
|
|
171
173
|
viewController.present(eventEditViewController, animated: true) {
|
|
172
|
-
self.
|
|
174
|
+
self.modifyEventWithPromptContinuation = continuation
|
|
173
175
|
}
|
|
174
176
|
}
|
|
175
177
|
}
|
|
@@ -186,6 +188,8 @@ class CapacitorCalendar: NSObject, EKEventEditViewDelegate, EKCalendarChooserDel
|
|
|
186
188
|
event.endDate = input.getEndDate()
|
|
187
189
|
event.url = input.getUrl()
|
|
188
190
|
event.notes = input.getDescription()
|
|
191
|
+
event.recurrenceRules = input.getRecurrenceRule()
|
|
192
|
+
|
|
189
193
|
if let availability = input.getAvailability() {
|
|
190
194
|
event.availability = availability
|
|
191
195
|
}
|
|
@@ -229,6 +233,8 @@ class CapacitorCalendar: NSObject, EKEventEditViewDelegate, EKCalendarChooserDel
|
|
|
229
233
|
if let alerts = input.getAlerts() {
|
|
230
234
|
event.alarms = alerts
|
|
231
235
|
}
|
|
236
|
+
event.recurrenceRules = input.getRecurrenceRule()
|
|
237
|
+
|
|
232
238
|
try eventStore.save(event, span: input.getSpan())
|
|
233
239
|
}
|
|
234
240
|
|
|
@@ -248,7 +254,7 @@ class CapacitorCalendar: NSObject, EKEventEditViewDelegate, EKCalendarChooserDel
|
|
|
248
254
|
calendarChooser.delegate = self
|
|
249
255
|
|
|
250
256
|
viewController.present(UINavigationController(rootViewController: calendarChooser), animated: true) {
|
|
251
|
-
self.
|
|
257
|
+
self.selectCalendarsWithPromptContinuation = continuation
|
|
252
258
|
}
|
|
253
259
|
}
|
|
254
260
|
}
|
|
@@ -486,69 +492,87 @@ class CapacitorCalendar: NSObject, EKEventEditViewDelegate, EKCalendarChooserDel
|
|
|
486
492
|
return ListEventsInRangeResult(events)
|
|
487
493
|
}
|
|
488
494
|
|
|
489
|
-
func
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
guard let promise = promise else {
|
|
493
|
-
return
|
|
494
|
-
}
|
|
495
|
-
switch action {
|
|
496
|
-
case .saved:
|
|
497
|
-
promise.resume(returning: CreateEventWithPromptResult(id: controller.event?.eventIdentifier))
|
|
498
|
-
case .canceled, .cancelled, .deleted:
|
|
499
|
-
promise.resume(returning: CreateEventWithPromptResult(id: nil))
|
|
500
|
-
@unknown default:
|
|
501
|
-
promise.resume(throwing: PluginError.processFailed)
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
controller.dismiss(animated: true) {
|
|
505
|
-
createEventWithPromptCancellable?.cancel()
|
|
506
|
-
}
|
|
495
|
+
func modifyCalendar(_ input: ModifyCalendarInput) throws {
|
|
496
|
+
guard let calendar = eventStore.calendar(withIdentifier: input.getId()) else {
|
|
497
|
+
throw PluginError.calendarNotFound
|
|
507
498
|
}
|
|
499
|
+
if let title = input.getTitle() {
|
|
500
|
+
calendar.title = title
|
|
501
|
+
}
|
|
502
|
+
if let color = input.getColor() {
|
|
503
|
+
calendar.cgColor = color
|
|
504
|
+
}
|
|
505
|
+
try eventStore.saveCalendar(calendar, commit: true)
|
|
506
|
+
}
|
|
508
507
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
promise.resume(returning: try ModifyEventWithPromptResult(action: action))
|
|
517
|
-
} catch let error {
|
|
518
|
-
promise.resume(throwing: error)
|
|
519
|
-
}
|
|
508
|
+
func deleteReminderWithPrompt(_ input: DeleteReminderWithPromptInput, completion: @escaping (Result<DeleteEventWithPromptResult, Error>) -> Void) throws {
|
|
509
|
+
guard let viewController = plugin.bridge?.viewController else {
|
|
510
|
+
throw PluginError.viewControllerMissing
|
|
511
|
+
}
|
|
512
|
+
guard let _ = eventStore.calendarItem(withIdentifier: input.getId()) as? EKReminder else {
|
|
513
|
+
throw PluginError.reminderNotFound
|
|
514
|
+
}
|
|
520
515
|
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
516
|
+
Task { @MainActor in
|
|
517
|
+
let alert = UIAlertController(
|
|
518
|
+
title: input.getTitle(),
|
|
519
|
+
message: input.getMessage(),
|
|
520
|
+
preferredStyle: .alert
|
|
521
|
+
)
|
|
522
|
+
alert.addAction(UIAlertAction(title: input.getCancelButtonText(), style: .cancel, handler: { _ in
|
|
523
|
+
completion(.success(DeleteEventWithPromptResult(deleted: false)))
|
|
524
|
+
}))
|
|
525
|
+
alert.addAction(UIAlertAction(title: input.getConfirmButtonText(), style: .destructive, handler: { _ in
|
|
526
|
+
do {
|
|
527
|
+
try ImplementationHelper.deleteReminder(reminderId: input.getId(), eventStore: self.eventStore)
|
|
528
|
+
completion(.success(DeleteEventWithPromptResult(deleted: true)))
|
|
529
|
+
} catch let error {
|
|
530
|
+
completion(.failure(error))
|
|
531
|
+
}
|
|
532
|
+
}))
|
|
533
|
+
viewController.present(alert, animated: true)
|
|
524
534
|
}
|
|
525
535
|
}
|
|
536
|
+
}
|
|
526
537
|
|
|
538
|
+
extension CapacitorCalendar: EKCalendarChooserDelegate {
|
|
527
539
|
func calendarChooserDidFinish(_ calendarChooser: EKCalendarChooser) {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
return
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
promise.resume(returning: SelectCalendarsWithPromptResult(calendarChooser.selectedCalendars))
|
|
535
|
-
self.plugin.bridge?.viewController?.dismiss(animated: true) {
|
|
536
|
-
selectCalendarsWithPromptCancellable?.cancel()
|
|
537
|
-
}
|
|
540
|
+
selectCalendarsWithPromptContinuation?.resume(returning: SelectCalendarsWithPromptResult(calendarChooser.selectedCalendars))
|
|
541
|
+
self.plugin.bridge?.viewController?.dismiss(animated: true) {
|
|
542
|
+
self.selectCalendarsWithPromptContinuation = nil
|
|
538
543
|
}
|
|
539
544
|
}
|
|
540
545
|
|
|
541
546
|
func calendarChooserDidCancel(_ calendarChooser: EKCalendarChooser) {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
+
selectCalendarsWithPromptContinuation?.resume(returning: SelectCalendarsWithPromptResult(calendarChooser.selectedCalendars))
|
|
548
|
+
self.plugin.bridge?.viewController?.dismiss(animated: true) {
|
|
549
|
+
self.selectCalendarsWithPromptContinuation = nil
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
547
553
|
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
554
|
+
extension CapacitorCalendar: EKEventEditViewDelegate {
|
|
555
|
+
func eventEditViewController(_ controller: EKEventEditViewController, didCompleteWith action: EKEventEditViewAction) {
|
|
556
|
+
let identifier = controller.event?.eventIdentifier
|
|
557
|
+
|
|
558
|
+
switch action {
|
|
559
|
+
case .saved:
|
|
560
|
+
createEventWithPromptContinuation?.resume(returning: CreateEventWithPromptResult(id: identifier))
|
|
561
|
+
case .canceled, .cancelled, .deleted:
|
|
562
|
+
createEventWithPromptContinuation?.resume(returning: CreateEventWithPromptResult(id: identifier))
|
|
563
|
+
@unknown default:
|
|
564
|
+
createEventWithPromptContinuation?.resume(throwing: PluginError.processFailed)
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
do {
|
|
568
|
+
modifyEventWithPromptContinuation?.resume(returning: try ModifyEventWithPromptResult(action: action))
|
|
569
|
+
} catch let error {
|
|
570
|
+
modifyEventWithPromptContinuation?.resume(throwing: error)
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
controller.dismiss(animated: true) {
|
|
574
|
+
self.createEventWithPromptContinuation = nil
|
|
575
|
+
self.modifyEventWithPromptContinuation = nil
|
|
552
576
|
}
|
|
553
577
|
}
|
|
554
578
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundleName</key>
|
|
14
|
+
<string>$(PRODUCT_NAME)</string>
|
|
15
|
+
<key>CFBundlePackageType</key>
|
|
16
|
+
<string>FMWK</string>
|
|
17
|
+
<key>CFBundleShortVersionString</key>
|
|
18
|
+
<string>1.0</string>
|
|
19
|
+
<key>CFBundleVersion</key>
|
|
20
|
+
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
21
|
+
<key>NSPrincipalClass</key>
|
|
22
|
+
<string></string>
|
|
23
|
+
</dict>
|
|
24
|
+
</plist>
|