Commit aed1e86
release: v1.0.7 — hardening 4-axes (perf/qual/sécu/UI) + icône Files Tech
Audit expert 4 sous-agents (security/code/perf/UI) sur la base v1.0.6.
22 améliorations livrées, format DB inchangé, 64/64 tests verts, flutter
analyze 0 erreur 0 warning.
## Performance
- C1 IndexingService → embedAsync MiniLM (worker isolate, main thread fluide
pendant l'indexation initiale de 500+ notes)
- H1 EmbeddingsDao.deleteOrphans via SQL `NOT IN` (-200 Ko Dart alloc)
- H2 Pré-charge liveMap dans _indexAll (-3 à -8 s sur 1000 notes)
- M1 _writeDebounce 1s → 3s (anti CPU permanent pendant frappe)
- M2 PRAGMA cache_size 8 → 32 Mo + mmap_size 64 Mo
- M3 ListView cacheExtent 600 + ValueKey(note.id) sur NoteCard
- M5 FlutterGemma.initialize() parallélisé (-50 à -150 ms cold start)
- L5 android.enableR8.fullMode=true (-5-15% DEX)
## Qualité code
- C1 dispose MiniLM dans EmbedderCoordinator._downgrade (fuite 25 Mo + isolate)
- H1 _ChatTurn.dispose() + helper _disposeAllTurns (fuite ValueNotifier)
- H2 Flush save dispose chaîné sur _pendingSave (anti 2 UPDATE concurrents)
- H3bis Atomic tmp+rename _ensureModelOnDisk + sidecar `.size`
- H4 Fast-path sidecar AVANT rootBundle.load (pic RAM 25 Mo évité)
- M1 Worker MiniLM shutdown propre (ACK + session.release avant kill)
## Sécurité (0 Critical / 0 High résiduel)
- M-01 BacklinksService skip isLocked + purge note_links (anti leak titre
via index target_title / backlinks entrants)
- M-02 Mask titre RAG chip pour notes locked (défense en profondeur)
- M-03 setUnlockedDeviceRequired(true) Keystore API 28+
- M-05 Lockout exponentiel PIN monotonique (1/2/4/8/16/30 s, anti observation
passive) — VaultLockoutInProgressException avec remainingMs pour UI
## UI / Design / A11y
- I1 SecureWindow dynamique (pattern Pass Tech v2.3.8) — refcount Kotlin
+ Dart SecureWindowGuardMixin appliqué sur vault sheets (PIN + passphrase
create/unlock), ai_chat_screen, note_editor en mode vault. FLAG_SECURE
forcé sur les écrans sensibles même si la pref globale est désactivée.
- I2 fontSize raw → theme.textTheme.bodyMedium/titleLarge dans vault sheets
+ warning banner (respect MediaQuery.textScaler pour a11y)
## Icône
- Remplacement par notes-tech.png (Files Tech assets), mipmaps régénérées
via flutter_launcher_icons.
## Reportés v1.1 (format-breaking, inchangé)
F16 AAD Keystore wrap · F6 race aliveIds vs write définitive
F3 chiffrement title vault · A5 Argon2id calibration runtime
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 45b6d71 commit aed1e86
33 files changed
Lines changed: 519 additions & 111 deletions
File tree
- android
- app/src/main
- kotlin/com/filestech/notes_tech
- res
- drawable-hdpi
- drawable-mdpi
- drawable-xhdpi
- drawable-xxhdpi
- drawable-xxxhdpi
- mipmap-hdpi
- mipmap-mdpi
- mipmap-xhdpi
- mipmap-xxhdpi
- mipmap-xxxhdpi
- assets/icon
- lib
- core
- data/db
- services
- embedding
- security
- ui
- screens
- widgets
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
148 | 157 | | |
149 | 158 | | |
150 | 159 | | |
| |||
Lines changed: 37 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
31 | 42 | | |
32 | 43 | | |
33 | 44 | | |
34 | 45 | | |
35 | 46 | | |
36 | | - | |
37 | | - | |
| 47 | + | |
| 48 | + | |
38 | 49 | | |
39 | 50 | | |
40 | 51 | | |
| |||
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
| 57 | + | |
| 58 | + | |
46 | 59 | | |
47 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
48 | 76 | | |
49 | 77 | | |
50 | 78 | | |
| |||
54 | 82 | | |
55 | 83 | | |
56 | 84 | | |
57 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
58 | 90 | | |
59 | | - | |
| 91 | + | |
60 | 92 | | |
61 | 93 | | |
62 | 94 | | |
| |||
Loading
Loading
Loading
0 commit comments