Commit graph

93 commits

Author SHA1 Message Date
jmartinesp
dabaa2d265 Sync Strings from Localazy 2024-07-03 11:21:27 +00:00
Jorge Martin Espinosa
b0cebf5ca0
Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +02:00
Jorge Martin Espinosa
05df1f2065
Fix crash when getting the system ringtone for ringing calls (#3131) 2024-07-02 16:12:29 +00:00
Benoit Marty
3135c5307f Fix tests 2024-07-02 13:50:10 +02:00
Benoit Marty
8ec283f2ca Use SDK to get Element Wellknown content. 2024-07-02 13:28:26 +02:00
Benoit Marty
4df18eadf4 Remove unused import 2024-07-01 16:18:20 +02:00
Benoit Marty
f34ba47906 Inject constructor 2024-07-01 16:12:27 +02:00
Benoit Marty
8ef970e3f7 Provide language and theme to Element Call. #3079 2024-07-01 15:51:41 +02:00
Benoit Marty
6a6e66765a Remove default value for languageTag and theme. 2024-07-01 14:32:27 +02:00
Benoit Marty
2529a8d844 Add parameter names. 2024-07-01 14:30:35 +02:00
bmarty
32c5da898b Sync Strings from Localazy 2024-07-01 00:22:10 +00:00
Jorge Martin Espinosa
ce28a05467
Replace the 'answer' PendingIntent in ringing call notifications (#3093)
* Replace the 'answer' PendingIntent in ringing call notifications

Co-authored-by: Benoit Marty <benoit@matrix.org>

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-06-25 10:36:29 +02:00
ElementBot
fd6bcb7857
Sync Strings (#3077)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-06-24 09:29:35 +02:00
Jorge Martin Espinosa
2e32adf1f1
Improve how active calls work (#3029)
* Improve how active calls work:

- Sending the `m.call.notify` event is now done in `CallScreenPresenter` once we know the sync is running.
- You can mark a call of both external url or room type as joined.
- Hanging up checks the current active call type and will only remove it if it matches.
2024-06-18 12:07:08 +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
bmarty
9288b90ac6 Sync Strings from Localazy 2024-06-17 00:23:40 +00:00
Benoit Marty
813158397f Implement a memory cache for CallWellknownAPI 2024-06-13 13:32:18 +02:00
Benoit Marty
dc7e56eb87 Do not log error in case of 404. 2024-06-12 09:15:30 +02:00
Benoit Marty
f87047b899 Small quality fixes 2024-06-12 09:13:48 +02:00
Benoit Marty
9cc0601c79 Read element call base url from .well-known file if it exists. 2024-06-11 17:20:06 +02:00
Benoit Marty
b3830bab95 Create CallScreenStateProvider to be able to preview errors. 2024-06-11 17:05:31 +02:00
Benoit Marty
e56fcfe9f3 Introduce GetWidgetResult to avoid using Pair with generic String. 2024-06-11 15:54:02 +02:00
Benoit Marty
756905b9cd
Merge pull request #3000 from element-hq/sync-localazy
Sync Strings
2024-06-11 15:16:55 +02:00
Jorge Martin Espinosa
f07ec61ecc
Notify of ringing call when there's an active call (#3003)
* Add `CallNotificationEventResolver` to be able to force the new ringing notification to be non-ringing given an existing ringing one.
2024-06-10 15:03:06 +00:00
Jorge Martin Espinosa
30a1367714
Element Call ringing notifications (#2978)
- Add `ActiveCallManager` to handle incoming and ongoing calls.
- Add ringing call notifications with full screen intents and missed call ones as part of the 'conversation' notifications.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-06-10 11:51:19 +02:00
bmarty
f3d286911c Sync Strings from Localazy 2024-06-10 00:17:04 +00:00
Benoit Marty
698254744a
Merge pull request #2970 from element-hq/feature/bma/moreAnalytics
Track when the user starts a room call and when they enable formatting options on the message composer
2024-06-05 09:21:28 +02:00
Benoit Marty
2f926d81a4 Let ElementCallActivity extend AppCompatActivity instead of NodeComponentActivity. 2024-06-04 10:22:48 +02:00
Benoit Marty
e052bc99f6 Fix compilation issue. 2024-06-04 10:21:21 +02:00
Benoit Marty
6fc4450c56 Analytics: track screen MobileScreen.ScreenName.RoomCall 2024-06-03 17:55:52 +02:00
Jorge Martin Espinosa
58c05ade65
Try fixing OOM by changing GC and adding RAM to the kotlin compiler (#2965)
* Try fixing OOM by changing GC and adding RAM to the kotlin compiler

* Add gradle cache to build apk job in maestro flow.

- Remove unnecessary dependency in `:features:call` module.

* Fix sonar in nightly reports

* Bump heap size of nightly reports
2024-06-03 11:28:51 +02:00
bmarty
66636ea967 Sync Strings from Localazy 2024-06-03 00:24:07 +00:00
Benoit Marty
f5a0e83cb2
Merge pull request #2941 from element-hq/sync-localazy
Sync Strings
2024-05-29 16:27:17 +02:00
bmarty
ca5bc71057 Sync Strings from Localazy 2024-05-29 12:44:57 +00:00
Benoit Marty
37d9a9f5a9 Lambda parameters in a composable function should be in present tense, not past tense.
https://mrmans0n.github.io/compose-rules/rules/#naming-parameters-properly
2024-05-29 12:18:23 +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
3a39e2a3ec
Merge pull request #2921 from element-hq/sync-localazy
Sync Strings
2024-05-27 15:52:38 +02:00
Benoit Marty
b3e0f6e843 Translations: pt -> pt-rBR 2024-05-27 14:51:32 +02:00
Benoit Marty
6fe461f346 Rename class (code quality) 2024-05-23 14:38:52 +02:00
bmarty
83a8a631f2 Sync Strings from Localazy 2024-05-20 00:23:05 +00:00
bmarty
0910da0a14 Sync Strings from Localazy 2024-05-13 12:47:48 +00: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
227611cfba Add links to the matching assetlinks.json files. 2024-05-06 11:34:23 +02:00
Benoit Marty
ebfb41f601 Format file (no other change) 2024-05-06 11:14:24 +02:00
Benoit Marty
6e7bbd6972 Explicitly set domain for external link handling.
And revert change: let ElementCallActivity handle again `call.element.io` links.
2024-05-06 11:12:09 +02:00
Benoit Marty
fa4ad4a934 Improve documentation 2024-05-03 12:16:46 +02:00
Benoit Marty
4dfec7ac55 Format 2024-05-03 09:34:54 +02:00
Benoit Marty
0fb89bd4b2 Let MainActivity manage Element Call https links. 2024-05-02 15:37:57 +02:00
bmarty
5809864182 Sync Strings from Localazy 2024-04-01 00:17:18 +00:00
ElementBot
f2169aaaa8
Sync Strings (#2484)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-03-05 09:10:47 +01:00