Commit graph

526 commits

Author SHA1 Message Date
Benoit Marty
beb334babe
Merge pull request #7335 from vector-im/feature/bma/upgrade_arrow
Remove Arrow-kt dependency
2022-10-12 16:26:02 +02:00
Maxime NATUREL
6626732b3b
Merge pull request #7276 from vector-im/feature/mna/device-manager-account-data
[Device Management] Save matrix_client_information events on login/registration (PSG-769, PSG-771)
2022-10-12 15:41:40 +02:00
Eric Decanini
9857fa6ca4
Makes "Enable Notifications for this session" respond to enabled value in pusher (#7281)
* Adds push notifications switch

* Adds functionality to Push notification toggle

* Adds DefaultPushersServiceTest for togglePusher

* Adds DefaultTogglePusherTaskTest

* Adds SessionOverviewViewModelTest for toggling pusher

* Hides pusher toggle if there are no pushers of the device

* Adds changelog file

* Edits changelog file

* Fixes copyrights

* Unregisters checkedChangelistener in onDetachedFromWindow for switch view

* Links notification settings toggle to pusher service

* Adds changelog file

* Adds error handling to VectorSettingsNotificationPreferenceFragment

* Removes comment in FakePushersService

* Fixes post merge errors

* Fixes imports and improves string name

* Fixes legal copies

* Fixes kdoc punctuation

* Fixes string error

* Removes unused imports

* Fixes lint errors

* Fixes test errors

* Fixes test errors

* Fixes error

* Fixes error

* Fixes error

* Fixes error

* Fixes error

* Adds lost tests

* Adds PusherEntity migration

* Fixes session overview layout overlap

* Fixes switch being enabled by default

* Binds entire view to toggle switch
2022-10-12 09:27:55 -04:00
Benoit Marty
1669316682 Remove dependency to arrow. Please use org.matrix.android.sdk.api.util.Optional instead. 2022-10-12 10:20:52 +02:00
Jorge Martin Espinosa
def67b2e7d
Integrate WYSIWYG editor (#7288)
* Add WYSIWYG lib dependency

* Replace EditText with RichTextEditor

* Add bold button, fix sending formatting messages issues

* Add missing inline formatting buttons, make scrollview horizontal

* Disable autocomplete for rich text editor

* Add formatted text to messages sent, replies, quotes and edited messages.

* Several fixes

* Add changelog

* Try to fix lint issues

* Address review comments.

* Exclude Epoxy KSP generated files from ktlint checks
2022-10-11 17:05:47 +02:00
Maxime NATUREL
daa5f88899 Remove parsing of the OS version in case of web/desktop sessions 2022-10-11 15:23:47 +02:00
Maxime NATUREL
b4cd72e009 Fixing parsing of operating system info for Desktop/Web user agent 2022-10-11 15:23:47 +02:00
Maxime NATUREL
b7190c2bfe Fix after rebase 2022-10-11 15:23:22 +02:00
Maxime NATUREL
ef13f6033c Fixing coding style issues 2022-10-11 15:23:22 +02:00
Maxime NATUREL
a5bcbf300b Parsing the full version of browsers for Web device type 2022-10-11 15:23:22 +02:00
Maxime NATUREL
fdb61e26ee Rendering Device section with extended info 2022-10-11 15:23:22 +02:00
Maxime NATUREL
25a3d831f1 Adding unit tests for application section visibility use case 2022-10-11 15:23:22 +02:00
Maxime NATUREL
9f9f6e14be Rendering Application section into session details 2022-10-11 15:23:22 +02:00
Maxime NATUREL
acd05a0233 Exposing the matrix client info into the DeviceFullInfo 2022-10-11 15:23:22 +02:00
Maxime NATUREL
93fe22d18e Fixing hidden exception in unit tests of DevicesViewModelTest 2022-10-11 15:23:22 +02:00
Maxime NATUREL
5cac68d731 Adding unit tests for the get client info use case 2022-10-11 15:23:22 +02:00
Maxime NATUREL
4aca1dcb24 Fix after rebase 2022-10-11 14:28:03 +02:00
Maxime NATUREL
3adc5ca430 Using suspend modifier to make use case really testable 2022-10-11 14:03:12 +02:00
Maxime NATUREL
1475655f20 Fix unit tests failing by setting testDispatcher 2022-10-11 14:03:12 +02:00
Maxime NATUREL
a762fc1d80 Removing unused imports 2022-10-11 14:03:12 +02:00
Maxime NATUREL
e465969e5e Adding unit tests for ConfigureAndStartSessionUseCase 2022-10-11 14:03:10 +02:00
Maxime NATUREL
34e37ea608 Updating unit tests 2022-10-11 14:02:36 +02:00
Maxime NATUREL
0c6d49856c Moving matrix client info related component to core package 2022-10-11 14:02:36 +02:00
Maxime NATUREL
1e6fb99e3c Introducing a use case to configure and start a Session 2022-10-11 14:02:36 +02:00
Maxime NATUREL
ce70ab8f0f Adding unit tests for update client info use case 2022-10-11 14:02:36 +02:00
Maxime NATUREL
7d00908f11 Adding unit tests for the set client info use case 2022-10-11 14:02:09 +02:00
Maxime NATUREL
ccc3ac628a Adding unit tests for the get client info use case 2022-10-11 14:02:07 +02:00
Eric Decanini
2fe636e93b
Adds Push Notification toggle to Device Manager (#7261)
* Adds push notifications switch

* Adds functionality to Push notification toggle

* Adds DefaultPushersServiceTest for togglePusher

* Adds DefaultTogglePusherTaskTest

* Adds SessionOverviewViewModelTest for toggling pusher

* Hides pusher toggle if there are no pushers of the device

* Adds changelog file

* Edits changelog file

* Fixes copyrights

* Unregisters checkedChangelistener in onDetachedFromWindow for switch view

* Fixes post merge errors

* Fixes legal copies

* Removes unused imports

* Fixes lint errors

* Fixes test errors

* Fixes error

* Fixes error

* Fixes error

* Fixes error

* Fixes error
2022-10-10 19:21:34 -04:00
ericdecanini
4af2e62150 Merge branch 'develop' into feature/eric/msc3881 2022-10-09 12:45:19 -04:00
ericdecanini
31d4fc9ab0 Fixes lint error 2022-10-09 12:45:11 -04:00
ericdecanini
78555ec6ba Rearranges imports 2022-10-09 10:59:11 -04:00
Florian Renaud
e4e953acf9 Verify that there is no ongoing voice broadcast before starting a new one 2022-10-06 16:25:56 +02:00
Florian Renaud
b9bb7d7892 Add VoiceBroadcastEvent wrapper 2022-10-06 16:25:56 +02:00
Florian Renaud
1bc894712e Add unit tests for use cases 2022-10-06 16:25:56 +02:00
Florian Renaud
e4a52e1d5e Add deletion action on voice broadcast event 2022-10-06 16:25:56 +02:00
Benoit Marty
3952f732dd Paparazzi have some trouble with Android 13, try to workaround it.
OK locally, but on the CI?
2022-10-05 17:35:05 +02:00
Benoit Marty
80c210e62d
Merge pull request #7292 from vector-im/feature/mna/device-manager-type-icons
[Device Management] Show correct device type icons (PSG-775)
2022-10-05 17:30:42 +02:00
Florian Renaud
010f2c458c Replace deprecated MvRxTestRule with MavericksTestRule 2022-10-05 14:48:59 +02:00
Amit Kumar
aad2eed396
Add initial Sentry setup for crashes and perf tracking (#7141)
* Add initial Sentry setup for crashes and perf tracking

* Fix failing analytics tests

* Reformat code to fix style issue

* Close sentry when user signs out

* Add initial unit tests for Sentry

* Remove unused import

* Exclude amitkma from signoff requirements for PRs
2022-10-05 16:49:14 +05:30
Maxime NATUREL
3be1513e0f Adding unit tests 2022-10-05 10:14:04 +02:00
ericdecanini
034046701d Merge remote-tracking branch 'origin/develop' into feature/eric/msc3881
# Conflicts:
#	vector/src/test/java/im/vector/app/test/fakes/FakeCryptoService.kt
2022-10-04 14:05:23 -04:00
Jorge Martín
8d54a0d759 Remove Robolectric, make Robolectric test an instrumentation test 2022-10-04 14:15:54 +02:00
ericdecanini
d14570dbea Replaces AppBuildConfig 2022-10-03 17:52:59 -04:00
Nikita Fedrunov
9f8c7688bf
added analytics for app layout (#7242) 2022-10-03 11:47:58 +02:00
Valere
005e712396
Merge pull request #6703 from vector-im/feature/bca/crosssigning_reset_warning
warn on cross signing reset
2022-10-03 09:25:52 +02:00
Onuray Sahin
d0dd446af8
Merge pull request #7247 from vector-im/feature/ons/parse_user_agent
[Device Manager] Parse user agents (PSG-762)
2022-09-30 18:36:33 +03:00
Onuray Sahin
ea8dc45796 Parse browser version. 2022-09-30 17:08:35 +03:00
Valere
59afe434f8 more tests 2022-09-30 16:00:34 +02:00
Valere
ac0e5e9dec fix broken test, userId confustion
cleaning


cleaning


add tests


cleaning
2022-09-30 16:00:34 +02:00
Onuray Sahin
bf4576d155 Code review fixes. 2022-09-30 13:21:44 +03:00
Onuray Sahin
0f8637bc7a Lint fix. 2022-09-29 17:57:22 +03:00
Onuray Sahin
6d459a0bc9 Code review fixes. 2022-09-29 17:35:47 +03:00
Onuray Sahin
38cd2be332 Fix broken tests. 2022-09-29 13:28:46 +03:00
Onuray Sahin
8663fe8c74 Add tests for unknown user agents. 2022-09-29 12:35:15 +03:00
Onuray Sahin
4c173a79ae Lint fixes. 2022-09-29 11:40:15 +03:00
Onuray Sahin
c16b5d674c Add more user agent support. 2022-09-29 11:36:38 +03:00
Maxime NATUREL
082fa1e69e Adding confirmation dialog for all type of sessions 2022-09-29 10:27:13 +02:00
Onuray Sahin
5666383134 Add unit test for desktop and web user agents. 2022-09-28 18:19:25 +03:00
Maxime NATUREL
e47bf2b200 Adding unit tests for reAuth needed case 2022-09-28 16:45:06 +02:00
Onuray Sahin
41643ffb53 Add unit test for iOS user agents. 2022-09-28 15:00:16 +03:00
Onuray Sahin
2bcf0c307d Add unit test for Android user agents. 2022-09-28 14:59:56 +03:00
Onuray Sahin
04a305b403 Refactor user agent parsing. 2022-09-28 14:32:20 +03:00
Maxime NATUREL
68d9f672c5 Unit tests for after reAuth 2022-09-27 15:04:34 +02:00
Maxime NATUREL
dafa98eb77 Unit tests for signout error cases 2022-09-27 15:04:34 +02:00
Maxime NATUREL
89cf8ee8ec Unit test for signout success 2022-09-27 15:04:34 +02:00
Maxime NATUREL
da3d3308b4 Fix unit tests in ViewModel 2022-09-27 15:04:34 +02:00
Maxime NATUREL
0fe5ee68f2 Unit tests for interception of signout process result 2022-09-27 15:04:34 +02:00
Maxime NATUREL
8d870b8220 Replace IsCurrentSessionUseCase by using DeviceFullInfo field 2022-09-27 15:04:34 +02:00
Maxime NATUREL
04ad2daa80 Unit tests for signout use case 2022-09-27 15:04:34 +02:00
Maxime NATUREL
bf42220422 Unit tests for view navigator 2022-09-27 15:04:34 +02:00
Adam Brown
d308b72868
Merge pull request #7129 from vector-im/feature/adm/screenshot-testing-example-test
Example screenshot test
2022-09-27 12:02:38 +01:00
Adam Brown
28f4e79b43 attempting to use 0% difference for screenshot verification
- this may cause false errors with the navigation/status bar https://github.com/cashapp/paparazzi/issues/453#issuecomment-1254001714
2022-09-27 10:16:45 +01:00
Adam Brown
08c79a798e
Merge pull request #7115 from vector-im/docs/unit-testing
[docs] Unit testing documentation
2022-09-26 16:51:42 +01:00
Adam Brown
be1e8a8ef8 adding and recording example paparazzi test 2022-09-26 14:14:03 +01:00
Maxime NATUREL
fd85ad0f1b Add Init action + corresponding initialized event 2022-09-26 09:46:58 +02:00
Maxime NATUREL
5498a7e96e Adding unit tests for view model 2022-09-26 09:46:58 +02:00
Maxime NATUREL
c96d671e6b Adding unit tests for navigator 2022-09-26 09:46:58 +02:00
Maxime NATUREL
4a3966d4f5 Improve rename session use case and add tests 2022-09-26 09:46:58 +02:00
Maxime NATUREL
3de96a3a0c Adding new method into navigator 2022-09-26 09:46:58 +02:00
ericdecanini
40c2e95a54 Adds PushersManagerTest 2022-09-25 11:58:02 -04:00
Maxime NATUREL
99c2088d0e Using UiaCancelledException on reAuth cancellation 2022-09-23 16:39:41 +02:00
Maxime NATUREL
0d7d841d73 Adding unit tests 2022-09-23 16:39:41 +02:00
Onuray Sahin
7cd30a1ed4 Merge branch 'develop' into feature/ons/device_manager_security_sessions 2022-09-23 16:16:49 +03:00
Onuray Sahin
8de9ef8c7d Code review fixes. 2022-09-21 14:30:24 +03:00
Onuray Sahin
3ea054f8e1 Fix unit test. 2022-09-20 15:06:52 +03:00
Maxime NATUREL
aa7f7d7111 Fix after rebase 2022-09-20 10:46:10 +02:00
Maxime NATUREL
17bb14c1dc Fixing coding style issues 2022-09-20 10:46:10 +02:00
Maxime NATUREL
921533e4b2 Getting the current session verification status to change verify button visibility 2022-09-20 10:46:10 +02:00
Maxime NATUREL
95d133e0e2 Moving some components inside the verification package 2022-09-20 10:46:10 +02:00
Maxime NATUREL
a6cb25d0c3 Verification of another session 2022-09-20 10:46:10 +02:00
Maxime NATUREL
54a4dc7e9a Inverting some arguments to ease readability 2022-09-20 10:45:47 +02:00
Maxime NATUREL
cf6b8d76a8 Removing non necessary session id arg from ViewAction 2022-09-20 10:45:46 +02:00
Maxime NATUREL
e0c4706cf9 Removing non necessary session arg from ViewEvent 2022-09-20 10:45:46 +02:00
Maxime NATUREL
584c699409 Verify current session in Session overview screen 2022-09-20 10:45:46 +02:00
Maxime NATUREL
35db958279 Adding unit tests for new action in DevicesViewModel 2022-09-20 10:45:46 +02:00
Maxime NATUREL
d826327773 Adding unit tests for CheckIfCurrentSessionCanBeVerifiedUseCase 2022-09-20 10:45:46 +02:00
Onuray Sahin
2ad0cd46bb Fix unit tests. 2022-09-19 16:18:30 +03:00
Adam Brown
0385f387d9 using value notion instead of key for the elements in the circular cache 2022-09-16 16:34:42 +01:00
Onuray Sahin
6823258abb Add test for view navigation. 2022-09-16 17:41:51 +03:00
Onuray Sahin
61f5f81305 Merge branch 'develop' into feature/ons/device_manager_filter
# Conflicts:
#	library/ui-strings/src/main/res/values/strings.xml
#	vector/src/main/AndroidManifest.xml
#	vector/src/main/java/im/vector/app/core/di/MavericksViewModelModule.kt
#	vector/src/main/java/im/vector/app/features/settings/devices/v2/list/SessionsListHeaderView.kt
#	vector/src/main/res/layout/fragment_settings_devices.xml
2022-09-16 15:25:09 +03:00