Commit graph

217 commits

Author SHA1 Message Date
manuroe
02fab7fd5a XcodeGen: Add missing source file after merging develop 2021-02-11 17:03:30 +01:00
manuroe
0d51dddd00 Merge remote-tracking branch 'origin/develop' into element_3812 2021-02-11 16:19:12 +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
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
manuroe
89c20da039 Push notifications: Keep more life cycles logs but with a size limit
Fix Gil's comments
2021-02-03 15:59:06 +01:00
manuroe
c865d1eb6d Push notifications: Keep more life cycles logs but with a size limit
This should be temporary until we fix crashes in NSE
2021-02-03 12:14:33 +01:00
manuroe
104f3d3135 Memory: The memory logger has been moved to the SDK 2021-01-28 15:24:04 +01:00
manuroe
5b804c67e0 NotificationService: Update logs 2021-01-21 12:22:19 +01:00
ismailgulek
79f1cd3a08 Polish memory footprinter and logs 2020-12-18 15:03:00 +03:00
ismailgulek
6998f313a6 Log memory footprint 2020-12-18 14:14:35 +03:00
ismailgulek
a81b5e3f7b Force reloading account details on every notification 2020-12-11 12:57:10 +03:00
ismailgulek
c842e0bf93 Clean up resources after completion 2020-12-09 14:01:45 +03:00
ismailgulek
eab8d12845 Remove commented code 2020-10-23 18:53:46 +03:00
ismailgulek
b36b66190a Remove NSEMemoryStore 2020-10-22 17:27:51 +03:00
ismailgulek
c5c173e0a0 Use new background sync service 2020-10-22 17:27:35 +03:00
ismailgulek
a3e392560c Remove commented codes 2020-10-13 18:11:58 +03:00
ismailgulek
de389a430c Revert logger 2020-10-12 21:52:43 +03:00
ismailgulek
056cf111c7 Use store in the Kit 2020-10-12 21:51:57 +03:00
ismailgulek
386a9edc53 Improve SyncResponseStore 2020-10-12 17:27:06 +03:00
ismailgulek
db1bd7ffa6 Last changes 2020-10-12 12:57:00 +03:00
ismailgulek
68ec3adc07 Check crypto has keys to decrypt an event before decryption attempt, avoid sync loops on failure 2020-10-07 15:12:02 +03:00
ismailgulek
08cb05b91b Change notification body, keep it expendable 2020-09-28 14:23:33 +03:00
ismailgulek
b41888a9e8 Do not allow reply if protected, also set to be removed 2020-09-16 16:08:02 +03:00
ismailgulek
b87ab2ae83 Do not show content if protection is set 2020-09-16 16:07:09 +03:00
ismailgulek
b2c1cacc91 Remove shared instance 2020-08-20 17:43:46 +03:00
ismailgulek
fafd5ac081 Rename store variables 2020-08-20 17:33:03 +03:00
ismailgulek
111c27aea9 Rename PushNotificationManager to PushNotificationStore 2020-08-20 17:31:47 +03:00
ismailgulek
74460ef658 Fix NSE bugs 2020-08-11 21:17:48 +03:00
ismailgulek
877c72fb91 Refactor remove call notifications method 2020-08-11 12:53:51 +03:00
ismailgulek
b25c0710db Category identifier for call invites 2020-08-10 18:17:46 +03:00
ismailgulek
eec3bd9c01 Call push gateway api for call invites 2020-08-10 18:17:13 +03:00
ismailgulek
50b768766a Merge branch 'develop' into element_3452
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
2020-08-10 14:20:28 +03:00
ismailgulek
ab126993df Add push gateway rest client 2020-08-10 14:03:47 +03: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
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
ismailgulek
9599f6fa6a Merge branch 'develop' into element_3436 2020-07-24 18:01:26 +03:00
ismailgulek
598aca8901
Do not cache showDecryptedContentInNotifications 2020-07-23 13:15:21 +03:00
ismailgulek
ad548644ff
Add keychain access group 2020-07-22 17:06:39 +03:00
ismailgulek
59205aa7d5
Remove redundant event sender names in notification body, they're already in the title 2020-07-17 13:01:30 +03:00
ismailgulek
097d812be8
Avoid early fallback when not showing decrypted content in notifications 2020-07-17 13:00:40 +03:00
ismailgulek
1016f22c1f
Disable key backup on push extension 2020-06-29 17:02:48 +03:00
ismailgulek
2988efc79b
Change fallback message for encrypted events 2020-06-25 15:14:57 +03:00
ismailgulek
d953632884
Change fallback contents to include room display name 2020-06-25 15:14:14 +03:00
ismailgulek
44721cb656
Merge branch 'xcode11' into riot_3325
# Conflicts:
#	CHANGES.rst
2020-06-25 14:26:10 +03:00
ismailgulek
8abe501ac2
Refactor fallback method name 2020-06-25 14:23:21 +03:00
ismailgulek
565caf9a7c
Refactor best attempt contents variable name 2020-06-25 14:22:16 +03:00
ismailgulek
b6fded100d
Include room display name in fallback content 2020-06-25 14:18:53 +03:00
ismailgulek
2dd4b7dcc2
Pass also roomId to fetch and sync methods 2020-06-25 12:42:07 +03:00
ismailgulek
dcbdc5cdd1
Read badge from payload 2020-06-25 11:48:02 +03:00
ismailgulek
28405f3577
Fix rebooted and not unlocked case for extension 2020-06-23 11:19:13 +03:00
ismailgulek
4550d74e67
Log sound name 2020-06-19 17:07:13 +03:00
ismailgulek
403c329b6e
Simplify myUser property 2020-06-19 11:28:13 +03:00
ismailgulek
aff35d71f0
Use constants for error 2020-06-19 11:22:11 +03:00
ismailgulek
ee85ef7f7a
Fix session user displayname, for checks in MXPushRuleDisplayNameCondtionChecker 2020-06-19 10:36:27 +03:00
ismailgulek
a8e8105405
Fix Manu's comments 2020-06-17 19:05:11 +03:00
ismailgulek
72b0348f48
Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-06-17 18:53:24 +03:00
ismailgulek
263784e4c7
Do not close session 2020-06-17 15:51:12 +03:00
ismailgulek
768ff57934
Reuse session 2020-06-17 15:50:51 +03:00
ismailgulek
24c89de96a
Reuse memory store 2020-06-17 15:35:10 +03:00
ismailgulek
979c39dcd8
Enhance logs about reuse 2020-06-17 15:18:20 +03:00
ismailgulek
1e96755ac6
Remove redundant store close 2020-06-17 14:31:56 +03:00
ismailgulek
99be2132b3
Use push rules specific to event 2020-06-16 19:25:53 +03:00
ismailgulek
2899af876a
Revert number of log files to default, as will reuse log files more 2020-06-16 19:24:45 +03:00
ismailgulek
9cd3d2b0bd
Simplify syncs with filtering 2020-06-16 16:30:22 +03:00
ismailgulek
0c68a0b651
Reuse MXFileStore instance 2020-06-16 16:29:13 +03:00
ismailgulek
b98c43384b
Fix logs rotation too much 2020-06-16 16:19:09 +03:00
ismailgulek
1bd3eadcac
Fix logs path 2020-06-16 16:17:58 +03:00
ismailgulek
003aa43a37
Make showDecryptedContentInNotifications to avoid recomputation every time 2020-06-11 17:16:16 +03:00
ismailgulek
fab52c818e
Remove ambigious original content call 2020-06-11 16:46:02 +03:00
ismailgulek
7cf8dcb36b
Load room and summary directly 2020-06-11 16:41:57 +03:00
ismailgulek
703c417747
Reuse store and session 2020-06-11 16:37:21 +03:00
ismailgulek
d17bec3634
Convert cachedEvent to eventId based map 2020-06-11 16:30:08 +03:00
ismailgulek
de8db1aab8
Convert originalContent to eventId based map 2020-06-11 16:28:34 +03:00
ismailgulek
06310823fc
Convert contentHandler to eventId based map 2020-06-11 16:25:59 +03:00
ismailgulek
e044a005bf
Increase NSE log files to hundred 2020-06-09 11:16:13 +03:00
ismailgulek
d71d0f669a
Avoid default notification sound, fixes #3316 2020-06-05 13:43:18 +03:00
ismailgulek
7f8c4b7bdb
Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-06-02 18:54:47 +03:00
ismailgulek
a9e862138f
Enhance NSE logs for debugging 2020-06-02 18:25:19 +03:00
ismailgulek
86744c029e
Store new batch token returned from sync, for bg sync to be terminated successfully, fixes #3295
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-06-01 15:37:09 +03:00
ismailgulek
f87bd29822
Close whole session at the end of the processing
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-06-01 15:29:32 +03:00
ismailgulek
74b76aeb8f
Cache event fetched from backend, to avoid future calls
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-06-01 15:29:02 +03:00
ismailgulek
0b639e8f81
Adapt to new method, change timeout to seconds
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-29 11:26:43 +03:00
ismailgulek
4ef5e178c2
Add some comments
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-29 09:56:44 +03:00
ismailgulek
845363b404
Fix Manu's comments
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-29 09:55:58 +03:00
ismailgulek
d859ce8a43
Drop MXKAccount and MXFileStore usages
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-27 18:54:24 +03:00
ismailgulek
bcd9683511
Implement a memory store specific to NSE
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-27 18:34:04 +03:00
ismailgulek
3bd9e6bb3a
Change some guarding to if check
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-26 18:28:08 +03:00
ismailgulek
f5324aed9c
Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-05-26 18:26:00 +03:00
ismailgulek
a0e95407fa
Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-05-26 18:24:21 +03:00
ismailgulek
fa44dae328
Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-05-26 18:23:47 +03:00
ismailgulek
c4bdf33d8d
Remove some redundant semicolons
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-26 18:22:05 +03:00
ismailgulek
69d9b5bd9a
Add fallback method calls on some points
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-26 18:21:30 +03:00
ismailgulek
b1a654dd0d
Change logs for fallback cases
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-26 18:15:44 +03:00
ismailgulek
db8b5a4b45
Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-05-26 17:52:26 +03:00
ismailgulek
7f39581ee2
Swiftify extension methods
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 21:24:08 +03:00
ismailgulek
f25e3b6c6b
Swiftify code, style changes
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 21:23:36 +03:00
ismailgulek
09353f488f
Swiftify content function, use switch for ifs when possible
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 21:22:40 +03:00
ismailgulek
4e253234f3
Swiftify code, ignore session state
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 21:20:31 +03:00
ismailgulek
db01577903
Swiftify some ifs
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 21:19:18 +03:00
ismailgulek
23203af216
Swiftify some ifs
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 21:18:37 +03:00
ismailgulek
87e702a70c
Swiftify some ifs
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 21:16:08 +03:00
ismailgulek
f85aee0a56
Implement a workaround to delete some notifications afterwards
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 17:52:29 +03:00
ismailgulek
9475cd7a10
Fix Manu's comments
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 15:50:26 +03:00
ismailgulek
73356822de
Configure log files correctly
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 13:36:42 +03:00
ismailgulek
53bb87dafa
Create notification service extension
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-22 14:27:30 +03:00