942edd5cbb67

bump version to 2.16.0; gate Android pairing handlers with android_pairing_not_yet_supported

time
2026-05-01 02:47 UTC · 5 months ago
machine
koh2
parent
c9f3aba8b8ce
4 files manifest.firefox.json+1 −1manifest.json+1 −1package.json+1 −1src/background/messages.ts+7 −0
manifest.firefox.json+1 −1
@@ -1,7 +1,7 @@11 {22   "manifest_version": 3,33   "name": "Peach",4-  "version": "2.15.1",4+  "version": "2.16.0",55   "description": "Zero-knowledge password manager",66   "browser_specific_settings": {77     "gecko": {

view file

manifest.json+1 −1
@@ -1,7 +1,7 @@11 {22   "manifest_version": 3,33   "name": "Peach",4-  "version": "2.15.1",4+  "version": "2.16.0",55   "description": "Zero-knowledge password manager",66   "action": {77     "default_popup": "src/popup/index.html",

view file

package.json+1 −1
@@ -1,6 +1,6 @@11 {22   "name": "peach",3-  "version": "2.15.1",3+  "version": "2.16.0",44   "description": "Zero-knowledge password manager",55   "type": "module",66   "scripts": {

view file

src/background/messages.ts+7 −0
@@ -877,6 +877,9 @@877877         return { ok: true };878878       }879879       case "START_PAIRING_SERVER": {880+        if (Capacitor.isNativePlatform()) {881+          return { ok: false, error: "android_pairing_not_yet_supported" };882+        }880883         const gate = await requirePro("sync");881884         if (!gate.allowed) return { ok: false, error: "pro_required" };882885         try {@@ -896,6 +899,7 @@896899         }897900       }898901       case "STOP_PAIRING_SERVER": {902+        if (Capacitor.isNativePlatform()) return { ok: true };899903         try {900904           const sync = await import('./sync');901905           const { setActivePairingToken } = await import('./pairing-server-state');@@ -909,6 +913,9 @@909913         return { ok: true };910914       }911915       case "CONNECT_WITH_CODE": {916+        if (Capacitor.isNativePlatform()) {917+          return { ok: false, error: "android_pairing_not_yet_supported" };918+        }912919         const gate = await requirePro("sync");913920         if (!gate.allowed) return { ok: false, error: "pro_required" };914921         const { token: rawToken } = msg.payload as { token: string };

view file