ReviewOS

also looking at this

craft-native/craft

feat(android): deleteCalendarEvent — the first action to answer through the channel

#155
Merged glennmichael123 wants to merge feat/android-delete-calendar-event into main
7 files +288 -3
packages/android/templates/CraftBridge.kt.templatemodified+4-0
Changes to packages/android/templates/CraftBridge.kt.template
@@ -2350,6 +2350,10 @@ class CraftBridge(
23502350
23512351 @JavascriptInterface
23522352 fun deleteCalendarEvent(eventId: String) {
2353 // Zig answers through the reply channel, so returning here is what
2354 // stops the promise being settled twice.
2355 if (CraftNative.deleteCalendarEvent(activity, eventId)) return
2356
23532357 try {
23542358 val uri = ContentUris.withAppendedId(CalendarContract.Events.CONTENT_URI, eventId.toLong())
23552359 activity.contentResolver.delete(uri, null, null)