Skip to content

v1.3.1 — Exports that come back

Choose a tag to compare

@gitubpatrice gitubpatrice released this 22 Oct 17:57
· 49 commits to main since this release
be25ffc

An agenda exported to .ics and imported back is no longer doubled — what keeping it on both a phone and a computer needs.

Fixed

  • An .ics exported from the agenda and imported back doubled every event created on the phone, and each further round trip added one more copy. Each event now receives an identifier of its own the first time it leaves the app — export or share — and keeps it: importing the file again updates the event in place.
  • Every phone wrote the same identifiers, so two events shared from two phones replaced each other in the calendar that received them. The identifier is now random, and says nothing about the phone or its user.
  • An update in place keeps what the file does not carry — the event's calendar, colour, address and series. A description longer than 4,000 characters is no longer cut, and a shared event that comes back keeps its place name.
  • Importing a file again also finds an event that sits in another calendar than the default one, instead of adding a copy there.

Changed

  • The first export after the update brings up the backup reminder: a backup taken before it does not hold the identifiers the exported file now carries.

Known limits

  • Copies of events imported from the phone's own calendars (Google, Exchange, local) still come back as copies: their identifier is the provider's, and nothing makes it unique across phones.
  • A file exported by 1.3.0 or earlier still adds, once, a copy of the events created on the phone.

Checked before publishing

617 unit tests · lint and detekt (CI gate) · instrumented tests on Android 10 (CI), 4 new ones on a real database · 14 round-trip tests, 7 of the first 9 failing on the 1.3.0 code · 9 negative controls, each part of the fix broken in turn and caught by its test · an adversarial review of the fix, its confirmed findings fixed before release · update from the published 1.3.0 on an Android 14 emulator, release build: an event created in 1.3.0 kept, exported, imported back twice — still one event — then renamed in the file and imported: updated in place, same identifier on the next export · same permissions as 1.3.0, no network permission · signing certificate unchanged.

Which file to download

agenda-tech-universel-1.3.1.apk works on every phone. The others are lighter but specific to one processor architecture.


Français

Un agenda exporté en .ics puis réimporté n'est plus doublé — ce qu'il faut pour le garder à la fois sur un téléphone et sur un ordinateur.

Corrigé

  • Un .ics exporté puis réimporté doublait chaque événement créé sur le téléphone, et chaque nouvel aller-retour ajoutait une copie de plus. Chaque événement reçoit désormais un identifiant qui lui est propre la première fois qu'il quitte l'application — export ou partage — et le garde : réimporter le fichier met l'événement à jour sur place.
  • Tous les téléphones écrivaient les mêmes identifiants : deux événements partagés depuis deux téléphones se remplaçaient dans l'agenda qui les recevait. L'identifiant est désormais aléatoire, et ne dit rien du téléphone ni de son utilisateur.
  • Une mise à jour sur place garde ce que le fichier ne porte pas — l'agenda, la couleur, l'adresse et la série de l'événement. Une description de plus de 4 000 caractères n'est plus coupée, et un événement partagé qui revient garde le nom de son lieu.
  • Réimporter un fichier retrouve aussi un événement rangé dans un autre agenda que celui par défaut, au lieu d'y ajouter une copie.

Modifié

  • Le premier export après la mise à jour fait apparaître le rappel de sauvegarde : une sauvegarde plus ancienne ne contient pas les identifiants que porte désormais le fichier exporté.

Limites connues

  • Les copies d'événements importés depuis les agendas du téléphone (Google, Exchange, local) reviennent toujours en double : leur identifiant est celui du fournisseur, que rien ne rend unique d'un téléphone à l'autre.
  • Un fichier exporté par la 1.3.0 ou une version antérieure ajoute encore, une fois, une copie des événements créés sur le téléphone.

Quel fichier télécharger

agenda-tech-universel-1.3.1.apk fonctionne sur tous les téléphones. Les autres sont plus légers mais propres à une architecture de processeur.