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/src/native.ts b/src/native.ts
index c20bdad..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,4 +85,13 @@ if (isNativeApp()) {
if (parsed.protocol !== 'dev.eom.wikideck:') return;
if (deepLinkHandlers.size) deepLinkHandlers.forEach(h => h(parsed)); else pendingDeepLink = parsed;
});
+ // 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 auth.then(({ isCallback, completeLogin }) => {
+ if (isCallback(url.href)) return completeLogin(url.href);
+ }).catch(error => console.warn('[native] SSO callback failed', error));
+ });
}