Commit graph

22 commits

Author SHA1 Message Date
Benoit Marty
e9a898ff82 Cleanup 2024-09-18 18:08:11 +02:00
Benoit Marty
f61df38e55 Migrate license to AGPL.
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty
148c49cb9a var -> val for lambda 2024-09-06 14:46:28 +02:00
Benoit Marty
5befb9b290 Use the local val instead. 2024-09-06 13:54:15 +02:00
Benoit Marty
9d91cc6184 Add missing test for AppMigration06 2024-09-06 11:51:59 +02:00
Benoit Marty
56fd455d44 Add missing test for AppMigration05 2024-09-06 11:41:13 +02:00
Benoit Marty
54dc8e7c54 Do not perform any migration on fresh application installation. 2024-09-06 10:52:39 +02:00
Benoit Marty
5b13a51b0c Add an application migration to delete the old log files. 2024-09-06 09:31:14 +02:00
Benoit Marty
6255a78145 App migration: also move the cache files. 2024-09-02 11:26:59 +02:00
Benoit Marty
c41cb33410 Provide distinct cache directory to the Rust SDK. 2024-08-30 18:36:20 +02:00
Jorge Martin Espinosa
b741c32e91
Add full screen intent permissions banner (#3024)
* Add full screen intent permissions banner, creating `:libraries:fullscreenintent` modules.
* Add it to notification settings too:
    - Create `libraries:fullscreenintent` modules for the permission presenter and associated data.
    - Add the presenter and states to `NotificationSettingsPresenter` and `NotificationSettingsView`.
* Use the right API to check for full screen intent permissions.
- Use the right package name for `:libraries:permission` contents.
* Fix broken tests (flaky?)
* Ignore coverage verification for fake and small presenters

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-06-18 07:41:10 +00:00
Jorge Martín
67f6bf0d2d Add session path migration to SessionData 2024-06-06 17:06:57 +02:00
Benoit Marty
add5c39db0 Fix existing tests. 2024-06-05 14:59:51 +02:00
Jorge Martin Espinosa
04e503177b
Notifications: simplify the flow by removing persistence (#2924)
* Notifications: simplify the flow by removing persistence. 
* Bump of minSdk to `24` (Android 7).
* Add migration to remove `notification.bin` file
2024-05-29 08:03:23 +00:00
Benoit Marty
8215661ada Rename class (code quality) 2024-05-23 14:38:50 +02:00
Benoit Marty
7b372e24b4 Rename class (code quality) 2024-05-23 14:38:49 +02:00
Jorge Martin Espinosa
f2f96e0e0a
Bump Rust SDK to v0.2.18 and bump app version (#2836)
* Adapt to changes in SDK:
    - Remove name from MatrixRoom, we should use displayName instead.
    - Remove separate invites room list.
    - Added runBlocking to get the now async NotificationClient from the Rust SDK.
    - Made some other functions suspend.
    - Client.resolveRoomAlias now returns a roomId and via parameters, we pass the roomId.

* Add logs removal migration again as `AppMigration03` to make sure we don't leak private data in existing logs.

* Bump app version to `0.4.12`
2024-05-13 16:48:23 +02:00
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
Benoit Marty
11aa5bbfd5 Please KtLint 2024-04-24 13:28:52 +02:00
Benoit Marty
124638c7a7 Add KDoc. 2024-04-24 13:26:27 +02:00
Benoit Marty
cbbda81419 Code quality. 2024-04-24 11:40:09 +02:00
Benoit Marty
7bbcb719d5 Implement a migration mechanism to handle internal stuff which need to occur during application upgrade.
Remove VectorFileLogger, it was dead code.
2024-04-24 11:17:23 +02:00