element-x-android/features/verifysession/impl
Jorge Martin Espinosa 5c59f6c20f
Enforce mandatory session verification only for new logins (#2811)
* Enforce mandatory session verification only for new logins

- Creates `AppMigration` base interface as a way to isolate migration logic, app migrations must implement this interface.
- Creates `AppMigration01` with the existing logs removal migration and `AppMigration02` with the logic to allow existing sessions to skip verification.
- Add `DefaultSessionPreferencesStoreFactory.remove(sessionId)` to allow a ephemeral session store access to exist outside the `SessionScope` for this new migration.

* Fix tests

* Add more tests.

This also includes creating several abstractions.

* Review changes.

- Make `orderedMigrations` a class property, `migrations` just a constructor parameter to avoid incorrect usages.
- Create `lastMigration` property too, use it instead of `MIGRATION_VERSION`.
2024-05-07 14:06:34 +00:00
..
src Enforce mandatory session verification only for new logins (#2811) 2024-05-07 14:06:34 +00:00
.gitignore
build.gradle.kts Remove `SessionData.needsVerification` as the source of truth for session verification status (#2748) 2024-04-24 13:55:25 +00:00
consumer-rules.pro