element-ios/SiriIntents
wtimme 2babca6d7b
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
..
ContactResolver Target SiriIntents: Split IntentHandler into smaller files (#6203) 2022-07-06 09:39:38 +01:00
IntentHandlers Target SiriIntents: Split IntentHandler into smaller files (#6203) 2022-07-06 09:39:38 +01:00
SupportingFiles Add analytics for Unauthenticated errors 2022-01-13 17:33:51 +00:00
Common.xcconfig SiriIntents: Add bridging header. 2021-11-29 17:22:33 +01:00
Debug.xcconfig XcodeGen: Use same names for yml and xcconfig files in every target 2021-02-11 09:21:00 +01:00
Info.plist version++ 2020-05-29 12:44:16 +02:00
IntentHandler.h Add IntentHandler 2017-07-26 17:08:00 +03:00
IntentHandler.m Target SiriIntents: Split IntentHandler into smaller files (#6203) 2022-07-06 09:39:38 +01:00
Release.xcconfig XcodeGen: Use same names for yml and xcconfig files in every target 2021-02-11 09:21:00 +01:00
SiriIntents.entitlements Use keychain access group config in entitlements 2020-08-05 17:05:10 +03:00
target.yml Exclude MXK views/controllers from NSE and Intents 2022-06-21 10:04:22 +01:00