Commit graph

318 commits

Author SHA1 Message Date
SBiOSoftWhare
bc6b38d805 [ShareExtension] Improve performance of sendImages method in ShareExtensionManager to avoid out of memory crash. 2019-01-04 13:55:46 +01:00
SBiOSoftWhare
a354ea9218 [ShareExtension] Image sharing: Update compression prompt behavior. Do not propose actual size when one of all selected images is not oriented up to avoid a crash due to a out of memory. 2019-01-04 13:52:26 +01:00
SBiOSoftWhare
9b35811fd7 [ShareExtension] Handle image items manually and remove NSData coercion, as UIlmage to NSData coercion do not work. That was causing screenshot sharing to fail (Fix #2022). 2019-01-04 13:45:41 +01:00
SBiOSoftWhare
a9f5163809 Enable background task on MXSDKOptions in share extension 2019-01-04 13:38:31 +01:00
SBiOSoftWhare
ed76a2be75 Make delegate weak on ShareExtensionManager 2019-01-04 13:22:31 +01:00
manuroe
b40f9e88ae Merge remote-tracking branch 'origin/develop' into reskin 2018-12-21 09:15:06 +01:00
manuroe
b390b6ce12 version++ 2018-12-12 10:28:15 +01:00
manuroe
a50c9f55b1 Reskin: Kill kRiotColorGreen and use RiotDesignValues.colorValues.accent instead 2018-11-30 17:10:28 +01:00
Giom Foret
d40d40068e Replace the deprecated MXMediaManager and MXMediaLoader interfaces use 2018-11-10 14:28:08 +01:00
manuroe
2b715c62d3 version++ 2018-10-31 16:12:22 +01:00
manuroe
f43c2d81fa version++ 2018-10-05 18:44:34 +02:00
manuroe
c5e5abd724 version++ 2018-09-26 15:48:38 +02:00
manuroe
e129e37fa4 Make code use the "Empty room" i18n string from MatrixKit 2018-09-20 11:05:46 +02:00
SBiOSoftWhare
079b06e860 version++ 2018-08-27 22:08:27 +02:00
manuroe
b583c69b09 version++ 2018-08-24 18:33:57 +02:00
manuroe
b63569c81d version++ 2018-08-17 18:36:35 +02:00
manuroe
190c00a508 Forgot version++ 2018-08-10 18:26:55 +02:00
manuroe
ecab359952 Lazy-loading server side: Fix Giom's remark 2018-08-03 14:06:01 +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
01182b8ab7
Merge pull request #1940 from vector-im/reduce_room_state_dependency
Reduce dependency to room.state
2018-07-18 04:33:10 +00:00
manuroe
b64b5767fb Make use of MXRoom.roomId and MXRoom.summary instead of MXRooms.state 2018-07-16 22:30:55 +02:00
SBiOSoftWhare
c2f72e7f04 Finish v0.6.20 2018-07-13 15:57:57 +02:00
SBiOSoftWhare
4f051210e8 version++ 2018-07-13 15:55:20 +02:00
SBiOSoftWhare
0e3ee5a5c8 Fix image references in xib and storyboards by removing .png suffix 2018-07-10 17:16:26 +02:00
SBiOSoftWhare
8832a9d3cb Move RiotShareExtension supporting files to a physical folder 2018-07-10 15:22:01 +02:00
SBiOSoftWhare
5c86dc2be6 Organize files by features in share extension target 2018-07-10 15:10:56 +02:00
SBiOSoftWhare
c7aadce4f9 Remove unused files in RiotShareExtension target 2018-07-10 15:03:07 +02:00
SBiOSoftWhare
07fed3bf1c version++ 2018-07-05 11:00:17 +02:00
manuroe
91f2b8c186 version++ 2018-07-03 16:04:11 +02:00
SBiOSoftWhare
385dbd006d Enable Swift in share extension. Add RiotSettings to share extension target. 2018-07-02 17:59:35 +02:00
manuroe
9360620aa4 version++ 2018-06-01 16:56:05 +02:00
manuroe
adad1a90ff update++ 2018-05-23 19:45:49 +02:00
manuroe
5dc75f63b0 update++ 2018-04-23 18:30:16 +02:00
manuroe
b88d8caf4b update++ 2018-04-20 16:35:58 +02:00
manuroe
8052f97056 version++ 2018-03-30 12:50:12 +02:00
manuroe
1696bf5957 version++ 2018-03-13 16:29:46 +01:00
manuroe
37eaa88aac Fix crash in ShareExtensionManager
Reported in Xcode organiser so there is no detail how it happened.
The fix is a workaround to avoid the crash but it does not help the user for sending their image.
2018-03-08 16:48:33 +01:00
giomfo
bd45c414e4 version ++ 2018-02-27 18:04:19 +01:00
giomfo
704f9f692b version ++ 2018-02-14 17:45:17 +01:00
Giom Foret
9e64b30212 version ++ 2018-02-10 15:53:37 +01:00
manuroe
ba34f3814b Share: Make sure the progress bar is always displayed
The switch to the main thread should be done earlier but I do not want to break things
2018-02-05 15:44:56 +01:00
manuroe
8d80c0d6a7 Share: The extension crashes if you try to share a GIF image (#1759) 2018-02-05 15:36:56 +01:00
manuroe
bb86584957
Merge pull request #1744 from vector-im/share_extension_crash
Share Extension: Fix crash on a weak self
2018-01-23 05:55:23 +01:00
manuroe
8cd792b887 Share Extension: Fix crash on a weak self
Reported only by app store because we do not catch crashes from the share extension nor siri extension.
2018-01-22 19:36:51 +01:00
Evan Tang
21a716d610 When you realize there's more than one cancel button 2018-01-18 20:46:25 -06:00
manuroe
5b1aad8094 version++ 2018-01-03 14:48:19 +01:00
manuroe
f7bee845d1 version++ 2017-12-29 18:01:40 +01:00
Giom Foret
65513f21bb Bug Fix: Share extension is not localized?
#1701
2017-12-27 14:53:17 +01:00
manuroe
5986ff833c version++ 2017-12-21 09:31:28 +01:00
manuroe
3def1d7809 version++ 2017-12-19 16:04:45 +01:00
manuroe
898353e47d version++ 2017-12-05 17:00:41 +01:00
Giom Foret
c834e21099 version++ 2017-11-30 11:16:11 +01:00
manuroe
45f07ab466 Make code compatible with !use_frameworks in Podfile 2017-11-23 16:09:19 +01:00
Giom Foret
e86a946e27 version++ 2017-11-13 18:16:43 +01:00
Giom Foret
c3ca338dbb Bug Fix: Share extension improvements
#1611

- display the search input by default
- on searching for something, the search filter seems to clear instantly on selecting a destination NOK.
2017-11-10 17:28:03 +01:00
Giom Foret
e1e87b3c69 Bug Fix: share silently fails on big pics - eg panoramas #1627 2017-11-09 15:59:42 +01:00
Giom Foret
7ee76984f7 version++ 2017-10-27 17:11:47 +02:00
manuroe
616084b19f version++ 2017-10-24 10:46:00 +02: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
Giom Foret
7db033723a Bug Fix - Share extension: Rooms have no avatars
Add a fake matrix session to each room summary to provide it a REST client (used to handle correctly the room avatar).

#1570
2017-10-16 18:55:09 +02:00
Giom Foret
781fd99701 Enable the Share App Extension use 2017-10-09 16:06:22 +02:00
manuroe
6e4c3bf9ab version ++ 2017-10-05 15:40:28 +02:00
Giom Foret
08b2d39aeb version ++ 2017-10-04 11:23:05 +02:00
Giom Foret
6a99afeb02 version ++ 2017-10-03 16:11:21 +02:00
Giom Foret
9e5a2fb4f6 RiotShareExtension: disable edition in rooms list 2017-09-29 17:25:18 +02:00
Giom Foret
33861fc80f Share extension mxstore rework
- sort rooms according to their activity
2017-09-29 11:25:58 +02:00
Giom Foret
038d4d50da Share extension mxstore rework
- Create the MXRoom instance only when the room is selected.
2017-09-29 10:37:54 +02:00
giomfo
a5498fd784 Merge branch 'develop' into share-extesion-mxstore-rework 2017-09-28 10:24:27 +02:00
Giom Foret
8be8c8b1fd Fix iOS11 disruption
- RoomViewController, RoomDetailsVC, ContactDetailsVC: fix header layout.
- Use UIScrollView+MatrixKit category to handle the adjusted content inset which is not defined before iOS 11.
2017-09-27 09:26:34 +02:00
Aram Sargsyan
1ed5bd003a Merge branch 'develop' of https://github.com/vector-im/riot-ios into share-extesion-mxstore-rework 2017-09-15 19:19:49 +04:00
Aram Sargsyan
0550c8f972 Stopped storing MXRoom instances, using CellData now 2017-09-15 19:17:03 +04:00
Giom Foret
e4bf4f7dfa Handle the room display name and its avatar at the room summary level.
- Update the room display name and its avatar url when the Room Summary is updated on state events change (see `[session: updateRoomSummary: withStateEvents:]`).
- Store the riot display room name and its avatar url in the Room Summary.
- Add a new category `MXRoomSummary+Riot` to handle avatar display.

TODO: Increase file store version in `MXFileStore.h`.
2017-09-14 16:00:50 +02:00
Aram Sargsyan
97569c2e0a resetting info.plist 2017-09-08 19:09:31 +04:00
Aram Sargsyan
3d698bfe0e Review changes 2017-09-08 19:02:45 +04:00
Aram Sargsyan
f68ec67f16 Finished rework, getting rooms with all the necessary information from MXStore 2017-08-31 17:51:49 +04:00
David Baker
feec9efc95 share extension version should be same as the app 2017-08-29 12:51:24 +01:00
Aram Sargsyan
d5ba3ecc29 Improved cell rendering 2017-08-26 15:54:25 +04:00
Aram Sargsyan
13cff8690f Added comment 2017-08-26 13:12:49 +04:00
Aram Sargsyan
ed15a6599e Initial commit 2017-08-26 12:58:17 +04:00
Aram Sargsyan
e47de00fdc Merge branch 'develop' of https://github.com/vector-im/riot-ios into app-extension-improvements 2017-08-25 18:12:15 +04:00
Giom Foret
5734619c8f Disable the Share App Extension use 2017-08-25 14:04:05 +02:00
Giom Foret
422ad1c514 App extension - Improvement: Reduce memory consumption.
Force the ShareExtensionManager to release the primary view controller when the action is completed.

We observed that `dealloc` is called for this view controller when the request is cancelled with error (`cancelRequestWithError`), but it is not called when the request is completed (`completeRequestReturningItems`).
2017-08-25 11:55:37 +02:00
Aram Sargsyan
eda96f8b8d Merge branch 'develop' of https://github.com/vector-im/riot-ios into app-extension-improvements 2017-08-25 02:42:35 +04:00
Aram Sargsyan
0340959692 Distinguishing providers 2017-08-25 02:26:53 +04:00
Giom Foret
9284ff0fca Improvement - Application group identifier
Use the property `applicationGroupIdentifier` of the MXSDKOptions sharedInstance.
2017-08-24 15:18:23 +02:00
Giom Foret
d8d2eba0b8 App extension - Restore Aram's logs 2017-08-24 13:02:38 +02:00
Giom Foret
ba4a44ac4e App Extension - Limit memory consumption
- In case of image sharing, we suggest the original resolution only if the image orientation is up, or if the image size is moderate.
- Bug Fix: no image is sent when no compression is required.
2017-08-24 12:59:46 +02:00
Aram Sargsyan
a55418b950 Fixed a bug related to multiple image sharing 2017-08-24 14:55:35 +04:00
Giom Foret
31739ce9ee App Extension - Bug Fix
Fix App crash on Exception "This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes.  This will cause an exception in a future release."
2017-08-24 10:47:27 +02:00
Aram Sargsyan
e60ccf9226 Merge branch 'app-extension-improvements' of https://github.com/aramsargsyan/riot-ios into app-extension-improvements 2017-08-22 19:56:30 +04:00
Aram Sargsyan
7d346d62e9 Added real support for sending multiple images (up to 5). Fixed bug when images weren't being resized. Introduced a category for NSItemProvider to easily track if the item was loaded or not. 2017-08-22 19:52:32 +04:00
Giom Foret
83c2cb5bc2 App extension: Bug Fix - send the keys file does not work correctly
The attached file is not detected as keys files when the user selects it in the room history.
The associated mimetype was wrong
2017-08-22 00:31:43 +02:00
Giom Foret
91b8ae6c9f App Extension - Fix matrix session handling
The matrix session should be handled by the ShareExtensionManager. This manager is able to prepare, suspend and resume the session.
Note: The ShareViewController is reloaded each time the extension is launched
2017-08-21 22:33:06 +02:00
Giom Foret
f58a29326e App extension: enlarge the close button 2017-08-21 18:09:07 +02:00
Aram Sargsyan
cbd6f07ce3 Merge branch 'app-extension-improvements' of https://github.com/aramsargsyan/riot-ios into app-extension-improvements 2017-08-21 18:45:56 +04:00
Aram Sargsyan
5406fd3c9f Sending the file with it's actual fiename, changes temporary search bar stykle to match the real one's style, showing only joined rooms for sharing 2017-08-21 18:45:16 +04:00
Aram Sargsyan
15b26c533f Merge pull request #5 from vector-im/app_extension_ima_orientation
Bug Fix -  Make sure the uploaded image orientation is up
2017-08-21 18:21:03 +04:00
Giom Foret
73b3b249bc Bug Fix - Make sure the uploaded image orientation is up 2017-08-21 15:28:58 +02:00
Aram Sargsyan
dd83fe957d Merge pull request #4 from vector-im/app_extension_reuse_mxkrecentsvc
RoomsListViewController should inherit from MXKRecentListViewController.
2017-08-21 17:15:20 +04:00
Giom Foret
5e64795c5a RoomsListViewController should inherit from MXKRecentListViewController.
- to release correctly the resources
- to reuse data source handling mechanism
...
2017-08-21 14:07:49 +02:00
Aram Sargsyan
9137d212a7 Introduced new ShareExtensionDelegate method didStartSendingToRoom to notify the viewController when the request is initiated to only then show the loading hud, block interaction with the view, etc 2017-08-21 01:39:08 +04:00
Giom Foret
24004b8b1a Bug Fix - App extension: handle correctly the account change.
Only the first enabled account is considered FTM.
2017-08-18 17:30:38 +02:00
Giom Foret
f785fd33d0 Apply the app group name in app extension
(merge https://github.com/vector-im/riot-ios/pull/1440)
2017-08-18 09:40:37 +02:00
Aram Sargsyan
d57a44b001 Merge branch 'app-extension-improvements' of https://github.com/aramsargsyan/riot-ios into app-extension-improvements 2017-08-18 02:28:15 +04:00
Aram Sargsyan
5641204318 Added comments describing ShareExtensionManager public functionality + small method renaming 2017-08-18 02:27:56 +04:00
Giom Foret
e137e9cd32 Remove unwanted binary file 2017-08-17 18:06:46 +02:00
giomfo
60c9a55bc1 Merge branch 'app-extension' into app-extension-improvements 2017-08-17 17:43:13 +02:00
Aram Sargsyan
37bd161f1d Fixed retain cycles, changed color constant 2017-08-17 19:28:08 +04:00
Aram Sargsyan
baa94e4e3e Merge branch 'develop' of https://github.com/vector-im/riot-ios into app-extension-improvements 2017-08-17 00:08:56 +04:00
Aram Sargsyan
1c95d51372 Loading HUD usage in the extension, Image resoulution alertController introduced 2017-08-17 00:01:54 +04:00
Giom Foret
8ea62c0d35 Apply the actual application group: "group.im.vector" 2017-08-16 18:24:07 +02:00
Aram Sargsyan
5d4a630394 Share Extension manager improvements 2017-08-14 15:25:02 +04:00
Aram Sargsyan
d42302cc8b Added search functionality for rooms and people, fixed bug of dismmisal 2017-08-11 20:33:50 +04:00
Aram Sargsyan
f67c99ce57 Reworked the Share Extension to use a subclass of MXKRecentsDataSource to show content, solved the room order issue, as well introduced a new class ShareExtensionManager responsible for Sharing content and communicating with the system to terminate the extension with the appropriate exit code when needed. 2017-08-11 02:38:47 +04:00
Aram Sargsyan
cdf6667c85 Converting non jpeg or png image types to jpeg before sending 2017-08-03 15:09:36 +04:00
Aram Sargsyan
1612de6fce Review changes 2017-07-31 19:26:06 +04:00