⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat(mobile): unlock self-hosted servers with a one-time purchase
Andrejcf006d408c9a
diff --git a/apps/mobile/app.json b/apps/mobile/app.jsonindex 479b98d51..0ef62c10b 100644--- a/apps/mobile/app.json+++ b/apps/mobile/app.json@@ -9,7 +9,7 @@"userInterfaceStyle": "automatic","backgroundColor": "#FAFAFA","ios": {- "bundleIdentifier": "de.usekaneo.kaneo",+ "bundleIdentifier": "app.kaneo","supportsTablet": true,"icon": "./assets/images/icon.png","config": {@@ -23,7 +23,7 @@}},"android": {- "package": "de.usekaneo.kaneo",+ "package": "app.kaneo","versionCode": 5,"adaptiveIcon": {"backgroundColor": "#141414",diff --git a/apps/mobile/package.json b/apps/mobile/package.jsonindex b085ff815..686529bea 100644--- a/apps/mobile/package.json+++ b/apps/mobile/package.json@@ -44,6 +44,7 @@"react-native": "0.88.0","react-native-gesture-handler": "~3.3.0","react-native-markdown-display": "^7.0.2",+ "react-native-purchases": "^10.16.0","react-native-reanimated": "4.7.1","react-native-safe-area-context": "~5.10.1","react-native-screens": "~4.30.0",diff --git a/apps/mobile/src/app/sign-in.tsx b/apps/mobile/src/app/sign-in.tsxindex 14ed25f72..f4ea754ee 100644--- a/apps/mobile/src/app/sign-in.tsx+++ b/apps/mobile/src/app/sign-in.tsx@@ -38,12 +38,14 @@ import {} from "@/lib/api/client";import type { DeviceCodeResponse, InstanceConfig } from "@/lib/api/types";import * as auth from "@/lib/auth";+import { SelfHostedUnlock } from "@/features/sign-in/self-hosted-unlock";import { reachableDeviceLink } from "@/lib/device-link";import { i18n } from "@/lib/i18n";+import { hasSelfHostedUnlock } from "@/lib/purchases";import { usePrefs } from "@/lib/session";import { font, useColors } from "@/theme";-type Step = "start" | "otp" | "device" | "apiKey" | "signUp";+type Step = "start" | "otp" | "device" | "apiKey" | "signUp" | "unlock";const CODE_SLOTS = [0, 1, 2, 3, 4, 5];// The scheme from app.json; the web approval page links back here after approving.@@ -71,6 +73,10 @@ export default function SignInScreen() {const [loading, setLoading] = useState(false);const [otpEmail, setOtpEmail] = useState("");const [deviceAttempt, setDeviceAttempt] = useState(0);+ const [locked, setLocked] = useState<{+ url: string;+ config: InstanceConfig;+ } | null>(null);const run = async (block: () => Promise<void>) => {setLoading(true);@@ -98,6 +104,13 @@ export default function SignInScreen() {throw e;});if (!cfg || stale()) return;+ const unlocked = url === CLOUD_URL || (await hasSelfHostedUnlock());+ if (stale()) return;+ if (!unlocked) {+ setLocked({ url, config: cfg });+ setStep("unlock");+ return;+ }setServerUrl(url);setConfig(cfg);});@@ -191,6 +204,17 @@ export default function SignInScreen() {}}/>) : null}+ {step === "unlock" && locked ? (+ <SelfHostedUnlock+ serverUrl={locked.url}+ onUnlocked={() => {+ setServerUrl(locked.url);+ setConfig(locked.config);+ setLocked(null);+ setStep("start");+ }}+ />+ ) : null}{step === "otp" && serverUrl ? (<OtpStepserverUrl={serverUrl}diff --git a/apps/mobile/src/features/sign-in/self-hosted-unlock.tsx b/apps/mobile/src/features/sign-in/self-hosted-unlock.tsxnew file mode 100644index 000000000..4f86dae47--- /dev/null+++ b/apps/mobile/src/features/sign-in/self-hosted-unlock.tsx@@ -0,0 +1,98 @@+import { useQuery } from "@tanstack/react-query";+import { Server } from "lucide-react-native";+import { useState } from "react";+import { useTranslation } from "react-i18next";+import { View } from "react-native";++import { Txt } from "@/components/text";+import { Button } from "@/components/ui";+import { userMessage } from "@/lib/api/client";+import { i18n } from "@/lib/i18n";+import {+ buySelfHostedUnlock,+ restoreSelfHostedUnlock,+ selfHostedPackage,+} from "@/lib/purchases";+import { useColors } from "@/theme";++export function SelfHostedUnlock({+ serverUrl,+ onUnlocked,+}: {+ serverUrl: string;+ onUnlocked: () => void;+}) {+ const c = useColors();+ const { t } = useTranslation(["mobile"]);+ const offer = useQuery({+ queryKey: ["purchases", "self-hosted"],+ queryFn: selfHostedPackage,+ });+ const [busy, setBusy] = useState<"buy" | "restore" | null>(null);+ const [error, setError] = useState<string | null>(null);++ const attempt = async (+ kind: "buy" | "restore",+ action: () => Promise<boolean>,+ ) => {+ setBusy(kind);+ setError(null);+ try {+ if (await action()) onUnlocked();+ else if (kind === "restore")+ setError(i18n.t("mobile:signIn.unlock.nothingToRestore"));+ } catch (e) {+ setError(userMessage(e));+ } finally {+ setBusy(null);+ }+ };++ const pkg = offer.data;+ const unavailable = offer.isError || (offer.isSuccess && !pkg);+ const shownError =+ error ?? (unavailable ? t("mobile:signIn.unlock.unavailable") : null);++ return (+ <View style={{ gap: 28, paddingTop: 20 }}>+ <View style={{ gap: 8 }}>+ <Txt variant="title">{t("mobile:signIn.unlock.title")}</Txt>+ <Txt variant="body" tone="muted" style={{ lineHeight: 22 }}>+ {t("mobile:signIn.unlock.message")}+ </Txt>+ </View>+ <View style={{ flexDirection: "row", alignItems: "center", gap: 10 }}>+ <Server size={14} color={c.muted} strokeWidth={2} />+ <Txt variant="monoMd" tone="ink2" style={{ flex: 1 }} numberOfLines={1}>+ {serverUrl.replace(/^https?:\/\//, "")}+ </Txt>+ </View>+ {shownError ? (+ <Txt variant="meta" tone="danger" style={{ lineHeight: 18 }}>+ {shownError}+ </Txt>+ ) : null}+ <View style={{ gap: 12 }}>+ <Button+ label={+ pkg+ ? t("mobile:signIn.unlock.buy", {+ price: pkg.product.priceString,+ })+ : t("mobile:signIn.unlock.buyNoPrice")+ }+ disabled={!pkg || busy === "restore"}+ loading={offer.isPending || busy === "buy"}+ onPress={() => pkg && attempt("buy", () => buySelfHostedUnlock(pkg))}+ />+ <Button+ kind="secondary"+ label={t("mobile:signIn.unlock.restore")}+ disabled={busy === "buy"}+ loading={busy === "restore"}+ onPress={() => attempt("restore", restoreSelfHostedUnlock)}+ />+ </View>+ </View>+ );+}diff --git a/apps/mobile/src/lib/purchases.ts b/apps/mobile/src/lib/purchases.tsnew file mode 100644index 000000000..1451a0e3b--- /dev/null+++ b/apps/mobile/src/lib/purchases.ts@@ -0,0 +1,57 @@+import { Platform } from "react-native";+import Purchases, {+ PURCHASES_ERROR_CODE,+ type CustomerInfo,+ type PurchasesError,+ type PurchasesPackage,+} from "react-native-purchases";++const SELF_HOSTED_ENTITLEMENT = "self_hosted";++const apiKey = Platform.select({+ ios: process.env.EXPO_PUBLIC_REVENUECAT_IOS_KEY,+ android: process.env.EXPO_PUBLIC_REVENUECAT_ANDROID_KEY,+});++let configured = false;++function purchases() {+ if (!configured && apiKey) {+ Purchases.configure({ apiKey });+ configured = true;+ }+ return Purchases;+}++const unlocked = (info: CustomerInfo) =>+ SELF_HOSTED_ENTITLEMENT in info.entitlements.active;++export async function hasSelfHostedUnlock(): Promise<boolean> {+ if (!apiKey) return true;+ return unlocked(await purchases().getCustomerInfo());+}++export async function selfHostedPackage(): Promise<PurchasesPackage | null> {+ const offerings = await purchases().getOfferings();+ return offerings.current?.availablePackages[0] ?? null;+}++export async function buySelfHostedUnlock(+ pkg: PurchasesPackage,+): Promise<boolean> {+ try {+ const { customerInfo } = await purchases().purchasePackage(pkg);+ return unlocked(customerInfo);+ } catch (e) {+ if (+ (e as PurchasesError).code ===+ PURCHASES_ERROR_CODE.PURCHASE_CANCELLED_ERROR+ )+ return false;+ throw e;+ }+}++export async function restoreSelfHostedUnlock(): Promise<boolean> {+ return unlocked(await purchases().restorePurchases());+}diff --git a/i18n/az-AZ.json b/i18n/az-AZ.jsonindex 4a6a41b5d..f7996e13c 100644--- a/i18n/az-AZ.json+++ b/i18n/az-AZ.json@@ -4922,7 +4922,16 @@},"tagline": "Sadə layihə idarəetməsi. Kaneo Cloud-a və ya öz instansiyanıza qoşulun.","togglePassword": "Parolun görünməsini dəyiş",- "useApiKey": "API açarından istifadə et"+ "useApiKey": "API açarından istifadə et",+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."+ }},"taskDetail": {"activity": {diff --git a/i18n/de-DE.json b/i18n/de-DE.jsonindex 384c074a4..fd9fd5590 100644--- a/i18n/de-DE.json+++ b/i18n/de-DE.json@@ -4398,6 +4398,15 @@"signUp": {"name": "Name","passwordHint": "Mindestens 8 Zeichen"+ },+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/el-GR.json b/i18n/el-GR.jsonindex 98229e2c2..ffe8c53fb 100644--- a/i18n/el-GR.json+++ b/i18n/el-GR.json@@ -4398,6 +4398,15 @@"signUp": {"name": "Όνομα","passwordHint": "Τουλάχιστον 8 χαρακτήρες"+ },+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/en-US.json b/i18n/en-US.jsonindex bd9d07807..1ae6ccf29 100644--- a/i18n/en-US.json+++ b/i18n/en-US.json@@ -4398,6 +4398,15 @@"signUp": {"name": "Name","passwordHint": "At least 8 characters"+ },+ "unlock": {+ "title": "Connect your own server",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "restore": "Restore purchase",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/es-ES.json b/i18n/es-ES.jsonindex 1e1c3f41d..f6cc73bee 100644--- a/i18n/es-ES.json+++ b/i18n/es-ES.json@@ -4475,6 +4475,15 @@"signUp": {"name": "Nombre","passwordHint": "Al menos 8 caracteres"+ },+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/fr-FR.json b/i18n/fr-FR.jsonindex 13b477de0..cdd423a4a 100644--- a/i18n/fr-FR.json+++ b/i18n/fr-FR.json@@ -4475,6 +4475,15 @@"signUp": {"name": "Nom","passwordHint": "Au moins 8 caractères"+ },+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/hi-IN.json b/i18n/hi-IN.jsonindex e5ddf7424..d92a8c92e 100644--- a/i18n/hi-IN.json+++ b/i18n/hi-IN.json@@ -4398,6 +4398,15 @@"signUp": {"name": "नाम","passwordHint": "कम से कम 8 अक्षर"+ },+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/id-ID.json b/i18n/id-ID.jsonindex 08c662aeb..0597b0e85 100644--- a/i18n/id-ID.json+++ b/i18n/id-ID.json@@ -4321,6 +4321,15 @@"signUp": {"name": "Nama","passwordHint": "Minimal 8 karakter"+ },+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/it-IT.json b/i18n/it-IT.jsonindex 63783e216..960cf7fda 100644--- a/i18n/it-IT.json+++ b/i18n/it-IT.json@@ -4475,6 +4475,15 @@"signUp": {"name": "Nome","passwordHint": "Almeno 8 caratteri"+ },+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/ja-JP.json b/i18n/ja-JP.jsonindex 9e3ae176f..a5787bbe3 100644--- a/i18n/ja-JP.json+++ b/i18n/ja-JP.json@@ -4838,7 +4838,16 @@},"tagline": "シンプルなプロジェクト管理。Kaneo Cloud または自分のインスタンスに接続できます。","togglePassword": "パスワードの表示を切り替え",- "useApiKey": "API キーを使用"+ "useApiKey": "API キーを使用",+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."+ }},"taskDetail": {"activity": {diff --git a/i18n/ko-KR.json b/i18n/ko-KR.jsonindex 62af05a87..ae2ac9b13 100644--- a/i18n/ko-KR.json+++ b/i18n/ko-KR.json@@ -4838,7 +4838,16 @@},"tagline": "간편한 프로젝트 관리. Kaneo Cloud 또는 직접 호스팅한 인스턴스에 연결하세요.","togglePassword": "비밀번호 표시 전환",- "useApiKey": "API 키 사용"+ "useApiKey": "API 키 사용",+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."+ }},"taskDetail": {"activity": {diff --git a/i18n/mk-MK.json b/i18n/mk-MK.jsonindex f23ecf684..00b0d4322 100644--- a/i18n/mk-MK.json+++ b/i18n/mk-MK.json@@ -4398,6 +4398,15 @@"signUp": {"name": "Име","passwordHint": "Најмалку 8 знаци"+ },+ "unlock": {+ "buy": "Отклучи за {{price}}",+ "buyNoPrice": "Отклучи",+ "message": "Најавата на Kaneo Cloud е секогаш вклучена. Поврзувањето на апликацијата со сопствен сервер е еднократна куповина што го поддржува развојот на Kaneo.",+ "nothingToRestore": "Не е пронајдена претходна куповина за оваа сметка во продавницата.",+ "restore": "Врати ја куповината",+ "title": "Поврзи сопствен сервер",+ "unavailable": "Куповините моментално не се достапни. Обиди се повторно подоцна."}},"invitations": {diff --git a/i18n/nl-NL.json b/i18n/nl-NL.jsonindex 1242da791..c2c5b86c8 100644--- a/i18n/nl-NL.json+++ b/i18n/nl-NL.json@@ -4922,7 +4922,16 @@},"tagline": "Eenvoudig projectbeheer. Verbind met Kaneo Cloud of je eigen instantie.","togglePassword": "Zichtbaarheid wachtwoord wijzigen",- "useApiKey": "API-sleutel gebruiken"+ "useApiKey": "API-sleutel gebruiken",+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."+ }},"taskDetail": {"activity": {diff --git a/i18n/pl-PL.json b/i18n/pl-PL.jsonindex e9b2e03a1..0765ecb5e 100644--- a/i18n/pl-PL.json+++ b/i18n/pl-PL.json@@ -4552,6 +4552,15 @@"signUp": {"name": "Imię i nazwisko","passwordHint": "Co najmniej 8 znaków"+ },+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/pt-BR.json b/i18n/pt-BR.jsonindex 21a19fbbf..de80738f4 100644--- a/i18n/pt-BR.json+++ b/i18n/pt-BR.json@@ -5006,7 +5006,16 @@},"tagline": "Gerenciamento de projetos simples. Conecte-se ao Kaneo Cloud ou à sua própria instância.","togglePassword": "Alternar visibilidade da senha",- "useApiKey": "Usar uma chave de API"+ "useApiKey": "Usar uma chave de API",+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."+ }},"taskDetail": {"activity": {diff --git a/i18n/ru-RU.json b/i18n/ru-RU.jsonindex 1914f163b..6ec7aba70 100644--- a/i18n/ru-RU.json+++ b/i18n/ru-RU.json@@ -4604,6 +4604,15 @@"signUp": {"name": "Имя","passwordHint": "Не менее 8 символов"+ },+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/tr-TR.json b/i18n/tr-TR.jsonindex 673b6c1a0..a0ed99948 100644--- a/i18n/tr-TR.json+++ b/i18n/tr-TR.json@@ -4922,7 +4922,16 @@},"tagline": "Basit proje yönetimi. Kaneo Cloud'a veya kendi örneğinize bağlanın.","togglePassword": "Parola görünürlüğünü değiştir",- "useApiKey": "API anahtarı kullan"+ "useApiKey": "API anahtarı kullan",+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."+ }},"taskDetail": {"activity": {diff --git a/i18n/uk-UA.json b/i18n/uk-UA.jsonindex 2275b6bbe..6223a37b3 100644--- a/i18n/uk-UA.json+++ b/i18n/uk-UA.json@@ -4552,6 +4552,15 @@"signUp": {"name": "Ім’я","passwordHint": "Щонайменше 8 символів"+ },+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/vi-VN.json b/i18n/vi-VN.jsonindex d6c88427f..c62434db1 100644--- a/i18n/vi-VN.json+++ b/i18n/vi-VN.json@@ -4321,6 +4321,15 @@"signUp": {"name": "Tên","passwordHint": "Ít nhất 8 ký tự"+ },+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."}},"invitations": {diff --git a/i18n/zh-CN.json b/i18n/zh-CN.jsonindex 69ae5df93..f82ddf954 100644--- a/i18n/zh-CN.json+++ b/i18n/zh-CN.json@@ -4838,7 +4838,16 @@},"tagline": "简单的项目管理。连接 Kaneo Cloud 或你自己的实例。","togglePassword": "切换密码显示",- "useApiKey": "使用 API 密钥"+ "useApiKey": "使用 API 密钥",+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."+ }},"taskDetail": {"activity": {diff --git a/i18n/zh-TW.json b/i18n/zh-TW.jsonindex 77bd62513..35c6f6ebd 100644--- a/i18n/zh-TW.json+++ b/i18n/zh-TW.json@@ -4838,7 +4838,16 @@},"tagline": "簡單的專案管理。連線至 Kaneo Cloud 或你自己的執行個體。","togglePassword": "切換密碼顯示",- "useApiKey": "使用 API 金鑰"+ "useApiKey": "使用 API 金鑰",+ "unlock": {+ "buy": "Unlock for {{price}}",+ "buyNoPrice": "Unlock",+ "message": "Signing in to Kaneo Cloud is always included. Connecting the app to a self-hosted server is a one-time purchase that supports Kaneo's development.",+ "nothingToRestore": "No earlier purchase was found for this store account.",+ "restore": "Restore purchase",+ "title": "Connect your own server",+ "unavailable": "Purchases aren't available right now. Try again later."+ }},"taskDetail": {"activity": {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 7808cdf82..fd0bc2741 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -502,6 +502,9 @@ importers:react-native-markdown-display:specifier: ^7.0.2version: 7.0.2([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected]))([email protected])+ react-native-purchases:+ specifier: ^10.16.0+ version: 10.16.0([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected]))([email protected])react-native-reanimated:specifier: 4.7.1version: 4.7.1([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected]))([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected]))([email protected])([email protected]))([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected]))([email protected])@@ -4648,6 +4651,15 @@ packages:peerDependencies:'@redis/client': ^6.3.0+ '@revenuecat/[email protected]':+ resolution: {integrity: sha512-yKJVxG4rXkEJqF+42RvBOT87XfW+qKuwquYrvoQno2/ZYUWFalEzMxRC2d1/U9fie1Fqr2Yg+BwGCgVm4rHotA==}++ '@revenuecat/[email protected]':+ resolution: {integrity: sha512-TAwDzTqFfNCcIkbWOpxfYhvrUbnyW1XhgO78pp78InRRovBdMiXRgyrDT0ELYyCKjPZxtiSjzmHshIXIJ/H0dQ==}++ '@revenuecat/[email protected]':+ resolution: {integrity: sha512-v3cfqEDQDlejOV7QM3gku3WHdXp9MUtuFwXq3y5fla3khCMNVjxniV1dgKhl9jzsMsRmf7IWFxdb25HJeaQzJQ==}+'@rolldown/[email protected]':resolution: {integrity: sha512-aLcgK9gIJ3YRvrrtfSBbRa27F5WrpiTaPulnFpsHPxpUHgFlSgnU4854MHwoRGEBhfRJDWCS2WQ7lIjskE9Olw==}engines: {node: ^20.19.0 || >=22.12.0}@@ -10089,6 +10101,16 @@ packages:react: '>=16.2.0'react-native: '>=0.50.4'+ resolution: {integrity: sha512-Rcoy4A7uaaY4Fbgw6aaw5ummkyMPZuA/T1bC7IKHIQCxqoNo/L75PxzZ/8mEMpjhisbHERWl1mXmt0KTfllcDg==}+ peerDependencies:+ react: '>= 16.6.3'+ react-native: '>= 0.73.0'+ react-native-web: '*'+ peerDependenciesMeta:+ react-native-web:+ optional: true+resolution: {integrity: sha512-HviDFSZ6V4KTRsrLS6hRbBJ4j63l/L8a5az0EoWdJwaMLYnBNyYISTDxwXpEYkMbAbLzCMCviIdiOxXHYQWcNA==}peerDependencies:@@ -15761,6 +15783,14 @@ snapshots:dependencies:'@redis/client': 6.3.0(@opentelemetry/[email protected])+ '@revenuecat/[email protected]':+ dependencies:+ '@revenuecat/purchases-js': 1.73.1++ '@revenuecat/[email protected]': {}++ '@revenuecat/[email protected]': {}+'@rolldown/[email protected]':optional: true@@ -21597,6 +21627,13 @@ snapshots:react-native: 0.88.0(@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])react-native-fit-image: 1.5.5+ [email protected]([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected]))([email protected]):+ dependencies:+ '@revenuecat/purchases-js-hybrid-mappings': 19.17.0+ '@revenuecat/purchases-typescript-internal': 19.17.0+ react: 19.3.0+ react-native: 0.88.0(@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])+[email protected]([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected]))([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected]))([email protected])([email protected]))([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected]))([email protected]):dependencies:react: 19.3.0