From 44d1ee4b383de654904eacbd2b6cd4934bc82e62 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 00:06:27 -0500 Subject: [PATCH 1/3] Android: SSO deep link completes eom.dev login; dark window behind system bars Co-Authored-By: Claude Opus 5.5 --- android/app/src/main/res/values/colors.xml | 8 +++++ android/app/src/main/res/values/styles.xml | 3 ++ package-lock.json | 42 ---------------------- src/native.ts | 6 ++++ 4 files changed, 17 insertions(+), 42 deletions(-) create mode 100644 android/app/src/main/res/values/colors.xml diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..7ec7cd9 --- /dev/null +++ b/android/app/src/main/res/values/colors.xml @@ -0,0 +1,8 @@ + + + #1e1e2e + #11111b + #cba6f7 + + #11111b + diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index be874e5..627ab80 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -13,6 +13,9 @@ false true @null + + @color/wikideckChrome + false diff --git a/package-lock.json b/package-lock.json index 302991e..633e51e 100755 --- a/package-lock.json +++ b/package-lock.json @@ -1076,9 +1076,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1187,9 +1184,6 @@ "arm" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1204,9 +1198,6 @@ "arm" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1221,9 +1212,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1238,9 +1226,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1255,9 +1240,6 @@ "loong64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1272,9 +1254,6 @@ "loong64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1289,9 +1268,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1306,9 +1282,6 @@ "ppc64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1323,9 +1296,6 @@ "riscv64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1340,9 +1310,6 @@ "riscv64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1357,9 +1324,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1374,9 +1338,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1391,9 +1352,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ diff --git a/src/native.ts b/src/native.ts index c20bdad..8442992 100644 --- a/src/native.ts +++ b/src/native.ts @@ -84,4 +84,10 @@ if (isNativeApp()) { if (parsed.protocol !== 'dev.eom.wikideck:') return; if (deepLinkHandlers.size) deepLinkHandlers.forEach(h => h(parsed)); else pendingDeepLink = parsed; }); + // eom.dev SSO return path (src/auth, sso team): finish the PKCE login when Dex redirects back. + onDeepLink(url => { + void import('./auth/session.ts').then(({ isCallback, completeLogin }) => { + if (isCallback(url.href)) return completeLogin(url.href); + }).catch(error => console.warn('[native] SSO callback failed', error)); + }); } -- 2.54.0 From 413f7ea83cf6a3560da1182a9b4b3b3a7fda0c98 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 00:25:32 -0500 Subject: [PATCH 2/3] Restore package-lock.json (drop accidental npm 9 libc churn) Co-Authored-By: Claude Opus 5.5 --- package-lock.json | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/package-lock.json b/package-lock.json index 633e51e..302991e 100755 --- a/package-lock.json +++ b/package-lock.json @@ -1076,6 +1076,9 @@ "x64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1184,6 +1187,9 @@ "arm" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1198,6 +1204,9 @@ "arm" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -1212,6 +1221,9 @@ "arm64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1226,6 +1238,9 @@ "arm64" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -1240,6 +1255,9 @@ "loong64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1254,6 +1272,9 @@ "loong64" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -1268,6 +1289,9 @@ "ppc64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1282,6 +1306,9 @@ "ppc64" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -1296,6 +1323,9 @@ "riscv64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1310,6 +1340,9 @@ "riscv64" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -1324,6 +1357,9 @@ "s390x" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1338,6 +1374,9 @@ "x64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1352,6 +1391,9 @@ "x64" ], "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ -- 2.54.0 From 41ba669015f380e5f4ee2e87b6d3c54a96c0f67f Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 00:26:20 -0500 Subject: [PATCH 3/3] Android: register @capacitor/browser with src/auth (setNativeBrowser, #37) Co-Authored-By: Claude Opus 5.5 --- src/native.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/native.ts b/src/native.ts index 8442992..d46c2bd 100644 --- a/src/native.ts +++ b/src/native.ts @@ -2,6 +2,7 @@ // On the web it does nothing: relative `/api/...` requests keep going to the serving origin. import { Capacitor } from '@capacitor/core'; import { App } from '@capacitor/app'; +import { Browser } from '@capacitor/browser'; import './native.css'; /** True inside the Android/iOS app shell. Use it to hide desktop-only features such as RandomX mining. */ @@ -84,9 +85,12 @@ if (isNativeApp()) { if (parsed.protocol !== 'dev.eom.wikideck:') return; if (deepLinkHandlers.size) deepLinkHandlers.forEach(h => h(parsed)); else pendingDeepLink = parsed; }); - // eom.dev SSO return path (src/auth, sso team): finish the PKCE login when Dex redirects back. + // eom.dev SSO (src/auth, sso team). Imported lazily so this module still runs before anything else. + // Login opens Dex in the system browser (Custom Tab); the redirect comes back as a deep link. + const auth = import('./auth/session.ts'); + void auth.then(({ setNativeBrowser }) => setNativeBrowser(Browser)); onDeepLink(url => { - void import('./auth/session.ts').then(({ isCallback, completeLogin }) => { + void auth.then(({ isCallback, completeLogin }) => { if (isCallback(url.href)) return completeLogin(url.href); }).catch(error => console.warn('[native] SSO callback failed', error)); }); -- 2.54.0