Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

The Linedesk app for iOS and Android: Capacitor shell, sign-in through the system browser, no buying inside (PR 1997)

Tim Gutberlet08b40b2accb5
diff --git a/.env.example b/.env.example
index ee68906c..85f6d6c6 100644
--- a/.env.example
+++ b/.env.example
@@ -241,6 +241,13 @@ SETUP_FEEDBACK_URL=
# Docker's private ranges (only Caddy and the agent reach the API there). Development: 127.0.0.1 (the Vite proxy).
TRUSTED_PROXIES=127.0.0.1
+# Your own iOS / Android app of this install (apps/mobile, built for your server): links to the start page open it
+# (apps/api/src/app-links.ts). Empty: no app, both files answer 404.
+# iOS: <team ID>.<bundle ID>, comma-separated.
+#MOBILE_IOS_APP_IDS=ABCDE12345.com.example.app
+# Android: <package>|<SHA-256 fingerprint of a signing key>[|<another>] (upload key and Google Play's app signing key).
+#MOBILE_ANDROID_APP=com.example.app|AB:CD:...
+
# Self-hosting with `docker compose up` (see docs/self-hosting.md): `scripts/setup.sh [https://your.domain]` makes .env from this
# file with a random value for every secret (database, Electric, auth, SECRETS_KEY, agent token, LiveKit) and sets
# PUBLIC_URL. The containers read this file; compose replaces the
diff --git a/apps/api/src/app-links.test.ts b/apps/api/src/app-links.test.ts
new file mode 100644
index 00000000..7fa604f5
--- /dev/null
+++ b/apps/api/src/app-links.test.ts
@@ -0,0 +1,35 @@
+import { describe, expect, it } from 'vitest'
+import { androidAssetLinks, appleAppSiteAssociation } from './app-links.ts'
+
+const print = Array.from({ length: 32 }, () => 'AB').join(':')
+
+describe('appleAppSiteAssociation', () => {
+ it('is off without an app', () => {
+ expect(appleAppSiteAssociation({})).toBeNull()
+ expect(appleAppSiteAssociation({ MOBILE_IOS_APP_IDS: 'not-an-app-id' })).toBeNull()
+ })
+
+ it("opens only the start page in the app, and offers the domain's passkeys to it", () => {
+ const file = appleAppSiteAssociation({ MOBILE_IOS_APP_IDS: 'ABCDE12345.com.example.app' })!
+ expect(file.applinks.details[0]!.appIDs).toEqual(['ABCDE12345.com.example.app'])
+ expect(file.applinks.details[0]!.components).toEqual([{ '/': '/' }, { '/': '/app-sign-in/back' }])
+ expect(file.webcredentials.apps).toEqual(['ABCDE12345.com.example.app'])
+ })
+})
+
+describe('androidAssetLinks', () => {
+ it('is off without a package and a valid fingerprint', () => {
+ expect(androidAssetLinks({})).toBeNull()
+ expect(androidAssetLinks({ MOBILE_ANDROID_APP: 'com.example.app' })).toBeNull()
+ expect(androidAssetLinks({ MOBILE_ANDROID_APP: 'com.example.app|nope' })).toBeNull()
+ })
+
+ it('lists the package with its fingerprints', () => {
+ const [entry] = androidAssetLinks({ MOBILE_ANDROID_APP: `com.example.app|${print.toLowerCase()}` })!
+ expect(entry!.target).toEqual({
+ namespace: 'android_app',
+ package_name: 'com.example.app',
+ sha256_cert_fingerprints: [print],
+ })
+ })
+})
diff --git a/apps/api/src/app-links.ts b/apps/api/src/app-links.ts
new file mode 100644
index 00000000..9af1fb99
--- /dev/null
+++ b/apps/api/src/app-links.ts
@@ -0,0 +1,66 @@
+// The files that let links to this install open its iOS and Android app (apps/mobile) instead of the browser: Apple's
+// apple-app-site-association (universal links, and the app's passkeys for this domain) and Android's assetlinks.json
+// (app links). The start page (`/`, where every email link points: `/#call/…`, `/?invite=…`) and the sign-in hand-back
+// (`/app-sign-in/back`, apps/api/src/app-sign-in.ts: only the real app may receive its code) open the app; the API,
+// the sign-in pages (`/app-sign-in`, provider callbacks) and Stripe's return stay in the browser.
+// Off (404) until the install names its app: Linedesk Cloud sets MOBILE_IOS_APP_IDS (team ID and bundle ID) and
+// MOBILE_ANDROID_APP (package and the SHA-256 fingerprints of its signing keys); a self-hosted install has no app.
+import type { Hono } from 'hono'
+
+type Env = Record<string, string | undefined>
+
+const list = (value: string | undefined) =>
+ (value ?? '')
+ .split(',')
+ .map(v => v.trim())
+ .filter(Boolean)
+
+/** `GSQ3VDC7Y2.ai.linedesk.app`: a team ID, a dot, a bundle ID. */
+const IOS_APP_ID = /^[A-Z0-9]{10}\.[A-Za-z0-9.-]+$/
+/** `ai.linedesk.app:AB:CD:…` (32 bytes of hex pairs), one or more fingerprints after the package. */
+const ANDROID_PACKAGE = /^[A-Za-z][A-Za-z0-9_]*(\.[A-Za-z][A-Za-z0-9_]*)+$/
+const FINGERPRINT = /^([0-9A-F]{2}:){31}[0-9A-F]{2}$/
+
+export function appleAppSiteAssociation(env: Env = process.env) {
+ const appIDs = list(env.MOBILE_IOS_APP_IDS).filter(id => IOS_APP_ID.test(id))
+ if (!appIDs.length) return null
+ return {
+ applinks: {
+ details: [
+ {
+ appIDs,
+ components: [{ '/': '/' }, { '/': '/app-sign-in/back' }],
+ },
+ ],
+ },
+ webcredentials: { apps: appIDs },
+ }
+}
+
+/** MOBILE_ANDROID_APP: `<package>|<fingerprint>[|<fingerprint>…]` (the upload key's and Google Play's signing key's). */
+export function androidAssetLinks(env: Env = process.env) {
+ const [pkg, ...prints] = (env.MOBILE_ANDROID_APP ?? '').split('|').map(v => v.trim())
+ const fingerprints = prints.map(p => p.toUpperCase()).filter(p => FINGERPRINT.test(p))
+ if (!pkg || !ANDROID_PACKAGE.test(pkg) || !fingerprints.length) return null
+ return [
+ {
+ relation: ['delegate_permission/common.handle_all_urls', 'delegate_permission/common.get_login_creds'],
+ target: { namespace: 'android_app', package_name: pkg, sha256_cert_fingerprints: fingerprints },
+ },
+ ]
+}
+
+export function registerAppLinkRoutes(app: Hono<any>) {
+ app.get('/.well-known/apple-app-site-association', c => {
+ const body = appleAppSiteAssociation()
+ if (!body) return c.notFound()
+ c.header('cache-control', 'public, max-age=3600')
+ return c.json(body)
+ })
+ app.get('/.well-known/assetlinks.json', c => {
+ const body = androidAssetLinks()
+ if (!body) return c.notFound()
+ c.header('cache-control', 'public, max-age=3600')
+ return c.json(body)
+ })
+}
diff --git a/apps/api/src/app-sign-in-pkce.ts b/apps/api/src/app-sign-in-pkce.ts
new file mode 100644
index 00000000..04f455ce
--- /dev/null
+++ b/apps/api/src/app-sign-in-pkce.ts
@@ -0,0 +1,23 @@
+// The checks of the app's sign-in hand-back (app-sign-in.ts) that need no database, so they can be tested alone.
+import { createHash } from 'node:crypto'
+
+/** SHA-256 in base64url: how a code is stored and how a challenge is made from its verifier (PKCE S256). */
+export const sha256 = (value: string) => createHash('sha256').update(value).digest('base64url')
+
+/** Whether a verifier belongs to the challenge the sign-in started with. */
+export const verifierFits = (verifier: string, challenge: string) => sha256(verifier) === challenge
+
+/** From the start to the confirmed sign-in: enough for a slow provider page (2FA). */
+export const START_TTL_S = 15 * 60
+
+/** What `/app-sign-in/start` keeps in the browser's signed cookie: the app's challenge and when (ms). */
+export type Start = { challenge: string; at: number }
+
+/**
+ * Whether the browser's session may be handed to the app: made by a sign-in after the start (the provider callback
+ * comes after it), within the start's lifetime. A session the browser had before never may.
+ */
+export function sessionFitsStart(sessionCreatedAt: Date, start: Start, now = Date.now()): boolean {
+ const created = sessionCreatedAt.getTime()
+ return created >= start.at && created <= now && now - start.at <= START_TTL_S * 1000
+}
diff --git a/apps/api/src/app-sign-in.test.ts b/apps/api/src/app-sign-in.test.ts
new file mode 100644
index 00000000..b0baf844
--- /dev/null
+++ b/apps/api/src/app-sign-in.test.ts
@@ -0,0 +1,33 @@
+import { createHash } from 'node:crypto'
+import { describe, expect, it } from 'vitest'
+
+// The PKCE check of the app's sign-in hand-back (app-sign-in.ts): the same S256 the web app computes (native/appSignIn.ts).
+const s256 = (verifier: string) => createHash('sha256').update(verifier).digest('base64url')
+
+import { START_TTL_S, sessionFitsStart, verifierFits } from './app-sign-in-pkce.ts'
+
+describe('verifierFits', () => {
+ const verifier = 'dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk'
+
+ it('accepts the verifier whose SHA-256 is the challenge', () => {
+ expect(verifierFits(verifier, s256(verifier))).toBe(true)
+ })
+
+ it('refuses any other verifier', () => {
+ expect(verifierFits(`${verifier.slice(0, -1)}A`, s256(verifier))).toBe(false)
+ })
+})
+
+describe('sessionFitsStart', () => {
+ const start = { challenge: 'c', at: 1_000_000 }
+
+ it('takes only a session made after the start (the provider sign-in of this flow)', () => {
+ expect(sessionFitsStart(new Date(1_000_500), start, 1_001_000)).toBe(true)
+ // The browser's session from before: never handed to the app.
+ expect(sessionFitsStart(new Date(999_999), start, 1_001_000)).toBe(false)
+ })
+
+ it('not after the start ran out', () => {
+ expect(sessionFitsStart(new Date(1_000_500), start, start.at + START_TTL_S * 1000 + 1)).toBe(false)
+ })
+})
diff --git a/apps/api/src/app-sign-in.ts b/apps/api/src/app-sign-in.ts
new file mode 100644
index 00000000..5bf236c8
--- /dev/null
+++ b/apps/api/src/app-sign-in.ts
@@ -0,0 +1,159 @@
+// Sign-in hand-back for the Linedesk app (iOS, Android; apps/mobile). Google refuses sign-ins in an app's web view and
+// Apple wants its own sheet, so in the app a provider sign-in runs in the system browser (ASWebAuthenticationSession,
+// Chrome Custom Tabs). That browser has its own cookies: its new session is not the app's. It is handed back like an
+// OAuth code with PKCE (RFC 7636), tied to a provider sign-in made in that same flow:
+// 1. The app makes a random verifier and opens `/app-sign-in?provider=…&challenge=<SHA-256 of it>` in the browser.
+// The page posts the challenge to `/app-sign-in/start`, which keeps it with the time in a signed, httpOnly cookie
+// of that browser (15 minutes), then goes to the provider.
+// 2. Back from the provider, the page asks the person to confirm ("Sign in to the Linedesk app as …?"); only then does
+// it ask `/app-sign-in/code`. A code is given only for a session the provider sign-in made after step 1's start
+// (an older session of that browser never counts), once per start: one use, 2 minutes, stored hashed with the user,
+// the challenge and the browser's session. The page sends it to the app on the server's own https address
+// (`/app-sign-in/back?code=…`), which only the real app can receive (universal link / verified app link, app-links.ts).
+// 3. The app's web view redeems it with the verifier (`/app-sign-in/redeem`): only the app that started the sign-in
+// knows the verifier. The browser's session must still exist (a password reset or "sign out everywhere" in between
+// ends the hand-back too) and is ended then; the web view's own older session too. The new session is made by
+// Better Auth's adapter, so every session hook runs (disabled accounts, the audit log with method `app`, the host).
+// Every endpoint checks the request's origin like Better Auth's own sign-in endpoints (formCsrfMiddleware), so another
+// site's form can neither start nor redeem (security review of #1997, H1, H2, L1, L2).
+import { randomBytes } from 'node:crypto'
+import { session as sessions, verification } from '@linedesk/db'
+import type { BetterAuthPlugin } from 'better-auth'
+import { APIError, createAuthEndpoint, formCsrfMiddleware, sessionMiddleware } from 'better-auth/api'
+import { setSessionCookie } from 'better-auth/cookies'
+import { and, eq, gt } from 'drizzle-orm'
+import { z } from 'zod'
+import { type Start, START_TTL_S, sessionFitsStart, sha256, verifierFits } from './app-sign-in-pkce.ts'
+import { db } from './db.ts'
+
+/** A code lasts 2 minutes: the app redeems it at once. */
+const CODE_TTL_MS = 2 * 60 * 1000
+const IDENTIFIER_PREFIX = 'app-sign-in:'
+const START_COOKIE = 'app_sign_in'
+
+export const APP_SIGN_IN_START_PATH = '/app-sign-in/start'
+export const APP_SIGN_IN_CODE_PATH = '/app-sign-in/code'
+export const APP_SIGN_IN_REDEEM_PATH = '/app-sign-in/redeem'
+
+/** 32 random bytes in base64url (43 characters), the form of a verifier, a challenge and a code. */
+const token43 = z.string().regex(/^[A-Za-z0-9_-]{43}$/)
+
+/** The verification row of a code: only its hash is stored. */
+const identifierOf = (code: string) => `${IDENTIFIER_PREFIX}${sha256(code)}`
+
+type Stored = { userId: string; challenge: string; browserSessionId: string }
+
+function readStart(value: string | null): Start | null {
+ if (!value) return null
+ try {
+ const start = JSON.parse(value) as Partial<Start>
+ return typeof start.challenge === 'string' && typeof start.at === 'number'
+ ? { challenge: start.challenge, at: start.at }
+ : null
+ } catch {
+ return null
+ }
+}
+
+/**
+ * Takes a code: deletes its row and returns what it held, in one statement, so two requests with the same code never
+ * both get it. Null for an unknown, used or expired code.
+ */
+async function takeCode(code: string, now = new Date()): Promise<Stored | null> {
+ const [row] = await db
+ .delete(verification)
+ .where(and(eq(verification.identifier, identifierOf(code)), gt(verification.expiresAt, now)))
+ .returning({ value: verification.value })
+ if (!row) return null
+ try {
+ const stored = JSON.parse(row.value) as Partial<Stored>
+ return typeof stored.userId === 'string' &&
+ typeof stored.challenge === 'string' &&
+ typeof stored.browserSessionId === 'string'
+ ? { userId: stored.userId, challenge: stored.challenge, browserSessionId: stored.browserSessionId }
+ : null
+ } catch {
+ return null
+ }
+}
+
+/**
+ * The browser's session the code came from, if it still exists (not signed out, reset or revoked since): its token,
+ * so it can be ended through Better Auth and its hooks.
+ */
+async function browserSessionToken(id: string, userId: string): Promise<string | null> {
+ const [row] = await db
+ .select({ token: sessions.token })
+ .from(sessions)
+ .where(and(eq(sessions.id, id), eq(sessions.userId, userId), gt(sessions.expiresAt, new Date())))
+ return row?.token ?? null
+}
+
+// i18n-ignore: never shown; the web app says it in the reader's words for the code (auth.redirect.appSignInRefused).
+const refused = () => new APIError('UNAUTHORIZED', { code: 'APP_SIGN_IN_REFUSED', message: 'Sign in again.' })
+
+export const appSignIn = () =>
+ ({
+ id: 'app-sign-in',
+ endpoints: {
+ appSignInStart: createAuthEndpoint(
+ APP_SIGN_IN_START_PATH,
+ { method: 'POST', body: z.object({ challenge: token43 }), use: [formCsrfMiddleware] },
+ async ctx => {
+ const cookie = ctx.context.createAuthCookie(START_COOKIE, { maxAge: START_TTL_S })
+ const start: Start = { challenge: ctx.body.challenge, at: Date.now() }
+ await ctx.setSignedCookie(cookie.name, JSON.stringify(start), ctx.context.secret, cookie.attributes)
+ return ctx.json({ ok: true })
+ },
+ ),
+ appSignInCode: createAuthEndpoint(
+ APP_SIGN_IN_CODE_PATH,
+ { method: 'POST', use: [formCsrfMiddleware, sessionMiddleware] },
+ async ctx => {
+ const { session } = ctx.context.session
+ const cookie = ctx.context.createAuthCookie(START_COOKIE)
+ const start = readStart((await ctx.getSignedCookie(cookie.name, ctx.context.secret)) || null)
+ // One code per start.
+ ctx.setCookie(cookie.name, '', { ...cookie.attributes, maxAge: 0 })
+ // An admin signed in as someone hands nobody that person's sign-in.
+ if ((session as { impersonatedBy?: string | null }).impersonatedBy) throw refused()
+ if (!start || !sessionFitsStart(new Date(session.createdAt), start)) throw refused()
+ const code = randomBytes(32).toString('base64url')
+ const stored: Stored = { userId: session.userId, challenge: start.challenge, browserSessionId: session.id }
+ await ctx.context.internalAdapter.createVerificationValue({
+ identifier: identifierOf(code),
+ value: JSON.stringify(stored),
+ expiresAt: new Date(Date.now() + CODE_TTL_MS),
+ })
+ return ctx.json({ code })
+ },
+ ),
+ appSignInRedeem: createAuthEndpoint(
+ APP_SIGN_IN_REDEEM_PATH,
+ { method: 'POST', body: z.object({ code: token43, verifier: token43 }), use: [formCsrfMiddleware] },
+ async ctx => {
+ // Taken before the verifier is checked: a wrong verifier spends the code, so it cannot be guessed at.
+ const stored = await takeCode(ctx.body.code)
+ if (!stored || !verifierFits(ctx.body.verifier, stored.challenge)) throw refused()
+ const browserToken = await browserSessionToken(stored.browserSessionId, stored.userId)
+ if (!browserToken) throw refused()
+ await ctx.context.internalAdapter.deleteSession(browserToken)
+ const user = await ctx.context.internalAdapter.findUserById(stored.userId)
+ if (!user) throw refused()
+ // The web view's own older session (another account, or a stale one) goes with the new sign-in.
+ const old = await ctx.getSignedCookie(ctx.context.authCookies.sessionToken.name, ctx.context.secret)
+ if (old) await ctx.context.internalAdapter.deleteSession(old).catch(() => {})
+ const session = await ctx.context.internalAdapter.createSession(user.id)
+ if (!session) throw refused()
+ await setSessionCookie(ctx, { session, user })
+ return ctx.json({ ok: true })
+ },
+ ),
+ },
+ // Codes and challenges are 32 random bytes; this only keeps the endpoints from being hammered (per address).
+ rateLimit: [
+ { pathMatcher: path => path === APP_SIGN_IN_START_PATH, window: 60, max: 30 },
+ { pathMatcher: path => path === APP_SIGN_IN_CODE_PATH, window: 60, max: 30 },
+ { pathMatcher: path => path === APP_SIGN_IN_REDEEM_PATH, window: 60, max: 30 },
+ ],
+ }) satisfies BetterAuthPlugin
diff --git a/apps/api/src/app.ts b/apps/api/src/app.ts
index 71d9ebb9..71b326ed 100644
--- a/apps/api/src/app.ts
+++ b/apps/api/src/app.ts
@@ -56,6 +56,7 @@ import { partnersOf, previewPartnerInvitation } from './partners.ts'
import { MCP_MAX_BODY_BYTES, serveMcp } from './mcp.ts'
import { serveSetupMcp } from './setup-mcp.ts'
import { mcpCors, registerOAuthRoutes } from './oauth.ts'
+import { registerAppLinkRoutes } from './app-links.ts'
import { setsUpByHand } from './install-setup.ts'
import { authMethods, currentAuthMethods } from './auth-methods.ts'
import { browserErrorReporting, errorReportingEnabled, type ReportedUser, reportError } from './error-reporting.ts'
@@ -643,6 +644,8 @@ app.use(
)
app.use('/oauth/token', bodyLimit({ maxSize: 16 * 1024, onError: c => c.json({ error: 'invalid_request' }, 413) }))
registerOAuthRoutes(app)
+// Public: the iOS and Android app's link files (app-links.ts), 404 on an install without an app.
+registerAppLinkRoutes(app)
// MCP for a workspace's own AI tools: API keys only, its own gate (mcp.ts). Any origin may call it (CORS without
// cookies: the key is the only way in), so browser-based clients work.
diff --git a/apps/api/src/audit.ts b/apps/api/src/audit.ts
index c94a0af0..9246eca1 100644
--- a/apps/api/src/audit.ts
+++ b/apps/api/src/audit.ts
@@ -76,6 +76,8 @@ export function signInMethod(ctx: HookCtx): string | null {
if (path.startsWith('/callback/') || path.startsWith('/oauth2/callback/'))
return ctx?.params?.id ?? ctx?.params?.providerId ?? 'provider'
if (path === '/verify-email') return 'email_link'
+ // The app's hand-back of a provider sign-in made in the system browser (app-sign-in.ts; that one is its own entry).
+ if (path === '/app-sign-in/redeem') return 'app'
return null
}
diff --git a/apps/api/src/auth.ts b/apps/api/src/auth.ts
index 523a364f..3cb30ccd 100644
--- a/apps/api/src/auth.ts
+++ b/apps/api/src/auth.ts
@@ -3,6 +3,7 @@ import { betterAuth } from 'better-auth'
import { APIError, createAuthMiddleware } from 'better-auth/api'
import { drizzleAdapter } from 'better-auth/adapters/drizzle'
import { emailOTP, genericOAuth, organization } from 'better-auth/plugins'
+import { appSignIn } from './app-sign-in.ts'
import { authConfig, emailCodesOn } from './auth-methods.ts'
import { accountLinkingHooks, mapGoogleProfile, mapMicrosoftProfile, mapOidcProfile } from './account-linking.ts'
import { auditHooks, recordAuthEndpoint } from './audit.ts'
@@ -397,6 +398,8 @@ export const auth = betterAuth({
rateLimit: { window: 60, max: 3 },
changeEmail: { enabled: true },
}),
+ // The app's provider sign-ins run in the system browser and come back with a one-use code (app-sign-in.ts).
+ appSignIn(),
// Passkeys sign in existing accounts only; they are added in Account settings (passkeys.ts).
...(methods.passkey ? [passkeyPlugin(process.env)] : []),
// Like Google: no email unless the provider says it is verified (`email_verified`) or the address is on a domain listed in OIDC_TRUST_EMAIL_DOMAINS, so an unproven address creates nobody.
diff --git a/apps/mobile/README.md b/apps/mobile/README.md
new file mode 100644
index 00000000..f12a255c
--- /dev/null
+++ b/apps/mobile/README.md
@@ -0,0 +1,28 @@
+# Linedesk app for iOS and Android
+
+A native shell around the web app (Capacitor). The app opens the server's own pages (`server.url` in
+`capacitor.config.ts`, default Linedesk Cloud), so the session, sync and every update come from the server as on the
+web. The native parts are called by the web app when it runs in here (`apps/web/src/native`):
+
+- Sign-in with a provider (Google, Apple, Microsoft, GitHub, single sign-on) runs in the system's sign-in browser
+ (iOS `ASWebAuthenticationSession`, Android Custom Tabs: `LinedeskAuthPlugin`) and the session comes back to the app
+ with a one-use code and PKCE on the server's own https address, which only the app receives
+ (`apps/api/src/app-sign-in.ts`). Google refuses sign-ins inside an app's web view. iOS 17.4 or later.
+- Links to the server's start page (emails) and the sign-in hand-back open the app: universal links and app links, from
+ `/.well-known/apple-app-site-association` and `/.well-known/assetlinks.json` (`apps/api/src/app-links.ts`).
+- Status bar, splash screen, the Android back button, the keyboard.
+- No buying in the app: the web app hides every purchase step inside it (store rules).
+
+## Build
+
+```sh
+pnpm install
+cd apps/mobile
+LINEDESK_APP_URL=https://your.server pnpm exec cap sync # default: https://app.linedesk.ai
+pnpm exec cap open ios # Xcode (macOS)
+cd android && ./gradlew assembleDebug # JDK 21 and the Android SDK
+```
+
+Your own server needs its app named in `.env` (`MOBILE_IOS_APP_IDS`, `MOBILE_ANDROID_APP`) for links to open the app,
+and your own bundle ID, team and keys in the iOS and Android projects. Icons and splash screens come from `brand/`
+(`pnpm assets`, `@capacitor/assets`).
diff --git a/apps/mobile/android/.gitignore b/apps/mobile/android/.gitignore
new file mode 100644
index 00000000..48354a3d
--- /dev/null
+++ b/apps/mobile/android/.gitignore
@@ -0,0 +1,101 @@
+# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
+
+# Built application files
+*.apk
+*.aar
+*.ap_
+*.aab
+
+# Files for the ART/Dalvik VM
+*.dex
+
+# Java class files
+*.class
+
+# Generated files
+bin/
+gen/
+out/
+# Uncomment the following line in case you need and you don't have the release build type files in your app
+# release/
+
+# Gradle files
+.gradle/
+build/
+
+# Local configuration file (sdk path, etc)
+local.properties
+
+# Proguard folder generated by Eclipse
+proguard/
+
+# Log Files
+*.log
+
+# Android Studio Navigation editor temp files
+.navigation/
+
+# Android Studio captures folder
+captures/
+
+# IntelliJ
+*.iml
+.idea/workspace.xml
+.idea/tasks.xml
+.idea/gradle.xml
+.idea/assetWizardSettings.xml
+.idea/dictionaries
+.idea/libraries
+# Android Studio 3 in .gitignore file.
+.idea/caches
+.idea/modules.xml
+# Comment next line if keeping position of elements in Navigation Editor is relevant for you
+.idea/navEditor.xml
+
+# Keystore files
+# Uncomment the following lines if you do not want to check your keystore files in.
+#*.jks
+#*.keystore
+
+# External native build folder generated in Android Studio 2.2 and later
+.externalNativeBuild
+.cxx/
+
+# Google Services (e.g. APIs or Firebase)
+# google-services.json
+
+# Freeline
+freeline.py
+freeline/
+freeline_project_description.json
+
+# fastlane
+fastlane/report.xml
+fastlane/Preview.html
+fastlane/screenshots
+fastlane/test_output
+fastlane/readme.md
+
+# Version control
+vcs.xml
+
+# lint
+lint/intermediates/
+lint/generated/
+lint/outputs/
+lint/tmp/
+# lint/reports/
+
+# Android Profiling
+*.hprof
+
+# Cordova plugins for Capacitor
+capacitor-cordova-android-plugins
+
+# Copied web assets
+app/src/main/assets/public
+
+# Generated Config files
+app/src/main/assets/capacitor.config.json
+app/src/main/assets/capacitor.plugins.json
+app/src/main/res/xml/config.xml
diff --git a/apps/mobile/android/app/.gitignore b/apps/mobile/android/app/.gitignore
new file mode 100644
index 00000000..043df802
--- /dev/null
+++ b/apps/mobile/android/app/.gitignore
@@ -0,0 +1,2 @@
+/build/*
+!/build/.npmkeep
diff --git a/apps/mobile/android/app/build.gradle b/apps/mobile/android/app/build.gradle
new file mode 100644
index 00000000..7c28d396
--- /dev/null
+++ b/apps/mobile/android/app/build.gradle
@@ -0,0 +1,71 @@
+apply plugin: 'com.android.application'
+
+android {
+ namespace = "ai.linedesk.app"
+ compileSdk = rootProject.ext.compileSdkVersion
+ defaultConfig {
+ applicationId "ai.linedesk.app"
+ minSdkVersion rootProject.ext.minSdkVersion
+ targetSdkVersion rootProject.ext.targetSdkVersion
+ // CI sets the build number (it only goes up) and the version people see (.github/workflows, apps/mobile/README.md).
+ versionCode((System.getenv("LINEDESK_BUILD_NUMBER") ?: "1") as int)
+ versionName(System.getenv("LINEDESK_VERSION") ?: "1.0")
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ aaptOptions {
+ // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
+ // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
+ ignoreAssetsPattern = '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
+ }
+ }
+ // The upload key Google Play knows the app by (Play App Signing re-signs for the store). Only in CI, from its
+ // secrets; a local release build without them is unsigned.
+ signingConfigs {
+ release {
+ def keystore = System.getenv("ANDROID_KEYSTORE_FILE")
+ if (keystore) {
+ storeFile file(keystore)
+ storePassword System.getenv("ANDROID_KEYSTORE_PASSWORD")
+ keyAlias "upload"
+ keyPassword System.getenv("ANDROID_KEYSTORE_PASSWORD")
+ }
+ }
+ }
+ buildTypes {
+ release {
+ if (System.getenv("ANDROID_KEYSTORE_FILE")) signingConfig signingConfigs.release
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+repositories {
+ flatDir{
+ dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
+ }
+}
+
+dependencies {
+ implementation fileTree(include: ['*.jar'], dir: 'libs')
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
+ implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
+ implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
+ // The system browser for provider sign-ins (LinedeskAuthPlugin).
+ implementation "androidx.browser:browser:1.9.0"
+ implementation project(':capacitor-android')
+ testImplementation "junit:junit:$junitVersion"
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
+ implementation project(':capacitor-cordova-android-plugins')
+}
+
+apply from: 'capacitor.build.gradle'
+
+try {
+ def servicesJSON = file('google-services.json')
+ if (servicesJSON.text) {
+ apply plugin: 'com.google.gms.google-services'
+ }
+} catch(Exception e) {
+ logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
+}
diff --git a/apps/mobile/android/app/capacitor.build.gradle b/apps/mobile/android/app/capacitor.build.gradle
new file mode 100644
index 00000000..bf712627
--- /dev/null
+++ b/apps/mobile/android/app/capacitor.build.gradle
@@ -0,0 +1,25 @@
+// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
+
+android {
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_21
+ targetCompatibility JavaVersion.VERSION_21
+ }
+}
+
+apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
+dependencies {
+ implementation project(':capacitor-app')
+ implementation project(':capacitor-browser')
+ implementation project(':capacitor-haptics')
+ implementation project(':capacitor-keyboard')
+ implementation project(':capacitor-push-notifications')
+ implementation project(':capacitor-splash-screen')
+ implementation project(':capacitor-status-bar')
+
+}
+
+
+if (hasProperty('postBuildExtras')) {
+ postBuildExtras()
+}
diff --git a/apps/mobile/android/app/proguard-rules.pro b/apps/mobile/android/app/proguard-rules.pro
new file mode 100644
index 00000000..f1b42451
--- /dev/null
+++ b/apps/mobile/android/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/apps/mobile/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java b/apps/mobile/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
new file mode 100644
index 00000000..f2c2217e
--- /dev/null
+++ b/apps/mobile/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.getcapacitor.myapp;
+
+import static org.junit.Assert.*;
+
+import android.content.Context;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+import androidx.test.platform.app.InstrumentationRegistry;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+
+ assertEquals("com.getcapacitor.app", appContext.getPackageName());
+ }
+}
diff --git a/apps/mobile/android/app/src/main/AndroidManifest.xml b/apps/mobile/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..4579e7c0
--- /dev/null
+++ b/apps/mobile/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+ <application
+ android:allowBackup="true"
+ android:icon="@mipmap/ic_launcher"
+ android:label="@string/app_name"
+ android:roundIcon="@mipmap/ic_launcher_round"
+ android:supportsRtl="true"
+ android:theme="@style/AppTheme">
+ <activity
+ android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode|navigation|density"
+ android:name=".MainActivity"
+ android:label="@string/title_activity_main"
+ android:theme="@style/AppTheme.NoActionBarLaunch"
+ android:launchMode="singleTask"
+ android:exported="true">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+
+ <!-- Links to the app's server open here (app links, verified by /.well-known/assetlinks.json): the start page
+ (emails) and the sign-in hand-back from the system browser (LinedeskAuthPlugin). -->
+ <intent-filter android:autoVerify="true">
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.BROWSABLE" />
+ <data android:scheme="https" android:host="app.linedesk.ai" android:path="/" />
+ <data android:scheme="https" android:host="app.linedesk.ai" android:path="/app-sign-in/back" />
+ </intent-filter>
+ </activity>
+
+ <provider
+ android:name="androidx.core.content.FileProvider"
+ android:authorities="${applicationId}.fileprovider"
+ android:exported="false"
+ android:grantUriPermissions="true">
+ <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
+ </provider>
+ </application>
+
+ <!-- Permissions -->
+
+ <uses-permission android:name="android.permission.INTERNET" />
+ <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
+</manifest>
diff --git a/apps/mobile/android/app/src/main/java/ai/linedesk/app/LinedeskAuthPlugin.java b/apps/mobile/android/app/src/main/java/ai/linedesk/app/LinedeskAuthPlugin.java
new file mode 100644
index 00000000..2c4cbc84
--- /dev/null
+++ b/apps/mobile/android/app/src/main/java/ai/linedesk/app/LinedeskAuthPlugin.java
@@ -0,0 +1,92 @@
+package ai.linedesk.app;
+
+import android.content.Intent;
+import android.net.Uri;
+import androidx.browser.customtabs.CustomTabsIntent;
+import com.getcapacitor.JSObject;
+import com.getcapacitor.Plugin;
+import com.getcapacitor.PluginCall;
+import com.getcapacitor.PluginMethod;
+import com.getcapacitor.annotation.CapacitorPlugin;
+
+/**
+ * A provider sign-in in the system browser (Chrome Custom Tabs), for the web app's native/appSignIn.ts: Google refuses
+ * sign-ins inside an app's web view. `start` opens the server's sign-in page and resolves with the address the page
+ * ends on: the server's own https address at `callbackPath`, a verified app link (assetlinks.json), so it comes back
+ * to this activity and to no other app. Closing the tab without finishing rejects with "cancelled".
+ */
+@CapacitorPlugin(name = "LinedeskAuth")
+public class LinedeskAuthPlugin extends Plugin {
+
+ private String pendingCallId = null;
+ private String pendingHost = null;
+ private String pendingPath = null;
+
+ @PluginMethod
+ public void start(PluginCall call) {
+ String url = call.getString("url");
+ String callbackPath = call.getString("callbackPath");
+ Uri page = url == null ? null : Uri.parse(url);
+ Uri server = Uri.parse(getBridge().getServerUrl());
+ // Only the app's own server: nothing else is opened as a sign-in page.
+ if (
+ page == null ||
+ callbackPath == null ||
+ !callbackPath.startsWith("/") ||
+ page.getHost() == null ||
+ !page.getHost().equals(server.getHost()) ||
+ !String.valueOf(page.getScheme()).equals(server.getScheme())
+ ) {
+ call.reject("bad_request");
+ return;
+ }
+ cancelPending();
+ call.setKeepAlive(true);
+ getBridge().saveCall(call);
+ pendingCallId = call.getCallbackId();
+ pendingHost = server.getHost();
+ pendingPath = callbackPath;
+ new CustomTabsIntent.Builder().setShowTitle(true).build().launchUrl(getActivity(), page);
+ }
+
+ @Override
+ protected void handleOnNewIntent(Intent intent) {
+ super.handleOnNewIntent(intent);
+ Uri data = intent == null ? null : intent.getData();
+ if (
+ data == null ||
+ pendingHost == null ||
+ !"https".equals(data.getScheme()) ||
+ !pendingHost.equals(data.getHost()) ||
+ !pendingPath.equals(data.getPath())
+ ) return;
+ PluginCall call = takePending();
+ if (call == null) return;
+ JSObject answer = new JSObject();
+ answer.put("url", data.toString());
+ call.resolve(answer);
+ }
+
+ @Override
+ protected void handleOnResume() {
+ super.handleOnResume();
+ if (pendingCallId == null) return;
+ // Back in the app: the hand-back intent arrives first when there is one; without it the tab was closed.
+ getBridge().getWebView().postDelayed(this::cancelPending, 1000);
+ }
+
+ private PluginCall takePending() {
+ if (pendingCallId == null) return null;
+ PluginCall call = getBridge().getSavedCall(pendingCallId);
+ pendingCallId = null;
+ pendingHost = null;
+ pendingPath = null;
+ if (call != null) getBridge().releaseCall(call);
+ return call;
+ }
+
+ private void cancelPending() {
+ PluginCall call = takePending();
+ if (call != null) call.reject("cancelled");
+ }
+}
diff --git a/apps/mobile/android/app/src/main/java/ai/linedesk/app/MainActivity.java b/apps/mobile/android/app/src/main/java/ai/linedesk/app/MainActivity.java
new file mode 100644
index 00000000..912b7393
--- /dev/null
+++ b/apps/mobile/android/app/src/main/java/ai/linedesk/app/MainActivity.java
@@ -0,0 +1,13 @@
+package ai.linedesk.app;
+
+import android.os.Bundle;
+import com.getcapacitor.BridgeActivity;
+
+public class MainActivity extends BridgeActivity {
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ // Our own plugins (the npm ones register themselves).
+ registerPlugin(LinedeskAuthPlugin.class);
+ super.onCreate(savedInstanceState);
+ }
+}
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-hdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-hdpi/splash.png
new file mode 100644
index 00000000..6497b321
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-hdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-ldpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-ldpi/splash.png
new file mode 100644
index 00000000..565b1283
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-ldpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-mdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-mdpi/splash.png
new file mode 100644
index 00000000..7ea9f25d
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-mdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-night-hdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-night-hdpi/splash.png
new file mode 100644
index 00000000..e2d82319
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-night-hdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-night-ldpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-night-ldpi/splash.png
new file mode 100644
index 00000000..77bd4f0a
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-night-ldpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-night-mdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-night-mdpi/splash.png
new file mode 100644
index 00000000..f9660dbb
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-night-mdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-night-xhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-night-xhdpi/splash.png
new file mode 100644
index 00000000..8ee2ada1
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-night-xhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-night-xxhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-night-xxhdpi/splash.png
new file mode 100644
index 00000000..79ae7522
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-night-xxhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-night-xxxhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-night-xxxhdpi/splash.png
new file mode 100644
index 00000000..a9f74eca
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-night-xxxhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-xhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-xhdpi/splash.png
new file mode 100644
index 00000000..cd2f9e80
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-xhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-xxhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-xxhdpi/splash.png
new file mode 100644
index 00000000..beba9a1f
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-xxhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-land-xxxhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-land-xxxhdpi/splash.png
new file mode 100644
index 00000000..ad443b83
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-land-xxxhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-night/splash.png b/apps/mobile/android/app/src/main/res/drawable-night/splash.png
new file mode 100644
index 00000000..77bd4f0a
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-night/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-hdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-hdpi/splash.png
new file mode 100644
index 00000000..bcb621bb
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-hdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-ldpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-ldpi/splash.png
new file mode 100644
index 00000000..2ecbdb02
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-ldpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-mdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-mdpi/splash.png
new file mode 100644
index 00000000..9d0bc31d
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-mdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-night-hdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-night-hdpi/splash.png
new file mode 100644
index 00000000..a2e16b4a
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-night-hdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-night-ldpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-night-ldpi/splash.png
new file mode 100644
index 00000000..796beb7c
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-night-ldpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-night-mdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-night-mdpi/splash.png
new file mode 100644
index 00000000..7e0db25e
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-night-mdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-night-xhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-night-xhdpi/splash.png
new file mode 100644
index 00000000..c8871df4
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-night-xhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-night-xxhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-night-xxhdpi/splash.png
new file mode 100644
index 00000000..efee348b
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-night-xxhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-night-xxxhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-night-xxxhdpi/splash.png
new file mode 100644
index 00000000..661b7087
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-night-xxxhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-xhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-xhdpi/splash.png
new file mode 100644
index 00000000..d7db84f6
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-xhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-xxhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-xxhdpi/splash.png
new file mode 100644
index 00000000..ddb3e25e
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-xxhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-port-xxxhdpi/splash.png b/apps/mobile/android/app/src/main/res/drawable-port-xxxhdpi/splash.png
new file mode 100644
index 00000000..d8c3acd0
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable-port-xxxhdpi/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/apps/mobile/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 00000000..c7bd21db
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,34 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:aapt="http://schemas.android.com/aapt"
+ android:width="108dp"
+ android:height="108dp"
+ android:viewportHeight="108"
+ android:viewportWidth="108">
+ <path
+ android:fillType="evenOdd"
+ android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
+ android:strokeColor="#00000000"
+ android:strokeWidth="1">
+ <aapt:attr name="android:fillColor">
+ <gradient
+ android:endX="78.5885"
+ android:endY="90.9159"
+ android:startX="48.7653"
+ android:startY="61.0927"
+ android:type="linear">
+ <item
+ android:color="#44000000"
+ android:offset="0.0" />
+ <item
+ android:color="#00000000"
+ android:offset="1.0" />
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path
+ android:fillColor="#FFFFFF"
+ android:fillType="nonZero"
+ android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
+ android:strokeColor="#00000000"
+ android:strokeWidth="1" />
+</vector>
diff --git a/apps/mobile/android/app/src/main/res/drawable/ic_launcher_background.xml b/apps/mobile/android/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 00000000..d5fccc53
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="utf-8"?>
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="108dp"
+ android:height="108dp"
+ android:viewportHeight="108"
+ android:viewportWidth="108">
+ <path
+ android:fillColor="#26A69A"
+ android:pathData="M0,0h108v108h-108z" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M9,0L9,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,0L19,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M29,0L29,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M39,0L39,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M49,0L49,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M59,0L59,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M69,0L69,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M79,0L79,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M89,0L89,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M99,0L99,108"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,9L108,9"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,19L108,19"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,29L108,29"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,39L108,39"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,49L108,49"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,59L108,59"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,69L108,69"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,79L108,79"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,89L108,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M0,99L108,99"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,29L89,29"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,39L89,39"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,49L89,49"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,59L89,59"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,69L89,69"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M19,79L89,79"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M29,19L29,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M39,19L39,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M49,19L49,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M59,19L59,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M69,19L69,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+ <path
+ android:fillColor="#00000000"
+ android:pathData="M79,19L79,89"
+ android:strokeColor="#33FFFFFF"
+ android:strokeWidth="0.8" />
+</vector>
diff --git a/apps/mobile/android/app/src/main/res/drawable/splash.png b/apps/mobile/android/app/src/main/res/drawable/splash.png
new file mode 100644
index 00000000..9d0bc31d
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/drawable/splash.png differ
diff --git a/apps/mobile/android/app/src/main/res/layout/activity_main.xml b/apps/mobile/android/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 00000000..b5ad1387
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".MainActivity">
+
+ <WebView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
diff --git a/apps/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/apps/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 00000000..0aa82aa1
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background>
+ <inset android:drawable="@mipmap/ic_launcher_background" android:inset="16.7%" />
+ </background>
+ <foreground>
+ <inset android:drawable="@mipmap/ic_launcher_foreground" android:inset="16.7%" />
+ </foreground>
+</adaptive-icon>
\ No newline at end of file
diff --git a/apps/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/apps/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 00000000..0aa82aa1
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background>
+ <inset android:drawable="@mipmap/ic_launcher_background" android:inset="16.7%" />
+ </background>
+ <foreground>
+ <inset android:drawable="@mipmap/ic_launcher_foreground" android:inset="16.7%" />
+ </foreground>
+</adaptive-icon>
\ No newline at end of file
diff --git a/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..c606cad8
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png
new file mode 100644
index 00000000..a1dc2c56
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..464bcb22
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 00000000..cbdf6815
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher.png b/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher.png
new file mode 100644
index 00000000..dcfbf4e6
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_background.png b/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_background.png
new file mode 100644
index 00000000..37d315bf
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_background.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_foreground.png b/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..3c3a948b
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_foreground.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_round.png b/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_round.png
new file mode 100644
index 00000000..10a8320b
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-ldpi/ic_launcher_round.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..929a6407
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png
new file mode 100644
index 00000000..4eeac69e
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..fd9918ec
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 00000000..95716ac0
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..f5458a7c
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
new file mode 100644
index 00000000..3b155308
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..b83445ff
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..9b590348
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..527cb977
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
new file mode 100644
index 00000000..8619d76c
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..563e2d0f
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..28495303
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 00000000..1c107d01
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
new file mode 100644
index 00000000..4c35118b
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..827aeb41
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..5925e2d6
Binary files /dev/null and b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/apps/mobile/android/app/src/main/res/values/ic_launcher_background.xml b/apps/mobile/android/app/src/main/res/values/ic_launcher_background.xml
new file mode 100644
index 00000000..c5d5899f
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="ic_launcher_background">#FFFFFF</color>
+</resources>
\ No newline at end of file
diff --git a/apps/mobile/android/app/src/main/res/values/strings.xml b/apps/mobile/android/app/src/main/res/values/strings.xml
new file mode 100644
index 00000000..4d4bd9a2
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/values/strings.xml
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<resources>
+ <string name="app_name">Linedesk</string>
+ <string name="title_activity_main">Linedesk</string>
+ <string name="package_name">ai.linedesk.app</string>
+ <string name="custom_url_scheme">ai.linedesk.app</string>
+</resources>
diff --git a/apps/mobile/android/app/src/main/res/values/styles.xml b/apps/mobile/android/app/src/main/res/values/styles.xml
new file mode 100644
index 00000000..be874e54
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <!-- Base application theme. -->
+ <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
+ <!-- Customize your theme here. -->
+ <item name="colorPrimary">@color/colorPrimary</item>
+ <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+ <item name="colorAccent">@color/colorAccent</item>
+ </style>
+
+ <style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
+ <item name="windowActionBar">false</item>
+ <item name="windowNoTitle">true</item>
+ <item name="android:background">@null</item>
+ </style>
+
+
+ <style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
+ <item name="android:background">@drawable/splash</item>
+ </style>
+</resources>
\ No newline at end of file
diff --git a/apps/mobile/android/app/src/main/res/xml/file_paths.xml b/apps/mobile/android/app/src/main/res/xml/file_paths.xml
new file mode 100644
index 00000000..bd0c4d80
--- /dev/null
+++ b/apps/mobile/android/app/src/main/res/xml/file_paths.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<paths xmlns:android="http://schemas.android.com/apk/res/android">
+ <external-path name="my_images" path="." />
+ <cache-path name="my_cache_images" path="." />
+</paths>
\ No newline at end of file
diff --git a/apps/mobile/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java b/apps/mobile/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
new file mode 100644
index 00000000..02973278
--- /dev/null
+++ b/apps/mobile/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
@@ -0,0 +1,18 @@
+package com.getcapacitor.myapp;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
+ */
+public class ExampleUnitTest {
+
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
diff --git a/apps/mobile/android/build.gradle b/apps/mobile/android/build.gradle
new file mode 100644
index 00000000..f8f0e43b
--- /dev/null
+++ b/apps/mobile/android/build.gradle
@@ -0,0 +1,29 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:8.13.0'
+ classpath 'com.google.gms:google-services:4.4.4'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+apply from: "variables.gradle"
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/apps/mobile/android/capacitor.settings.gradle b/apps/mobile/android/capacitor.settings.gradle
new file mode 100644
index 00000000..60a4272e
--- /dev/null
+++ b/apps/mobile/android/capacitor.settings.gradle
@@ -0,0 +1,24 @@
+// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
+include ':capacitor-android'
+project(':capacitor-android').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/android/capacitor')
+
+include ':capacitor-app'
+project(':capacitor-app').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/app/android')
+
+include ':capacitor-browser'
+project(':capacitor-browser').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/browser/android')
+
+include ':capacitor-haptics'
+project(':capacitor-haptics').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/haptics/android')
+
+include ':capacitor-keyboard'
+project(':capacitor-keyboard').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/keyboard/android')
+
+include ':capacitor-push-notifications'
+project(':capacitor-push-notifications').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/push-notifications/android')
+
+include ':capacitor-splash-screen'
+project(':capacitor-splash-screen').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/splash-screen/android')
+
+include ':capacitor-status-bar'
+project(':capacitor-status-bar').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/status-bar/android')
diff --git a/apps/mobile/android/gradle.properties b/apps/mobile/android/gradle.properties
new file mode 100644
index 00000000..2e87c52f
--- /dev/null
+++ b/apps/mobile/android/gradle.properties
@@ -0,0 +1,22 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
diff --git a/apps/mobile/android/gradle/wrapper/gradle-wrapper.jar b/apps/mobile/android/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..1b33c55b
Binary files /dev/null and b/apps/mobile/android/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/apps/mobile/android/gradle/wrapper/gradle-wrapper.properties b/apps/mobile/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..7705927e
--- /dev/null
+++ b/apps/mobile/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,7 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip
+networkTimeout=10000
+validateDistributionUrl=true
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/apps/mobile/android/gradlew b/apps/mobile/android/gradlew
new file mode 100755
index 00000000..23d15a93
--- /dev/null
+++ b/apps/mobile/android/gradlew
@@ -0,0 +1,251 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+# This is normally unused
+# shellcheck disable=SC2034
+APP_BASE_NAME=${0##*/}
+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
+APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH="\\\"\\\""
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ if ! command -v java >/dev/null 2>&1
+ then
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Collect all arguments for the java command:
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
+# and any embedded shellness will be escaped.
+# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
+# treated as '${Hostname}' itself on the command line.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
+ "$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+ die "xargs is not available"
+fi
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/apps/mobile/android/gradlew.bat b/apps/mobile/android/gradlew.bat
new file mode 100644
index 00000000..5eed7ee8
--- /dev/null
+++ b/apps/mobile/android/gradlew.bat
@@ -0,0 +1,94 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+@rem SPDX-License-Identifier: Apache-2.0
+@rem
+
+@if "%DEBUG%"=="" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if %ERRORLEVEL% equ 0 goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if %ERRORLEVEL% equ 0 goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/apps/mobile/android/settings.gradle b/apps/mobile/android/settings.gradle
new file mode 100644
index 00000000..3b4431d7
--- /dev/null
+++ b/apps/mobile/android/settings.gradle
@@ -0,0 +1,5 @@
+include ':app'
+include ':capacitor-cordova-android-plugins'
+project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')
+
+apply from: 'capacitor.settings.gradle'
\ No newline at end of file
diff --git a/apps/mobile/android/variables.gradle b/apps/mobile/android/variables.gradle
new file mode 100644
index 00000000..ee4ba41c
--- /dev/null
+++ b/apps/mobile/android/variables.gradle
@@ -0,0 +1,16 @@
+ext {
+ minSdkVersion = 24
+ compileSdkVersion = 36
+ targetSdkVersion = 36
+ androidxActivityVersion = '1.11.0'
+ androidxAppCompatVersion = '1.7.1'
+ androidxCoordinatorLayoutVersion = '1.3.0'
+ androidxCoreVersion = '1.17.0'
+ androidxFragmentVersion = '1.8.9'
+ coreSplashScreenVersion = '1.2.0'
+ androidxWebkitVersion = '1.14.0'
+ junitVersion = '4.13.2'
+ androidxJunitVersion = '1.3.0'
+ androidxEspressoCoreVersion = '3.7.0'
+ cordovaAndroidVersion = '14.0.1'
+}
\ No newline at end of file
diff --git a/apps/mobile/assets/icon-background.png b/apps/mobile/assets/icon-background.png
new file mode 100644
index 00000000..daf96b02
Binary files /dev/null and b/apps/mobile/assets/icon-background.png differ
diff --git a/apps/mobile/assets/icon-foreground.png b/apps/mobile/assets/icon-foreground.png
new file mode 100644
index 00000000..fdc8e579
Binary files /dev/null and b/apps/mobile/assets/icon-foreground.png differ
diff --git a/apps/mobile/assets/icon-only.png b/apps/mobile/assets/icon-only.png
new file mode 100644
index 00000000..c159b2ee
Binary files /dev/null and b/apps/mobile/assets/icon-only.png differ
diff --git a/apps/mobile/assets/splash-dark.png b/apps/mobile/assets/splash-dark.png
new file mode 100644
index 00000000..9953021b
Binary files /dev/null and b/apps/mobile/assets/splash-dark.png differ
diff --git a/apps/mobile/assets/splash.png b/apps/mobile/assets/splash.png
new file mode 100644
index 00000000..873fc68a
Binary files /dev/null and b/apps/mobile/assets/splash.png differ
diff --git a/apps/mobile/capacitor.config.ts b/apps/mobile/capacitor.config.ts
new file mode 100644
index 00000000..e6756d8d
--- /dev/null
+++ b/apps/mobile/capacitor.config.ts
@@ -0,0 +1,40 @@
+// The Linedesk app for iOS and Android: a native shell around the web app that Linedesk Cloud serves (decision of
+// 2026-11-28, LIN-874). The app loads the server's own pages, so sign-in cookies, sync and updates work as on the web;
+// native parts (push, sign-in through the system browser, back button, status bar, haptics) are Capacitor plugins
+// the web app calls when it runs in here (apps/web/src/native).
+// LINEDESK_APP_URL builds the app against another server (staging, a dev preview) at `cap sync` time.
+import type { CapacitorConfig } from '@capacitor/cli'
+
+const appUrl = new URL(process.env.LINEDESK_APP_URL ?? 'https://app.linedesk.ai')
+
+const config: CapacitorConfig = {
+ appId: 'ai.linedesk.app',
+ appName: 'Linedesk',
+ // Shown only when the server cannot be reached at start (www/index.html).
+ webDir: 'www',
+ server: {
+ url: appUrl.origin,
+ // Only for a local test server (http://localhost through `adb reverse`); Linedesk Cloud is https.
+ cleartext: appUrl.protocol === 'http:',
+ // Only the server's own pages open inside the app; every other address opens in the system browser.
+ allowNavigation: [],
+ errorPath: 'offline.html',
+ },
+ ios: {
+ contentInset: 'never',
+ // Service workers and passkeys in WKWebView need the server as an app-bound domain (Info.plist WKAppBoundDomains).
+ limitsNavigationsToAppBoundDomains: true,
+ scheme: 'Linedesk',
+ },
+ android: {
+ // Back, links from emails and the sign-in hand-back come as intents; the web view keeps the server's origin.
+ allowMixedContent: false,
+ },
+ plugins: {
+ SplashScreen: { launchAutoHide: false, backgroundColor: '#FAFAF8', showSpinner: false },
+ Keyboard: { resize: 'native', resizeOnFullScreen: true },
+ PushNotifications: { presentationOptions: ['badge', 'sound', 'alert'] },
+ },
+}
+
+export default config
diff --git a/apps/mobile/ios/.gitignore b/apps/mobile/ios/.gitignore
new file mode 100644
index 00000000..f4702997
--- /dev/null
+++ b/apps/mobile/ios/.gitignore
@@ -0,0 +1,13 @@
+App/build
+App/Pods
+App/output
+App/App/public
+DerivedData
+xcuserdata
+
+# Cordova plugins for Capacitor
+capacitor-cordova-ios-plugins
+
+# Generated Config files
+App/App/capacitor.config.json
+App/App/config.xml
diff --git a/apps/mobile/ios/App/App.xcodeproj/project.pbxproj b/apps/mobile/ios/App/App.xcodeproj/project.pbxproj
new file mode 100644
index 00000000..15c62f7e
--- /dev/null
+++ b/apps/mobile/ios/App/App.xcodeproj/project.pbxproj
@@ -0,0 +1,390 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 60;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ A1B2C3D40000000000000001 /* LinedeskBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = A1B2C3D40000000000000002 /* LinedeskBridge.swift */; };
+ 2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; };
+ 4D22ABE92AF431CB00220026 /* CapApp-SPM in Frameworks */ = {isa = PBXBuildFile; productRef = 4D22ABE82AF431CB00220026 /* CapApp-SPM */; };
+ 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; };
+ 504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; };
+ 504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; };
+ 504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; };
+ 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; };
+ 50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; };
+ 9582B6832FE993A70072D4E8 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9582B6822FE993A50072D4E8 /* SceneDelegate.swift */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ A1B2C3D40000000000000002 /* LinedeskBridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LinedeskBridge.swift; sourceTree = "<group>"; };
+ A1B2C3D40000000000000003 /* App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = "<group>"; };
+ 2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = "<group>"; };
+ 50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = "<group>"; };
+ 504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
+ 504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+ 504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+ 504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+ 504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+ 50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = "<group>"; };
+ 9582B6822FE993A50072D4E8 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
+ 958DCC722DB07C7200EA8C5F /* debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = debug.xcconfig; path = ../debug.xcconfig; sourceTree = SOURCE_ROOT; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 504EC3011FED79650016851F /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 4D22ABE92AF431CB00220026 /* CapApp-SPM in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 504EC2FB1FED79650016851F = {
+ isa = PBXGroup;
+ children = (
+ 958DCC722DB07C7200EA8C5F /* debug.xcconfig */,
+ 504EC3061FED79650016851F /* App */,
+ 504EC3051FED79650016851F /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ 504EC3051FED79650016851F /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 504EC3041FED79650016851F /* App.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 504EC3061FED79650016851F /* App */ = {
+ isa = PBXGroup;
+ children = (
+ 9582B6822FE993A50072D4E8 /* SceneDelegate.swift */,
+ 50379B222058CBB4000EE86E /* capacitor.config.json */,
+ 504EC3071FED79650016851F /* AppDelegate.swift */,
+ A1B2C3D40000000000000002 /* LinedeskBridge.swift */,
+ A1B2C3D40000000000000003 /* App.entitlements */,
+ 504EC30B1FED79650016851F /* Main.storyboard */,
+ 504EC30E1FED79650016851F /* Assets.xcassets */,
+ 504EC3101FED79650016851F /* LaunchScreen.storyboard */,
+ 504EC3131FED79650016851F /* Info.plist */,
+ 2FAD9762203C412B000D30F8 /* config.xml */,
+ 50B271D01FEDC1A000F3C39B /* public */,
+ );
+ path = App;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 504EC3031FED79650016851F /* App */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */;
+ buildPhases = (
+ 504EC3001FED79650016851F /* Sources */,
+ 504EC3011FED79650016851F /* Frameworks */,
+ 504EC3021FED79650016851F /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = App;
+ packageProductDependencies = (
+ 4D22ABE82AF431CB00220026 /* CapApp-SPM */,
+ );
+ productName = App;
+ productReference = 504EC3041FED79650016851F /* App.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 504EC2FC1FED79650016851F /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastSwiftUpdateCheck = 0920;
+ LastUpgradeCheck = 0920;
+ TargetAttributes = {
+ 504EC3031FED79650016851F = {
+ CreatedOnToolsVersion = 9.2;
+ LastSwiftMigration = 1100;
+ ProvisioningStyle = Automatic;
+ };
+ };
+ };
+ buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */;
+ compatibilityVersion = "Xcode 8.0";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 504EC2FB1FED79650016851F;
+ packageReferences = (
+ D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */,
+ );
+ productRefGroup = 504EC3051FED79650016851F /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 504EC3031FED79650016851F /* App */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 504EC3021FED79650016851F /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */,
+ 50B271D11FEDC1A000F3C39B /* public in Resources */,
+ 504EC30F1FED79650016851F /* Assets.xcassets in Resources */,
+ 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */,
+ 504EC30D1FED79650016851F /* Main.storyboard in Resources */,
+ 2FAD9763203C412B000D30F8 /* config.xml in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 504EC3001FED79650016851F /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 504EC3081FED79650016851F /* AppDelegate.swift in Sources */,
+ A1B2C3D40000000000000001 /* LinedeskBridge.swift in Sources */,
+ 9582B6832FE993A70072D4E8 /* SceneDelegate.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 504EC30B1FED79650016851F /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 504EC30C1FED79650016851F /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "<group>";
+ };
+ 504EC3101FED79650016851F /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 504EC3111FED79650016851F /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 504EC3141FED79650016851F /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 958DCC722DB07C7200EA8C5F /* debug.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 17.4;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ 504EC3151FED79650016851F /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 17.4;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 504EC3171FED79650016851F /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 958DCC722DB07C7200EA8C5F /* debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = GSQ3VDC7Y2;
+ CURRENT_PROJECT_VERSION = 1;
+ INFOPLIST_FILE = App/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 17.4;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MARKETING_VERSION = 1.0;
+ OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
+ PRODUCT_BUNDLE_IDENTIFIER = ai.linedesk.app;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 504EC3181FED79650016851F /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = GSQ3VDC7Y2;
+ CURRENT_PROJECT_VERSION = 1;
+ INFOPLIST_FILE = App/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 17.4;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = ai.linedesk.app;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 504EC3141FED79650016851F /* Debug */,
+ 504EC3151FED79650016851F /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 504EC3171FED79650016851F /* Debug */,
+ 504EC3181FED79650016851F /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+
+/* Begin XCLocalSwiftPackageReference section */
+ D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */ = {
+ isa = XCLocalSwiftPackageReference;
+ relativePath = "CapApp-SPM";
+ };
+/* End XCLocalSwiftPackageReference section */
+
+/* Begin XCSwiftPackageProductDependency section */
+ 4D22ABE82AF431CB00220026 /* CapApp-SPM */ = {
+ isa = XCSwiftPackageProductDependency;
+ package = D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */;
+ productName = "CapApp-SPM";
+ };
+/* End XCSwiftPackageProductDependency section */
+ };
+ rootObject = 504EC2FC1FED79650016851F /* Project object */;
+}
diff --git a/apps/mobile/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/apps/mobile/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/apps/mobile/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IDEDidComputeMac32BitWarning</key>
+ <true/>
+</dict>
+</plist>
diff --git a/apps/mobile/ios/App/App/App.entitlements b/apps/mobile/ios/App/App/App.entitlements
new file mode 100644
index 00000000..202cf0e2
--- /dev/null
+++ b/apps/mobile/ios/App/App/App.entitlements
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>aps-environment</key>
+ <string>production</string>
+ <key>com.apple.developer.associated-domains</key>
+ <array>
+ <string>applinks:app.linedesk.ai</string>
+ <string>webcredentials:app.linedesk.ai</string>
+ </array>
+ <key>com.apple.developer.applesignin</key>
+ <array>
+ <string>Default</string>
+ </array>
+</dict>
+</plist>
diff --git a/apps/mobile/ios/App/App/AppDelegate.swift b/apps/mobile/ios/App/App/AppDelegate.swift
new file mode 100644
index 00000000..fec95aca
--- /dev/null
+++ b/apps/mobile/ios/App/App/AppDelegate.swift
@@ -0,0 +1,44 @@
+import UIKit
+import Capacitor
+
+@UIApplicationMain
+class AppDelegate: UIResponder, UIApplicationDelegate {
+
+ var window: UIWindow?
+
+ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
+ // Override point for customization after application launch.
+ return true
+ }
+
+ func applicationWillResignActive(_ application: UIApplication) {
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
+ // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
+ }
+
+ func applicationDidEnterBackground(_ application: UIApplication) {
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
+ }
+
+ func applicationWillEnterForeground(_ application: UIApplication) {
+ // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
+ }
+
+ func applicationDidBecomeActive(_ application: UIApplication) {
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+ }
+
+ func applicationWillTerminate(_ application: UIApplication) {
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
+ }
+
+ func application(_ application: UIApplication,
+ configurationForConnecting connectingSceneSession: UISceneSession,
+ options: UIScene.ConnectionOptions) -> UISceneConfiguration {
+ let config = UISceneConfiguration(name: "Default Configuration",
+ sessionRole: connectingSceneSession.role)
+ config.delegateClass = SceneDelegate.self
+ return config
+ }
+}
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-1024.png b/apps/mobile/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-1024.png
new file mode 100644
index 00000000..31771b72
Binary files /dev/null and b/apps/mobile/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-1024.png differ
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json b/apps/mobile/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 00000000..43c6e24a
--- /dev/null
+++ b/apps/mobile/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,14 @@
+{
+ "images": [
+ {
+ "idiom": "universal",
+ "size": "1024x1024",
+ "filename": "AppIcon-1024.png",
+ "platform": "ios"
+ }
+ ],
+ "info": {
+ "author": "xcode",
+ "version": 1
+ }
+}
\ No newline at end of file
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/Contents.json b/apps/mobile/ios/App/App/Assets.xcassets/Contents.json
new file mode 100644
index 00000000..da4a164c
--- /dev/null
+++ b/apps/mobile/ios/App/App/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json
new file mode 100644
index 00000000..84a416d6
--- /dev/null
+++ b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json
@@ -0,0 +1,56 @@
+{
+ "images": [
+ {
+ "idiom": "universal",
+ "filename": "Default@1x~universal~anyany.png",
+ "scale": "1x"
+ },
+ {
+ "idiom": "universal",
+ "filename": "Default@2x~universal~anyany.png",
+ "scale": "2x"
+ },
+ {
+ "idiom": "universal",
+ "filename": "Default@3x~universal~anyany.png",
+ "scale": "3x"
+ },
+ {
+ "appearances": [
+ {
+ "appearance": "luminosity",
+ "value": "dark"
+ }
+ ],
+ "idiom": "universal",
+ "scale": "1x",
+ "filename": "Default@1x~universal~anyany-dark.png"
+ },
+ {
+ "appearances": [
+ {
+ "appearance": "luminosity",
+ "value": "dark"
+ }
+ ],
+ "idiom": "universal",
+ "scale": "2x",
+ "filename": "Default@2x~universal~anyany-dark.png"
+ },
+ {
+ "appearances": [
+ {
+ "appearance": "luminosity",
+ "value": "dark"
+ }
+ ],
+ "idiom": "universal",
+ "scale": "3x",
+ "filename": "Default@3x~universal~anyany-dark.png"
+ }
+ ],
+ "info": {
+ "version": 1,
+ "author": "xcode"
+ }
+}
\ No newline at end of file
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany-dark.png b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany-dark.png
new file mode 100644
index 00000000..5e750903
Binary files /dev/null and b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany-dark.png differ
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany.png b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany.png
new file mode 100644
index 00000000..1581105a
Binary files /dev/null and b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany.png differ
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany-dark.png b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany-dark.png
new file mode 100644
index 00000000..5e750903
Binary files /dev/null and b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany-dark.png differ
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany.png b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany.png
new file mode 100644
index 00000000..1581105a
Binary files /dev/null and b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany.png differ
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany-dark.png b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany-dark.png
new file mode 100644
index 00000000..5e750903
Binary files /dev/null and b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany-dark.png differ
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany.png b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany.png
new file mode 100644
index 00000000..1581105a
Binary files /dev/null and b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany.png differ
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png
new file mode 100644
index 00000000..33ea6c97
Binary files /dev/null and b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png differ
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png
new file mode 100644
index 00000000..33ea6c97
Binary files /dev/null and b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png differ
diff --git a/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png
new file mode 100644
index 00000000..33ea6c97
Binary files /dev/null and b/apps/mobile/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png differ
diff --git a/apps/mobile/ios/App/App/Base.lproj/LaunchScreen.storyboard b/apps/mobile/ios/App/App/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 00000000..e7ae5d78
--- /dev/null
+++ b/apps/mobile/ios/App/App/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17132" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+ <device id="retina4_7" orientation="portrait" appearance="light"/>
+ <dependencies>
+ <deployment identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17105"/>
+ <capability name="System colors in document resources" minToolsVersion="11.0"/>
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+ </dependencies>
+ <scenes>
+ <!--View Controller-->
+ <scene sceneID="EHf-IW-A2E">
+ <objects>
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+ <imageView key="view" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Splash" id="snD-IY-ifK">
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
+ <autoresizingMask key="autoresizingMask"/>
+ <color key="backgroundColor" systemColor="systemBackgroundColor"/>
+ </imageView>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="53" y="375"/>
+ </scene>
+ </scenes>
+ <resources>
+ <image name="Splash" width="1366" height="1366"/>
+ <systemColor name="systemBackgroundColor">
+ <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+ </systemColor>
+ </resources>
+</document>
diff --git a/apps/mobile/ios/App/App/Base.lproj/Main.storyboard b/apps/mobile/ios/App/App/Base.lproj/Main.storyboard
new file mode 100644
index 00000000..bc0404ab
--- /dev/null
+++ b/apps/mobile/ios/App/App/Base.lproj/Main.storyboard
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14111" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
+ <device id="retina4_7" orientation="portrait">
+ <adaptation id="fullscreen"/>
+ </device>
+ <dependencies>
+ <deployment identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
+ </dependencies>
+ <scenes>
+ <!--Bridge View Controller-->
+ <scene sceneID="tne-QT-ifu">
+ <objects>
+ <viewController id="BYZ-38-t0r" customClass="LinedeskViewController" customModule="App" customModuleProvider="target" sceneMemberID="viewController"/>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+ </objects>
+ </scene>
+ </scenes>
+</document>
diff --git a/apps/mobile/ios/App/App/Info.plist b/apps/mobile/ios/App/App/Info.plist
new file mode 100644
index 00000000..3da66b30
--- /dev/null
+++ b/apps/mobile/ios/App/App/Info.plist
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CAPACITOR_DEBUG</key>
+ <string>$(CAPACITOR_DEBUG)</string>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>Linedesk</string>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>$(PRODUCT_NAME)</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>$(MARKETING_VERSION)</string>
+ <key>CFBundleVersion</key>
+ <string>$(CURRENT_PROJECT_VERSION)</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIApplicationSceneManifest</key>
+ <dict>
+ <key>UIApplicationSupportsMultipleScenes</key>
+ <false/>
+ <key>UISceneConfigurations</key>
+ <dict>
+ <key>UIWindowSceneSessionRoleApplication</key>
+ <array>
+ <dict>
+ <key>UISceneConfigurationName</key>
+ <string>Default Configuration</string>
+ <key>UISceneDelegateClassName</key>
+ <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
+ <key>UISceneStoryboardFile</key>
+ <string>Main</string>
+ </dict>
+ </array>
+ </dict>
+ </dict>
+ <key>UILaunchStoryboardName</key>
+ <string>LaunchScreen</string>
+ <key>UIMainStoryboardFile</key>
+ <string>Main</string>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>arm64</string>
+ </array>
+ <key>WKAppBoundDomains</key>
+ <array>
+ <string>app.linedesk.ai</string>
+ </array>
+ <key>ITSAppUsesNonExemptEncryption</key>
+ <false/>
+ <key>NSMicrophoneUsageDescription</key>
+ <string>Linedesk uses the microphone for test calls with your assistant and when you take over a call.</string>
+ <key>NSCameraUsageDescription</key>
+ <string>Linedesk uses the camera when you take a photo for your profile or your business logo.</string>
+ <key>NSPhotoLibraryUsageDescription</key>
+ <string>Linedesk opens your photos when you choose a picture for your profile or your business logo.</string>
+ <key>UIBackgroundModes</key>
+ <array>
+ <string>remote-notification</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UIViewControllerBasedStatusBarAppearance</key>
+ <true/>
+</dict>
+</plist>
diff --git a/apps/mobile/ios/App/App/LinedeskBridge.swift b/apps/mobile/ios/App/App/LinedeskBridge.swift
new file mode 100644
index 00000000..3fe731c3
--- /dev/null
+++ b/apps/mobile/ios/App/App/LinedeskBridge.swift
@@ -0,0 +1,63 @@
+import AuthenticationServices
+import Capacitor
+import UIKit
+
+/// The app's web view (Capacitor's bridge) with our own plugins registered; the npm plugins register themselves.
+class LinedeskViewController: CAPBridgeViewController {
+ override open func capacitorDidLoad() {
+ bridge?.registerPluginInstance(LinedeskAuthPlugin())
+ }
+}
+
+/// A provider sign-in in the system's sign-in browser (ASWebAuthenticationSession), for the web app's
+/// native/appSignIn.ts: Google refuses sign-ins inside an app's web view, and this sheet is the one Apple expects.
+/// `start` opens the server's sign-in page and resolves with the address it ends on: the server's own https address at
+/// `callbackPath` (`.https` callback, iOS 17.4: only an app with the server's associated domain gets it, no custom
+/// scheme another app could also claim). Closing the sheet rejects with "cancelled".
+@objc(LinedeskAuthPlugin)
+public class LinedeskAuthPlugin: CAPPlugin, CAPBridgedPlugin, ASWebAuthenticationPresentationContextProviding {
+ public let identifier = "LinedeskAuthPlugin"
+ public let jsName = "LinedeskAuth"
+ public let pluginMethods: [CAPPluginMethod] = [
+ CAPPluginMethod(name: "start", returnType: CAPPluginReturnPromise)
+ ]
+ private var session: ASWebAuthenticationSession?
+
+ @objc func start(_ call: CAPPluginCall) {
+ guard
+ let address = call.getString("url"), let url = URL(string: address),
+ let callbackPath = call.getString("callbackPath"), callbackPath.hasPrefix("/"),
+ // Only the app's own server: nothing else is opened as a sign-in page.
+ let server = bridge?.config.serverURL, let host = server.host, url.host == host, url.scheme == "https",
+ server.scheme == "https"
+ else {
+ call.reject("bad_request")
+ return
+ }
+ DispatchQueue.main.async {
+ self.session?.cancel()
+ let callback = ASWebAuthenticationSession.Callback.https(host: host, path: callbackPath)
+ let session = ASWebAuthenticationSession(url: url, callback: callback) { callbackURL, _ in
+ self.session = nil
+ if let callbackURL {
+ call.resolve(["url": callbackURL.absoluteString])
+ } else {
+ call.reject("cancelled")
+ }
+ }
+ session.presentationContextProvider = self
+ // Shares Safari's cookies: someone signed in to Google or Apple in Safari does not type it again. The
+ // Linedesk session the page makes there ends when the app redeems its code.
+ session.prefersEphemeralWebBrowserSession = false
+ self.session = session
+ if !session.start() {
+ self.session = nil
+ call.reject("cancelled")
+ }
+ }
+ }
+
+ public func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
+ return bridge?.viewController?.view.window ?? ASPresentationAnchor()
+ }
+}
diff --git a/apps/mobile/ios/App/App/SceneDelegate.swift b/apps/mobile/ios/App/App/SceneDelegate.swift
new file mode 100644
index 00000000..4cf0f393
--- /dev/null
+++ b/apps/mobile/ios/App/App/SceneDelegate.swift
@@ -0,0 +1,24 @@
+import UIKit
+import Capacitor
+
+class SceneDelegate: UIResponder, UIWindowSceneDelegate {
+ var window: UIWindow?
+
+ func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
+ guard let windowScene = scene as? UIWindowScene else { return }
+
+ window = UIWindow(windowScene: windowScene)
+ window?.rootViewController = LinedeskViewController()
+ window?.makeKeyAndVisible()
+
+ SceneDelegateProxy.shared.scene(scene, willConnectTo: session, options: connectionOptions)
+ }
+
+ func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
+ SceneDelegateProxy.shared.scene(scene, openURLContexts: URLContexts)
+ }
+
+ func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
+ SceneDelegateProxy.shared.scene(scene, continue: userActivity)
+ }
+}
diff --git a/apps/mobile/ios/App/CapApp-SPM/.gitignore b/apps/mobile/ios/App/CapApp-SPM/.gitignore
new file mode 100644
index 00000000..3b298120
--- /dev/null
+++ b/apps/mobile/ios/App/CapApp-SPM/.gitignore
@@ -0,0 +1,9 @@
+.DS_Store
+/.build
+/Packages
+/*.xcodeproj
+xcuserdata/
+DerivedData/
+.swiftpm/config/registries.json
+.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
+.netrc
diff --git a/apps/mobile/ios/App/CapApp-SPM/Package.swift b/apps/mobile/ios/App/CapApp-SPM/Package.swift
new file mode 100644
index 00000000..751809f6
--- /dev/null
+++ b/apps/mobile/ios/App/CapApp-SPM/Package.swift
@@ -0,0 +1,39 @@
+// swift-tools-version: 5.9
+import PackageDescription
+
+// DO NOT MODIFY THIS FILE - managed by Capacitor CLI commands
+let package = Package(
+ name: "CapApp-SPM",
+ platforms: [.iOS(.v15)],
+ products: [
+ .library(
+ name: "CapApp-SPM",
+ targets: ["CapApp-SPM"])
+ ],
+ dependencies: [
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "8.6.2"),
+ .package(name: "CapacitorApp", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/app"),
+ .package(name: "CapacitorBrowser", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/browser"),
+ .package(name: "CapacitorHaptics", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/haptics"),
+ .package(name: "CapacitorKeyboard", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/keyboard"),
+ .package(name: "CapacitorPushNotifications", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/push-notifications"),
+ .package(name: "CapacitorSplashScreen", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/splash-screen"),
+ .package(name: "CapacitorStatusBar", path: "../../../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/status-bar")
+ ],
+ targets: [
+ .target(
+ name: "CapApp-SPM",
+ dependencies: [
+ .product(name: "Capacitor", package: "capacitor-swift-pm"),
+ .product(name: "Cordova", package: "capacitor-swift-pm"),
+ .product(name: "CapacitorApp", package: "CapacitorApp"),
+ .product(name: "CapacitorBrowser", package: "CapacitorBrowser"),
+ .product(name: "CapacitorHaptics", package: "CapacitorHaptics"),
+ .product(name: "CapacitorKeyboard", package: "CapacitorKeyboard"),
+ .product(name: "CapacitorPushNotifications", package: "CapacitorPushNotifications"),
+ .product(name: "CapacitorSplashScreen", package: "CapacitorSplashScreen"),
+ .product(name: "CapacitorStatusBar", package: "CapacitorStatusBar")
+ ]
+ )
+ ]
+)
diff --git a/apps/mobile/ios/App/CapApp-SPM/README.md b/apps/mobile/ios/App/CapApp-SPM/README.md
new file mode 100644
index 00000000..03964db9
--- /dev/null
+++ b/apps/mobile/ios/App/CapApp-SPM/README.md
@@ -0,0 +1,5 @@
+# CapApp-SPM
+
+This package is used to host SPM dependencies for your Capacitor project
+
+Do not modify the contents of it or there may be unintended consequences.
diff --git a/apps/mobile/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift b/apps/mobile/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift
new file mode 100644
index 00000000..945afec8
--- /dev/null
+++ b/apps/mobile/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift
@@ -0,0 +1 @@
+public let isCapacitorApp = true
diff --git a/apps/mobile/ios/debug.xcconfig b/apps/mobile/ios/debug.xcconfig
new file mode 100644
index 00000000..53ce18de
--- /dev/null
+++ b/apps/mobile/ios/debug.xcconfig
@@ -0,0 +1 @@
+CAPACITOR_DEBUG = true
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
new file mode 100644
index 00000000..3c2f9bbc
--- /dev/null
+++ b/apps/mobile/package.json
@@ -0,0 +1,28 @@
+{
+ "name": "@linedesk/mobile",
+ "private": true,
+ "license": "MIT",
+ "type": "module",
+ "scripts": {
+ "sync": "cap sync",
+ "assets": "capacitor-assets generate --iconBackgroundColor '#1C1917' --iconBackgroundColorDark '#1C1917' --splashBackgroundColor '#FAFAF8' --splashBackgroundColorDark '#1C1917' --ios --android",
+ "typecheck": "tsc -p . --checkers 1"
+ },
+ "dependencies": {
+ "@capacitor/android": "8.6.2",
+ "@capacitor/app": "8.1.2",
+ "@capacitor/browser": "8.0.5",
+ "@capacitor/core": "8.6.2",
+ "@capacitor/haptics": "8.0.2",
+ "@capacitor/ios": "8.6.2",
+ "@capacitor/keyboard": "8.0.6",
+ "@capacitor/push-notifications": "8.1.3",
+ "@capacitor/splash-screen": "8.0.2",
+ "@capacitor/status-bar": "8.0.4"
+ },
+ "devDependencies": {
+ "@capacitor/assets": "4.0.0",
+ "@capacitor/cli": "8.6.2",
+ "@types/node": "^26.6.6"
+ }
+}
diff --git a/apps/mobile/tsconfig.json b/apps/mobile/tsconfig.json
new file mode 100644
index 00000000..97016e19
--- /dev/null
+++ b/apps/mobile/tsconfig.json
@@ -0,0 +1 @@
+{ "extends": "../../tsconfig.base.json", "compilerOptions": { "types": ["node"] }, "include": ["capacitor.config.ts"] }
diff --git a/apps/mobile/www/index.html b/apps/mobile/www/index.html
new file mode 100644
index 00000000..089203c9
--- /dev/null
+++ b/apps/mobile/www/index.html
@@ -0,0 +1,9 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
+ <title>Linedesk</title>
+ </head>
+ <body></body>
+</html>
diff --git a/apps/mobile/www/offline.html b/apps/mobile/www/offline.html
new file mode 100644
index 00000000..959d8d41
--- /dev/null
+++ b/apps/mobile/www/offline.html
@@ -0,0 +1,44 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
+ <title>Linedesk</title>
+ <style>
+ html, body { height: 100%; margin: 0; }
+ body {
+ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
+ padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
+ background: #fafaf8; color: #1c1917; text-align: center;
+ font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
+ }
+ @media (prefers-color-scheme: dark) { body { background: #1c1917; color: #fafaf8; } button { background: #fafaf8; color: #1c1917; } }
+ h1 { font-size: 20px; margin: 0; }
+ p { margin: 0; max-width: 320px; opacity: 0.7; }
+ button { border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 600; background: #1c1917; color: #fafaf8; }
+ </style>
+ </head>
+ <body>
+ <!-- Before the web app (and its translations) loads, so the text is chosen here by the phone's language. -->
+ <h1 id="title">No connection</h1>
+ <p id="text">Linedesk needs the internet. Check your connection and try again.</p>
+ <button id="retry" type="button">Try again</button>
+ <script>
+ const words = {
+ de: ['Keine Verbindung', 'Linedesk braucht Internet. Prüfe deine Verbindung und versuche es noch einmal.', 'Noch einmal'],
+ es: ['Sin conexión', 'Linedesk necesita internet. Revisa tu conexión y vuelve a intentarlo.', 'Reintentar'],
+ fr: ['Pas de connexion', 'Linedesk a besoin d’internet. Vérifiez votre connexion et réessayez.', 'Réessayer'],
+ pt: ['Sem conexão', 'O Linedesk precisa de internet. Verifique sua conexão e tente de novo.', 'Tentar de novo'],
+ ja: ['接続がありません', 'Linedesk にはインターネット接続が必要です。接続を確認して、もう一度お試しください。', '再試行'],
+ }
+ const w = words[(navigator.language || 'en').slice(0, 2)]
+ if (w) {
+ document.documentElement.lang = navigator.language.slice(0, 2)
+ document.getElementById('title').textContent = w[0]
+ document.getElementById('text').textContent = w[1]
+ document.getElementById('retry').textContent = w[2]
+ }
+ document.getElementById('retry').onclick = () => { location.href = window.Capacitor?.getServerUrl?.() || '/' }
+ </script>
+ </body>
+</html>
diff --git a/apps/web/package.json b/apps/web/package.json
index 42052502..49217aa6 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -12,6 +12,7 @@
},
"dependencies": {
"@better-auth/passkey": "1.7.19",
+ "@capacitor/core": "8.6.2",
"@floating-ui/react-dom": "^2.1.9",
"@fontsource/geist": "5.3.0",
"@fontsource/geist-mono": "5.3.0",
diff --git a/apps/web/src/Login.tsx b/apps/web/src/Login.tsx
index b77dc7fc..0c98a568 100644
--- a/apps/web/src/Login.tsx
+++ b/apps/web/src/Login.tsx
@@ -5,13 +5,54 @@
// for one; an invited one gets its account on the first sign-in. "Forgot password?" sets a new one with an emailed code.
import { type FormEvent, type ReactNode, useEffect, useId, useRef, useState } from 'react'
import { codeCooldownS } from '@linedesk/actions'
-import { type AuthMethods, auth, completeSetup, type LegalLinks, passkeySupported, type SsoMethod, fetchAuthMethods, requestPasswordResetCode, requestSignInCode, resetPasswordWithCode, signInWithCode, signInWithPasskey, startSso, takeRedirectError, lostSignInState, providerElsewhereMessage, providerSignInElsewhere } from './auth.ts'
-import { authErrorMessage, authFormError, CODE_LENGTH, codeErrorMessage, emailError, newCodeWaitText, newPasswordError, noAccountText, normalizeCode, NO_CODE_HINT_AFTER_S, passwordResetOffer, RESEND_AFTER_S, resendInText, resetErrorMessage, retryAfterOf } from './sign-in-code.ts'
-import { passkeyRequestClosed, providerName, readLastUsedMethod, rememberSignInMethod, signInStart } from './sign-in-methods.ts'
+import {
+ type AuthMethods,
+ auth,
+ completeSetup,
+ type LegalLinks,
+ passkeySupported,
+ type SsoMethod,
+ fetchAuthMethods,
+ requestPasswordResetCode,
+ requestSignInCode,
+ resetPasswordWithCode,
+ signInWithCode,
+ signInWithPasskey,
+ startSso,
+ takeRedirectError,
+ lostSignInState,
+ providerElsewhereMessage,
+ providerSignInElsewhere,
+} from './auth.ts'
+import {
+ authErrorMessage,
+ authFormError,
+ CODE_LENGTH,
+ codeErrorMessage,
+ emailError,
+ newCodeWaitText,
+ newPasswordError,
+ noAccountText,
+ normalizeCode,
+ NO_CODE_HINT_AFTER_S,
+ passwordResetOffer,
+ RESEND_AFTER_S,
+ resendInText,
+ resetErrorMessage,
+ retryAfterOf,
+} from './sign-in-code.ts'
+import {
+ passkeyRequestClosed,
+ providerName,
+ readLastUsedMethod,
+ rememberSignInMethod,
+ signInStart,
+} from './sign-in-methods.ts'
import { emailFieldPasskey } from './passkey-autofill.ts'
import { useQuery } from './cachedQuery.ts'
import { LastUsed, ProviderButton, SignInMark } from './ui/brand-logos.tsx'
import { AuthError } from './ui/AuthError.tsx'
+import { isNativeApp } from './native/platform.ts'
import { WaitLine } from './shell/SignedInAuthPage.tsx'
import { HelpTip, type HelpTipContent } from './ui/HelpTip.tsx'
import { Input } from './ui/form.tsx'
@@ -47,14 +88,17 @@ const SIGNUP_PATH = '/signup'
*/
export function signupLinkFor(message: string | null, selfServeSignup: boolean | undefined) {
if (!selfServeSignup || !message || message !== noAccountText()) return undefined
- return { href: SIGNUP_PATH, label: i18n().t('auth.error.signupClosedStartTrial') }
+ // In the store apps no trial is offered (no buying there): only the account.
+ return {
+ href: SIGNUP_PATH,
+ label: i18n().t(isNativeApp() ? 'auth.error.signupClosedCreate' : 'auth.error.signupClosedStartTrial'),
+ }
}
const fail = (res: Result) => {
if (res.error) throw res.error
}
-
/** Signing in again for a place that asks for a recent sign-in (the admin area): why, and the way back. */
export type Reauth = { title: string; why: string; onBack: () => void }
@@ -124,7 +168,8 @@ export function Login({ onDone, reauth }: { onDone: () => Promise<void>; reauth?
emailFieldPasskey.stop()
}
}, [autofillRun])
- const set = (key: keyof typeof form) => (e: { target: { value: string } }) => setForm(f => ({ ...f, [key]: e.target.value }))
+ const set = (key: keyof typeof form) => (e: { target: { value: string } }) =>
+ setForm(f => ({ ...f, [key]: e.target.value }))
/** Runs one sign-in attempt; `leaves` is true when success hands over to another page (no flash of the form). */
async function attempt(what: string, action: () => Promise<boolean>) {
@@ -169,7 +214,9 @@ export function Login({ onDone, reauth }: { onDone: () => Promise<void>; reauth?
function continueWith(method: SsoMethod) {
void attempt(method.id, async () => {
rememberSignInMethod(method.id, providerName(method))
- fail(await startSso(method))
+ const res = await startSso(method)
+ if (res.cancelled) return false
+ fail(res)
return true
})
}
@@ -197,7 +244,16 @@ export function Login({ onDone, reauth }: { onDone: () => Promise<void>; reauth?
if (methods.setupNeeded && !reauth) return <SetupStep onDone={onDone} />
if (step === 'code') {
- return <CodeStep email={form.email} links={methods.links} supportEmail={methods.links.supportEmail} selfServeSignup={methods.selfServeSignup} onDone={onDone} onDifferentEmail={() => go('start')} />
+ return (
+ <CodeStep
+ email={form.email}
+ links={methods.links}
+ supportEmail={methods.links.supportEmail}
+ selfServeSignup={methods.selfServeSignup}
+ onDone={onDone}
+ onDifferentEmail={() => go('start')}
+ />
+ )
}
if (step === 'reset') {
@@ -211,17 +267,33 @@ export function Login({ onDone, reauth }: { onDone: () => Promise<void>; reauth?
const passwordFirst = methods.password && !methods.emailCode
const intro = reauth && <p>{reauth.why}</p>
// Signing in again: a way back instead of who gets an account.
- const footer = reauth
- ? <button type="button" className="auth-switch" title={t('auth.backTip')} onClick={reauth.onBack}>{t('auth.back')}</button>
- : <AuthFooter methods={methods} />
+ const footer = reauth ? (
+ <button type="button" className="auth-switch" title={t('auth.backTip')} onClick={reauth.onBack}>
+ {t('auth.back')}
+ </button>
+ ) : (
+ <AuthFooter methods={methods} />
+ )
// Not while signing in again: a reset ends every session, the one being confirmed too.
const resetOffer = !reauth ? passwordResetOffer(methods) : null
- const forgotPassword = resetOffer === 'reset'
- ? <button type="button" className="auth-switch" onClick={() => go('reset')}>{t('auth.forgot')}</button>
- : resetOffer === 'ask-admin' && <p className="auth-note">{t('auth.forgotAskAdmin')}</p>
+ const forgotPassword =
+ resetOffer === 'reset' ? (
+ <button type="button" className="auth-switch" onClick={() => go('reset')}>
+ {t('auth.forgot')}
+ </button>
+ ) : (
+ resetOffer === 'ask-admin' && <p className="auth-note">{t('auth.forgotAskAdmin')}</p>
+ )
const passwordForm = (
- <PasswordForm form={form} set={set} busy={busy === 'password'} disabled={busy !== null} error={errorLine}
- autoFocus={step === 'password'} onSubmit={signInWithPassword} />
+ <PasswordForm
+ form={form}
+ set={set}
+ busy={busy === 'password'}
+ disabled={busy !== null}
+ error={errorLine}
+ autoFocus={step === 'password'}
+ onSubmit={signInWithPassword}
+ />
)
if (step === 'password') {
@@ -243,32 +315,60 @@ export function Login({ onDone, reauth }: { onDone: () => Promise<void>; reauth?
// Provider sign-ins started at this address cannot finish here: say where they work, with a link.
const elsewhere = methods.sso.length ? providerSignInElsewhere(methods) : null
- const lostHere = Boolean(elsewhere && error && error === redirectError?.message && lostSignInState(redirectError?.code))
+ const lostHere = Boolean(
+ elsewhere && error && error === redirectError?.message && lostSignInState(redirectError?.code),
+ )
const errorPanel = (id?: string) =>
lostHere && elsewhere ? (
- <AuthError id={id} message={providerElsewhereMessage(elsewhere.host)} link={{ href: elsewhere.href, label: t('auth.openHost', { host: elsewhere.host }) }} />
+ <AuthError
+ id={id}
+ message={providerElsewhereMessage(elsewhere.host)}
+ link={{ href: elsewhere.href, label: t('auth.openHost', { host: elsewhere.host }) }}
+ />
) : (
error && <AuthError id={id} message={error} link={signupLink} />
)
const withPasskey = methods.passkey && passkeySupported()
const passkeyButton = withPasskey && (
- <ProviderButton method="passkey" label={t('auth.method.passkey')} lastUsed={lastUsed === 'passkey'} busy={busy === 'passkey'} busyText={t('auth.signingIn')}
- disabled={busy !== null} onClick={continueWithPasskey} />
+ <ProviderButton
+ method="passkey"
+ label={t('auth.method.passkey')}
+ lastUsed={lastUsed === 'passkey'}
+ busy={busy === 'passkey'}
+ busyText={t('auth.signingIn')}
+ disabled={busy !== null}
+ onClick={continueWithPasskey}
+ />
)
const hasOtherOptions = methods.password && methods.emailCode
// A passkey alone is no way in: it is added after signing in some other way.
const nothing = !methods.emailCode && !methods.password && methods.sso.length === 0
const emailForm = methods.emailCode && (
<form className="auth-form" onSubmit={sendCode} noValidate>
- <Input size="lg" type="email" id="signin-email" name="email" aria-label={t('auth.email')} placeholder={t('auth.emailPlaceholder')} value={form.email}
- onChange={set('email')} autoCapitalize="none" spellCheck={false}
+ <Input
+ size="lg"
+ type="email"
+ id="signin-email"
+ name="email"
+ aria-label={t('auth.email')}
+ placeholder={t('auth.emailPlaceholder')}
+ value={form.email}
+ onChange={set('email')}
+ autoCapitalize="none"
+ spellCheck={false}
// The account's name for password managers ("username", not "email"); with the passkey first, the browser may
// offer a passkey right in this field (autofill).
- autoComplete={start.passkeyFirst ? 'username webauthn' : 'username'} autoFocus={!start.passkeyFirst || emailOpen}
- aria-describedby={error ? 'auth-error' : undefined} />
+ autoComplete={start.passkeyFirst ? 'username webauthn' : 'username'}
+ autoFocus={!start.passkeyFirst || emailOpen}
+ aria-describedby={error ? 'auth-error' : undefined}
+ />
{/* "Send code", black, as on the sign-up and password reset pages. */}
- <button type="submit" className={cx('k-btn k-btn-primary k-btn-lg auth-provider', busy === 'email' && 'is-busy')}
- disabled={busy !== null} aria-busy={busy === 'email' || undefined}>
+ <button
+ type="submit"
+ className={cx('k-btn k-btn-primary k-btn-lg auth-provider', busy === 'email' && 'is-busy')}
+ disabled={busy !== null}
+ aria-busy={busy === 'email' || undefined}
+ >
{busy === 'email' && <Spinner />}
<span className="auth-provider-label">{t('auth.signup.sendCode')}</span>
{lastUsed === 'email' && <LastUsed />}
@@ -290,37 +390,70 @@ export function Login({ onDone, reauth }: { onDone: () => Promise<void>; reauth?
)}
{/* One black button: the passkey, until the email form opens and its "Send code" is the step's action. Not
focused on load: a focus ring around the first thing on the page reads as an error (U4). */}
- <button type="button" className={cx('k-btn k-btn-lg auth-provider', emailOpen ? 'k-btn-secondary' : 'k-btn-primary', passkeyBusy && 'is-busy')}
- disabled={busy !== null} aria-busy={passkeyBusy || undefined} onClick={continueWithPasskey}>
+ <button
+ type="button"
+ className={cx(
+ 'k-btn k-btn-lg auth-provider',
+ emailOpen ? 'k-btn-secondary' : 'k-btn-primary',
+ passkeyBusy && 'is-busy',
+ )}
+ disabled={busy !== null}
+ aria-busy={passkeyBusy || undefined}
+ onClick={continueWithPasskey}
+ >
{passkeyBusy ? <Spinner /> : <SignInMark method="passkey" />}
<span className="auth-provider-label">{t('auth.withPasskey')}</span>
{lastUsed === 'passkey' && <LastUsed />}
</button>
{!methods.emailCode && errorPanel()}
- {methods.emailCode && (emailOpen ? (
- <>
- <hr className="auth-separator" />
- {emailForm}
- </>
- ) : (
- <>
- {errorPanel()}
- <button type="button" className="auth-switch auth-more" onClick={() => setEmailChosen(true)}>{t('auth.useEmailCode')}</button>
- </>
- ))}
+ {methods.emailCode &&
+ (emailOpen ? (
+ <>
+ <hr className="auth-separator" />
+ {emailForm}
+ </>
+ ) : (
+ <>
+ {errorPanel()}
+ <button type="button" className="auth-switch auth-more" onClick={() => setEmailChosen(true)}>
+ {t('auth.useEmailCode')}
+ </button>
+ </>
+ ))}
{methods.sso.length > 0 && <hr className="auth-separator" />}
{methods.sso.map(m => (
- <ProviderButton key={m.id} method={m.id} label={m.label} lastUsed={lastUsed === m.id} busy={busy === m.id}
- disabled={busy !== null} onClick={() => continueWith(m)} />
+ <ProviderButton
+ key={m.id}
+ method={m.id}
+ label={m.label}
+ lastUsed={lastUsed === m.id}
+ busy={busy === m.id}
+ disabled={busy !== null}
+ onClick={() => continueWith(m)}
+ />
))}
{elsewhere && !lostHere && (
<p className="auth-hint">
- <T k="auth.providersAt" values={{ host: elsewhere.host, a: chunks => <a href={elsewhere.href}>{chunks}</a> }} />
+ <T
+ k="auth.providersAt"
+ values={{ host: elsewhere.host, a: chunks => <a href={elsewhere.href}>{chunks}</a> }}
+ />
</p>
)}
- {methods.password && (otherOptions || !methods.emailCode
- ? <ProviderButton method="password" label={t('auth.method.password')} lastUsed={lastUsed === 'password'} disabled={busy !== null} onClick={() => go('password')} />
- : <button type="button" className="auth-switch auth-more" onClick={() => setOtherOptions(true)}>{t('auth.showOther')}</button>)}
+ {methods.password &&
+ (otherOptions || !methods.emailCode ? (
+ <ProviderButton
+ method="password"
+ label={t('auth.method.password')}
+ lastUsed={lastUsed === 'password'}
+ disabled={busy !== null}
+ onClick={() => go('password')}
+ />
+ ) : (
+ <button type="button" className="auth-switch auth-more" onClick={() => setOtherOptions(true)}>
+ {t('auth.showOther')}
+ </button>
+ ))}
{footer}
</div>
</AuthPage>
@@ -339,26 +472,51 @@ export function Login({ onDone, reauth }: { onDone: () => Promise<void>; reauth?
)}
{/* Signing in again: the passkey first, the way that also counts longest (12 hours). */}
{reauth && passkeyButton}
- {reauth && passkeyButton && (methods.emailCode || methods.password || methods.sso.length > 0) && <hr className="auth-separator" />}
+ {reauth && passkeyButton && (methods.emailCode || methods.password || methods.sso.length > 0) && (
+ <hr className="auth-separator" />
+ )}
{emailForm}
{passwordFirst && passwordForm}
{passwordFirst && forgotPassword}
- {(methods.emailCode || passwordFirst) && (methods.sso.length > 0 || (withPasskey && !reauth)) && <hr className="auth-separator" />}
+ {(methods.emailCode || passwordFirst) && (methods.sso.length > 0 || (withPasskey && !reauth)) && (
+ <hr className="auth-separator" />
+ )}
{!methods.emailCode && !passwordFirst && errorPanel()}
{nothing && <AuthError message={t('auth.noMethod')} />}
{methods.sso.map(m => (
- <ProviderButton key={m.id} method={m.id} label={m.label} lastUsed={lastUsed === m.id} busy={busy === m.id}
- disabled={busy !== null} onClick={() => continueWith(m)} />
+ <ProviderButton
+ key={m.id}
+ method={m.id}
+ label={m.label}
+ lastUsed={lastUsed === m.id}
+ busy={busy === m.id}
+ disabled={busy !== null}
+ onClick={() => continueWith(m)}
+ />
))}
{elsewhere && !lostHere && (
<p className="auth-hint">
- <T k="auth.providersAt" values={{ host: elsewhere.host, a: chunks => <a href={elsewhere.href}>{chunks}</a> }} />
+ <T
+ k="auth.providersAt"
+ values={{ host: elsewhere.host, a: chunks => <a href={elsewhere.href}>{chunks}</a> }}
+ />
</p>
)}
{!reauth && passkeyButton}
- {hasOtherOptions && (otherOptions
- ? <ProviderButton method="password" label={t('auth.method.password')} lastUsed={lastUsed === 'password'} disabled={busy !== null} onClick={() => go('password')} />
- : <button type="button" className="auth-switch auth-more" onClick={() => setOtherOptions(true)}>{t('auth.showOther')}</button>)}
+ {hasOtherOptions &&
+ (otherOptions ? (
+ <ProviderButton
+ method="password"
+ label={t('auth.method.password')}
+ lastUsed={lastUsed === 'password'}
+ disabled={busy !== null}
+ onClick={() => go('password')}
+ />
+ ) : (
+ <button type="button" className="auth-switch auth-more" onClick={() => setOtherOptions(true)}>
+ {t('auth.showOther')}
+ </button>
+ ))}
{footer}
</div>
</AuthPage>
@@ -368,7 +526,11 @@ export function Login({ onDone, reauth }: { onDone: () => Promise<void>; reauth?
type PasswordFormProps = {
form: { email: string; password: string }
set: (key: 'email' | 'password') => (e: { target: { value: string } }) => void
- busy: boolean; disabled: boolean; error: ReactNode; autoFocus: boolean; onSubmit: (e: FormEvent) => void
+ busy: boolean
+ disabled: boolean
+ error: ReactNode
+ autoFocus: boolean
+ onSubmit: (e: FormEvent) => void
}
/** Email and password. */
@@ -376,10 +538,31 @@ function PasswordForm({ form, set, busy, disabled, error, autoFocus, onSubmit }:
const t = useT()
return (
<form className="auth-form" onSubmit={onSubmit} noValidate>
- <Input size="lg" type="email" id="signin-username" name="username" aria-label={t('auth.email')} placeholder={t('auth.emailPlaceholder')} value={form.email}
- onChange={set('email')} autoComplete="username" autoCapitalize="none" spellCheck={false} autoFocus={autoFocus} />
- <Input size="lg" type="password" id="signin-password" name="password" aria-label={t('auth.method.password')} placeholder={t('auth.method.password')}
- value={form.password} onChange={set('password')} autoComplete="current-password" />
+ <Input
+ size="lg"
+ type="email"
+ id="signin-username"
+ name="username"
+ aria-label={t('auth.email')}
+ placeholder={t('auth.emailPlaceholder')}
+ value={form.email}
+ onChange={set('email')}
+ autoComplete="username"
+ autoCapitalize="none"
+ spellCheck={false}
+ autoFocus={autoFocus}
+ />
+ <Input
+ size="lg"
+ type="password"
+ id="signin-password"
+ name="password"
+ aria-label={t('auth.method.password')}
+ placeholder={t('auth.method.password')}
+ value={form.password}
+ onChange={set('password')}
+ autoComplete="current-password"
+ />
<Button type="submit" variant="primary" size="lg" busy={busy} disabled={disabled}>
{t('auth.signIn')}
</Button>
@@ -396,9 +579,20 @@ export function AuthFooter({ methods }: { methods: AuthMethods }) {
const t = useT()
const note = (
<p className="auth-note">
- {methods.selfServeSignup
- ? <T k="auth.noAccountSignup" values={{ a: chunks => <a className="k-link" href={SIGNUP_PATH}>{chunks}</a> }} />
- : t('auth.noAccount')}
+ {methods.selfServeSignup ? (
+ <T
+ k={isNativeApp() ? 'auth.noAccountCreate' : 'auth.noAccountSignup'}
+ values={{
+ a: chunks => (
+ <a className="k-link" href={SIGNUP_PATH}>
+ {chunks}
+ </a>
+ ),
+ }}
+ />
+ ) : (
+ t('auth.noAccount')
+ )}
</p>
)
return <CardFooter links={methods.links} note={note} />
@@ -408,7 +602,16 @@ export function AuthFooter({ methods }: { methods: AuthMethods }) {
export function HaveAccount() {
return (
<p className="auth-note">
- <T k="auth.signup.haveAccountSignIn" values={{ a: chunks => <a className="k-link" href="/">{chunks}</a> }} />
+ <T
+ k="auth.signup.haveAccountSignIn"
+ values={{
+ a: chunks => (
+ <a className="k-link" href="/">
+ {chunks}
+ </a>
+ ),
+ }}
+ />
</p>
)
}
@@ -419,7 +622,15 @@ export function HaveAccount() {
* Terms · Privacy, each only when set, and the language. `language` is off for someone signed in: their own language
* (Account › Preferences) applies.
*/
-export function CardFooter({ links, note, language = true }: { links: LegalLinks | null; note?: ReactNode; language?: boolean }) {
+export function CardFooter({
+ links,
+ note,
+ language = true,
+}: {
+ links: LegalLinks | null
+ note?: ReactNode
+ language?: boolean
+}) {
return (
<footer className="auth-footer">
{(note || links?.supportEmail) && (
@@ -438,7 +649,17 @@ export function CardFooter({ links, note, language = true }: { links: LegalLinks
export function NeedHelp({ email }: { email: string }) {
return (
<p className="auth-note">
- <T k="auth.needHelp" values={{ email, a: chunks => <a className="k-link" href={`mailto:${email}`}>{chunks}</a> }} />
+ <T
+ k="auth.needHelp"
+ values={{
+ email,
+ a: chunks => (
+ <a className="k-link" href={`mailto:${email}`}>
+ {chunks}
+ </a>
+ ),
+ }}
+ />
</p>
)
}
@@ -475,11 +696,23 @@ function SignInLanguage() {
function LegalLinksLine({ links }: { links: LegalLinks }) {
const t = useT()
const items = [
- links.terms && <a key="terms" href={links.terms} target="_blank" rel="noreferrer">{t('common.legal.terms')}</a>,
- links.privacy && <a key="privacy" href={links.privacy} target="_blank" rel="noreferrer">{t('common.legal.privacy')}</a>,
+ links.terms && (
+ <a key="terms" href={links.terms} target="_blank" rel="noreferrer">
+ {t('common.legal.terms')}
+ </a>
+ ),
+ links.privacy && (
+ <a key="privacy" href={links.privacy} target="_blank" rel="noreferrer">
+ {t('common.legal.privacy')}
+ </a>
+ ),
].filter(Boolean)
if (!items.length) return null
- return <nav className="auth-legal" aria-label={t('auth.legalLabel')}>{items}</nav>
+ return (
+ <nav className="auth-legal" aria-label={t('auth.legalLabel')}>
+ {items}
+ </nav>
+ )
}
type CodeStepProps = {
@@ -497,7 +730,15 @@ type CodeStepProps = {
}
/** One field for the six digits: typing, pasting the whole code or the OS's one-time-code fill all work; the sixth digit submits. */
-export function CodeStep({ email, links, supportEmail, invited = false, selfServeSignup = false, onDone, onDifferentEmail }: CodeStepProps) {
+export function CodeStep({
+ email,
+ links,
+ supportEmail,
+ invited = false,
+ selfServeSignup = false,
+ onDone,
+ onDifferentEmail,
+}: CodeStepProps) {
const t = useT()
const [code, setCode] = useState('')
const [error, setError] = useState<string | null>(null)
@@ -561,16 +802,36 @@ export function CodeStep({ email, links, supportEmail, invited = false, selfServ
return (
<AuthPage>
- <form className="auth-card" noValidate onSubmit={e => { e.preventDefault(); if (code.length === CODE_LENGTH) void check(code) }}>
+ <form
+ className="auth-card"
+ noValidate
+ onSubmit={e => {
+ e.preventDefault()
+ if (code.length === CODE_LENGTH) void check(code)
+ }}
+ >
<h1>{t('auth.code.title')}</h1>
{/* No code goes to an address that cannot sign in (apps/api/src/signup-gate.ts), so the line hedges, and says the
same for every address: whether this one has an account is not told (no account enumeration). From an
invitation the address may sign in, so it says plainly that the code was sent. */}
<p>{invited ? t('auth.code.sentInvited', { email }) : t('auth.code.sentIfAccount', { email })}</p>
- <input ref={input} className="auth-code" id="signin-code" name="code" aria-label={t('auth.code.label')} placeholder={t('auth.code.label')} value={code}
- onChange={e => change(e.target.value)} disabled={busy}
- inputMode="numeric" autoComplete="one-time-code" pattern="[0-9]*" maxLength={CODE_LENGTH + 6} autoFocus
- aria-describedby={error ? 'code-error' : undefined} />
+ <input
+ ref={input}
+ className="auth-code"
+ id="signin-code"
+ name="code"
+ aria-label={t('auth.code.label')}
+ placeholder={t('auth.code.label')}
+ value={code}
+ onChange={e => change(e.target.value)}
+ disabled={busy}
+ inputMode="numeric"
+ autoComplete="one-time-code"
+ pattern="[0-9]*"
+ maxLength={CODE_LENGTH + 6}
+ autoFocus
+ aria-describedby={error ? 'code-error' : undefined}
+ />
{error && <AuthError message={error} id="code-error" link={signupLinkFor(error, selfServeSignup)} />}
<Button type="submit" variant="primary" size="lg" busy={busy || signedIn} disabled={code.length < CODE_LENGTH}>
{t('auth.signup.continue')}
@@ -580,10 +841,14 @@ export function CodeStep({ email, links, supportEmail, invited = false, selfServ
<button type="button" className="auth-switch" disabled={waitS > 0} onClick={() => void resend()}>
{waitS > 0 ? resendInText(waitS) : t('auth.code.resend')}
</button>
- <button type="button" className="auth-switch" onClick={onDifferentEmail}>{t('auth.differentEmail')}</button>
+ <button type="button" className="auth-switch" onClick={onDifferentEmail}>
+ {t('auth.differentEmail')}
+ </button>
</div>
{/* Said once when Resend opens, not every second of the countdown; focus stays in the code field. */}
- <span className="sr-only" role="status">{waitS > 0 ? '' : t('auth.code.resendReady')}</span>
+ <span className="sr-only" role="status">
+ {waitS > 0 ? '' : t('auth.code.resendReady')}
+ </span>
{/* Only after a minute without a sign-in: before that the email is most likely still on its way. */}
{late && <NoCodeHint invited={invited} supportEmail={supportEmail} />}
{/* The legal links and the language only: "Need help?" comes with the hint above, after a minute. */}
@@ -613,15 +878,29 @@ export function CodeWait({ waitS, providerNote }: { waitS: number; providerNote?
const [opening, setOpening] = useState<string | null>(null)
return (
<div className="auth-notes">
- <p className="auth-note" role="status">{newCodeWaitText(waitS)}</p>
+ <p className="auth-note" role="status">
+ {newCodeWaitText(waitS)}
+ </p>
{sso.length > 0 && providerNote && <p className="auth-note">{providerNote}</p>}
{sso.map(m => (
- <ProviderButton key={m.id} method={m.id} label={m.label} lastUsed={false} busy={opening === m.id} disabled={opening !== null}
+ <ProviderButton
+ key={m.id}
+ method={m.id}
+ label={m.label}
+ lastUsed={false}
+ busy={opening === m.id}
+ disabled={opening !== null}
onClick={() => {
setOpening(m.id)
rememberSignInMethod(m.id, providerName(m))
- void startSso(m).then(res => { if (res.error) setOpening(null) }, () => setOpening(null))
- }} />
+ void startSso(m).then(
+ res => {
+ if (res.error) setOpening(null)
+ },
+ () => setOpening(null),
+ )
+ }}
+ />
))}
</div>
)
@@ -698,15 +977,29 @@ function ResetStep({ initialEmail, links, onDone, onBack }: ResetStepProps) {
<h1>{t('auth.reset.title')}</h1>
<p>{t('auth.reset.text')}</p>
<div className="auth-form">
- <Input size="lg" type="email" id="reset-username" name="username" aria-label={t('auth.email')} placeholder={t('auth.emailPlaceholder')} value={email}
- onChange={e => setEmail(e.target.value)} autoComplete="username" autoCapitalize="none" spellCheck={false} autoFocus
- aria-describedby={error ? 'reset-error' : undefined} />
+ <Input
+ size="lg"
+ type="email"
+ id="reset-username"
+ name="username"
+ aria-label={t('auth.email')}
+ placeholder={t('auth.emailPlaceholder')}
+ value={email}
+ onChange={e => setEmail(e.target.value)}
+ autoComplete="username"
+ autoCapitalize="none"
+ spellCheck={false}
+ autoFocus
+ aria-describedby={error ? 'reset-error' : undefined}
+ />
<Button type="submit" variant="primary" size="lg" busy={busy === 'send'} disabled={busy !== null}>
{t('auth.reset.send')}
</Button>
{error && <AuthError message={error} id="reset-error" />}
</div>
- <button type="button" className="auth-switch" onClick={onBack}>{t('auth.reset.back')}</button>
+ <button type="button" className="auth-switch" onClick={onBack}>
+ {t('auth.reset.back')}
+ </button>
<CardFooter links={links} />
</form>
</AuthPage>
@@ -723,23 +1016,58 @@ function ResetStep({ initialEmail, links, onDone, onBack }: ResetStepProps) {
<div className="auth-form">
{/* The account the new password belongs to, for password managers: they update that login. */}
<input type="email" name="username" autoComplete="username" value={email.trim()} readOnly hidden />
- <input className="auth-code" id="reset-code" name="code" aria-label={t('auth.code.label')} placeholder={t('auth.code.label')} value={code}
+ <input
+ className="auth-code"
+ id="reset-code"
+ name="code"
+ aria-label={t('auth.code.label')}
+ placeholder={t('auth.code.label')}
+ value={code}
onChange={e => setCode(normalizeCode(e.target.value))}
- disabled={working} inputMode="numeric" autoComplete="one-time-code" pattern="[0-9]*" maxLength={CODE_LENGTH + 6} autoFocus
- aria-describedby={error ? 'reset-error' : undefined} />
- <Input size="lg" type="password" id="reset-new-password" name="new-password" aria-label={t('auth.reset.newPassword')}
- placeholder={t('auth.reset.newPasswordPlaceholder', { min: 8 })} value={password} onChange={e => setPassword(e.target.value)}
- disabled={working} autoComplete="new-password" minLength={8} />
+ disabled={working}
+ inputMode="numeric"
+ autoComplete="one-time-code"
+ pattern="[0-9]*"
+ maxLength={CODE_LENGTH + 6}
+ autoFocus
+ aria-describedby={error ? 'reset-error' : undefined}
+ />
+ <Input
+ size="lg"
+ type="password"
+ id="reset-new-password"
+ name="new-password"
+ aria-label={t('auth.reset.newPassword')}
+ placeholder={t('auth.reset.newPasswordPlaceholder', { min: 8 })}
+ value={password}
+ onChange={e => setPassword(e.target.value)}
+ disabled={working}
+ autoComplete="new-password"
+ minLength={8}
+ />
<Button type="submit" variant="primary" size="lg" busy={working} disabled={busy !== null}>
{t('auth.reset.set')}
</Button>
{error && <AuthError message={error} id="reset-error" />}
</div>
<p className="auth-note">{t('auth.reset.signsOut')}</p>
- {waitS > 0
- ? <p className="auth-note">{newCodeWaitText(waitS)}</p>
- : <button type="button" className="auth-switch" disabled={busy !== null} onClick={() => void send()}>{t('auth.code.resend')}</button>}
- <button type="button" className="auth-switch" onClick={() => { setSent(false); setError(null) }}>{t('auth.differentEmail')}</button>
+ {waitS > 0 ? (
+ <p className="auth-note">{newCodeWaitText(waitS)}</p>
+ ) : (
+ <button type="button" className="auth-switch" disabled={busy !== null} onClick={() => void send()}>
+ {t('auth.code.resend')}
+ </button>
+ )}
+ <button
+ type="button"
+ className="auth-switch"
+ onClick={() => {
+ setSent(false)
+ setError(null)
+ }}
+ >
+ {t('auth.differentEmail')}
+ </button>
<CardFooter links={links} />
</form>
</AuthPage>
@@ -765,7 +1093,8 @@ function SetupStep({ onDone }: { onDone: () => Promise<void> }) {
const [form, setForm] = useState({ code: '', name: '', email: '', password: '' })
const [busy, setBusy] = useState(false)
const [error, setError] = useState<string | null>(null)
- const set = (key: keyof typeof form) => (e: { target: { value: string } }) => setForm(f => ({ ...f, [key]: e.target.value }))
+ const set = (key: keyof typeof form) => (e: { target: { value: string } }) =>
+ setForm(f => ({ ...f, [key]: e.target.value }))
async function submit(e: FormEvent) {
e.preventDefault()
@@ -790,16 +1119,55 @@ function SetupStep({ onDone }: { onDone: () => Promise<void> }) {
<p>{t('auth.setup.text')}</p>
<div className="auth-form">
{/* From the server log, not a code by SMS or email: no one-time-code suggestions. */}
- <Input size="lg" id="setup-code" name="setup-code" aria-label={t('auth.setup.code')} placeholder={t('auth.setup.code')} value={form.code}
- onChange={set('code')} {...NO_PASSWORD_MANAGER} autoCapitalize="characters" spellCheck={false} autoFocus
- end={<HelpTip inField label={t('auth.setup.codeWhere')} {...setupCodeHelp()} />} />
- <Input size="lg" id="setup-name" name="name" aria-label={t('auth.setup.name')} placeholder={t('auth.setup.name')} value={form.name} onChange={set('name')}
- autoComplete="name" />
- <Input size="lg" type="email" id="setup-username" name="username" aria-label={t('auth.email')} placeholder={t('auth.emailPlaceholder')} value={form.email}
- onChange={set('email')} autoComplete="username" autoCapitalize="none" spellCheck={false} />
- <Input size="lg" type="password" id="setup-new-password" name="new-password" aria-label={t('auth.method.password')}
- placeholder={t('auth.setup.passwordPlaceholder', { min: 12 })} value={form.password} onChange={set('password')} autoComplete="new-password"
- minLength={12} />
+ <Input
+ size="lg"
+ id="setup-code"
+ name="setup-code"
+ aria-label={t('auth.setup.code')}
+ placeholder={t('auth.setup.code')}
+ value={form.code}
+ onChange={set('code')}
+ {...NO_PASSWORD_MANAGER}
+ autoCapitalize="characters"
+ spellCheck={false}
+ autoFocus
+ end={<HelpTip inField label={t('auth.setup.codeWhere')} {...setupCodeHelp()} />}
+ />
+ <Input
+ size="lg"
+ id="setup-name"
+ name="name"
+ aria-label={t('auth.setup.name')}
+ placeholder={t('auth.setup.name')}
+ value={form.name}
+ onChange={set('name')}
+ autoComplete="name"
+ />
+ <Input
+ size="lg"
+ type="email"
+ id="setup-username"
+ name="username"
+ aria-label={t('auth.email')}
+ placeholder={t('auth.emailPlaceholder')}
+ value={form.email}
+ onChange={set('email')}
+ autoComplete="username"
+ autoCapitalize="none"
+ spellCheck={false}
+ />
+ <Input
+ size="lg"
+ type="password"
+ id="setup-new-password"
+ name="new-password"
+ aria-label={t('auth.method.password')}
+ placeholder={t('auth.setup.passwordPlaceholder', { min: 12 })}
+ value={form.password}
+ onChange={set('password')}
+ autoComplete="new-password"
+ minLength={12}
+ />
<Button type="submit" variant="primary" size="lg" busy={busy}>
{t('auth.setup.submit')}
</Button>
diff --git a/apps/web/src/NoWorkspace.tsx b/apps/web/src/NoWorkspace.tsx
index 0cdfa3ad..fc1db172 100644
--- a/apps/web/src/NoWorkspace.tsx
+++ b/apps/web/src/NoWorkspace.tsx
@@ -17,6 +17,7 @@ import { AdminMode } from './admin/AdminMode.tsx'
import { SecondFactorPrompt } from './admin/SecondFactorPrompt.tsx'
import { auth, isInstanceAdmin, type Me } from './auth.ts'
import { i18n } from './i18n/index.tsx'
+import { isNativeApp } from './native/platform.ts'
import { signOutAndForget } from './localData.ts'
import { AdminStart } from './onboarding/AdminStart.tsx'
import { AgentSetup, choseManualSetup, isAgentSetupHash, rememberManual } from './onboarding/AgentSetup.tsx'
@@ -73,7 +74,8 @@ export const mayCreateWorkspace = (me: Me | null) => !!me && isInstanceAdmin(me)
* Cloud customer's own sign-up without the email step (`signup`, a new bill of its own, the trial once per account),
* or the sign-up still waiting for Checkout (`finish`: one at a time); null: not offered (also
* on a partner team, in a partner's client workspace or while signed in as someone else). The server decides who is a
- * Cloud customer (`me.newWorkspace`) and checks it all again.
+ * Cloud customer (`me.newWorkspace`) and checks it all again. In the iOS and Android app no sign-up (a new bill):
+ * nothing is bought there (LIN-874).
*/
export type NewWorkspaceChoice =
| { kind: 'admin' }
@@ -86,6 +88,7 @@ export function newWorkspaceChoice(me: Me | null): NewWorkspaceChoice | null {
const offer = me.newWorkspace
if (!offer || me.impersonation || me.workspace?.partnerManaged || me.partners?.length) return null
if (offer.waiting) return offer.waiting.id === me.workspace?.id ? null : { kind: 'finish', workspace: offer.waiting }
+ if (isNativeApp()) return null
return { kind: 'signup', interval: offer.interval, trial: offer.trial }
}
diff --git a/apps/web/src/Signup.tsx b/apps/web/src/Signup.tsx
index 407ef8e5..d131bb47 100644
--- a/apps/web/src/Signup.tsx
+++ b/apps/web/src/Signup.tsx
@@ -14,6 +14,7 @@ import { ProviderButton } from './ui/brand-logos.tsx'
import { CardFooter, CodeWait, HaveAccount, useAuthMethods } from './Login.tsx'
import { browserPlace } from './countryHint.ts'
import { signOutAndForget } from './localData.ts'
+import { isNativeApp } from './native/platform.ts'
import {
CODE_LENGTH,
codeErrorMessage,
@@ -347,7 +348,8 @@ export function EmailStep({
<h1>
{partner
? t('auth.signup.partnerTitle')
- : config.trial
+ : // The iOS and Android app names no trial or plan (LIN-874): nothing is bought there.
+ config.trial && !isNativeApp()
? t('auth.signup.title')
: t('auth.signup.titleNoTrial')}
</h1>
@@ -612,9 +614,10 @@ export function DetailsStep({
</label>
)}
{error && <AuthError message={error} />}
- {partner && <p className="auth-plan-now">{t('auth.signup.partnerPayLater')}</p>}
+ {/* Not in the iOS and Android app (LIN-874): no word of paying there. */}
+ {partner && !isNativeApp() && <p className="auth-plan-now">{t('auth.signup.partnerPayLater')}</p>}
{/* Nothing is charged at sign-up: the plan and its price come at the setup's last step (Activate). */}
- {noTrial && <p className="auth-plan-now">{t('auth.signup.payLater')}</p>}
+ {noTrial && !isNativeApp() && <p className="auth-plan-now">{t('auth.signup.payLater')}</p>}
<p className="auth-terms">
<T
k={
diff --git a/apps/web/src/Workspace.tsx b/apps/web/src/Workspace.tsx
index dce20ee5..630808a6 100644
--- a/apps/web/src/Workspace.tsx
+++ b/apps/web/src/Workspace.tsx
@@ -7,6 +7,7 @@ import { AdminMode } from './admin/AdminMode.tsx'
import { PasskeyStepUpHost } from './admin/PasskeyStepUp.tsx'
import { SecondFactorPrompt } from './admin/SecondFactorPrompt.tsx'
import { isInstanceAdmin, type Me, passkeySupported } from './auth.ts'
+import { isNativeApp } from './native/platform.ts'
import { workspaceBillingView } from './settings/billingModel.ts'
import { PasskeyCard } from './AddPasskey.tsx'
import { passkeyAsk, pausedAt } from './passkey-ask.ts'
@@ -274,7 +275,8 @@ export function Workspace({ me, onSignedOut, onSessionStale, notice = null, onRe
// On a bill (Linedesk Cloud) and allowed to manage it: Workspace settings › Billing and the billing line above pages.
// billing:manage is the owner's and the admins'; the server answers only who manages the
// bill (its owner, or an owner or admin of the only workspace it pays for), anyone else gets the usage view.
- const billingOwner = !!me.workspace?.billingState && me.permissions.includes('billing:manage')
+ // Never in the iOS and Android app: its lines buy minutes and calls, or send to the billing page (LIN-874).
+ const billingOwner = !!me.workspace?.billingState && me.permissions.includes('billing:manage') && !isNativeApp()
const billingView = workspaceBillingView(me)
const [newWorkspace, setNewWorkspace] = useState(false)
// Members without a passkey: a quiet card asks for one (passkey-ask.ts), not at the same time as the star prompt.
@@ -721,24 +723,26 @@ export function Workspace({ me, onSignedOut, onSessionStale, notice = null, onRe
</div>
}
>
- {nav.route !== 'outbound' || outbound === 'on' ? page.render({
- toast: toaster.show,
- canEditSettings,
- canManageKeys,
- agentChange: mayChangeWithAgent(me) && !hadRealCall,
- isInstanceAdmin: instanceAdmin,
- billing: billingView,
- viaPartner: !!me.workspace?.viaPartner,
- extraNumberCents: me.workspace?.extraNumberCents ?? null,
- userId: me.actorId,
- menu,
- openCall: open,
- phoneSetup: me.phoneSetup,
- workspaceName: me.workspace!.name,
- onRenamed,
- runUndoable: actions.runUndoable,
- undoable: actions.undoable,
- }) : null}
+ {nav.route !== 'outbound' || outbound === 'on'
+ ? page.render({
+ toast: toaster.show,
+ canEditSettings,
+ canManageKeys,
+ agentChange: mayChangeWithAgent(me) && !hadRealCall,
+ isInstanceAdmin: instanceAdmin,
+ billing: billingView,
+ viaPartner: !!me.workspace?.viaPartner,
+ extraNumberCents: me.workspace?.extraNumberCents ?? null,
+ userId: me.actorId,
+ menu,
+ openCall: open,
+ phoneSetup: me.phoneSetup,
+ workspaceName: me.workspace!.name,
+ onRenamed,
+ runUndoable: actions.runUndoable,
+ undoable: actions.undoable,
+ })
+ : null}
</ErrorBoundary>
</>
) : openCall ? (
diff --git a/apps/web/src/admin/AuditLog.tsx b/apps/web/src/admin/AuditLog.tsx
index be601127..3ccfa50b 100644
--- a/apps/web/src/admin/AuditLog.tsx
+++ b/apps/web/src/admin/AuditLog.tsx
@@ -146,6 +146,7 @@ const methods: Record<string, MessageKey> = {
passkey: msg('admin.audit.method.passkey'),
oidc: msg('admin.audit.method.oidc'),
email_link: msg('admin.audit.method.emailLink'),
+ app: msg('admin.audit.method.app'),
}
/** Brand names stay as they are. */
const brandMethods: Record<string, string> = { google: 'Google', microsoft: 'Microsoft', github: 'GitHub' }
diff --git a/apps/web/src/auth.ts b/apps/web/src/auth.ts
index 5f9309d8..acf62f1b 100644
--- a/apps/web/src/auth.ts
+++ b/apps/web/src/auth.ts
@@ -13,6 +13,7 @@ import { readLastUsedMethod } from './sign-in-methods.ts'
import { announceSwitch } from './tabWorkspace.ts'
import { brandName } from './brand.ts'
import { i18n } from './i18n/index.tsx'
+import { isNativeApp } from './native/platform.ts'
export type { AuthMethods, LegalLinks, SsoMethod }
@@ -339,9 +340,26 @@ export function signInWithPasskey() {
return auth.signIn.passkey()
}
-/** Leaves the page for the provider; the session exists when the browser comes back. */
-export function startSso(method: SsoMethod) {
- return auth.signIn.social({ provider: method.id, ...back() })
+/**
+ * Leaves the page for the provider; the session exists when the browser comes back. In the Linedesk app the provider
+ * page opens in the system's sign-in browser instead and the session comes back by a one-use code (native/appSignIn.ts):
+ * Google refuses sign-ins inside an app's web view. `cancelled`: the person closed that browser, nothing to say.
+ */
+export async function startSso(
+ method: SsoMethod,
+): Promise<{ error: { code?: string; message?: string } | null; cancelled?: true }> {
+ if (!isNativeApp()) {
+ const res = await auth.signIn.social({ provider: method.id, ...back() })
+ return { error: res.error }
+ }
+ const { nativeProviderSignIn } = await import('./native/appSignIn.ts')
+ const { error } = await nativeProviderSignIn(method.id)
+ if (error === 'cancelled' || error === 'user_cancelled_authorize' || error === 'access_denied')
+ return { error: null, cancelled: true }
+ if (error) return { error: { code: error, message: redirectErrorMessage(error, method.id) } }
+ // Signed in: the app starts again on the session (like a provider's redirect back on the web).
+ window.location.reload()
+ return { error: null }
}
const providerNames: Record<string, string> = { google: 'Google', microsoft: 'Microsoft', github: 'GitHub' }
@@ -361,6 +379,8 @@ const redirectErrors: Record<string, (provider: string | null) => string> = {
account_not_linked: unprovenEmail,
email_not_found: unprovenEmail,
SIGNUP_CLOSED: noAccountText,
+ // The app's hand-back code was used, too old, or the app that redeemed it did not start the sign-in.
+ APP_SIGN_IN_REFUSED: () => i18n().t('auth.redirect.appSignInRefused'),
}
/** The words for a `?error=` code a provider sign-in came back with; unknown codes never show as such. */
diff --git a/apps/web/src/main.tsx b/apps/web/src/main.tsx
index 8c1c28f6..e345def7 100644
--- a/apps/web/src/main.tsx
+++ b/apps/web/src/main.tsx
@@ -1,6 +1,9 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { App } from './App.tsx'
+import { AppSignInPage } from './native/AppSignInPage.tsx'
+import { readAppSignInPage } from './native/appSignIn.ts'
+import { nativeAppReady, startNativeApp } from './native/init.ts'
// Fonts ship with the app: no request to a font CDN when a self-hosted install opens.
import '@fontsource/geist/400.css'
import '@fontsource/geist/500.css'
@@ -21,6 +24,8 @@ import { registerServiceWorker } from './serviceWorker.ts'
import { watchUnauthorized } from './signedOutWatch.ts'
import { installTooltips } from './ui/tooltips.ts'
+// Inside the iOS or Android app: status bar, back button, links (native/init.ts). Nothing in a browser.
+startNativeApp()
// Signed out on any screen: the app goes to the sign-in page (signedOutWatch.ts, App.tsx).
watchUnauthorized()
// The last errors on the page, for Help › Report a bug (feedback/errorLog.ts).
@@ -37,6 +42,9 @@ registerServiceWorker()
const openRouterBack = captureOpenRouterReturn(window.location.search)
if (openRouterBack) window.history.replaceState(null, '', `${window.location.pathname}${openRouterBack}`)
+// The Linedesk app's provider sign-in, in the system browser (native/appSignIn.ts): only its own page, not the app.
+const appSignIn = readAppSignInPage()
+
// The language's messages load before the first render (the static boot line shows meanwhile), so no English flashes.
// A language that fails to load leaves English.
void activate(initialLocale(), { remember: !languageFromAddress() })
@@ -45,9 +53,16 @@ void activate(initialLocale(), { remember: !languageFromAddress() })
createRoot(document.getElementById('root')!).render(
<StrictMode>
<LocaleRoot>
- <App />
- <NewVersionBar />
+ {appSignIn ? (
+ <AppSignInPage page={appSignIn} />
+ ) : (
+ <>
+ <App />
+ <NewVersionBar />
+ </>
+ )}
</LocaleRoot>
</StrictMode>,
),
)
+ .then(() => requestAnimationFrame(nativeAppReady))
diff --git a/apps/web/src/native/AppSignInPage.tsx b/apps/web/src/native/AppSignInPage.tsx
new file mode 100644
index 00000000..2e70bb7f
--- /dev/null
+++ b/apps/web/src/native/AppSignInPage.tsx
@@ -0,0 +1,81 @@
+// The page the Linedesk app opens in the system's sign-in browser (native/appSignIn.ts): straight on to the provider;
+// back from it, who signed in and the person's OK; then the hand-back to the app. Shown in place of the whole web app.
+// The OK is a tap on purpose: no code ever leaves without it, and on Android a tap lets the verified link open the app.
+import { useT } from '@linedesk/i18n/react'
+import { useEffect, useState } from 'react'
+import { WaitLine } from '../shell/SignedInAuthPage.tsx'
+import { AuthError } from '../ui/AuthError.tsx'
+import { AuthPage, Button } from '../ui/kit.tsx'
+import {
+ type AppSignInPage as Page,
+ appReturnUrl,
+ codeForApp,
+ signedInEmail,
+ startProviderForApp,
+} from './appSignIn.ts'
+
+/** Each step runs once per page load, also when React runs the effect twice (StrictMode). */
+let started: Promise<{ error?: string }> | null = null
+let looked: Promise<string | null> | null = null
+
+type View = { wait: true } | { failed: string } | { confirm: string } | { back: true }
+
+export function AppSignInPage({ page }: { page: Page }) {
+ const t = useT()
+ const [view, setView] = useState<View>(page.step === 'back' ? { back: true } : { wait: true })
+ const [busy, setBusy] = useState(false)
+
+ useEffect(() => {
+ let left = false
+ void (async () => {
+ if (page.step === 'start') {
+ started ??= startProviderForApp(page.provider, page.challenge)
+ const { error } = await started
+ if (error && !left) setView({ failed: appReturnUrl({ error }) })
+ } else if (page.step === 'done') {
+ if (page.error) return setView({ failed: appReturnUrl({ error: page.error }) })
+ looked ??= signedInEmail()
+ const email = await looked
+ if (left) return
+ setView(email ? { confirm: email } : { failed: appReturnUrl({ error: 'APP_SIGN_IN_REFUSED' }) })
+ }
+ })()
+ return () => {
+ left = true
+ }
+ }, [page])
+
+ const confirm = async () => {
+ setBusy(true)
+ window.location.href = await codeForApp()
+ }
+
+ return (
+ <AuthPage>
+ <div className="auth-card">
+ <h1>{t('auth.appSignIn.title')}</h1>
+ {'wait' in view && <WaitLine />}
+ {'confirm' in view && (
+ <>
+ <p className="auth-note">{t('auth.appSignIn.confirm', { email: view.confirm })}</p>
+ <Button variant="primary" size="lg" busy={busy} onClick={() => void confirm()}>
+ {t('auth.appSignIn.continue')}
+ </Button>
+ <a className="auth-switch auth-more" href={appReturnUrl({ error: 'cancelled' })}>
+ {t('common.action.cancel')}
+ </a>
+ </>
+ )}
+ {'failed' in view && (
+ <>
+ <AuthError message={t('auth.appSignIn.failed')} />
+ <a className="k-btn k-btn-primary k-btn-lg" href={view.failed}>
+ <span>{t('auth.appSignIn.back')}</span>
+ </a>
+ </>
+ )}
+ {'back' in view && <p className="auth-note">{t('auth.appSignIn.openApp')}</p>}
+ </div>
+ </AuthPage>
+ )
+}
diff --git a/apps/web/src/native/appSignIn.ts b/apps/web/src/native/appSignIn.ts
new file mode 100644
index 00000000..368f4efc
--- /dev/null
+++ b/apps/web/src/native/appSignIn.ts
@@ -0,0 +1,141 @@
+// A provider sign-in from the Linedesk app (apps/api/src/app-sign-in.ts has the whole flow). In the app: open this
+// install's own page in the system's sign-in browser with a PKCE challenge, then redeem the code that comes back. In
+// that browser: the provider sign-in, the person's OK, a one-use code for the app, and back to the app with it on the
+// server's own https address (a universal link / verified app link only the real app receives).
+import { auth } from '../auth.ts'
+import { LinedeskAuth } from './plugins.ts'
+
+/**
+ * The browser page's own path (served like every path, the web app's index.html), and its parameters: the provider to
+ * sign in with and the app's challenge, or back from the provider. Not `/`: links to `/` open the app (app links,
+ * universal links), which must not catch this page's own redirects.
+ */
+export const APP_SIGN_IN_PATH = '/app-sign-in'
+/** Where the browser hands the code to the app (apps/api/src/app-links.ts lists it for the app). */
+export const APP_SIGN_IN_BACK_PATH = '/app-sign-in/back'
+const START_PARAM = 'provider'
+const DONE_PARAM = 'done'
+const CHALLENGE_KEY = 'linedesk.appSignInChallenge'
+
+const base64url = (bytes: Uint8Array) =>
+ btoa(String.fromCharCode(...bytes))
+ .replaceAll('+', '-')
+ .replaceAll('/', '_')
+ .replace(/=+$/, '')
+
+/** 32 random bytes, base64url: the verifier only the app keeps. */
+export function newVerifier(): string {
+ return base64url(crypto.getRandomValues(new Uint8Array(32)))
+}
+
+/** The challenge the browser page carries: SHA-256 of the verifier (PKCE S256). */
+export async function challengeOf(verifier: string): Promise<string> {
+ return base64url(new Uint8Array(await crypto.subtle.digest('SHA-256', new TextEncoder().encode(verifier))))
+}
+
+/** The browser page that signs in with `provider` for the app. */
+export function appSignInStartUrl(origin: string, provider: string, challenge: string): string {
+ const url = new URL(APP_SIGN_IN_PATH, origin)
+ url.searchParams.set(START_PARAM, provider)
+ url.searchParams.set('challenge', challenge)
+ return url.toString()
+}
+
+/** What the system browser ended on: the code for the app, or the provider's error code. */
+export function readAppReturn(address: string): { code: string } | { error: string } {
+ const url = new URL(address)
+ const code = url.searchParams.get('code')
+ if (code && /^[A-Za-z0-9_-]{43}$/.test(code)) return { code }
+ return { error: url.searchParams.get('error') || 'cancelled' }
+}
+
+/**
+ * In the app: the provider sign-in in the system browser, then the session for this web view. Resolves with an error
+ * code for the sign-in page (cancelled, the provider's own code, or APP_SIGN_IN_REFUSED), or nothing when signed in.
+ */
+export async function nativeProviderSignIn(provider: string): Promise<{ error?: string }> {
+ const verifier = newVerifier()
+ const start = appSignInStartUrl(window.location.origin, provider, await challengeOf(verifier))
+ let back: { url: string }
+ try {
+ back = await LinedeskAuth.start({ url: start, callbackPath: APP_SIGN_IN_BACK_PATH })
+ } catch {
+ return { error: 'cancelled' }
+ }
+ const answer = readAppReturn(back.url)
+ if ('error' in answer) return { error: answer.error }
+ const res = await fetch('/api/auth/app-sign-in/redeem', {
+ method: 'POST',
+ credentials: 'include',
+ headers: { 'content-type': 'application/json' },
+ body: JSON.stringify({ code: answer.code, verifier }),
+ })
+ return res.ok ? {} : { error: 'APP_SIGN_IN_REFUSED' }
+}
+
+// --- In the system browser -------------------------------------------------------------------------------------------
+
+export type AppSignInPage =
+ | { step: 'start'; provider: string; challenge: string }
+ | { step: 'done'; error: string | null }
+ | { step: 'back' }
+
+/** Whether this page load is the app's sign-in in the system browser, and which step. */
+export function readAppSignInPage(
+ location: Pick<Location, 'pathname' | 'search'> = window.location,
+): AppSignInPage | null {
+ // The app did not take the hand-back address (not installed, or opened in another browser): only a note.
+ if (location.pathname === APP_SIGN_IN_BACK_PATH) return { step: 'back' }
+ if (location.pathname !== APP_SIGN_IN_PATH) return null
+ const params = new URLSearchParams(location.search)
+ const provider = params.get(START_PARAM)
+ const challenge = params.get('challenge')
+ if (provider && challenge && /^[a-z]{2,20}$/.test(provider) && /^[A-Za-z0-9_-]{43}$/.test(challenge))
+ return { step: 'start', provider, challenge }
+ if (params.has(DONE_PARAM)) return { step: 'done', error: params.get('error') }
+ return null
+}
+
+const postJson = (path: string, body: object) =>
+ fetch(path, {
+ method: 'POST',
+ credentials: 'include',
+ headers: { 'content-type': 'application/json' },
+ body: JSON.stringify(body),
+ })
+
+/** Step 1 in the browser: the server keeps the challenge with the time (a cookie of this browser), then the provider. */
+export async function startProviderForApp(provider: string, challenge: string): Promise<{ error?: string }> {
+ const started = await postJson('/api/auth/app-sign-in/start', { challenge }).catch(() => null)
+ if (!started?.ok) return { error: 'APP_SIGN_IN_REFUSED' }
+ const back = `${window.location.origin}${APP_SIGN_IN_PATH}?${DONE_PARAM}=1`
+ const res = await auth.signIn.social({ provider, callbackURL: back, errorCallbackURL: back })
+ return res.error ? { error: res.error.code ?? 'failed' } : {}
+}
+
+/** The address that hands the browser back to the app (with a code, or with what went wrong). */
+export function appReturnUrl(answer: { code: string } | { error: string }, origin = window.location.origin) {
+ const url = new URL(APP_SIGN_IN_BACK_PATH, origin)
+ if ('code' in answer) url.searchParams.set('code', answer.code)
+ else url.searchParams.set('error', answer.error)
+ return url.toString()
+}
+
+/** Step 2, back from the provider: who signed in, for the person to confirm. Null when nobody is (it failed). */
+export async function signedInEmail(): Promise<string | null> {
+ const res = await fetch('/api/auth/get-session', { credentials: 'include' }).catch(() => null)
+ const body = (await res?.json().catch(() => null)) as { user?: { email?: unknown } } | null
+ return typeof body?.user?.email === 'string' ? body.user.email : null
+}
+
+/**
+ * Step 3, after the person's OK: a one-use code for the app (the server ends this browser's session when the app
+ * redeems it). Resolves with the address that returns to the app.
+ */
+export async function codeForApp(): Promise<string> {
+ const res = await postJson('/api/auth/app-sign-in/code', {}).catch(() => null)
+ const body = (await res?.json().catch(() => null)) as { code?: unknown } | null
+ return typeof body?.code === 'string'
+ ? appReturnUrl({ code: body.code })
+ : appReturnUrl({ error: 'APP_SIGN_IN_REFUSED' })
+}
diff --git a/apps/web/src/native/init.ts b/apps/web/src/native/init.ts
new file mode 100644
index 00000000..425fe6b1
--- /dev/null
+++ b/apps/web/src/native/init.ts
@@ -0,0 +1,63 @@
+// What the web app does once at start inside the Linedesk app (apps/mobile): the status bar, the splash screen, the
+// Android back button, links from emails (universal links / app links) and the page's edges around the notch.
+// Nothing here runs in a browser.
+import { APP_SIGN_IN_BACK_PATH } from './appSignIn.ts'
+import { App, Keyboard, SplashScreen, StatusBar } from './plugins.ts'
+import { nativePlatform } from './platform.ts'
+
+/**
+ * A link to the app's own server that should show here: any but the sign-in hand-back, which belongs to the sign-in
+ * that waits for it (native/appSignIn.ts). Links elsewhere open in the system browser (Capacitor's default).
+ */
+const pageToOpen = (url: string) => {
+ try {
+ const u = new URL(url)
+ return u.origin === window.location.origin && u.pathname !== APP_SIGN_IN_BACK_PATH
+ } catch {
+ return false
+ }
+}
+
+/**
+ * Android's back button: first closes what is open on top (a dialog, a menu, the navigation drawer: they all close on
+ * Escape), then goes back in the app's history, and at the start puts the app in the background like other apps.
+ */
+function onBack(canGoBack: boolean) {
+ const open = document.querySelector('[role="dialog"], [role="menu"], [role="listbox"], .nav-drawer.is-open')
+ if (open) {
+ document.activeElement?.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true }))
+ return
+ }
+ if (canGoBack && window.history.length > 1) window.history.back()
+ else void App.minimizeApp()
+}
+
+export function startNativeApp() {
+ const platform = nativePlatform()
+ if (!platform) return
+ const root = document.documentElement
+ root.classList.add('native-app', `native-${platform}`)
+ // The page reaches under the status bar and the home indicator; the CSS keeps content inside the safe area.
+ const viewport = document.querySelector('meta[name="viewport"]')
+ viewport?.setAttribute('content', 'width=device-width, initial-scale=1, viewport-fit=cover')
+
+ void StatusBar.setStyle({ style: 'LIGHT' }).catch(() => {})
+ if (platform === 'android') {
+ void StatusBar.setOverlaysWebView({ overlay: false }).catch(() => {})
+ void StatusBar.setBackgroundColor({ color: '#FAFAF8' }).catch(() => {})
+ void App.addListener('backButton', ({ canGoBack }) => onBack(canGoBack))
+ } else {
+ // Above the keyboard: the "Done" bar iOS adds over forms.
+ void Keyboard.setAccessoryBarVisible({ isVisible: true }).catch(() => {})
+ }
+ // A link from an email (https://app…/#call/…) opened the app: show that page.
+ void App.addListener('appUrlOpen', ({ url }) => {
+ if (pageToOpen(url) && url !== window.location.href) window.location.href = url
+ })
+}
+
+/** After the first paint of the app: the splash screen goes. */
+export function nativeAppReady() {
+ if (!nativePlatform()) return
+ void SplashScreen.hide({ fadeOutDuration: 150 }).catch(() => {})
+}
diff --git a/apps/web/src/native/platform.ts b/apps/web/src/native/platform.ts
new file mode 100644
index 00000000..6cc36677
--- /dev/null
+++ b/apps/web/src/native/platform.ts
@@ -0,0 +1,15 @@
+// Whether the web app runs inside the Linedesk app (apps/mobile, a Capacitor shell around these same pages) and on
+// which system. In a normal browser everything here says "web" and the native parts stay unused.
+import { Capacitor } from '@capacitor/core'
+
+export type NativePlatform = 'ios' | 'android'
+
+/** True inside the iOS or Android app. */
+export const isNativeApp = (): boolean => Capacitor.isNativePlatform()
+
+/** 'ios' or 'android' inside the app, null in a browser. */
+export function nativePlatform(): NativePlatform | null {
+ if (!isNativeApp()) return null
+ const platform = Capacitor.getPlatform()
+ return platform === 'ios' || platform === 'android' ? platform : null
+}
diff --git a/apps/web/src/native/plugins.ts b/apps/web/src/native/plugins.ts
new file mode 100644
index 00000000..f66aa1bb
--- /dev/null
+++ b/apps/web/src/native/plugins.ts
@@ -0,0 +1,65 @@
+// The native plugins the web app calls inside the Linedesk app. Only their interfaces are here (Capacitor's
+// registerPlugin finds the native side by name); the plugins themselves are installed in apps/mobile, so the web
+// bundle carries none of their code.
+import { registerPlugin } from '@capacitor/core'
+
+type Listener = { remove: () => Promise<void> }
+
+/** Our own plugin (apps/mobile: LinedeskAuthPlugin.swift, LinedeskAuthPlugin.java). */
+export interface LinedeskAuthPlugin {
+ /**
+ * Opens `url` (on the app's own server) in the system's sign-in browser (iOS ASWebAuthenticationSession, Android
+ * Custom Tabs) and resolves with the address it ends on: the server's own https address at `callbackPath`, which
+ * only this app receives (universal link, verified app link). Rejects with `cancelled` when the person closes it.
+ */
+ start(options: { url: string; callbackPath: string }): Promise<{ url: string }>
+}
+export const LinedeskAuth = registerPlugin<LinedeskAuthPlugin>('LinedeskAuth')
+
+/** @capacitor/app */
+export interface AppPlugin {
+ addListener(event: 'backButton', fn: (e: { canGoBack: boolean }) => void): Promise<Listener>
+ addListener(event: 'appUrlOpen', fn: (e: { url: string }) => void): Promise<Listener>
+ addListener(event: 'resume', fn: () => void): Promise<Listener>
+ exitApp(): Promise<void>
+ minimizeApp(): Promise<void>
+}
+export const App = registerPlugin<AppPlugin>('App')
+
+/** @capacitor/browser: links to other sites open in the system's in-app browser. */
+export interface BrowserPlugin {
+ open(options: { url: string; presentationStyle?: 'fullscreen' | 'popover' }): Promise<void>
+}
+export const Browser = registerPlugin<BrowserPlugin>('Browser')
+
+/** @capacitor/status-bar */
+export interface StatusBarPlugin {
+ setStyle(options: { style: 'DARK' | 'LIGHT' | 'DEFAULT' }): Promise<void>
+ setBackgroundColor(options: { color: string }): Promise<void>
+ setOverlaysWebView(options: { overlay: boolean }): Promise<void>
+}
+export const StatusBar = registerPlugin<StatusBarPlugin>('StatusBar')
+
+/** @capacitor/splash-screen */
+export interface SplashScreenPlugin {
+ hide(options?: { fadeOutDuration?: number }): Promise<void>
+}
+export const SplashScreen = registerPlugin<SplashScreenPlugin>('SplashScreen')
+
+/** @capacitor/haptics */
+export interface HapticsPlugin {
+ impact(options: { style: 'HEAVY' | 'MEDIUM' | 'LIGHT' }): Promise<void>
+ notification(options: { type: 'SUCCESS' | 'WARNING' | 'ERROR' }): Promise<void>
+ selectionChanged(): Promise<void>
+}
+export const Haptics = registerPlugin<HapticsPlugin>('Haptics')
+
+/** @capacitor/keyboard */
+export interface KeyboardPlugin {
+ setAccessoryBarVisible(options: { isVisible: boolean }): Promise<void>
+ addListener(
+ event: 'keyboardWillShow' | 'keyboardWillHide',
+ fn: (e: { keyboardHeight?: number }) => void,
+ ): Promise<Listener>
+}
+export const Keyboard = registerPlugin<KeyboardPlugin>('Keyboard')
diff --git a/apps/web/src/nativePurchases.test.tsx b/apps/web/src/nativePurchases.test.tsx
new file mode 100644
index 00000000..867e9eeb
--- /dev/null
+++ b/apps/web/src/nativePurchases.test.tsx
@@ -0,0 +1,105 @@
+// Nothing is bought in the iOS and Android app (LIN-874; App Store 3.1.1 and 3.1.3(b), Google Play payments policy):
+// there the Billing section, the sign-up for a new bill, the trial link, the partner's Activate step and the plan
+// step's price and button are gone, while the web keeps them. Account deletion is one row away from Account.
+import { renderToStaticMarkup } from 'react-dom/server'
+import { afterEach, describe, expect, test, vi } from 'vitest'
+import type { Activation, Me } from './auth.ts'
+
+const native = vi.hoisted(() => ({ on: false }))
+vi.mock('./native/platform.ts', () => ({
+ isNativeApp: () => native.on,
+ nativePlatform: () => (native.on ? 'ios' : null),
+}))
+vi.mock('./store.tsx', () => ({ useAssistantName: () => 'Maya' }))
+vi.mock('./checkout.ts', () => ({ goToCheckout: vi.fn() }))
+vi.mock('./shell/TermsUpdate.tsx', () => ({ askTermsAgain: vi.fn() }))
+
+const { workspaceBillingView } = await import('./settings/billingModel.ts')
+const { newWorkspaceChoice } = await import('./NoWorkspace.tsx')
+const { trialLinkRequest } = await import('./onboarding/TrialLink.tsx')
+const { partnerSetupSteps } = await import('./partner/PartnerSetup.tsx')
+const { ActivateStep } = await import('./onboarding/ActivateStep.tsx')
+const { DeleteAccount, DANGER_ZONE_HASH } = await import('./settings/account/index.tsx')
+
+afterEach(() => {
+ native.on = false
+})
+
+const both = <T,>(read: () => T) => {
+ native.on = false
+ const web = read()
+ native.on = true
+ const app = read()
+ return { web, app }
+}
+
+const activation = {
+ planCents: 1100,
+ interval: 'month',
+ trialDays: 14,
+ firstChargeAt: new Date(Date.now() + 14 * 86_400_000).toISOString(),
+ reminderDays: [7, 1],
+ includedMinutes: 50,
+ standardMicrosPerMinute: 50_000,
+ prices: null,
+ terms: { termsUrl: 'https://example.test/terms', termsVersion: 't1', privacyUrl: null, privacyVersion: null },
+} as unknown as Activation
+
+const owner = (over: Partial<NonNullable<Me['workspace']>> = {}) =>
+ ({
+ actorId: 'u1',
+ permissions: ['billing:manage', 'settings:write'],
+ workspace: { id: 'ws_1', name: 'Brightwater Plumbing', billingState: 'active', billingOn: true, ...over },
+ impersonation: null,
+ newWorkspace: { interval: 'year', trial: true, waiting: null },
+ }) as unknown as Me
+
+const plain = (html: string) => html.replace(/<[^>]+>/g, ' ').replace(/\s+/g, ' ')
+
+describe('in the iOS and Android app', () => {
+ test('no Billing section (and so no trial countdown in the inbox), on the web as before', () => {
+ expect(both(() => workspaceBillingView(owner()))).toEqual({ web: 'owner', app: null })
+ expect(both(() => workspaceBillingView(owner({ billingState: null })))).toEqual({ web: 'none', app: null })
+ })
+
+ test('"New workspace…" opens no sign-up for a new bill; finishing one already made still opens', () => {
+ expect(both(() => newWorkspaceChoice(owner())?.kind ?? null)).toEqual({ web: 'signup', app: null })
+ const waiting = { ...owner(), newWorkspace: { interval: 'year', trial: true, waiting: { id: 'ws_2', name: 'B' } } }
+ expect(both(() => newWorkspaceChoice(waiting as unknown as Me)?.kind)).toEqual({ web: 'finish', app: 'finish' })
+ })
+
+ test('the Start your free trial link opens no dialog', () => {
+ const me = owner({ billingState: 'pending_payment', activation })
+ const hash = '#workspace/billing?start-trial=1'
+ expect(both(() => trialLinkRequest(me, hash)?.kind ?? null)).toEqual({ web: 'start', app: null })
+ })
+
+ test("White-label Cloud's setup ends at the clients, without the Activate step", () => {
+ const data = { bill: { status: 'pending_payment', mine: true } } as Parameters<typeof partnerSetupSteps>[0]
+ expect(both(() => partnerSetupSteps(data))).toEqual({
+ web: ['agency', 'clients', 'activate'],
+ app: ['agency', 'clients'],
+ })
+ })
+
+ test('the plan step shows no plan, price or button that starts one, only a neutral line', () => {
+ const me = owner({ billingState: 'pending_payment', activation })
+ const render = () =>
+ plain(
+ renderToStaticMarkup(<ActivateStep me={me} onBack={() => {}} onTermsChanged={() => {}} onReload={() => {}} />),
+ )
+ const { web, app } = both(render)
+ expect(web).toContain('Start your free trial')
+ expect(web).toContain('$11')
+ expect(app).toContain('Your plan is managed on the web.')
+ expect(app).toContain('Check again')
+ for (const word of ['trial', 'Trial', '$', 'Checkout', 'card', 'http']) expect(app).not.toContain(word)
+ })
+})
+
+test('Account › Profile: Delete account says what happens and leads to the Danger zone', () => {
+ const html = renderToStaticMarkup(<DeleteAccount />)
+ expect(html).toContain(`href="${DANGER_ZONE_HASH}"`)
+ expect(plain(html)).toContain('Delete account')
+ expect(plain(html)).toContain('Workspace settings › Danger zone')
+})
diff --git a/apps/web/src/onboarding/ActivateStep.tsx b/apps/web/src/onboarding/ActivateStep.tsx
index f6b3d3b8..8a89bc7e 100644
--- a/apps/web/src/onboarding/ActivateStep.tsx
+++ b/apps/web/src/onboarding/ActivateStep.tsx
@@ -9,6 +9,7 @@ import { useFormat, useT } from '@linedesk/i18n/react'
import { useState } from 'react'
import type { Activation, Me } from '../auth.ts'
import { goToCheckout } from '../checkout.ts'
+import { isNativeApp } from '../native/platform.ts'
import { askTermsAgain } from '../shell/TermsUpdate.tsx'
import { useAssistantName } from '../store.tsx'
import { IntervalSwitch } from '../ui/IntervalSwitch.tsx'
@@ -23,9 +24,10 @@ import { useSetupKeys } from './setup-keys.ts'
type Props = { me: Me; onBack: () => void; onTermsChanged: () => void }
-export function ActivateStep({ me, onBack, onTermsChanged }: Props) {
+export function ActivateStep({ me, onBack, onTermsChanged, onReload }: Props & { onReload?: () => void }) {
const t = useT()
const activation = me.workspace?.activation
+ if (isNativeApp()) return <PlanOnWeb onBack={onBack} onReload={onReload} />
if (activation) return <Activate me={me} activation={activation} onBack={onBack} onTermsChanged={onTermsChanged} />
return (
<StepLoading title={t('onboarding.activate.title')} what={t('onboarding.activate.loading')} foot={{ onBack }} />
@@ -64,6 +66,42 @@ function Activate({ me, activation: a, onBack, onTermsChanged }: Props & { activ
)
}
+/**
+ * The step in the iOS and Android app (LIN-874): nothing is bought there (App Store 3.1.3(b), Google Play payments
+ * policy), so no plan, price or button that starts one, and no link to where it is started: one neutral line. The
+ * server opens nothing else before the plan runs (apps/api/src/onboarding.ts), so the step stays; Back goes through
+ * the free steps, and "Check again" reads the workspace again (once the plan runs, the onboarding goes on with the
+ * phone number).
+ */
+function PlanOnWeb({ onBack, onReload }: { onBack: () => void; onReload?: () => void }) {
+ const t = useT()
+ const [checking, setChecking] = useState(false)
+ const check = onReload
+ ? () => {
+ setChecking(true)
+ onReload()
+ // The flow starts again once the plan runs (Onboarding is keyed on the billing state); else it stays here.
+ window.setTimeout(() => setChecking(false), 1500)
+ }
+ : undefined
+ useSetupKeys({ onEnter: () => check?.(), onEscape: onBack })
+ return (
+ <>
+ <div className="ob-body">
+ <StepHead title={t('onboarding.activate.app.title')} lede={t('onboarding.activate.app.text')} />
+ </div>
+ <Foot
+ onBack={onBack}
+ onContinue={check}
+ canContinue={Boolean(check)}
+ busy={checking}
+ label={t('onboarding.activate.app.check')}
+ variant="secondary"
+ />
+ </>
+ )
+}
+
export type StartTrial = ReturnType<typeof useStartTrial>
/**
diff --git a/apps/web/src/onboarding/AgentSetup.tsx b/apps/web/src/onboarding/AgentSetup.tsx
index 95d14ff7..f24defd5 100644
--- a/apps/web/src/onboarding/AgentSetup.tsx
+++ b/apps/web/src/onboarding/AgentSetup.tsx
@@ -45,6 +45,7 @@ import { brandName, installBrandName, useBrand } from '../brand.ts'
import { useQuery } from '../cachedQuery.ts'
import { microphoneAllowed } from '../call/microphone.ts'
import { i18n } from '../i18n/index.tsx'
+import { isNativeApp } from '../native/platform.ts'
import { SETUP_LINK_KEY, signInAgain as signOutAndSignIn } from '../localData.ts'
import { NewClientDialog } from '../partner/PartnerArea.tsx'
import { loadPartner, PARTNER_QUERY } from '../partner/partner-api.ts'
@@ -861,16 +862,18 @@ function Progress({
) : null}
</span>
<span className="as-item-label">
- {step.id === 'activate' && trial
- ? t(
- trial.me.workspace?.activation?.trialDays === null
- ? 'onboarding.steps.activatePlan'
- : 'onboarding.steps.activate',
- )
- : step.label}
- {step.hint && <span className="as-hint"> · {step.hint}</span>}
+ {planRowInApp(step)
+ ? t('onboarding.steps.activateApp')
+ : step.id === 'activate' && trial
+ ? t(
+ trial.me.workspace?.activation?.trialDays === null
+ ? 'onboarding.steps.activatePlan'
+ : 'onboarding.steps.activate',
+ )
+ : step.label}
+ {step.hint && !priceHintInApp(step) && <span className="as-hint"> · {step.hint}</span>}
{/* The trial row before the free steps are done: no button yet, so it says when it opens. */}
- {step.id === 'activate' && step.state === 'todo' && (
+ {step.id === 'activate' && step.state === 'todo' && !isNativeApp() && (
<span className="as-hint"> · {t('onboarding.agentSetup.step.trialWaits')}</span>
)}
{draftsOnly && step.id === 'clients' && (
@@ -1014,6 +1017,17 @@ export function partnerOrder<S extends { id: string; group?: string; state: stri
return [...steps.filter(s => s !== plan && !(s.id === 'team' && s.group === 'partner')), plan]
}
+/**
+ * The row that starts a plan (a sign-up's trial, `activate`; White-label Cloud's, the partner's `plan`) inside the iOS
+ * and Android app, where nothing is bought (LIN-874): a neutral name and line instead of its button.
+ */
+export const planRowInApp = (step: { id: string; group?: string }) =>
+ isNativeApp() && (step.id === 'activate' || (step.id === 'plan' && step.group === 'partner'))
+
+/** In the app, the rows whose server hint is a price (the plan's; the partner's client workspaces, a seat each). */
+const priceHintInApp = (step: { id: string; group?: string }) =>
+ planRowInApp(step) || (isNativeApp() && step.id === 'clients' && step.group === 'partner')
+
/** The steps by group, in the order they come; Activate (last, see partnerOrder) as a group of its own at the end. */
function groupsInOrder<S extends { id: string; group: SetupStepGroup; state: string }>(steps: readonly S[]) {
const last = steps.at(-1)
@@ -1279,6 +1293,11 @@ export function StepAction({
activatePartnerId?: string | null
}) {
const t = useT()
+ // The iOS and Android app starts no plan (LIN-874): the row says it is managed on the web, without a button or link.
+ if (planRowInApp(step)) {
+ if (step.state !== 'admin_only') return null
+ return <span className="as-small">{t('common.plan.managedOnWeb')}</span>
+ }
if (step.id === 'plan' && activatePartnerId) {
if (step.state !== 'admin_only') return null
return (
diff --git a/apps/web/src/onboarding/Frame.tsx b/apps/web/src/onboarding/Frame.tsx
index f2936f88..43060378 100644
--- a/apps/web/src/onboarding/Frame.tsx
+++ b/apps/web/src/onboarding/Frame.tsx
@@ -4,6 +4,7 @@
import { useT } from '@linedesk/i18n/react'
import { type ReactNode, useEffect, useState } from 'react'
import { brandName, installBrandName } from '../brand.ts'
+import { isNativeApp } from '../native/platform.ts'
import { Button } from '../ui/kit.tsx'
import { Loading, SkeletonFields } from '../ui/LoadStates.tsx'
import { useClientWord } from './clientWords.tsx'
@@ -111,7 +112,13 @@ export function Frame({
const word = useClientWord()
const index = steps.indexOf(step)
const install = brand === 'install'
- const name = step === 'activate' && planOnly ? t('onboarding.steps.activatePlan') : t(word(stepLabelKeys[step]))
+ // In the iOS and Android app the step only says the plan is managed on the web (ActivateStep.tsx): a neutral name.
+ const name =
+ step === 'activate' && isNativeApp()
+ ? t('onboarding.steps.activateApp')
+ : step === 'activate' && planOnly
+ ? t('onboarding.steps.activatePlan')
+ : t(word(stepLabelKeys[step]))
return (
<StepModeContext.Provider value={{ edit, last: index === steps.length - 1, closes }}>
<SetupPage
diff --git a/apps/web/src/onboarding/Onboarding.tsx b/apps/web/src/onboarding/Onboarding.tsx
index 247f0b09..699b5e5c 100644
--- a/apps/web/src/onboarding/Onboarding.tsx
+++ b/apps/web/src/onboarding/Onboarding.tsx
@@ -164,7 +164,7 @@ function OnboardingFlow({ me, state, onDone, onRenamed, onReload, onAgentSetup }
)}
{step === 'activate' &&
(activating ? (
- <ActivateStep me={me} onBack={back} onTermsChanged={() => onReload?.()} />
+ <ActivateStep me={me} onBack={back} onTermsChanged={() => onReload?.()} onReload={onReload} />
) : (
<ActivatedStep trial={!!me.workspace?.trialEndsAt} onBack={back} onNext={forward} />
))}
diff --git a/apps/web/src/onboarding/PhoneStep.tsx b/apps/web/src/onboarding/PhoneStep.tsx
index 34e9355a..b7307695 100644
--- a/apps/web/src/onboarding/PhoneStep.tsx
+++ b/apps/web/src/onboarding/PhoneStep.tsx
@@ -6,6 +6,7 @@ import type { PhoneNumber } from '@linedesk/db/types'
import { T, useT } from '@linedesk/i18n/react'
import { useEffect, useState } from 'react'
import type { PhoneSetupStatus } from '../auth.ts'
+import { isNativeApp } from '../native/platform.ts'
import { useDefaultPhoneCountry } from '../phoneCountry.ts'
import { AreaCodeInput } from '../settings/AreaCodeInput.tsx'
import { CarrierNumberInput } from '../settings/CarrierNumberInput.tsx'
@@ -26,6 +27,7 @@ import {
areaCodeOf,
beingSetUpText,
billedNumberNote,
+ billedNumberPrice,
buyingCountry,
buyOffersOf,
buyUnavailableText,
@@ -158,7 +160,12 @@ function Choose({
// The country the owner was shown (picked, the listing's, the workspace's, else its hint) when it has a buy offer.
const country = buyingCountry(useWorkspaceCountry(), offers)
const offer = buyOfferIn(offers, country)
- const buyable = offersBuying(country, offers)
+ const boughtNumbers = useRows('phone_numbers').filter(n => n.purchased && n.carrier_account === 'install').length
+ // The iOS and Android app buys nothing (LIN-874): a number the plan does not include (paid from the balance) is not
+ // offered there; the plan's own first number still is.
+ const paidInApp =
+ isNativeApp() && !partnerManaged && billedNumberPrice(extraNumberCents, status.provider, boughtNumbers) !== null
+ const buyable = offersBuying(country, offers) && !paidInApp
const settingUp = numbersBeingSetUp(country, offers)
const noAreaCode = !offerHasAreaCode(offer)
const [chosen, setOption] = useState<PhoneOption>(phoneOptions[0]!)
@@ -182,7 +189,6 @@ function Choose({
const forwarding = pickupNumberMode(pickup)
const buying = option !== 'existing'
const dev = status.provider === 'dev'
- const boughtNumbers = useRows('phone_numbers').filter(n => n.purchased && n.carrier_account === 'install').length
// A rejection ends the wait; success shows up as the new phone_numbers row (this screen then unmounts).
useEffect(() => {
@@ -229,7 +235,11 @@ function Choose({
// Nothing this member can connect here: only why (numbers are being set up, or where they can be bought)
// and "Connect later"; no carrier name, no button that cannot do anything.
<p className="help" role="status">
- {settingUp ? beingSetUpText() : buyUnavailableText(carrier, canAttach, offers)}
+ {paidInApp
+ ? t('common.plan.managedOnWeb')
+ : settingUp
+ ? beingSetUpText()
+ : buyUnavailableText(carrier, canAttach, offers)}
</p>
) : option === 'existing' ? (
<div className="ob-existing">
@@ -237,9 +247,11 @@ function Choose({
<span className="help">
{buyable
? existing.description
- : settingUp
- ? beingSetUpText()
- : buyUnavailableText(carrier, canAttach, offers)}
+ : paidInApp
+ ? t('common.plan.managedOnWeb')
+ : settingUp
+ ? beingSetUpText()
+ : buyUnavailableText(carrier, canAttach, offers)}
</span>
</div>
) : (
diff --git a/apps/web/src/onboarding/TrialLink.tsx b/apps/web/src/onboarding/TrialLink.tsx
index d8e71204..d8342031 100644
--- a/apps/web/src/onboarding/TrialLink.tsx
+++ b/apps/web/src/onboarding/TrialLink.tsx
@@ -6,6 +6,7 @@
import { useFormat, useT } from '@linedesk/i18n/react'
import { useEffect, useRef, useState } from 'react'
import type { Me } from '../auth.ts'
+import { isNativeApp } from '../native/platform.ts'
import { useMembers } from '../team/members.ts'
import { markAlreadyRunning, readTrialLink, takeTrialLink } from '../trialLink.ts'
import { Dialog } from '../ui/form.tsx'
@@ -16,6 +17,8 @@ type Request = { kind: 'start'; interval: 'month' | 'year' | null } | { kind: 'n
/** What the link in `hash` asks of this member; null when it is no trial link or nothing is to open here. */
export function trialLinkRequest(me: Me, hash: string): Request | null {
+ // Nothing is started in the iOS and Android app (LIN-874): the link is only taken out of the address.
+ if (isNativeApp()) return null
const found = readTrialLink(hash)
if (!found || me.workspace?.billingState !== 'pending_payment') return null
// The activation facts come only to whoever may start it (the bill's owner, or who manages it).
diff --git a/apps/web/src/partner/PartnerArea.tsx b/apps/web/src/partner/PartnerArea.tsx
index 94e638e0..213821ed 100644
--- a/apps/web/src/partner/PartnerArea.tsx
+++ b/apps/web/src/partner/PartnerArea.tsx
@@ -11,6 +11,7 @@ import {
} from '@linedesk/actions'
import { type MessageKey, msg } from '@linedesk/i18n'
import { useT } from '@linedesk/i18n/react'
+import { isNativeApp } from '../native/platform.ts'
import { type FormEvent, useEffect, useMemo, useState } from 'react'
import { day } from '../admin/parts.tsx'
import { setQueryData, useQuery } from '../cachedQuery.ts'
@@ -141,9 +142,13 @@ function PartnerConsole({ partner, onExit, onFirstWorkspace }: Props) {
const data = query.data
const status = data?.partner.status ?? partner.status
// Partner › Billing: the partner bill's own page, for its owner (the partner's owner). Until the partner has loaded,
- // a link straight to it (`#partner/billing`) keeps its section, so the page does not fall back to Clients.
- const billMine = !!data?.bill?.mine
- const [linked] = useState(() => sectionParts('partner', window.location.hash).section)
+ // a link straight to it (`#partner/billing`) keeps its section, so the page does not fall back to Clients. Never in
+ // the iOS and Android app: nothing is bought there (LIN-874).
+ const billMine = !!data?.bill?.mine && !isNativeApp()
+ const [linked] = useState(() => {
+ const section = sectionParts('partner', window.location.hash).section
+ return section === 'billing' && isNativeApp() ? null : section
+ })
const sections = useMemo(
() =>
partnerSections(
@@ -210,7 +215,9 @@ function PartnerConsole({ partner, onExit, onFirstWorkspace }: Props) {
gates the brand in emails: said in Brand), and activating is the Clients section's own card. */}
{status === 'suspended' && <Note tone="danger">{t('team.partner.suspended')}</Note>}
{data?.bill && status !== 'suspended' && !RUNNING.includes(data.bill.status) && !unpaidPartner(data) && (
- <Note tone="danger">{t('team.partner.bill.inactive')}</Note>
+ <Note tone="danger">
+ {isNativeApp() ? t('team.partner.bill.inactiveApp') : t('team.partner.bill.inactive')}
+ </Note>
)}
<Loading
what={t('team.partner.page')}
@@ -266,6 +273,8 @@ function ActivateCard({ data, primary }: { data: PartnerData; primary: boolean }
const t = useT()
const { money } = usePrice()
const breakdown = usePartnerBreakdown()
+ // The iOS and Android app (LIN-874): no price and no Activate, one neutral line.
+ if (isNativeApp()) return <Note tone="info">{t('team.partner.bill.notActiveApp')}</Note>
const bill = data.bill!
if (!bill.mine) return <Note tone="info">{t('team.partner.bill.waitsForOwner')}</Note>
const clients = data.clients.length
diff --git a/apps/web/src/partner/PartnerSetup.tsx b/apps/web/src/partner/PartnerSetup.tsx
index 36a408bd..44e95ed6 100644
--- a/apps/web/src/partner/PartnerSetup.tsx
+++ b/apps/web/src/partner/PartnerSetup.tsx
@@ -15,6 +15,7 @@ import { useEffect, useState } from 'react'
import { ColorField, nameProblem, parsedColor } from '../admin/Branding.tsx'
import { setQueryData, useQuery } from '../cachedQuery.ts'
import { goToCheckout } from '../checkout.ts'
+import { isNativeApp } from '../native/platform.ts'
import { rememberDraftOpenedFrom } from '../onboarding/flow.ts'
import { SetupFoot } from '../onboarding/SetupFoot.tsx'
@@ -56,9 +57,12 @@ import { useSetupKeys } from '../onboarding/setup-keys.ts'
export type PartnerSetupStep = 'agency' | 'clients' | 'activate'
-/** The steps this partner goes through: Activate only while White-label Cloud waits for its owner's Checkout. */
+/**
+ * The steps this partner goes through: Activate only while White-label Cloud waits for its owner's Checkout, and never
+ * in the iOS and Android app, where nothing is bought (LIN-874): there the clients step ends the setup.
+ */
export function partnerSetupSteps(data: Pick<PartnerData, 'bill'>): PartnerSetupStep[] {
- return data.bill?.status === 'pending_payment' && data.bill.mine
+ return data.bill?.status === 'pending_payment' && data.bill.mine && !isNativeApp()
? ['agency', 'clients', 'activate']
: ['agency', 'clients']
}
@@ -171,7 +175,11 @@ export function PartnerSetup({
return () => window.removeEventListener('hashchange', follow)
}, [])
const data = query.data
- const steps = data ? partnerSetupSteps(data) : (['agency', 'clients', 'activate'] as const)
+ const steps: readonly PartnerSetupStep[] = data
+ ? partnerSetupSteps(data)
+ : isNativeApp()
+ ? ['agency', 'clients']
+ : ['agency', 'clients', 'activate']
const step = data && brand.data ? partnerSetupStart(hash, steps, { brand: !!brand.data.brand }) : 'agency'
const index = steps.indexOf(step)
diff --git a/apps/web/src/settings/CallQuality.tsx b/apps/web/src/settings/CallQuality.tsx
index 11c985ac..28644b50 100644
--- a/apps/web/src/settings/CallQuality.tsx
+++ b/apps/web/src/settings/CallQuality.tsx
@@ -22,7 +22,7 @@ import { Badge } from '../ui/kit.tsx'
import { SettingRow } from '../ui/SettingRow.tsx'
import type { Draft } from './assistantDraft.ts'
import { Section } from './fields.tsx'
-import { DEFAULT_CHOICE, levelName, levelPrice, pricePerMinute } from './levelModel.ts'
+import { DEFAULT_CHOICE, levelName, levelPrice, pricePerMinute, shownCentsPerMinute } from './levelModel.ts'
import { useVoiceOptions } from './VoiceSettings.tsx'
import { FoldOut } from '../ui/FoldOut.tsx'
@@ -69,7 +69,7 @@ export function levelSavedNote(
): string | null {
if (level === savedLevel) return null
const t = i18n().t
- const cents = options?.levels.find(l => l.level === level)?.centsPerMinute
+ const cents = shownCentsPerMinute(options?.levels.find(l => l.level === level)?.centsPerMinute)
return cents == null
? t('settings.voice.quality.savedLevel', { name, level: levelName(level) })
: t('settings.voice.quality.savedPrice', { name, price: pricePerMinute(cents) })
@@ -110,7 +110,8 @@ export function CallQualitySettings({ picks, onChange, name, savedLevel }: Props
// Raising above the saved level is for a workspace owner or admin; going back down is for anyone who edits.
const locked = (l: CallQuality) => !options.mayRaise && raisesLevel(savedLevel, l)
const anyLocked = options.levels.some(l => locked(l.level))
- const price = current?.centsPerMinute == null ? null : pricePerMinute(current.centsPerMinute)
+ const cents = shownCentsPerMinute(current?.centsPerMinute)
+ const price = cents == null ? null : pricePerMinute(cents)
const voiceChoices = current?.voiceModels[picks.voice.provider] ?? []
const ownPicks = !!(picks.llm_model || picks.voice.model || picks.realtime_model)
return (
diff --git a/apps/web/src/settings/PhoneNumbers.tsx b/apps/web/src/settings/PhoneNumbers.tsx
index e1356482..67d707ac 100644
--- a/apps/web/src/settings/PhoneNumbers.tsx
+++ b/apps/web/src/settings/PhoneNumbers.tsx
@@ -48,6 +48,7 @@ import {
offerHasAreaCode,
phoneFromValue,
} from '@linedesk/actions'
+import { isNativeApp } from '../native/platform.ts'
import { useDefaultPhoneCountry } from '../phoneCountry.ts'
import { providerAudience } from '../providerAudience.ts'
import { notAnsweringWhy } from '../inbox/goLive.ts'
@@ -725,7 +726,17 @@ export function ConnectNumber({
// The country the owner was shown (picked, the listing's, the workspace's, else its hint) when it has a buy offer.
const country = buyingCountry(useWorkspaceCountry(), offers)
const offer = buyOfferIn(offers, country)
- const buyable = offersBuying(country, offers)
+ // The business's number forwards as chosen for pick-up (Settings › Hours); until loaded, the calls it misses.
+ const settings = useWorkspaceSettings().data ?? null
+ const forwarding = pickupNumberMode(firstPickup(settings))
+ const partnerManaged = settings?.partnerManaged === true
+ const bought = numbers.filter(n => n.purchased && n.carrier_account === 'install').length
+ // A white-label client's people see no prices (docs/white-label.md): its partner pays for the number.
+ const monthly = partnerManaged ? null : billedNumberPrice(extraNumberCents, status?.provider ?? null, bought)
+ // The iOS and Android app buys nothing (LIN-874): a number the plan does not include (`monthly`, paid from the
+ // balance) is not offered there; the plan's own first number still is.
+ const paidInApp = isNativeApp() && monthly !== null
+ const buyable = offersBuying(country, offers) && !paidInApp
const settingUp = numbersBeingSetUp(country, offers)
const noAreaCode = !offerHasAreaCode(offer)
const [chosen, setStep] = useState<ConnectStep>('buy')
@@ -750,15 +761,8 @@ export function ConnectNumber({
const carrier = carrierName(status?.provider ?? null)
// A refusal while this waits is shown here, not also as a toast.
const { rejection, clearRejection } = useClaimedRejection('phoneNumber.setup', sentAt !== null)
- // The business's number forwards as chosen for pick-up (Settings › Hours); until loaded, the calls it misses.
- const settings = useWorkspaceSettings().data ?? null
- const forwarding = pickupNumberMode(firstPickup(settings))
- const partnerManaged = settings?.partnerManaged === true
const buying = step === 'buy'
const dev = status?.provider === 'dev'
- const bought = numbers.filter(n => n.purchased && n.carrier_account === 'install').length
- // A white-label client's people see no prices (docs/white-label.md): its partner pays for the number.
- const monthly = partnerManaged ? null : billedNumberPrice(extraNumberCents, status?.provider ?? null, bought)
const price = partnerManaged
? undefined
: (billedNumberNote(extraNumberCents, status?.provider ?? null, bought) ??
@@ -835,7 +839,11 @@ export function ConnectNumber({
{nothingToConnect ? (
// Nothing this member can connect here: only why, and Cancel; no carrier name, no button that does nothing.
<p className="help" role="status">
- {settingUp ? beingSetUpText() : buyUnavailableText(carrier, canAttach, offers)}
+ {paidInApp
+ ? t('common.plan.managedOnWeb')
+ : settingUp
+ ? beingSetUpText()
+ : buyUnavailableText(carrier, canAttach, offers)}
</p>
) : buying ? (
<div className="st-pn-t">
@@ -848,9 +856,11 @@ export function ConnectNumber({
<span className="help">
{buyable
? existing.description
- : settingUp
- ? beingSetUpText()
- : buyUnavailableText(carrier, canAttach, offers)}
+ : paidInApp
+ ? t('common.plan.managedOnWeb')
+ : settingUp
+ ? beingSetUpText()
+ : buyUnavailableText(carrier, canAttach, offers)}
</span>
</div>
)}
diff --git a/apps/web/src/settings/account/index.tsx b/apps/web/src/settings/account/index.tsx
index 5bb49ac5..a834885a 100644
--- a/apps/web/src/settings/account/index.tsx
+++ b/apps/web/src/settings/account/index.tsx
@@ -2,7 +2,7 @@
// (#account/<section>). Profile, sign-in and sessions are Better Auth's own data (see account-api.ts), so they do
// not go through the outbox; notifications are per workspace (settings/Notifications.tsx).
import type { MessageKey } from '@linedesk/i18n'
-import { useT } from '@linedesk/i18n/react'
+import { T, useT } from '@linedesk/i18n/react'
import { type FormEvent, type KeyboardEvent, useCallback, useEffect, useMemo, useState } from 'react'
import { auth, fetchMe, passkeySupported } from '../../auth.ts'
import { removeAuthenticator } from '../../authenticator-api.ts'
@@ -16,6 +16,7 @@ import { useImpersonating } from '../../supportAccess.ts'
import { refreshTeam } from '../../team/team-api.ts'
import { changedByLabel } from '../../team/team-model.ts'
import { dateTimeLabel } from '../../time.ts'
+import { appLink } from '../../ui/AppLink.tsx'
import { DangerConfirmDialog } from '../../ui/DangerConfirmDialog.tsx'
import { Input, onSaveKey, SaveBar, FormField } from '../../ui/form.tsx'
import { Avatar, Badge, Button, Note } from '../../ui/kit.tsx'
@@ -249,10 +250,44 @@ function ProfilePage({ account, reload, hasWorkspace }: SectionProps & { hasWork
hasWorkspace={hasWorkspace}
languageOpen={part === 'language'}
/>
+ {hasWorkspace && <DeleteAccount />}
</div>
)
}
+/** Workspace settings › Danger zone, where leaving the last workspace or deleting an owned one deletes the account. */
+export const DANGER_ZONE_HASH = '#workspace/danger'
+
+/**
+ * Delete account, findable from Account (App Store 5.1.1(v), LIN-874; the same on the web): what happens, and the way
+ * to the flow that does it. An account goes with its last workspace (team.leave with deleteAccount, or the owner's
+ * workspace.deleteOwn), both in Workspace settings › Danger zone, which knows the role, the other workspaces and the
+ * sign-in it needs; so this row only opens it. Without a workspace there is no such flow: not shown.
+ */
+export function DeleteAccount() {
+ const t = useT()
+ return (
+ <Section id="ac-delete" title={t('settings.workspace.nav.danger.label')}>
+ <SettingRow
+ title={t('account.delete.title')}
+ description={<T k="account.delete.text" values={{ link: appLink(DANGER_ZONE_HASH) }} />}
+ control={
+ <Button
+ size="sm"
+ variant="danger-outline"
+ title={t('account.delete.buttonTitle')}
+ onClick={() => {
+ window.location.hash = DANGER_ZONE_HASH
+ }}
+ >
+ {t('account.delete.button')}
+ </Button>
+ }
+ />
+ </Section>
+ )
+}
+
function Profile({ account, reload, hasWorkspace }: SectionProps & { hasWorkspace: boolean }) {
const t = useT()
const [name, setName] = useState(account.user.name)
diff --git a/apps/web/src/settings/billingModel.ts b/apps/web/src/settings/billingModel.ts
index c578f99d..fc930733 100644
--- a/apps/web/src/settings/billingModel.ts
+++ b/apps/web/src/settings/billingModel.ts
@@ -11,6 +11,7 @@ import type {
} from '@linedesk/actions'
import { type Formatters, inTimeZone, knownTimeZone, type MessageKey, msg } from '@linedesk/i18n'
import type { Me } from '../auth.ts'
+import { isNativeApp } from '../native/platform.ts'
import { browserTimeZone, gmtOffset } from './timeZones.ts'
/** Settings › Billing opens the add-calls dialog (`?addCalls=1`; the busy-line email and banner link there, LIN-450). */
@@ -553,10 +554,12 @@ export function trialRechargeInput(prompt: Pick<TrialMinutesPrompt, 'amountCents
* settings:write (`usage`), and on an install that bills without a bill for this workspace, the "not on a bill" view
* (`none`) for owners and admins. Off billing, and for members, no section (a member who owns the bill holds
* billing:manage, LIN-400, and gets the bill's page). A white-label client without a bill: none.
+ * In the iOS and Android app no section either (LIN-874): nothing is bought there, plans are managed on the web
+ * (App Store 3.1.3(b), Google Play payments policy); with it go the trial's days left in the inbox header.
*/
export function workspaceBillingView(me: Pick<Me, 'permissions' | 'workspace'>): 'owner' | 'usage' | 'none' | null {
const workspace = me.workspace
- if (!workspace) return null
+ if (!workspace || isNativeApp()) return null
const manages = me.permissions.includes('billing:manage')
if (!workspace.billingState) return workspace.billingOn && !workspace.partnerManaged && manages ? 'none' : null
if (manages) return 'owner'
diff --git a/apps/web/src/settings/levelModel.ts b/apps/web/src/settings/levelModel.ts
index cec868ac..b885c26a 100644
--- a/apps/web/src/settings/levelModel.ts
+++ b/apps/web/src/settings/levelModel.ts
@@ -2,6 +2,7 @@
// packages/actions/src/usage-level.ts): their names and, where there are prices, the price a minute.
import { CALL_QUALITY_LABELS, type CallQuality, type CallQualityLevelOption } from '@linedesk/actions'
import { i18n } from '../i18n/index.tsx'
+import { isNativeApp } from '../native/platform.ts'
/** The value of the "Default" option (the server's model for the level). */
export const DEFAULT_CHOICE = ''
@@ -12,8 +13,14 @@ export const pricePerMinute = (cents: number) => i18n().format.rate(cents / 100,
/** A level's name: a product name, the same in every language. */
export const levelName = (level: CallQuality) => CALL_QUALITY_LABELS[level]
-/** "$0.10 a minute", or nothing where there are no prices (a partner's client, no bill, self-hosted). */
+/**
+ * A level's price per minute as the page may show it: none in the store apps (no prices or buying there: a higher
+ * level costs more from the balance, which is bought on the web).
+ */
+export const shownCentsPerMinute = (cents: number | null | undefined) => (isNativeApp() ? null : (cents ?? null))
+
+/** "$0.10 a minute", or nothing where there are no prices (a partner's client, no bill, self-hosted, the apps). */
export const levelPrice = (option: Pick<CallQualityLevelOption, 'centsPerMinute'>) =>
- option.centsPerMinute === null
+ shownCentsPerMinute(option.centsPerMinute) === null
? undefined
- : i18n().t('settings.voice.quality.perMinute', { price: pricePerMinute(option.centsPerMinute) })
+ : i18n().t('settings.voice.quality.perMinute', { price: pricePerMinute(option.centsPerMinute!) })
diff --git a/apps/web/src/shell/setup-account-menu-routes.test.ts b/apps/web/src/shell/setup-account-menu-routes.test.ts
index a1052fa5..880351cb 100644
--- a/apps/web/src/shell/setup-account-menu-routes.test.ts
+++ b/apps/web/src/shell/setup-account-menu-routes.test.ts
@@ -45,7 +45,8 @@ const SETUP_SCREENS: Record<string, string> = {
const MENU_HOSTS = ['onboarding/SetupTopBar.tsx', 'shell/SignedInAuthPage.tsx']
/** Pages before signing in: the bare card page, no account to show. */
-const SIGNED_OUT_ONLY = new Set(['Login.tsx', 'SignInLink.tsx', 'shell/SignedInAuthPage.tsx'])
+// native/AppSignInPage.tsx: the app's sign-in hand-back in the system browser, which signs that browser out again.
+const SIGNED_OUT_ONLY = new Set(['Login.tsx', 'SignInLink.tsx', 'shell/SignedInAuthPage.tsx', 'native/AppSignInPage.tsx'])
function files(dir: string): string[] {
return readdirSync(dir).flatMap(name => {
diff --git a/docker/Caddyfile b/docker/Caddyfile
index fc805015..fe7ac654 100644
--- a/docker/Caddyfile
+++ b/docker/Caddyfile
@@ -149,9 +149,10 @@
respond 404
}
- # /oauth/* and the /.well-known OAuth documents: MCP clients sign in with OAuth (apps/api/src/oauth.ts). /shopify/app:
+ # /oauth/* and the /.well-known OAuth documents: MCP clients sign in with OAuth (apps/api/src/oauth.ts); the mobile
+ # app's link files (apps/api/src/app-links.ts). /shopify/app:
# the Shopify app's embedded page, served by the API.
- @api path /api/* /v1/* /shopify/app /mcp /mcp/setup /mcp/setup/* /mcp/.well-known/* /oauth/* /.well-known/oauth-protected-resource /.well-known/oauth-protected-resource/* /.well-known/oauth-authorization-server /.well-known/oauth-authorization-server/* /.well-known/openid-configuration /.well-known/openid-configuration/* /.well-known/openai-apps-challenge
+ @api path /api/* /v1/* /shopify/app /mcp /mcp/setup /mcp/setup/* /mcp/.well-known/* /oauth/* /.well-known/oauth-protected-resource /.well-known/oauth-protected-resource/* /.well-known/oauth-authorization-server /.well-known/oauth-authorization-server/* /.well-known/openid-configuration /.well-known/openid-configuration/* /.well-known/openai-apps-challenge /.well-known/apple-app-site-association /.well-known/assetlinks.json
handle @api {
import api public
}
diff --git a/docs/architecture.md b/docs/architecture.md
index 1037731d..3fa2ab37 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -528,3 +528,14 @@ Decided 2026-11-15 and 2026-11-16. Built PR by PR; until a part is merged, the c
## 18. White-label partners
Design: [white-label.md](white-label.md) (decided 2026-11-17). A partner (`partners`) is its own row above workspaces with a team (`partner_members`, one owner, admins) that joins by email invitation (`partner_invitations`, token stored hashed). Client workspaces have `organization.partner_id`; every team member is an `admin` member of each of them, marked `member.partner_id`, so tenancy, read sync and permissions stay the workspace's own. `syncPartnerMemberships` (`apps/api/src/partners.ts`) keeps those memberships in step with the team and the partner's status, in the transaction of each change. The `partner` permission is given only to sessions of people on a partner team (or invited to one), never to keys or impersonations; each partner action checks the caller is on that partner's team (403 otherwise). Partner memberships are changed only on the partner (`partner_managed`), and someone in a client workspace through a partner makes nobody admin there until the client has an owner (S2). Accounts on a partner team are never deleted with a workspace or a removal. Server admin › Partners creates, approves and suspends partners and sets how many client workspaces a partner may make without billing; suspension removes the team from the client workspaces (and cancels the workspace invitations they sent there). Audit kind `partners`. Built: slice S1; the partner bill, brand and domains follow (white-label.md, "Not built yet").
+
+## 19. Mobile apps (iOS, Android)
+
+`apps/mobile` is a Capacitor shell around the web app (decision of 2026-11-28), not a second client: the app opens the server's own pages (`server.url`, Linedesk Cloud by default; `LINEDESK_APP_URL` at `cap sync` for another server), so sessions, sync, the outbox and every update work and ship as on the web. The web app finds out it runs inside the app with `isNativeApp()` (`apps/web/src/native/platform.ts`) and calls the native plugins only through `apps/web/src/native/plugins.ts` (Capacitor's `registerPlugin`; the plugin code lives in `apps/mobile`).
+
+- **Provider sign-in.** Google refuses OAuth inside an app's web view, so in the app every provider sign-in (Google, Apple, Microsoft, GitHub, OIDC) runs in the system's sign-in browser: iOS `ASWebAuthenticationSession` (iOS 17.4, `.https` callback), Android Chrome Custom Tabs (`LinedeskAuthPlugin`, our own plugin in both projects; it opens only the app's own server). The session comes back like an OAuth code with PKCE, tied to a provider sign-in of that same flow (`apps/api/src/app-sign-in.ts`, a Better Auth plugin; security review of #1997): the app keeps a random verifier and opens `/app-sign-in?provider=…&challenge=<SHA-256 of it>`. That page posts the challenge to `POST /api/auth/app-sign-in/start` (kept with the time in a signed httpOnly cookie of that browser, 15 minutes) and signs in with the provider. Back from it, the page shows who signed in and asks for the person's OK; only then `POST /api/auth/app-sign-in/code` gives a one-use code (32 random bytes, stored hashed in `verification` with the user, the challenge and the browser's session; 2 minutes, one per start), and only for a session made after the start: a session the browser had before never counts, and an impersonation never. The code goes to the app on the server's own https address `/app-sign-in/back?code=…`, a universal link / verified app link that only the real app receives (no custom scheme another app could claim). The app's web view redeems it with the verifier (`POST /api/auth/app-sign-in/redeem`): the row is deleted in the same statement that reads it, a wrong verifier spends it, the browser's session must still exist (a password reset or "sign out everywhere" in between ends the hand-back) and is ended, the web view's own older session too, and the new session is made by Better Auth's adapter, so the session hooks run (disabled accounts, the host, the audit log with method `app`). All three endpoints check the origin like Better Auth's own sign-in endpoints (`formCsrfMiddleware`), so another site's form can neither start nor redeem. Everything the provider sign-in itself checks (address proof, sign-up gate, admin alerts) ran in the browser. Email codes, passwords and passkeys work inside the app's web view as on the web (passkeys through the app's associated domain).
+- **Links.** `GET /.well-known/apple-app-site-association` and `/.well-known/assetlinks.json` (`apps/api/src/app-links.ts`, from `MOBILE_IOS_APP_IDS` and `MOBILE_ANDROID_APP`; 404 without them) let links to the start page `/` (every email link: `/#call/…`, `/?invite=…`) and the sign-in hand-back `/app-sign-in/back` open the app; the app then shows that address (`appUrlOpen`, `native/init.ts`; the hand-back belongs to the waiting sign-in). Other paths (`/app-sign-in`, the API, Stripe's return) stay in the browser.
+- **Phone.** Status bar, splash screen, the Android back button (closes what is open, then goes back, then puts the app in the background), the keyboard, safe areas (`viewport-fit=cover` inside the app).
+- **No buying in the apps.** The store rules (App Store 3.1.1 and 3.1.3(b), Google Play payments) allow a multiplatform service whose plans are bought elsewhere, without calls to action. Inside the app every purchase step is hidden: Settings › Billing, the billing banner, the trial link, the plan step of onboarding (a neutral "Your plan is managed on the web" step that waits for the plan), extra paid phone numbers, the partner's activation and billing, prices of call quality levels, and trial wording on the sign-up and sign-in pages.
+- **Account deletion** (App Store 5.1.1(v)): Account › Profile › Delete account opens Workspace settings › Danger zone, where leaving the last workspace or deleting an owned one deletes the account.
+- **Builds.** CI builds both apps on a pull request that changes `apps/mobile`; on the trunk the iOS build goes to TestFlight (App Store Connect API key, signed in the cloud) and the signed Android bundle (upload key) is kept for Google Play.
diff --git a/packages/i18n/locales/en/account.json b/packages/i18n/locales/en/account.json
index e4886975..12912680 100644
--- a/packages/i18n/locales/en/account.json
+++ b/packages/i18n/locales/en/account.json
@@ -90,6 +90,10 @@
"connectAgent.signInFirst": "Sign in again to connect the agent. Connecting needs a sign-in from the last 10 minutes.",
"connectAgent.title": "Connect an AI agent to {brand}",
"connectAgent.unverified": "The agent gave this name itself. Allow only if you started this connection.",
+ "delete.button": "Delete account…",
+ "delete.buttonTitle": "Opens Workspace settings › Danger zone",
+ "delete.text": "Deletes your account and your sign-in for good. Your account goes with your last workspace: leave it, or delete it if you own it. Both are under <link>Workspace settings › Danger zone</link>.",
+ "delete.title": "Delete account",
"device.apiClient": "API client",
"device.browserOn": "{browser} on {system}",
"device.unknown": "Unknown device",
diff --git a/packages/i18n/locales/en/admin.json b/packages/i18n/locales/en/admin.json
index 2e9f3a21..bfe213e5 100644
--- a/packages/i18n/locales/en/admin.json
+++ b/packages/i18n/locales/en/admin.json
@@ -266,6 +266,7 @@
"audit.memberNotificationsChanged": "{known, select, yes {Changed the notifications of {who} ({fields})} other {Changed the notifications of a member ({fields})}}",
"audit.memberRemoved": "{known, select, yes {Removed {who} from the workspace} other {Removed a member from the workspace}}",
"audit.membershipAdded": "{known, select, yes {{role, select, owner {Added {who} as owner} admin {Added {who} as an admin} other {Added {who} as a member}}} other {{role, select, owner {Added a member as owner} admin {Added a member as an admin} other {Added a member as a member}}}}",
+ "audit.method.app": "the Linedesk app (after a sign-in in the phone's browser)",
"audit.method.emailCode": "email code",
"audit.method.emailLink": "email link",
"audit.method.oidc": "single sign-on",
diff --git a/packages/i18n/locales/en/auth.json b/packages/i18n/locales/en/auth.json
index ca937e89..3f972378 100644
--- a/packages/i18n/locales/en/auth.json
+++ b/packages/i18n/locales/en/auth.json
@@ -16,6 +16,12 @@
"addPasskey.why": "Sign in faster next time, with no code.",
"addPasskey.whyProvider": "Sign in with one touch next time, without {provider}.",
"addPasskey.whyUnnamedProvider": "Sign in with one touch next time.",
+ "appSignIn.back": "Back to the Linedesk app",
+ "appSignIn.confirm": "Sign in to the Linedesk app on this phone as {email}?",
+ "appSignIn.continue": "Continue",
+ "appSignIn.failed": "The sign-in did not work. Go back to the app and try again.",
+ "appSignIn.openApp": "Open the Linedesk app to finish signing in.",
+ "appSignIn.title": "Signing in for the Linedesk app",
"back": "Back",
"backTip": "Back to where you were",
"checkout.back": "Back to the app",
@@ -110,6 +116,7 @@
"error.sessionExpired": "Your session has ended. Sign in again to continue.",
"error.sessionNotFresh": "Sign in again to do this.",
"error.signupClosed": "No account for this email. Ask your workspace admin for an invitation.",
+ "error.signupClosedCreate": "Or create an account",
"error.signupClosedStartTrial": "Or start your free trial",
"error.tokenExpired": "This link has expired. Sign in with an email code instead.",
"error.tooManyAttempts": "Too many tries with this code. Ask for a new one.",
@@ -142,6 +149,7 @@
"method.password": "Password",
"needHelp": "Need help? Write to <a>{email}</a>",
"noAccount": "No account? Ask your workspace admin for an invitation.",
+ "noAccountCreate": "No account? <a>Create one</a>",
"noAccountSignup": "No account? <a>Start your free trial</a>",
"noMethod": "No sign-in method is set up on this server. Ask your server admin to turn one on.",
"noWorkspace.aWorkspace": "a workspace",
@@ -167,6 +175,7 @@
"provider.opening": "Opening {provider}…",
"providersAt": "Google, Microsoft and GitHub sign in at <a>{host}</a>.",
"redirect.accessDenied": "Sign-in was cancelled. Choose a way to sign in below.",
+ "redirect.appSignInRefused": "This sign-in could not be finished in the app. Start again below.",
"redirect.elsewhere": "Sign-in with Google, Microsoft or GitHub has to start from {host}. Open {brand} there and sign in again.",
"redirect.invalidCallback": "This sign-in could not be finished. Start again below.",
"redirect.stateMismatch": "This sign-in took too long or was started in another browser. Start again below and finish in the same tab. If it keeps happening, allow cookies for this site.",
diff --git a/packages/i18n/locales/en/common.json b/packages/i18n/locales/en/common.json
index fbb9fc19..c5eb1949 100644
--- a/packages/i18n/locales/en/common.json
+++ b/packages/i18n/locales/en/common.json
@@ -133,6 +133,7 @@
"plan.interval.month": "Monthly",
"plan.interval.save": "Save {percent}%",
"plan.interval.year": "Yearly",
+ "plan.managedOnWeb": "Your plan is managed on the web.",
"plan.minutes": "{minutes} call minutes each month, then {perMinute} a minute",
"plan.numbers": "{count, plural, one {A phone number} other {# phone numbers}}",
"plan.perWorkspace": "per workspace",
diff --git a/packages/i18n/locales/en/onboarding.json b/packages/i18n/locales/en/onboarding.json
index cacd911f..351e486a 100644
--- a/packages/i18n/locales/en/onboarding.json
+++ b/packages/i18n/locales/en/onboarding.json
@@ -3,6 +3,9 @@
"action.backTip": "Back (Esc)",
"action.continue": "Continue",
"action.later": "Later",
+ "activate.app.check": "Check again",
+ "activate.app.text": "Your plan is managed on the web. Once it runs, the setup goes on here with your phone number.",
+ "activate.app.title": "Your plan",
"activate.cardHint": "You add your card on the next page.",
"activate.day": "Day {day}, {date}",
"activate.daysBefore": "{count, plural, one {# day} other {# days}}",
@@ -620,6 +623,7 @@
"rowActions.phoneNumbersLink": "Workspace settings › Phone numbers",
"rowActions.testCallTitle": "Talk to your assistant with your microphone, right here",
"steps.activate": "Start your free trial",
+ "steps.activateApp": "Your plan",
"steps.activatePlan": "Start your plan",
"steps.assistant": "Your assistant",
"steps.assistantClient": "Client's assistant",
diff --git a/packages/i18n/locales/en/team.json b/packages/i18n/locales/en/team.json
index f7f8669f..8c77798d 100644
--- a/packages/i18n/locales/en/team.json
+++ b/packages/i18n/locales/en/team.json
@@ -88,6 +88,8 @@
"partner.bill.breakdownNone": "{plan} White-label Cloud + {seat} a month per client workspace.",
"partner.bill.breakdownOne": "{plan} White-label Cloud + {seat} for {name}.",
"partner.bill.inactive": "The partner plan is not running. Pay the open invoice or start the plan again in Billing.",
+ "partner.bill.inactiveApp": "The partner plan is not running. It is managed on the web.",
+ "partner.bill.notActiveApp": "White-label Cloud is not active yet. Your plan is managed on the web. Numbers, calls and client invitations start once it runs.",
"partner.bill.startsOnActivate": "Numbers, calls and client invitations start once you activate.",
"partner.bill.waitsForOwner": "Your partner's owner adds a card first. Client workspaces follow then.",
"partner.billing.title": "Billing",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a5854fae..9a6ea149 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -194,11 +194,57 @@ importers:
specifier: ^5.1.1
+ apps/mobile:
+ dependencies:
+ '@capacitor/android':
+ specifier: 8.6.2
+ version: 8.6.2(@capacitor/[email protected])
+ '@capacitor/app':
+ specifier: 8.1.2
+ version: 8.1.2(@capacitor/[email protected])
+ '@capacitor/browser':
+ specifier: 8.0.5
+ version: 8.0.5(@capacitor/[email protected])
+ '@capacitor/core':
+ specifier: 8.6.2
+ version: 8.6.2
+ '@capacitor/haptics':
+ specifier: 8.0.2
+ version: 8.0.2(@capacitor/[email protected])
+ '@capacitor/ios':
+ specifier: 8.6.2
+ version: 8.6.2(@capacitor/[email protected])
+ '@capacitor/keyboard':
+ specifier: 8.0.6
+ version: 8.0.6(@capacitor/[email protected])
+ '@capacitor/push-notifications':
+ specifier: 8.1.3
+ version: 8.1.3(@capacitor/[email protected])
+ '@capacitor/splash-screen':
+ specifier: 8.0.2
+ version: 8.0.2(@capacitor/[email protected])
+ '@capacitor/status-bar':
+ specifier: 8.0.4
+ version: 8.0.4(@capacitor/[email protected])
+ devDependencies:
+ '@capacitor/assets':
+ specifier: 4.0.0
+ version: 4.0.0(@types/[email protected])
+ '@capacitor/cli':
+ specifier: 8.6.2
+ version: 8.6.2
+ '@types/node':
+ specifier: ^26.6.6
+ version: 26.6.6
+
apps/web:
dependencies:
'@better-auth/passkey':
specifier: 1.7.19
+ '@capacitor/core':
+ specifier: 8.6.2
+ version: 8.6.2
'@floating-ui/react-dom':
specifier: ^2.1.9
@@ -618,6 +664,64 @@ packages:
'@bufbuild/[email protected]':
resolution: {integrity: sha512-wJ8ReQbHxsAfXhrf9ixl0aYbZorRuOWpBNzm8pL8ftmSxQx/wnJD5Eg861NwJU/czy2VXFIebCeZnZrI9rktIQ==}
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-dWXnXmOVTtxU91n5h11MzoQ7PAMjyzU1qguw0mBJZiwSuhGvLKTG/IlsQ75H8qeE0a1acV2f573x15wYvyzuVA==}
+ peerDependencies:
+ '@capacitor/core': ^8.6.0
+
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-uKBlsrXH0IdvUn69e/KKYbZ32A06pcrUdG8LWuZ/6y33YMXZXLEEdNSwl+jKS/SrsTWqnePs8EqSWaiQM3mUGA==}
+ peerDependencies:
+ '@capacitor/core': '>=8.0.0'
+
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-6fi6bYunaawAZ9kkbJheB1Kon7AbqS3AYblQ2ocAnHGyO7YQX3gsgcH7hptklrpbcLT8B6KMyuBZqfDgChCyrw==}
+ engines: {node: '>=20.9.0'}
+ hasBin: true
+
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-qqcEjUqs9kG1naF+tsD8rERuZ3wuIfXzvoIJEERHI4RNWwNSUqAHHduaKhkyb+t01VyVPa0ydx0mZ/eOskk2Ug==}
+ peerDependencies:
+ '@capacitor/core': '>=8.0.0'
+
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-3HeNPX3cEWBSljJT0sJviZCxXRoToTLAufhUcIJh+JMj1xOhLFZpuj8oFRnJ0kNYAf7DIBHQDmilIXloK9+YYg==}
+ engines: {node: '>=22.0.0'}
+ hasBin: true
+
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-UEb9crRuqEAe2Iu2eGOEuQ8rLQxpwg7ZZIpl17UJoytEpnV1e4oXXW0K7yYS2NsCOGmJjyLeKjNlgG7tkAoX8g==}
+
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-c2hZzRR5Fk1tbTvhG1jhh2XBAf3EhnIerMIb2sl7Mt41Gxx1fhBJFDa0/BI1IbY4loVepyyuqNC9820/GZuoWQ==}
+ peerDependencies:
+ '@capacitor/core': '>=8.0.0'
+
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-YnVm0lRA1mQWK0SKd2bdJIOG+PXRRDDdndZ1+nGqeiob+QmHZmb4wWo5gVpWhoHO37pGi2qzH5w5WGvfKrs+Gg==}
+ peerDependencies:
+ '@capacitor/core': ^8.6.0
+
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-Bbe+9V0qaT6dzEFJEK7BUWR01l2+vZE8FM5ITF/WgKtx+G6eGZ6d5+YiSMRJBAK0VGjdO59v8yiQ10Doa5KyvQ==}
+ peerDependencies:
+ '@capacitor/core': '>=8.0.0'
+
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-UlOCTS3uiw8ZUJ1rkFKJgoqPADipHDNn0lq5mNRwtXALVxQXIeIoRd3iqpzC+962R2LpCRJRkCTjPX2OHK3tBA==}
+ peerDependencies:
+ '@capacitor/core': '>=8.0.0'
+
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-0C6rYScr13WfAE9nPl4ScOQynmjFv9NT3Th+RZkD4ezYHmER6mcl1/lDYsv7jg3Rj3FOvLrlTlmNkUrr83kZzQ==}
+ peerDependencies:
+ '@capacitor/core': '>=8.0.0'
+
+ '@capacitor/[email protected]':
+ resolution: {integrity: sha512-ZMzBUyHBzwDUxcHadEhvOvmoPmMQGMZgaMRJu8ohELeI6IaxoVH9ZhdF/OHnY3/yykv3Glev8Tnbh4aZY/0B0w==}
+ peerDependencies:
+ '@capacitor/core': '>=8.0.0'
+
'@datastructures-js/[email protected]':
resolution: {integrity: sha512-PSBhJ2/SmeRPRHuBv7i/fHWIdSC3JTyq56qb+Rq0wjOagi0/fdV5/B/3Md5zFZus/W6OkSPMaxMKKMNMrSmubg==}
@@ -1171,6 +1275,58 @@ packages:
cpu: [x64]
os: [win32]
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-TshtaFQsovB4NWRBydbNFawql6yul7d5bMiW1WYYf17hd99V6xdDdk3vtF51bw6sLkxON3bDQpWsnUc9/hVo3g==}
+ engines: {node: '>=16.0.0'}
+
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-0JZ1Zkp3wURnv8oq6Qt7fMPo5MpjbLoUoa9Bu2Q4PJuSDWM8H8gwF3dQO7VTeUj3/0o1IB1wGkFWZZYgUXZMUg==}
+ engines: {node: '>=16.0.0'}
+
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-2EknRvMVfhnyhL1VhFkSLa5gOcycK91VnjfrTB0kbqkTFCOXyXgVLI5whzq7SLrgD9t1aqos3lMMQyVzaQ5gVA==}
+ engines: {node: '>=16.0.0'}
+
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-vCl7sl6JjBHFw99CuAqHljYJpcE88YaH2ZW4ELiC/Zwxl5tiwn4kbdP/gxi2OT3MQb1vOtgAmSNRtusvgxI8ww==}
+ engines: {node: '>=16.0.0'}
+
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-Uavxn+x8j3rDlZEk1X7YnaN6wCgbCwYQOeIjv/m94i1dzslqWhqIHEqxEyeE8HsT5Negboagg7GtQiABy+BLbA==}
+ engines: {node: '>=16.0.0'}
+
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-Jqkgyq7zBs/v/J3YvKtQQiIcxfJyplPgECMWgdO0E1fKrrH8EF0QGHNJ9mJCn6PYe2UtHNS8JJf5G21e09DfYg==}
+ engines: {node: '>=16.0.0'}
+
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-4+Kitey1lTA1yGtnigeYNhV/0tggI3lWBMjC7tBs1K9GXa/q7q4CtOISppdh8QgtOhrhAXS2Igp8rbko/Cj+lA==}
+ engines: {node: '>=16.0.0'}
+
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-eSELBE7NWNFIHTbTC2jiMvh1ABKGIpGdUIvARsNPMNQhxJB3wpwdiVnoBoTYp+5a6UUIww4Kpg7v6S7iTctH1w==}
+ engines: {node: '>=16.0.0'}
+
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-nGYvyGVjU0kjPUcSRFr4ROTraT3w/7r502f5QJEsMRKTqa4eEzCshtwRk+/mpASm0kgBN5rrjYA5A/OZg8ahqg==}
+ engines: {node: '>=16.0.0'}
+
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-cT4te3AQQPeIM9WCwIg8ohroJ8TjsYaMb2G4ZEgv9YzeDqHZ4JpeIKqG2SoaA3GmVQ3sOfhPM6Ox9sxphV/d1A==}
+ engines: {node: '>=16.0.0'}
+
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-cEiMFl3jklE0sW60r8JHH3ijFTwh/jkdEKWbylSyExQwZ8pPuwoXz7gpkWoJRLuoRHHSvg+wzNYyPJazIHfoJA==}
+ engines: {node: '>=16.0.0'}
+
+ '@ionic/[email protected]':
+ resolution: {integrity: sha512-3cKScz9Jx2/Pr9ijj1OzGlBDfcmx7OMVBt4+P1uRR0SSW4cm1/y3Mo4OY3lfkuaYifMNBW8Wz6lQHbs1bihr7A==}
+ engines: {node: '>=16.0.0'}
+
+ '@isaacs/[email protected]':
+ resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==}
+ engines: {node: '>=18.0.0'}
+
'@isaacs/[email protected]':
resolution: {integrity: sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==}
@@ -1885,6 +2041,9 @@ packages:
engines: {node: '>=20'}
hasBin: true
+ '@prettier/[email protected]':
+ resolution: {integrity: sha512-UWRmygBsyj4bVXvDiqSccwT1kmsorcwQwaIy30yVh8T+Gspx4OlC0shX1y+ZuwXZvgnafmpRYKks0bAu9urJew==}
+
'@rolldown/[email protected]':
resolution: {integrity: sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -2088,6 +2247,13 @@ packages:
'@tanstack/[email protected]':
resolution: {integrity: sha512-Syiaf3w69dFyYv4o2mqJ1/2VtBJTNq5Hu5cVXfnzOuJKFpUojukQR13ZW+5NvdMJM7GFHeNPmveMNhoIubiFyA==}
+ '@trapezedev/[email protected]':
+ resolution: {integrity: sha512-fWXhxfb/QiVRcCjypx9IWJ3r9XUJaBd68a71nmlWba0sM5lHjteZU1hACCoOo6ygRP9nAPTapyCrrOgtJIOL7A==}
+
+ '@trapezedev/[email protected]':
+ resolution: {integrity: sha512-RnYuCYxYs/XW+5DCZlUdoJ81PsoC9nQUy2lNaY7VX9a/aMo62PwoodTwb+jokP/jobxLJvQXOu8B1KFWKCrXCQ==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-5IT29i4j55E5O66+la7L8Y46ut7dFaNZqrgUIYYNtcpMt9Ql7aYnSQb/6tZ+prE2AfX1RBCAtRJE41txS2rG3w==}
cpu: [x64]
@@ -2136,6 +2302,9 @@ packages:
resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==}
+
resolution: {integrity: sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==}
@@ -2156,6 +2325,9 @@ packages:
resolution: {integrity: sha512-ikIFF0EaYt/2XetIYYVeMj6SB52oVXFasJUXDzWHgzNJS5ep2Pbsu7f8f3Za+dEie8HQtt3Zr9mHYBpWT0XgxQ==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-+OpjSaq85gvlZAYINyzKpLeiFkSC4EsC6IIiT6v6TLSU5k5U83fHGj9Lel8oKEXM0HqgrMVCjXPDPVICtxF7EQ==}
+
resolution: {integrity: sha512-GnJmSr40H3RAnj0s34FNTcJi1hmWFV5KXugE0mYWnYhgTAHLJ/dJKAwDmvPJYMke0RplY2XE9LnM4hqSqKIjhQ==}
@@ -2312,6 +2484,13 @@ packages:
'@vitest/[email protected]':
resolution: {integrity: sha512-6K8C6alQG1/Yc8/ZI22iJS7JEsxPdVzqtqDq+/xM4Z0mGVykemMVjLhqMy/q6/IHYG3kKD8hKSwRen/ZdyI9vQ==}
+ '@xml-tools/[email protected]':
+ resolution: {integrity: sha512-YNIPbmr/7ClPpWyk0MLImLBLyVLgW+BeOkbd4UDp8w0tCcgU8lmA4karXBF9EQwaQzDTzaBbJtmSA0G2NKKlPA==}
+
+ '@xmldom/[email protected]':
+ resolution: {integrity: sha512-5AXjrcMClTryPe9LgZrygpB1lj7s0S9E0+W+AHaVKAVyHanafK86iPSvG5xHVSp/jC+VH1UXu0TAEmY279xH7A==}
+ engines: {node: '>=14.6'}
+
resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==}
engines: {node: '>=6.5'}
@@ -2320,6 +2499,14 @@ packages:
resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==}
@@ -2334,6 +2521,10 @@ packages:
resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-kD87oezczQTJYp6SW07l9X/fyssEg4/GSFmxBN1Xk8TRN7h4tkQddRK/VJnlHkbzmK1w16s/7dUtUO4EUKLDpA==}
engines: {node: '>=12.0.0'}
@@ -2344,6 +2535,10 @@ packages:
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
+ resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==}
+ engines: {node: '>= 4.0.0'}
+
resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==}
engines: {node: '>=8.0.0'}
@@ -2433,13 +2628,34 @@ packages:
zod:
optional: true
+ resolution: {integrity: sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==}
+ engines: {node: '>=0.6'}
+
resolution: {integrity: sha512-3aRg6/JxfffFD+OlOjOFR3Vo79l39ooBTFucxx+MT3dhCtzn3EmiUPQo+6/OZuI2jbXi3YKgmiTFBgChQMwIRQ==}
+ resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}
+
+ resolution: {integrity: sha512-sXaHZicyEEmY86WyueLTQesbeoH/mquvarJaQNbjuOQO+7gbFcDEWqKmcWA4cOTLzFlfgvkiVxolk1k5bBIpmg==}
+
+ resolution: {integrity: sha512-PyJxiNtA5T2PlLIeBot4lbp7rj4OadzjnMZD/G5zuBNt8ei/yCU7+wW0h2bag9vr8c+/WuRWmSxbqAl9hL1rBA==}
+ engines: {node: '>= 5.10.0'}
+
+ resolution: {integrity: sha512-apC2+fspHGI3mMKj+dGevkGo/tCqVB8jMb6i+OX+E29p0Iposz07fABkRIfVUPNd5A5VbuOz1bZbnmkKLYF+wQ==}
+ engines: {node: '>= 5.10.0'}
+
resolution: {integrity: sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==}
engines: {node: 20 || >=22}
+ resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}
+
resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==}
@@ -2464,9 +2680,27 @@ packages:
resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-wy3mC1x4ye+O+QkEinVJkPf5u2vsrDIYW9G7ZuwFl6v/Yu0LwUuT2POsb+NUWApebyxfkQq6+yDfRExbnI5rcw==}
+
+ resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-lmNyBzi6iYiqyrExTctfmjd8tInx+dHu9PBomTfH5RXS53c27JMFJgzNv5TyAnm3PgGf+MLy0+Ws41/HlVxdKQ==}
+ resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
+ engines: {node: '>=7.0.0'}
+
+ resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
+
resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==}
@@ -2478,6 +2712,10 @@ packages:
resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}
+ engines: {node: '>= 12'}
+
resolution: {integrity: sha512-kpoxgQyveO1l29nw+FWdvmotyV7eOSzGHQpxiXOEZIDOjqO1iR6kfgJ0PVHTuV26uBemKq3ppzma7dHFAG7viw==}
engines: {node: '>=18'}
@@ -2486,6 +2724,13 @@ packages:
resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
engines: {node: '>= 8'}
+ resolution: {integrity: sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==}
+
+ resolution: {integrity: sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==}
+ engines: {node: '>= 6'}
+
resolution: {integrity: sha512-PoKaoPzQapnEoqUSnHx1u6W6ku8CVEgKsnpmmzU3m1nwkidpPBQ8V/Zq2+bWNrsOKoKLwTGdbx6xF7BXP1zLVQ==}
@@ -2513,6 +2758,15 @@ packages:
resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==}
+ resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
+ engines: {node: '>=6.0'}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+
resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
engines: {node: '>=6.0'}
@@ -2526,6 +2780,10 @@ packages:
resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==}
@@ -2540,6 +2798,23 @@ packages:
resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==}
+ engines: {node: '>=0.3.1'}
+
+ resolution: {integrity: sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==}
+
+ resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==}
+
+ resolution: {integrity: sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==}
+ engines: {node: '>= 4'}
+
+ resolution: {integrity: sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==}
+
resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==}
engines: {node: '>=12'}
@@ -2650,9 +2925,23 @@ packages:
resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}
+ resolution: {integrity: sha512-wkgGT6kugeQk/P6VZ/f4T+4HB41BVgNBq5CDIZVbQ02nvTVqAiVTbskxxu3eA/X96lMlfYOwnLQpN2v5E1zDEg==}
+ engines: {node: '>= 0.4.0'}
+
+ resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
+
resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==}
+ resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==}
+
+ resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}
+ engines: {node: '>=6'}
+
resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
engines: {node: '>= 0.4'}
@@ -2685,6 +2974,10 @@ packages:
engines: {node: '>=18'}
hasBin: true
+ resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
+ engines: {node: '>=6'}
+
resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
@@ -2728,6 +3021,9 @@ packages:
resolution: {integrity: sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==}
+ resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==}
+
resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
engines: {node: '>=12.0.0'}
@@ -2746,6 +3042,18 @@ packages:
resolution: {integrity: sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==}
engines: {node: '>= 6'}
+ resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==}
+ engines: {node: '>=14.14'}
+
+ resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
@@ -2754,6 +3062,10 @@ packages:
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
+ resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
+ engines: {node: 6.* || 8.* || >= 10.*}
+
resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
engines: {node: '>= 0.4'}
@@ -2773,6 +3085,13 @@ packages:
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==}
+
+ resolution: {integrity: sha512-is3hDn9zb8XXnjbEeAEIqxTpLHUiGBqjegLmXPuyMBfKAggpadWFku4/AP8iYAGBX6qR9/5UIUIp47V0XI3aMw==}
+ hasBin: true
+
resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
engines: {node: '>= 0.4'}
@@ -2785,6 +3104,10 @@ packages:
resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}
+ hasBin: true
+
resolution: {integrity: sha512-EQfezRg0NCZGNlhlDR3Evrw1FVL2G3LhU7EgPoxufQKruNBSYA8MiRPHeWbU+36o+Fhel0wMwM+sLEiBAlNLJA==}
engines: {node: '>=10.0.0'}
@@ -2814,9 +3137,26 @@ packages:
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
+ resolution: {integrity: sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+
resolution: {integrity: sha512-zFzW80iYSSJm4V185g3ItJQ96lBZ2RDO8O8qmRiPAAVKYXJeHfDQN2ITdtLlV+CjSi9Lo7zVW9xGt9CPCx7J6A==}
+ resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}
+ engines: {node: '>=8'}
+ hasBin: true
+
+ resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
@@ -2845,6 +3185,9 @@ packages:
resolution: {integrity: sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==}
+ resolution: {integrity: sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==}
+
resolution: {integrity: sha512-wy8OTjwsJwQRnQJkKnMJJ9vcytRdBPAgIF/Hy6+s1dAj42BHMKiyL8JzEieIl3JY7idt8eyHwBWTO8mh/+mtwA==}
hasBin: true
@@ -2855,6 +3198,14 @@ packages:
resolution: {integrity: sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==}
+ resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}
+ engines: {node: '>=6'}
+
resolution: {integrity: sha512-K48ErswC3MlIcBqR0pYIIEl+n9rIgwxgzaM1FxKHMXn7egxr1NHj7bCeF98mXl9A3/QoL5I7mo5S/mLXgeDgGA==}
engines: {node: '>=22.0.0'}
@@ -2945,6 +3296,9 @@ packages:
resolution: {integrity: sha512-41/6Piz6emgjco9+kXbiu98qsuoOKbCE4tUZMcBan0r1b5phoCiuLYoanLDAd74Cd0i6GNaUn6KLb8hR1lDhCw==}
engines: {node: '>=19'}
+ resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
+
resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==}
@@ -2993,6 +3347,10 @@ packages:
resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}
engines: {node: '>=16 || 14 >=14.17'}
+ resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==}
+ engines: {node: '>= 18'}
+
resolution: {integrity: sha512-9YxN+ddPSMMlhylOv25VHzXrl9u67QRxoh7+SEewGtgUw7t6hHTrjptSDJUSne9oG4Xk/h2cwG15nIt4Hc9ujg==}
@@ -3005,6 +3363,9 @@ packages:
resolution: {integrity: sha512-0acOTfMiWOheYS4eoWb80yYMb/JLvVv9SHbs2PehaDzfUG0Bw855SKyk0IKTnPGa5+U2bmi3W68l1+sGLX/pvw==}
+ resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
+
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
@@ -3017,13 +3378,30 @@ packages:
resolution: {integrity: sha512-FixtE239Gl6Gz0ZGCK0WzvNwObNCIwVT+L7zQcf1QgcA6AzBxblzqe9OT88qiucNkhsjSOqiogSaF5jVbJiqSA==}
engines: {node: ^20.0.0 || >=22.0.0}
+ resolution: {integrity: sha512-JhEph/fyMwBHmMLiZ1OZX8X92+N1gt5+/ecLtgeRbyDHIyIW7EDt0A3kBZu594y1P4yKDr1CIHe+DDYQ7ZlKjg==}
+ engines: {node: '>=16.0.0'}
+ hasBin: true
+
resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==}
+ resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==}
+ engines: {node: 4.x || >=6.0.0}
+ peerDependencies:
+ encoding: ^0.1.0
+ peerDependenciesMeta:
+ encoding:
+ optional: true
+
resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==}
hasBin: true
+ resolution: {integrity: sha512-RaBPP3+51hPne/OolXxcz89iYvQvKOydaqoePpOgXcrOKZhjVIzmpKZz+Hd/RBO2/zN2q6CNJhQzucVz+u3Jyw==}
+
resolution: {integrity: sha512-d7kfFfS/tR4Aca+SBvRaQ+MXKNv7d2JiRe5TxaRcFT/kYMh4GGPnW9aKksTIEvyEbA7d/7HYWE4YPDEHxzJj/g==}
engines: {node: '>=20.0.0'}
@@ -3032,6 +3410,9 @@ packages:
resolution: {integrity: sha512-TMB1uHiGsHRGv1uYclfhivcnf0/PdFp2pNqRxXjncaAsjYMoisaQJI+SSZCqRq+VliwRTC8tsMQfmrWjDMhkPQ==}
engines: {node: '>=20'}
+ resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
+
resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==}
engines: {node: '>=12.20.0'}
@@ -3046,6 +3427,10 @@ packages:
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
+ resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==}
+ engines: {node: '>=12'}
+
resolution: {integrity: sha512-aYCc0C6L864eR6WSYIwQGyXriw/nIyZx0ObvhzOEVuk0zoBDpynjSbrionWI7q65B5H8jJX0DXR9snEzM6bfPg==}
peerDependencies:
@@ -3074,6 +3459,9 @@ packages:
resolution: {integrity: sha512-BKmaZZXp667kLC8Od/ivIkbw6yaxTSqw8ViI1Tvl21E6r+6NLdwDmo43LpL2Ebt/PDMu1d4tcdBucMSor+cL1g==}
engines: {node: ^20.19.0 || >=22.12.0}
+ resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==}
+
resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==}
@@ -3088,6 +3476,9 @@ packages:
resolution: {integrity: sha512-V/mpyJAoTsN4cnP31vc0wfNA1+p20evqqnap0KLoRUN0Yk/p3wN52DOEsL4oBFcLdb76hlpKPtzJIgo67j/XLw==}
+ resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==}
+
resolution: {integrity: sha512-nvB9hB2cDJGSPUwYjN/Mth+EE3zvxffkp7uKXIiYloMAaxSoEiutmZi9mpSW85hNCcPChf3yicNXdwhIWkv2nA==}
engines: {node: '>=22.12.0'}
@@ -3185,6 +3576,10 @@ packages:
engines: {node: '>=20'}
hasBin: true
+ resolution: {integrity: sha512-ZIfcLJC+7E7FBFnDxm9MPmt7D+DidyQ26lewieO75AdhA2ayMtsJSES0iWzqJQbcVRSrTufQoy0DR94xHue0oA==}
+ engines: {node: '>=10.4.0'}
+
resolution: {integrity: sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==}
engines: {node: ^10 || ^12 || >=14}
@@ -3209,6 +3604,11 @@ packages:
resolution: {integrity: sha512-0XL2hreherEEvUy0fiaGEfN/ioXFV+JpImqIzQjxk6iBg4jQ2ARKqvC4+BmRD8w/pnpD+lbxvh0Ub+z7yBEjvA==}
hasBin: true
+ resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==}
+ engines: {node: '>=10.13.0'}
+ hasBin: true
+
resolution: {integrity: sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==}
@@ -3219,6 +3619,10 @@ packages:
resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==}
engines: {node: '>= 0.6.0'}
+ resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==}
+ engines: {node: '>= 6'}
+
resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==}
@@ -3247,6 +3651,10 @@ packages:
resolution: {integrity: sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}
+ engines: {node: '>= 6'}
+
resolution: {integrity: sha512-2jhTTU3Eilp/2DMT71gbcoqC35eQHasMJH0RHkYxwlxIv3+FR6Y5xAFZIwEGLxKkjZYEFlsiMNIdwUqjK2lLHQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -3258,6 +3666,13 @@ packages:
resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==}
+ resolution: {integrity: sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==}
+
+ resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-QT7FVMXfWOYFbeRBF6nu+I6tr2Tf3u0q8RIEjNob/heKY/nh7drD/k7eeMFmSQgnTtCzLDcCu/XEnpW2wk4xCQ==}
engines: {node: '>=9.3.0 || >=8.10.0 <9.0.0'}
@@ -3265,6 +3680,11 @@ packages:
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
+ resolution: {integrity: sha512-Fk3reQDVPZUMbEm7Zwxz03BWQMW3V5buSk9aU8OckTrO8A1nQtbqvYsAantGNermwsIsXcuOBqcoJ3HuMELctw==}
+ engines: {node: 20 || >=22}
+ hasBin: true
+
resolution: {integrity: sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -3289,6 +3709,13 @@ packages:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
+ resolution: {integrity: sha512-5f3k2PbGGp+YtKJjOItpg3P99IMD84E4HOvcfleTb5joCHNXYLsR9yWFPOYGgaeMPDubQILTCMdsFb2OMeOjtg==}
+
+ resolution: {integrity: sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==}
+ engines: {node: '>=11.0.0'}
+
resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==}
@@ -3339,6 +3766,19 @@ packages:
resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
+
+ resolution: {integrity: sha512-iMSw5i0XseMnrhtIzRb7XpQEXepa9xhWxGUojHBL43SIpQuDQkh3Wpy67ZbDzZVr6EKxvwVChnVpdl8hEVLDiw==}
+
+ resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
+
+ resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-y4Z8LCDBuum+PBP3lSV7RHrXscqksve/bi0as7mhwVnBW+/wUqKT/2Kb7um8yqcFy0duYbbPxzt89Zy2nOCaxg==}
@@ -3369,9 +3809,21 @@ packages:
resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==}
+ resolution: {integrity: sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg==}
+ engines: {node: '>= 0.10.0'}
+
+ resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}
+ resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'}
@@ -3393,6 +3845,10 @@ packages:
resolution: {integrity: sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==}
engines: {node: '>=20'}
+ resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-wxVoanmDeavXie1vu2JaQ3WIc3JZnWAOYFBsJyATaVsXsycKYUflGsyBmrRSnoCpZJpwPyr38VpgSUlQ8CbFxg==}
@@ -3402,6 +3858,9 @@ packages:
resolution: {integrity: sha512-zLBvqpwr4Esa0kRjcrzGU6zL25lePWaCLMx0RQFrmteozIfeNdaMLpG5U7PeHzvlFkAWaRKA9/KVW4F60iB+qw==}
+ resolution: {integrity: sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==}
+
resolution: {integrity: sha512-Al01C2JIBnO2CXCAPbpAl6sUiOZHeThGtHYNTa51JRw9PyWOCdr+9Ong05R4qg/Sk3+H645E8ov1h2c58ityNw==}
engines: {node: '>=20.0.0'}
@@ -3421,12 +3880,22 @@ packages:
resolution: {integrity: sha512-48dH6aSpQnpbzDUc4vIQZ1VjB8tkK+e8c1yx05/SZK+rkssgjEOlxDd/yU8/a4vGYQ9vRgJr9dwMq9TJ0b3X2Q==}
hasBin: true
+ resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}
+
+ resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}
+ hasBin: true
+
resolution: {integrity: sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==}
resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
+ resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
+
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
@@ -3468,9 +3937,20 @@ packages:
resolution: {integrity: sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==}
engines: {node: '>=20.18.1'}
+ resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
+ engines: {node: '>= 10.0.0'}
+
+ resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-0rjE8iEJe4YmT9TOhwsZtqCMRLc5DXZUI2UEYUUg63ikBkqqE5EYWaI0etFe/5KUcmcYwLih2RND1kq+hrUJXA==}
+ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+
resolution: {integrity: sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -3563,10 +4043,16 @@ packages:
resolution: {integrity: sha512-Dmy+vdO1UPMqXiAtZSNayhl4f794Bxfd94W4HIj2HlYtczEQfEOon969memlcpcHrTuOKLa5baFjX7WbgmOq+A==}
+ resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}
+
resolution: {integrity: sha512-CHbl2ZQbxx164IgWRgzJno4hWtM4tFbRam1QfI3Yxhs3w/DvqluVxVWeXs3oL5/fbGkSNLKo0Ty5MgUWceNhog==}
engines: {node: '>=6.0.0', npm: '>=3.10.0'}
+ resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==}
+
resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==}
hasBin: true
@@ -3581,6 +4067,10 @@ packages:
engines: {node: '>=20.11'}
hasBin: true
+ resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
@@ -3596,10 +4086,53 @@ packages:
utf-8-validate:
optional: true
+ resolution: {integrity: sha512-dDaoWzc9EP2fp9FS9PVZUkyvFxY4y1TOV9pcKaKLk++Ei/qb97XDFEVP7GnW7Osii/TzVABJ0jq2F+9/lq0TVA==}
+ engines: {node: '>=14.17.0'}
+
+ resolution: {integrity: sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==}
+ hasBin: true
+
+ resolution: {integrity: sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==}
+ engines: {node: '>=4.0.0'}
+
+ resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==}
+ engines: {node: '>=4.0'}
+
+ resolution: {integrity: sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==}
+ engines: {node: '>=8.0'}
+
+ resolution: {integrity: sha512-rxMJhSIoiO8vXcWvSifKqhvV96GjiD5wYb8/QHdoRyQvraTpp4IEv944nhGausZZ3u7dhQXteZuZbaqfpB7uYw==}
+ engines: {node: '>=0.6.0'}
+
resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}
engines: {node: '>=0.4'}
+ resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==}
+
resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==}
peerDependencies:
@@ -3744,6 +4277,88 @@ snapshots:
'@bufbuild/[email protected]': {}
+ '@capacitor/[email protected](@capacitor/[email protected])':
+ dependencies:
+ '@capacitor/core': 8.6.2
+
+ '@capacitor/[email protected](@capacitor/[email protected])':
+ dependencies:
+ '@capacitor/core': 8.6.2
+
+ '@capacitor/[email protected](@types/[email protected])':
+ dependencies:
+ '@ionic/cli-framework-output': 2.2.8
+ '@ionic/utils-array': 2.1.6
+ '@ionic/utils-fs': 3.1.7
+ '@trapezedev/project': 7.1.13
+ commander: 8.3.0
+ debug: 4.3.4
+ fs-extra: 10.1.0
+ node-fetch: 2.7.0
+ node-html-parser: 5.4.2
+ sharp: 0.35.5(@types/[email protected])
+ tslib: 2.6.2
+ yargs: 17.7.2
+ transitivePeerDependencies:
+ - '@types/node'
+ - encoding
+ - supports-color
+
+ '@capacitor/[email protected](@capacitor/[email protected])':
+ dependencies:
+ '@capacitor/core': 8.6.2
+
+ '@capacitor/[email protected]':
+ dependencies:
+ '@ionic/cli-framework-output': 2.2.8
+ '@ionic/utils-subprocess': 3.0.1
+ '@ionic/utils-terminal': 2.3.5
+ commander: 12.1.0
+ debug: 4.4.3
+ env-paths: 2.2.1
+ fs-extra: 11.4.1
+ kleur: 4.1.5
+ native-run: 2.1.0
+ open: 8.4.2
+ plist: 3.1.1
+ prompts: 2.4.2
+ rimraf: 6.1.4
+ semver: 7.8.6
+ tar: 7.5.23
+ tslib: 2.9.1
+ xcode: 4.0.0
+ xml2js: 0.6.2
+ transitivePeerDependencies:
+ - supports-color
+
+ '@capacitor/[email protected]':
+ dependencies:
+ tslib: 2.9.1
+
+ '@capacitor/[email protected](@capacitor/[email protected])':
+ dependencies:
+ '@capacitor/core': 8.6.2
+
+ '@capacitor/[email protected](@capacitor/[email protected])':
+ dependencies:
+ '@capacitor/core': 8.6.2
+
+ '@capacitor/[email protected](@capacitor/[email protected])':
+ dependencies:
+ '@capacitor/core': 8.6.2
+
+ '@capacitor/[email protected](@capacitor/[email protected])':
+ dependencies:
+ '@capacitor/core': 8.6.2
+
+ '@capacitor/[email protected](@capacitor/[email protected])':
+ dependencies:
+ '@capacitor/core': 8.6.2
+
+ '@capacitor/[email protected](@capacitor/[email protected])':
+ dependencies:
+ '@capacitor/core': 8.6.2
+
'@datastructures-js/[email protected]': {}
'@drizzle-team/[email protected]': {}
@@ -4096,6 +4711,131 @@ snapshots:
optional: true
+ '@ionic/[email protected]':
+ dependencies:
+ '@ionic/utils-terminal': 2.3.5
+ debug: 4.4.3
+ tslib: 2.9.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@ionic/[email protected]':
+ dependencies:
+ debug: 4.4.3
+ tslib: 2.9.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@ionic/[email protected]':
+ dependencies:
+ '@types/fs-extra': 8.1.5
+ debug: 4.4.3
+ fs-extra: 9.1.0
+ tslib: 2.9.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@ionic/[email protected]':
+ dependencies:
+ debug: 4.4.3
+ tslib: 2.9.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@ionic/[email protected]':
+ dependencies:
+ '@ionic/utils-object': 2.1.6
+ '@ionic/utils-terminal': 2.3.4
+ debug: 4.4.3
+ signal-exit: 3.0.7
+ tree-kill: 1.2.2
+ tslib: 2.9.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@ionic/[email protected]':
+ dependencies:
+ '@ionic/utils-object': 2.1.6
+ '@ionic/utils-terminal': 2.3.5
+ debug: 4.4.3
+ signal-exit: 3.0.7
+ tree-kill: 1.2.2
+ tslib: 2.9.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@ionic/[email protected]':
+ dependencies:
+ debug: 4.4.3
+ tslib: 2.9.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@ionic/[email protected]':
+ dependencies:
+ debug: 4.4.3
+ tslib: 2.9.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@ionic/[email protected]':
+ dependencies:
+ '@ionic/utils-array': 2.1.6
+ '@ionic/utils-fs': 3.1.7
+ '@ionic/utils-process': 2.1.11
+ '@ionic/utils-stream': 3.1.6
+ '@ionic/utils-terminal': 2.3.4
+ cross-spawn: 7.0.6
+ debug: 4.4.3
+ tslib: 2.9.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@ionic/[email protected]':
+ dependencies:
+ '@ionic/utils-array': 2.1.6
+ '@ionic/utils-fs': 3.1.7
+ '@ionic/utils-process': 2.1.12
+ '@ionic/utils-stream': 3.1.7
+ '@ionic/utils-terminal': 2.3.5
+ cross-spawn: 7.0.6
+ debug: 4.4.3
+ tslib: 2.9.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@ionic/[email protected]':
+ dependencies:
+ '@types/slice-ansi': 4.0.0
+ debug: 4.4.3
+ signal-exit: 3.0.7
+ slice-ansi: 4.0.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ tslib: 2.9.1
+ untildify: 4.0.0
+ wrap-ansi: 7.0.0
+ transitivePeerDependencies:
+ - supports-color
+
+ '@ionic/[email protected]':
+ dependencies:
+ '@types/slice-ansi': 4.0.0
+ debug: 4.4.3
+ signal-exit: 3.0.7
+ slice-ansi: 4.0.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ tslib: 2.9.1
+ untildify: 4.0.0
+ wrap-ansi: 7.0.0
+ transitivePeerDependencies:
+ - supports-color
+
+ '@isaacs/[email protected]':
+ dependencies:
+ minipass: 7.1.3
+
'@isaacs/[email protected]': {}
'@jridgewell/[email protected]': {}
@@ -4777,6 +5517,11 @@ snapshots:
dependencies:
playwright: 1.65.1
+ '@prettier/[email protected]':
+ dependencies:
+ '@xml-tools/parser': 1.0.12
+ prettier: 2.8.8
+
'@rolldown/[email protected]':
optional: true
@@ -4947,6 +5692,28 @@ snapshots:
'@tanstack/[email protected]': {}
+ '@trapezedev/[email protected]': {}
+
+ '@trapezedev/[email protected]':
+ dependencies:
+ '@ionic/utils-fs': 3.1.7
+ '@ionic/utils-subprocess': 2.1.14
+ '@prettier/plugin-xml': 2.2.0
+ '@trapezedev/gradle-parse': 7.1.13
+ '@xmldom/xmldom': 0.9.12
+ cross-spawn: 7.0.6
+ diff: 5.2.2
+ gradle-to-js: 2.0.1
+ kleur: 4.1.5
+ lodash: 4.18.1
+ plist: 3.1.1
+ prettier: 2.8.8
+ xcode: 4.0.0
+ xml-js: 1.6.11
+ xpath: 0.0.32
+ transitivePeerDependencies:
+ - supports-color
+
optional: true
@@ -4983,6 +5750,10 @@ snapshots:
'@types/[email protected]': {}
+ '@types/[email protected]':
+ dependencies:
+ '@types/node': 26.6.6
+
dependencies:
undici-types: 8.9.0
@@ -5005,6 +5776,8 @@ snapshots:
'@types/[email protected]': {}
+ '@types/[email protected]': {}
+
dependencies:
'@types/node': 26.6.6
@@ -5089,12 +5862,24 @@ snapshots:
'@vitest/[email protected]': {}
+ '@xml-tools/[email protected]':
+ dependencies:
+ chevrotain: 7.1.1
+
+ '@xmldom/[email protected]': {}
+
dependencies:
event-target-shim: 5.0.1
+
+ dependencies:
+ color-convert: 2.0.1
+
@@ -5112,12 +5897,16 @@ snapshots:
+
+
@@ -5173,12 +5962,30 @@ snapshots:
optionalDependencies:
zod: 4.6.7
+
+
+ dependencies:
+ stream-buffers: 2.2.0
+
+ dependencies:
+ big-integer: 1.6.52
+
+ dependencies:
+ big-integer: 1.6.52
+
dependencies:
balanced-match: 4.0.4
+
@@ -5201,8 +6008,26 @@ snapshots:
+ dependencies:
+ regexp-to-ast: 0.5.0
+
+
+ dependencies:
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ wrap-ansi: 7.0.0
+
+ dependencies:
+ color-name: 1.1.4
+
+
@@ -5211,6 +6036,8 @@ snapshots:
+
dependencies:
luxon: 3.7.2
@@ -5221,6 +6048,16 @@ snapshots:
shebang-command: 2.0.0
which: 2.0.2
+ dependencies:
+ boolbase: 1.0.0
+ css-what: 6.2.2
+ domhandler: 4.3.1
+ domutils: 2.8.0
+ nth-check: 2.1.1
+
+
@@ -5252,12 +6089,18 @@ snapshots:
+ dependencies:
+ ms: 2.1.2
+
dependencies:
ms: 2.1.3
+
@@ -5266,6 +6109,26 @@ snapshots:
+
+ dependencies:
+ domelementtype: 2.3.0
+ domhandler: 4.3.1
+ entities: 2.2.0
+
+
+ dependencies:
+ domelementtype: 2.3.0
+
+ dependencies:
+ dom-serializer: 1.4.1
+ domelementtype: 2.3.0
+ domhandler: 4.3.1
+
@@ -5292,10 +6155,20 @@ snapshots:
dependencies:
safe-buffer: 5.2.1
+ dependencies:
+ sax: 1.1.4
+
+
dependencies:
once: 1.4.0
+
+
@@ -5373,6 +6246,8 @@ snapshots:
'@esbuild/win32-ia32': 0.28.2
'@esbuild/win32-x64': 0.28.2
+
dependencies:
'@types/estree': 1.0.10
@@ -5401,6 +6276,10 @@ snapshots:
+ dependencies:
+ pend: 1.2.0
+
optionalDependencies:
picomatch: 4.0.7
@@ -5418,11 +6297,32 @@ snapshots:
hasown: 2.0.4
mime-types: 2.1.35
+ dependencies:
+ graceful-fs: 4.2.12
+ jsonfile: 6.2.1
+ universalify: 2.0.1
+
+ dependencies:
+ graceful-fs: 4.2.12
+ jsonfile: 6.2.1
+ universalify: 2.0.1
+
+ dependencies:
+ at-least-node: 1.0.0
+ graceful-fs: 4.2.12
+ jsonfile: 6.2.1
+ universalify: 2.0.1
+
optional: true
+
dependencies:
call-bind-apply-helpers: 1.0.2
@@ -5453,6 +6353,12 @@ snapshots:
+
+ dependencies:
+ lodash.merge: 4.6.2
+
@@ -5463,6 +6369,8 @@ snapshots:
dependencies:
function-bind: 1.1.2
+
@@ -5488,11 +6396,21 @@ snapshots:
+
dependencies:
'@formatjs/fast-memoize': 3.1.7
'@formatjs/icu-messageformat-parser': 3.5.23
+
+
+ dependencies:
+ is-docker: 2.2.1
+
@@ -5514,6 +6432,12 @@ snapshots:
+ dependencies:
+ universalify: 2.0.1
+ optionalDependencies:
+ graceful-fs: 4.2.12
+
@@ -5527,6 +6451,10 @@ snapshots:
jwa: 2.0.1
safe-buffer: 5.2.1
+
+
@@ -5601,6 +6529,8 @@ snapshots:
'@livekit/protocol': 1.54.1
jose: 5.10.0
+
@@ -5634,6 +6564,10 @@ snapshots:
+ dependencies:
+ minipass: 7.1.3
+
@@ -5644,20 +6578,51 @@ snapshots:
+
+ dependencies:
+ '@ionic/utils-fs': 3.1.7
+ '@ionic/utils-terminal': 2.3.5
+ bplist-parser: 0.3.2
+ debug: 4.4.3
+ elementtree: 0.1.7
+ ini: 4.1.3
+ plist: 3.1.1
+ split2: 4.2.0
+ through2: 4.0.2
+ tslib: 2.9.1
+ yauzl: 2.10.0
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ whatwg-url: 5.0.0
+
+ dependencies:
+ css-select: 4.3.0
+ he: 1.2.0
+
+ dependencies:
+ boolbase: 1.0.0
+
@@ -5672,6 +6637,12 @@ snapshots:
dependencies:
wrappy: 1.0.2
+ dependencies:
+ define-lazy-prop: 2.0.0
+ is-docker: 2.2.1
+ is-wsl: 2.2.0
+
optionalDependencies:
ws: 8.23.0
@@ -5725,6 +6696,8 @@ snapshots:
'@oxc-parser/binding-win32-ia32-msvc': 0.158.0
'@oxc-parser/binding-win32-x64-msvc': 0.158.0
+
@@ -5741,6 +6714,8 @@ snapshots:
pako: 1.0.11
tslib: 1.14.1
+
dependencies:
'@opentelemetry/api': 1.10.0
@@ -5878,6 +6853,12 @@ snapshots:
dependencies:
playwright-core: 1.65.1
+ dependencies:
+ '@xmldom/xmldom': 0.9.12
+ base64-js: 1.5.1
+ xmlbuilder: 15.1.1
+
dependencies:
nanoid: 3.3.20
@@ -5896,12 +6877,19 @@ snapshots:
+
+ dependencies:
+ kleur: 3.0.3
+ sisteransi: 1.0.5
+
dependencies:
end-of-stream: 1.4.5
@@ -5930,6 +6918,12 @@ snapshots:
+ dependencies:
+ inherits: 2.0.4
+ string_decoder: 1.3.0
+ util-deprecate: 1.0.2
+
dependencies:
abort-controller: 3.0.0
@@ -5942,6 +6936,10 @@ snapshots:
+
+
dependencies:
debug: 4.4.3
@@ -5951,6 +6949,11 @@ snapshots:
+ dependencies:
+ glob: 14.0.6
+ package-json-from-dist: 1.0.1
+
dependencies:
'@oxc-project/types': 0.156.0
@@ -5981,7 +6984,7 @@ snapshots:
dependencies:
- tslib: 2.8.1
+ tslib: 2.9.1
optional: true
@@ -5990,6 +6993,10 @@ snapshots:
+
+
@@ -6050,6 +7057,22 @@ snapshots:
+
+ dependencies:
+ bplist-creator: 0.1.0
+ bplist-parser: 0.3.1
+ plist: 3.1.1
+
+
+ dependencies:
+ ansi-styles: 4.3.0
+ astral-regex: 2.0.0
+ is-fullwidth-code-point: 3.0.0
+
dependencies:
atomic-sleep: 1.0.0
@@ -6080,10 +7103,22 @@ snapshots:
+
+ dependencies:
+ emoji-regex: 8.0.0
+ is-fullwidth-code-point: 3.0.0
+ strip-ansi: 6.0.1
+
dependencies:
safe-buffer: 5.2.1
+ dependencies:
+ ansi-regex: 5.0.1
+
@@ -6094,6 +7129,14 @@ snapshots:
+ dependencies:
+ '@isaacs/fs-minipass': 4.0.1
+ chownr: 3.0.0
+ minipass: 7.1.3
+ minizlib: 3.1.0
+ yallist: 5.0.0
+
@@ -6104,6 +7147,10 @@ snapshots:
dependencies:
real-require: 0.2.0
+ dependencies:
+ readable-stream: 3.6.2
+
@@ -6119,10 +7166,16 @@ snapshots:
dependencies:
tldts-core: 7.5.4
+
+
+
@@ -6183,8 +7236,14 @@ snapshots:
+
+
+
dependencies:
lightningcss: 1.33.0
@@ -6232,10 +7291,17 @@ snapshots:
+
dependencies:
sdp: 3.2.3
+ dependencies:
+ tr46: 0.0.3
+ webidl-conversions: 3.0.1
+
dependencies:
isexe: 2.0.0
@@ -6246,12 +7312,58 @@ snapshots:
+ dependencies:
+ ansi-styles: 4.3.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+
+ dependencies:
+ simple-plist: 1.3.1
+
+ dependencies:
+ sax: 1.6.1
+
+ dependencies:
+ sax: 1.6.1
+ xmlbuilder: 11.0.1
+
+
+
+
+
+
+
+ dependencies:
+ cliui: 8.0.1
+ escalade: 3.2.0
+ get-caller-file: 2.0.5
+ require-directory: 2.1.1
+ string-width: 4.2.3
+ y18n: 5.0.8
+ yargs-parser: 21.1.1
+
+ dependencies:
+ buffer-crc32: 0.2.13
+ fd-slicer: 1.1.0
+
dependencies:
zod: 4.6.7