feat(sync): WebDAV sur l'APK, et le QR du poste qui le porte

Jeton "utilisateur:mot-de-passe" sur une URL ni Gitea ni GitHub = WebDAV,
authentification Basic. Fichier lu et ecrit tel quel ; l'ETag fait le sha
(If-None-Match, If-Match, 412 -> conflit). Clair autorise vers l'IP fixe du
poste seulement. Eprouve contre le WsgiDAV local : 304, PUT 204, puis
synchro du poste. Docs : CLAUDE.md, android-client/README.md (page eveillee
comprise).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
r-zakarya
2026-10-02 23:13:05 +01:00
parent 2cc8d1b62b
commit 3051c3c392
6 changed files with 151 additions and 10 deletions
+6
View File
@@ -1464,6 +1464,12 @@ begin
begin
var LQrUrl := PM.UserPrefs.GetPref('syncUrl');
var LQrTok := PM.UserPrefs.GetPref('syncPwd');
// WEBDAV : le telephone attend "utilisateur:mot-de-passe" dans le jeton
// (il en fait une authentification Basic).
if (Pos('/api/v1/repos/', LQrUrl) = 0) and
not ContainsText(LQrUrl, 'api.github.com/repos/') and
(PM.UserPrefs.GetPref('syncUser') <> '') and (LQrTok <> '') then
LQrTok := PM.UserPrefs.GetPref('syncUser') + ':' + LQrTok;
var LBits := '';
var LSize := 0;
if (LQrUrl <> '') and (LQrTok <> '') then