Commit Graph

46 Commits

Author SHA1 Message Date
wtimme d87a213cae Target SiriIntents: Split IntentHandler into smaller files (#6203)
* Add protocol `ContactResolving`

* Let the `IntentHandler` implement `ContactResolving` (#6203)

Nothing has changed about the implementation itself; this prepares
the separation of this logic into a dedicated unit.

* Prepare the separation of the contact resolver from the intents handler (#6203)

* Move the implementation of `ContactResolving` to a dedicated class (#6203)

* Move `ContactResolver` to a dedicated file (#6203)

* Prepare the separation of the `StartAudioCallIntentHandler` from `IntentsHandler` (#6203)

* Move the implementation of `INStartAudioCallIntentHandling` to a dedicated class (#6203)

* Prepare the separation of the `StartVideoCallIntentHandler` from `IntentsHandler` (#6203)

* Move the implementation of `INStartVideoCallIntentHandling` to a dedicated class (#6203)

* Prepare the separation of the `SendMessageIntentHandler` from `IntentsHandler` (#6203)

* Move the implementation of `INSendMessageIntentHandling` to a dedicated class (#6203)

* Remove unused property (#6203)

* Return `nil` if the requested intent cannot be handled (#6203)

* Initialize the intent handlers _after_ everything else is configured (#6203)

In `init()`, there might be some configuration being done that is
required for the handlers.

* Add changelog entry

* Move curly braces in Objective-C to dedicated lines

This ensures that the code follows the style that is present in other Objective-C files.

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>

* Inject the `ContactResolver` into the intent handlers during initialization

In #6365, @pixlwave pointed out that

> If the resolver ever gained a cache or stored properties it would
> help keep the memory usage down in the extension

* Prefer forward-declaration over import in Objective-C header files

Per @pixlwave, this helps prevent build failures:

> We had random cycle errors while building a while back and it was
> eventually solved by removing all imports of `GeneratedInterface-Swift.h`
> in every [Objective-C header] file.

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
2022-07-06 09:39:38 +01:00
Doug 16e64033c3 Add BuildSettings to SwiftUI targets.
Remove RTL change on UIAlertController.
2022-03-28 17:53:34 +01:00
Doug 158b2860ec Fix sending messages via the siri intent.
Fix a bug sending videos into unencrypted rooms.
2022-03-21 10:06:19 +00:00
David Langley 1e9fb6b625 Merge pull request #5293 from vector-im/langleyd/5292_refresh_tokens
App: Refresh Tokens Implementation
2022-01-31 08:59:19 +00:00
ismailgulek 7a74dc422f Merge branch 'develop' into ismail/5068_start_thread 2022-01-17 11:35:10 +03:00
David Langley 4dfa1706b7 Merge branch 'develop' of https://github.com/vector-im/element-ios into langleyd/5292_refresh_tokens 2022-01-14 11:43:09 +00:00
David Langley 1ca64b3bf6 Add analytics for Unauthenticated errors 2022-01-13 17:33:51 +00:00
ismailgulek 4648a5878d Adapt summaries module name change 2022-01-07 18:30:30 +03:00
ismailgulek 4f0db984bd Adapt from summaries to rooms & little naming fixes 2021-12-29 17:40:09 +03:00
ismailgulek 174f855210 Merge branch 'develop' into ismail/4384_summary_db 2021-12-27 15:59:37 +03:00
ismailgulek a717f444da Merge branch 'develop' into ismail/5068_start_thread 2021-12-09 15:25:14 +03:00
SBiOSoftWhare e6ef1be7b6 Update all Objective-C MatrixKit imports to handle new location. 2021-11-30 16:09:53 +01:00
ismailgulek f6ae6afc81 Merge branch 'develop' into ismail/5068_start_thread 2021-11-11 21:43:16 +03:00
ismailgulek 01f7a7b243 Adapt to send event api changes 2021-11-04 02:07:09 +03:00
Philippe Loriaux af20d24960 Improve the Obj-C Generated Interface Header Name definition 2021-10-26 17:42:33 +02:00
ismailgulek efe9041f5c Adapt to store api changes 2021-10-20 02:35:22 +03:00
ismailgulek e10d1c69bc Adapt store method changes 2021-09-23 16:55:58 +03:00
Stefan Ceriu b00d07ffca Adopt consolidated logging mechanism (#4370)
* Adopted the new MXLog and replaced NSLog throughout the application - vector-im/element-ios/issues/4351
* Replaced NSLog() and print() usages with MXLog.debug()
* Added swiftlint rules for NSLog(), print(), println() and os_log()
* Escape paths used to run script build phases for swiftlint and swiftgen
2021-06-03 11:30:07 +03:00
SBiOSoftWhare b585252f78 IntentHandler: Remove deprecated method usage. 2020-09-01 11:40:31 +02:00
manuroe c4e4812394 AppConfig: Rename files to CommonConfiguration and AppConfiguration 2020-07-29 10:13:43 +02:00
manuroe 2e0ee3bb7d AppConfig: Fix Steve's remarks 2020-07-29 10:05:45 +02:00
manuroe 5587dbb9bf Config: Cut AppConfig into Config and AppConfig
so that the app can have its own configuration
2020-07-28 17:20:14 +02:00
manuroe 909050ca04 AppConfig: Make all extensions use it 2020-07-28 16:53:55 +02:00
manuroe 4c0306c145 Share extension & Siri intent: Do not fail when sending to locally unverified devices
#3252

Use cross-signing as the Riot main app.
2020-05-18 13:59:42 +02:00
manuroe 80f7253db9 Lazy-loading server side: Update code in extensions 2018-08-02 12:05:38 +02:00
manuroe 9f136409a1 MXStore: Use the new async [MXStore stateOfRoom:] method 2018-07-24 11:39:13 +02:00
manuroe f4d4da4130 Merge remote-tracking branch 'origin/master' into sdk_extensions 2017-12-04 10:50:45 +01:00
manuroe 4225b23143 Matrix SDK extensions: use new 'MatrixSDK/JingleCallStack' pod 2017-11-24 16:28:48 +01:00
manuroe a7907364e7 Make code compatible with !use_frameworks in Podfile 2017-11-23 16:09:19 +01:00
Denis Morozov a33346367f Add support for sending messages via Siri in e2e rooms 2017-10-24 00:50:10 +03:00
Denis Morozov 617b25751b Add message sending via Siri 2017-10-22 19:32:33 +03:00
manuroe a3815c9c64 Logs: Logs app extensions into separate files (console-share.log & console-siri.log) 2017-10-20 17:13:12 +02:00
manuroe 34b4c2d4f3 Logs app extensions to console.log 2017-10-20 14:57:51 +02:00
Denis Morozov 4f3a67c3b4 Handle situation with user that hasn't signed in yet 2017-09-01 18:20:26 +03:00
Denis Morozov e40ff1f822 Simplify customIdentifier check 2017-08-31 11:11:09 +03:00
Denis Morozov 872c7138b6 Add video calls support 2017-08-26 17:46:12 +03:00
Denis Morozov 0b2a7de4c0 Update async method signature 2017-08-26 16:35:35 +03:00
Denis Morozov 3cc6a1154f Change application group id 2017-08-26 15:34:51 +03:00
Denis Morozov f0ca91b2ed Fix method name 2017-08-26 15:19:59 +03:00
Denis Morozov 47e41963ab Use set for directUserIds 2017-08-26 15:14:18 +03:00
Denis Morozov e2d5f760f2 Update comments 2017-08-26 15:11:03 +03:00
Denis Morozov cb2f6c40ad Handle multiple contacts passed to intent 2017-08-26 15:03:32 +03:00
Denis Morozov 41313585d7 Improvements in resolution process 2017-08-25 23:43:38 +03:00
Denis Morozov 05f7705599 Update IntentHandler to reflect last changes in MatrixSDK 2017-08-01 16:05:53 +03:00
Denis Morozov e9763acb24 Update IntentHandler 2017-07-30 16:19:27 +03:00
Denis Morozov 4b7e5efe51 Add IntentHandler 2017-07-26 17:08:00 +03:00