Skip to content

Commit c2e546d

Browse files
CopilotBunsDev
andauthored
Update Capacitor local-notifications patch for Capacitor v8 Swift API (#475)
* Initial plan * fix: update capacitor local notifications patch for capacitor v8 api Agent-Logs-Url: https://github.com/OpenKnots/okcode/sessions/0fabe1f2-4dc4-4581-93e4-d639c0c36ba5 Co-authored-by: BunsDev <68980965+BunsDev@users.noreply.github.com> * merge main into PR branch Agent-Logs-Url: https://github.com/OpenKnots/okcode/sessions/c09e6a8c-001f-4ada-a5f7-e3b0018da8f4 Co-authored-by: BunsDev <68980965+BunsDev@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: BunsDev <68980965+BunsDev@users.noreply.github.com>
1 parent 1e2a0f8 commit c2e546d

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

apps/web/src/components/pr-review/pr-review-utils.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import { normalizeLanguageIdForHighlighting } from "~/lib/languageIds";
2121

2222
export { parseRenderablePatch, resolveFileDiffPath, summarizeFileDiffStats };
2323

24+
export { parseRenderablePatch, resolveFileDiffPath, summarizeFileDiffStats };
25+
2426
export type PullRequestState = "open" | "closed" | "merged";
2527
export type InspectorTab = "threads" | "workflow" | "people";
2628
export type RequestChangesButtonVariant = "default" | "destructive-outline" | "outline";

scripts/patch-capacitor-local-notifications.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const REPLACEMENTS: ReadonlyArray<[string, string]> = [
2121
].join(""),
2222
[
2323
' guard call.getValue("notifications") != nil else {\n',
24-
' call.reject("Must provide notifications array as notifications option")\n',
24+
' call.error("Must provide notifications array as notifications option")\n',
2525
" return\n",
2626
" }\n",
2727
' let notifications = call.getArray("notifications", []).compactMap({ $0 as? JSObject })\n',
@@ -36,12 +36,12 @@ const REPLACEMENTS: ReadonlyArray<[string, string]> = [
3636
].join(""),
3737
[
3838
' guard call.getValue("notifications") != nil else {\n',
39-
' call.reject("Must supply notifications to cancel")\n',
39+
' call.error("Must supply notifications to cancel")\n',
4040
" return\n",
4141
" }\n",
4242
' let notifications = call.getArray("notifications", []).compactMap({ $0 as? JSObject })\n',
4343
" guard notifications.count > 0 else {\n",
44-
' call.reject("Must supply notifications to cancel")\n',
44+
' call.error("Must supply notifications to cancel")\n',
4545
" return\n",
4646
" }\n",
4747
].join(""),
@@ -55,12 +55,12 @@ const REPLACEMENTS: ReadonlyArray<[string, string]> = [
5555
].join(""),
5656
[
5757
' guard call.getValue("notifications") != nil else {\n',
58-
' call.reject("Must supply notifications to remove")\n',
58+
' call.error("Must supply notifications to remove")\n',
5959
" return\n",
6060
" }\n",
6161
' let notifications = call.getArray("notifications", []).compactMap({ $0 as? JSObject })\n',
6262
" guard notifications.count > 0 else {\n",
63-
' call.reject("Must supply notifications to remove")\n',
63+
' call.error("Must supply notifications to remove")\n',
6464
" return\n",
6565
" }\n",
6666
].join(""),

0 commit comments

Comments
 (0)