Commit graph

46 commits

Author SHA1 Message Date
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
Doug
db22d4d040 Add BuildSettings to SwiftUI targets.
Remove RTL change on UIAlertController.
2022-03-28 17:53:34 +01:00
Doug
ca666007a6 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
4566bd8f8b
Merge pull request #5293 from vector-im/langleyd/5292_refresh_tokens
App: Refresh Tokens Implementation
2022-01-31 08:59:19 +00:00
ismailgulek
aeccbc0dac
Merge branch 'develop' into ismail/5068_start_thread 2022-01-17 11:35:10 +03:00
David Langley
05b817fb86 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
06a8d0c0c9 Add analytics for Unauthenticated errors 2022-01-13 17:33:51 +00:00
ismailgulek
50a9407c4a
Adapt summaries module name change 2022-01-07 18:30:30 +03:00
ismailgulek
082607bc0e
Adapt from summaries to rooms & little naming fixes 2021-12-29 17:40:09 +03:00
ismailgulek
5eb53bbed6
Merge branch 'develop' into ismail/4384_summary_db 2021-12-27 15:59:37 +03:00
ismailgulek
e3a47a59f9
Merge branch 'develop' into ismail/5068_start_thread 2021-12-09 15:25:14 +03:00
SBiOSoftWhare
4081da3ebc Update all Objective-C MatrixKit imports to handle new location. 2021-11-30 16:09:53 +01:00
ismailgulek
a319f076b1
Merge branch 'develop' into ismail/5068_start_thread 2021-11-11 21:43:16 +03:00
ismailgulek
3effb80aae
Adapt to send event api changes 2021-11-04 02:07:09 +03:00
Philippe Loriaux
c6c3eaaec1 Improve the Obj-C Generated Interface Header Name definition 2021-10-26 17:42:33 +02:00
ismailgulek
f6945a3aa5
Adapt to store api changes 2021-10-20 02:35:22 +03:00
ismailgulek
a211b608c8
Adapt store method changes 2021-09-23 16:55:58 +03:00
Stefan Ceriu
f7a8163947
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
125135bf9d IntentHandler: Remove deprecated method usage. 2020-09-01 11:40:31 +02:00
manuroe
fd29e97baa AppConfig: Rename files to CommonConfiguration and AppConfiguration 2020-07-29 10:13:43 +02:00
manuroe
6b976e09af AppConfig: Fix Steve's remarks 2020-07-29 10:05:45 +02:00
manuroe
b13188f9e6 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
a8ad374075 AppConfig: Make all extensions use it 2020-07-28 16:53:55 +02:00
manuroe
02803618da 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
02a87a1b62 Lazy-loading server side: Update code in extensions 2018-08-02 12:05:38 +02:00
manuroe
bfc77018ad MXStore: Use the new async [MXStore stateOfRoom:] method 2018-07-24 11:39:13 +02:00
manuroe
243637bec2 Merge remote-tracking branch 'origin/master' into sdk_extensions 2017-12-04 10:50:45 +01:00
manuroe
ee20998d3a Matrix SDK extensions: use new 'MatrixSDK/JingleCallStack' pod 2017-11-24 16:28:48 +01:00
manuroe
45f07ab466 Make code compatible with !use_frameworks in Podfile 2017-11-23 16:09:19 +01:00
Denis Morozov
d9957feff4 Add support for sending messages via Siri in e2e rooms 2017-10-24 00:50:10 +03:00
Denis Morozov
c9f62d9b1d Add message sending via Siri 2017-10-22 19:32:33 +03:00
manuroe
c5e451a794 Logs: Logs app extensions into separate files (console-share.log & console-siri.log) 2017-10-20 17:13:12 +02:00
manuroe
cd428b83aa Logs app extensions to console.log 2017-10-20 14:57:51 +02:00
Denis Morozov
93aadb498c Handle situation with user that hasn't signed in yet 2017-09-01 18:20:26 +03:00
Denis Morozov
026f98f168 Simplify customIdentifier check 2017-08-31 11:11:09 +03:00
Denis Morozov
e5a7dcf9c2 Add video calls support 2017-08-26 17:46:12 +03:00
Denis Morozov
283e2b4944 Update async method signature 2017-08-26 16:35:35 +03:00
Denis Morozov
3ab16243da Change application group id 2017-08-26 15:34:51 +03:00
Denis Morozov
acf4e965f4 Fix method name 2017-08-26 15:19:59 +03:00
Denis Morozov
f61731a9ee Use set for directUserIds 2017-08-26 15:14:18 +03:00
Denis Morozov
232eab3960 Update comments 2017-08-26 15:11:03 +03:00
Denis Morozov
77d481d008 Handle multiple contacts passed to intent 2017-08-26 15:03:32 +03:00
Denis Morozov
28f854e1d7 Improvements in resolution process 2017-08-25 23:43:38 +03:00
Denis Morozov
bfbeb4c549 Update IntentHandler to reflect last changes in MatrixSDK 2017-08-01 16:05:53 +03:00
Denis Morozov
18a2576b9c Update IntentHandler 2017-07-30 16:19:27 +03:00
Denis Morozov
0d8cb75620 Add IntentHandler 2017-07-26 17:08:00 +03:00