Commit graph

149 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
78bf70febc Exclude MXK views/controllers from NSE and Intents
And exclude all MXK authentication from the share extension.
2022-06-21 10:04:22 +01:00
Doug
3e6925b980 Trim whitespace and trailing slashes from a user entered homeserver address. 2022-06-21 10:04:22 +01:00
Doug
d0494cfb6b
Add ReCaptcha screen (#6135)
Support dark mode in MXKAuthenticationRecaptchaWebView.
Begin implementing the ReCaptcha coordinator.
2022-05-11 09:57:37 +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
Doug
7ccbdc4efc Remove unused NSBundle extension methods.
Fix compile errors and remove duplicate strings after rebase.
2022-03-03 10:04:20 +00:00
SBiOSoftWhare
9ccb2f160c Xcodegen: Fix RoomTimelineStyleIdentifier.swift location in all targets. 2022-02-16 09:46:17 +01:00
Doug
d11b3e0950 Add the Use Case selection screen to the onboarding flow. 2022-02-04 16:10:38 +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
9dff29457f
Merge branch 'develop' into ismail/4384_summary_db 2022-01-13 12:20:41 +03:00
ismailgulek
50a9407c4a
Adapt summaries module name change 2022-01-07 18:30:30 +03:00
SBiOSoftWhare
4d3a8a2ffa Rename RoomTimelineStyle enum to RoomTimelineStyleIdentifier. 2022-01-04 17:53:15 +01:00
SBiOSoftWhare
6589b39b6d Fix targets configuration. 2022-01-04 11:11:02 +01:00
SBiOSoftWhare
1deb146d51 Update targets for new BuildSettings properties. 2022-01-03 18:18:37 +01: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
SBiOSoftWhare
97a082bb68 SiriIntents target: Handle new MatrixKit location. 2021-11-29 17:24:03 +01:00
SBiOSoftWhare
d86175c95f SiriIntents: Add bridging header. 2021-11-29 17:22:33 +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
bc1d0d7172
Merge branch 'develop' into ismail/4384_room_summary_store 2021-09-28 17:30:39 +03:00
ismailgulek
a211b608c8
Adapt store method changes 2021-09-23 16:55:58 +03:00
Stefan Ceriu
388d828c2b Fixes #4881 - Replaced InfoPlist.cfBundleDisplayName with AppInfo.current.displayName and removed the now unused InfoPlist generated class. 2021-09-22 16:59:47 +03:00
Stefan Ceriu
0ee9c9ead6 Using a property wrapper for UserDefaults backed application settings (RiotSettings). 2021-08-30 11:02:06 +03:00
SBiOSoftWhare
51f9511d6b Include AppVersion.xcconfig in all Common.xcconfig. 2021-08-16 11:35:09 +02: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
manuroe
8fd123c86e EncryptionKeyManager: Update Xcodegen yml to use it 2021-02-18 16:02:07 +01:00
manuroe
0f401d940d XcodeGen: Removed useless postbuildScripts 2021-02-11 09:37:07 +01:00
manuroe
db913321b7 XcodeGen: Use same names for yml and xcconfig files in every target 2021-02-11 09:21:00 +01:00
manuroe
1206c69d0a XcodeGen: Fix xcconfig 2021-02-09 21:02:20 +01:00
manuroe
a47563ae2e XcodeGen: Move yml files into their sub folder 2021-02-09 19:29:17 +01:00
manuroe
d20879c501 Xcodegen: No more build settings in yml files 2021-02-09 18:57:06 +01:00
manuroe
762d090583 XcodeGen: Common.xcconfig does not need to be included by targets anymore
It is loaded by the project (project.yml)
2021-02-09 18:10:56 +01:00
manuroe
0c3a211a8a XcodeGen: Move all base settings from yml to xcconfig 2021-02-09 17:37:14 +01:00
manuroe
c22d30c4f6 XcodeGen: Create AppIdentifiers.xcconfig
To centralise app id, profiles, etc in one place
2021-02-09 09:51:39 +01:00
SBiOSoftWhare
125135bf9d IntentHandler: Remove deprecated method usage. 2020-09-01 11:40:31 +02:00
ismailgulek
ae70a4bed0 Use keychain access group config in entitlements 2020-08-05 17:05:10 +03:00
ismailgulek
4d3729dd6f
Add common configs for each target 2020-08-03 12:42:19 +03:00
manuroe
c8d8f5db85 Build: Define applicationGroupIdentifier in xcconfig 2020-07-30 10:10:42 +02:00
ismailgulek
f3ae00281b
Add configs for NSE & SiriIntents too 2020-07-29 16:49:39 +03:00
manuroe
76a839b9c3
Merge branch 'develop' into appConfig 2020-07-29 10:59:23 +02:00
manuroe
fd29e97baa AppConfig: Rename files to CommonConfiguration and AppConfiguration 2020-07-29 10:13:43 +02:00