aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-android/app/src/main/assets/bridge
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-10 15:50:39 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-10 15:50:39 +0200
commit1c97ffb91bb4928022e995709d7e55b19cfd18eb (patch)
treeaaa05d17adcd6db4256c01ba79b27dfc7ec96d70 /packages/meshbay-android/app/src/main/assets/bridge
parent1521cc1ac0cca7ee8786056f84fa399d5cc268f9 (diff)
downloadmeshbay-1c97ffb91bb4928022e995709d7e55b19cfd18eb.tar.gz
feat(android): back up the files of folders the person chooses
A Files section takes folders through the system picker (no storage permission), refuses DCIM, Pictures and Movies, skips what the photo backup sends, and runs on the photo backup's own runner into <folder>/<account>-drive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-android/app/src/main/assets/bridge')
-rw-r--r--packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js b/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js
index 80e0e34..32cc4ab 100644
--- a/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js
+++ b/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js
@@ -249,6 +249,20 @@
completed: () => call('calendarsync:completed'),
failed: (code, text) => call('calendarsync:failed', code, text),
},
+
+ // Files backup (§9.13): folders the person chose through the system's
+ // picker, sent like photos, a range at a time from /drivesync/<token>.
+ driveSync: {
+ status: () => call('drivesync:status'),
+ addFolder: () => call('drivesync:add-folder'),
+ removeFolder: (id) => call('drivesync:remove-folder', id),
+ configure: (settings) => call('drivesync:configure', settings || null),
+ plan: () => call('drivesync:plan'),
+ sent: (token, dir, name) => call('drivesync:sent', token, dir, name),
+ completed: () => call('drivesync:completed'),
+ failed: (code, text) => call('drivesync:failed', code, text),
+ keepAlive: (on, text) => call('drivesync:keep-alive', on === true, text || ''),
+ },
} : {}),
// Messages backup (§9.13), the same way as contacts: the messages added