Commit graph

279 commits

Author SHA1 Message Date
Matthew Chen
6a80db7844 Enable support for sharing urls in SAE. 2018-01-25 13:23:00 -05:00
Matthew Chen
da0b7df1b5 Respond to CR. 2018-01-25 13:18:38 -05:00
Matthew Chen
482ad08640 Handle unregistration in SAE. 2018-01-25 13:18:38 -05:00
Michael Kirk
5dde17d939 Show approval/caption view in app.
ApprovalView/Captioning is shown for:
- Images/Videos from Library
- Images/Video from Camera
- Document Picker
- GIFs

Voice notes are intentionally not captionable.

Also, in main app, hide status bar when ApprovalView is presented

// FREEBIE
2018-01-17 18:19:48 -05:00
Matthew Chen
2b528ad894 Don't use mainApplicationState in business logic. 2018-01-12 14:24:35 -05:00
Matthew Chen
1839b10550 Retain changes from session database branch. 2018-01-10 12:18:34 -05:00
Matthew Chen
9ac2383a2c Retain changes from session database branch. 2018-01-10 12:18:29 -05:00
sdkjfhsdkjhfsdlkjhfsdf
14723f3e7f Fix profile avatar flicker
- We were clobbering our saved avatar filepath.
- Our "should notify" check was too aggressive.
- Only fetch profiles when entering a conversation.
- Only fetch profiles in main app

Also added (a little) debounce time to debug profile fetching.

// FREEBIE
2017-12-21 19:34:45 -06:00
sdkjfhsdkjhfsdlkjhfsdf
38d94952f7 Shadow for Send button, clean up color accessors
// FREEBIE
2017-12-20 14:26:53 -06:00
Matthew Chen
fe67cd924c Rework database view registration. 2017-12-19 11:42:06 -05:00
Matthew Chen
0c9d9ba679 Fix issues around cross process db changes. 2017-12-15 11:11:57 -05:00
Michael Kirk
3affb07a11 post-merge formatting fixup
// FREEBIE
2017-12-14 11:43:27 -05:00
Michael Kirk
16448e2a0b Merge tag '2.19.3.0' 2017-12-14 11:42:57 -05:00
Michael Kirk
a0f44f75e1 Bump build to 2.20.0.3.
// FREEBIE
2017-12-12 13:08:45 -05:00
Michael Kirk
f9d22545b1 Only copy imported video when necessary.
Non-mp4's will be moved as part of their conversion.

We only need to move mp4's which were auto-converted

// FREEBIE
2017-12-12 12:54:02 -05:00
Michael Kirk
849388feb7 CR: clean up loading assets once no longer needed
// FREEBIE
2017-12-12 12:53:09 -05:00
Michael Kirk
03220ffa79 CR: Faster animation from loading -> picker
// FREEBIE
2017-12-12 12:31:17 -05:00
Michael Kirk
813f4e474e Respond to CR
// FREEBIE
2017-12-12 11:09:39 -05:00
Michael Kirk
47e92dbad5 cleanup
// FREEBIE
2017-12-11 20:47:16 -05:00
Michael Kirk
7d0acc94ff cleanup
// FREEBIE
2017-12-11 19:40:35 -05:00
Michael Kirk
56f1bf0305 cleanup 2017-12-11 19:37:49 -05:00
Michael Kirk
65f79770ac rebase fixup 2017-12-11 14:11:58 -05:00
Michael Kirk
90e9b4a4f2 WIP - send all video types 2017-12-11 14:05:55 -05:00
Michael Kirk
4ce2eb3c6c Show ProgressView for video conversion
// FREEBIE
2017-12-11 14:05:53 -05:00
Michael Kirk
b1b6dcfbf0 Simplify loading delay, use loading screen as activity indicator for
video conversion

// FREEBIE
2017-12-11 14:05:05 -05:00
Michael Kirk
538b3e5fd5 Async API for video export
// FREEBIE
2017-12-11 14:04:26 -05:00
Michael Kirk
21fd7b040e Ensure sent video is mp4
// FREEBIE
2017-12-11 14:03:40 -05:00
Michael Kirk
d3e7c99a63 Attachment approval: cancel/confirm to top/bottom toolbars
- avoid double-submit by disabling after hitting send.
- Animate SAE dismissal as modal
  Requires hiding the load view
- attachment is centered in screen
- add gradient to ensure controls are visible
- Fix clamp constraints - I think this was a typo
  Otherwise we couldn't show an image which was 1" wide by 2" tall
- set max zoom, hide scroll indicators
- use media view
- slower panning feels right
- white send button
- can share GIF, static, and sort of video...
- Play button for attachment approval
  - move to image assets so we can use it in SAE
  - slightly larger button for full-screen approval view
  - don't launch redundant fullscreen UI for images when in approval view
- fix scrollOffset in AttachmentApproval
- consolidate view initialization logic in loadView and fix white background
- CR: more legible arithmetic

// FREEBIE
2017-12-11 13:58:03 -05:00
Matthew Chen
97ce1a6675 Rework user profile saves; block SAE if no local user profile key. 2017-12-11 12:28:28 -05:00
Matthew Chen
11b4848530 Respond to CR. 2017-12-11 10:37:20 -05:00
Matthew Chen
89db8b3a44 Respond to CR. 2017-12-11 10:37:20 -05:00
Matthew Chen
125aabb0a3 Change image resizing/quality behavior, preferring smaller images in the common case. 2017-12-11 10:37:20 -05:00
Michael Kirk
b014c236b8 bump build number 2017-12-07 18:05:18 -05:00
Michael Kirk
3ecf0a7537 Cancelling dismisses share extension, remove "import with signal"
Usinig the new ShareViewDelegate to dismiss the share extension, might
have broken the "import with signal" functionality. But because we
want to remove it anyway, I've done that now, rather than fix it up.

// FREEBIE
2017-12-07 17:12:03 -05:00
Michael Kirk
ed33663e6d CR: remove redundant isHidden
// FREEBIE
2017-12-07 16:48:02 -05:00
Michael Kirk
cd95e1784b avoid race condition in presentation animation 2017-12-07 16:48:02 -05:00
Michael Kirk
3bb772f135 Modal conversation picker, hide loading screen when possible
The first usable screen in the conversation picker, that's the first
thing we want to show the user, and the modal presentation feels like
the right way to introduce this new context.

Long load times should be the exception, not the normal flow, so we
delay it's presentation in hopes that it will generally never be seen.

// FREEBIE
2017-12-07 16:48:01 -05:00
Matthew Chen
d15d5ce3a2 Respond to CR. 2017-12-07 16:29:24 -05:00
Matthew Chen
791743a5f0 Fix order of operations in SAE setup. 2017-12-07 16:04:52 -05:00
Matthew Chen
f148003fb3 Convert logTag to property. 2017-12-07 14:32:22 -05:00
Matthew Chen
8312614cf7 Respond to CR. 2017-12-07 13:53:13 -05:00
Matthew Chen
99f0b9d3e8 Fix issues around statics. 2017-12-07 12:34:02 -05:00
Michael Kirk
0429836ff9 CR: rename keyWindow -> keyReferenceView, split long line
// FREEBIE
2017-12-07 10:39:44 -05:00
Michael Kirk
ca999627ef CR: replace, not push VC
// FREEBIE
2017-12-07 10:22:04 -05:00
Michael Kirk
c0c71ad765 cleanup 2017-12-07 10:15:35 -05:00
Michael Kirk
4aba6e0c9f Present conversation picker when DB is ready
// FREEBIE
2017-12-07 10:15:35 -05:00
Michael Kirk
eca19e5874 Reconcile MediaMessageView zoom behavior with AppExtension
Previously it was predicated on UIApplication.shared

// FREEBIE
2017-12-07 10:14:30 -05:00
Michael Kirk
3036337a5a Include filename, support sharing all other image types
// FREEBIE
2017-12-07 10:14:30 -05:00
Michael Kirk
3eceb86371 Show alert if we fail to build the attachment
// FREEBIE
2017-12-07 10:14:30 -05:00
Michael Kirk
89b9887f1d Make DeviceSleepManager extension compatible
// FREEBIE
2017-12-07 10:13:47 -05:00
Michael Kirk
a58f1f385c Share a photo from photos app
Shows the conversation picker, and sends the attachment to that
conversation.

There's still a lot TODO

-[ ] resolve JSQ dependency
-[ ] properly wait for app to load
-[ ] dismiss share extension after send is complete
-[ ] support non jpeg file types
-[ ] Fix device sleep manager

// FREEBIE
2017-12-07 10:13:06 -05:00
Matthew Chen
3960b8162e Respond to CR. 2017-12-06 21:47:03 -05:00
Matthew Chen
848f055da1 Add SAE error views. 2017-12-06 21:38:53 -05:00
Matthew Chen
6e545c57c3 Bump build to 2.20.0.1.
// FREEBIE
2017-12-06 10:38:57 -05:00
Matthew Chen
01dfa83bed Continue conversion of app setup. 2017-12-06 10:38:57 -05:00
Matthew Chen
076844bfe7 Continue conversion of app setup. 2017-12-06 10:38:57 -05:00
Matthew Chen
310cf1330d Continue conversion of app setup. 2017-12-06 10:38:57 -05:00
Matthew Chen
aeb6f320df Fix plist value type. 2017-12-06 10:35:23 -05:00
Matthew Chen
f5353fc7d5 Clean up ahead of PR. 2017-12-05 11:35:43 -05:00
Matthew Chen
150f417a5e Clean up ahead of PR. 2017-12-05 11:32:19 -05:00
Matthew Chen
9da165b846 Continue conversion of app setup. 2017-12-05 11:19:11 -05:00
Matthew Chen
dc51f92f19 Clean up ahead of PR. 2017-12-05 10:29:29 -05:00
Matthew Chen
b4e8df79da Migrate environment to SignalMessaging. 2017-12-05 10:29:29 -05:00
Matthew Chen
a16058e477 Migrate environment to SignalMessaging. 2017-12-05 10:29:29 -05:00
Matthew Chen
6d87df88aa Migrate environment to SignalMessaging. 2017-12-05 10:29:28 -05:00
Matthew Chen
c817aa51b3 Migrate environment to SignalMessaging. 2017-12-05 10:28:46 -05:00
Michael Kirk
2af818b3ba Make SignalMessaging AppExtension safe
// FREEBIE
2017-12-04 12:50:28 -05:00
Matthew Chen
bf21d0c0ed Enable logging in SAE; rework log file management to include multiple log directories. 2017-12-01 12:55:47 -05:00
Matthew Chen
8cc33b3de1 Refine loading view of share extension. 2017-12-01 10:48:18 -05:00
Matthew Chen
e7b32899cb Sketch out SAE load screen; make a number of infrastructure changes. 2017-12-01 09:37:52 -05:00
Matthew Chen
f20196e3fa Use dict to specify supported types for SAE. 2017-11-30 15:06:16 -05:00
Matthew Chen
15e3b5ad76 Add app extension context, bridging header and PCH to app extension. 2017-11-30 14:57:03 -05:00
Matthew Chen
2aafdcf577 Add app extension context, bridging header and PCH to app extension. 2017-11-30 14:57:03 -05:00
Matthew Chen
f896bf99d5 Update share extension capabilities. 2017-11-30 14:09:10 -05:00
Matthew Chen
8706d8f599 Update share extension capabilities. 2017-11-30 14:09:10 -05:00
Michael Kirk
2c4cf96515 Some proof of framework integration in the sample share extension
// FREEBIE
2017-11-29 13:58:27 -08:00
Michael Kirk
a11d83187b WIP: Framework-friendly - compiles but crashes on launch
// FREEBIE
2017-11-29 13:58:27 -08:00
Michael Kirk
de028404bb Shared framework between app and extension
// FREEBIE
2017-11-29 13:58:27 -08:00
Michael Kirk
d96eb8932b ShareExtension template
Only modification was to target down to iOS9

(targeting iOS8 failed to build)

// FREEBIE
2017-11-29 13:58:27 -08:00