Commit Graph

116 Commits

Author SHA1 Message Date
Grigory Ulanov 75887d2ebc progress animation fixed 2016-11-22 12:24:13 +03:00
Diego Sánchez 0673909be5 Swiflint 0.13 fixes & Xcode 8 b2 compatibility (#253)
* Updates swiftlint config

* Fixes swiftlint erros and warnings

* Makes ChattoApp compatible with Xcode 8 b2

* Carthage compatibility with Xcode 8 b2

* Updates .travis.yml to use stable image with Xcode 8.1
2016-11-18 22:12:40 +00:00
Diego Sanchez be72adeae3 Bumps version to 3.0.1 2016-11-14 16:05:41 +00:00
geegaset fa43ed65bb Avoids using CaptureSession in simulator (#235)
App crashes on iOS 10 simulator if so
2016-10-10 12:09:40 +01:00
Diego Sánchez e269794da0 Makes source code compatible with Xcode 8.1 b2 (#233) 2016-10-05 11:18:11 +01:00
Zhao Wang 5e2827465e Fixes weird linker issue when using Carthage (#232) 2016-10-04 10:51:10 +01:00
Diego Sánchez 55885a5fd6 Adds exclusive touch to bubble view (#223)
* Adds exclusive touch to bubble view

* Sanitises quotes in Podfile

* Runs pod update
2016-09-26 22:42:33 +01:00
Diego Sanchez fa264996e8 Bumps version to 3.0.0 2016-09-21 13:47:50 +01:00
Diego Sánchez d1b01327d1 Swift 3 migration (#220)
* Runs the Swift 3 migrator in ChattoApp.

Affects ChattoApp, ChattoAppTests, Chatto and ChattoAdditions. Does not migrate ChattoTests or ChattoAdditionsTests

* Configures Chatto And ChattoAdditions projects to use Swift 3

* Updates .travis.yml to use Xcode 8 and iPhone 7

* Uses flatMap instead of filter and force cast

* Fixes createCollectionViewLayout not being a function

* Removes useless init overrides

* Fix for new implicit unwrapping optional non-propagation rule

* Removes useless casting

* Audits accessor levels in Observable

* Fixes UIControlState.Normal replaced by UIControlState()

* Favours private over fileprivate where possible

* Audits open/public access level

* Removes conditional if for Swift 2

* Removes label from simulateTapOnTextViewForDelegate

* Audits open/public access levels
2016-09-21 12:58:25 +01:00
Diego Sanchez 1fb8acb292 Bumps version to 2.1.0 2016-09-17 22:19:46 +02:00
geegaset 7f46182366 accessibility identifier for ChatInputBar placeholder (#218) 2016-09-12 15:37:29 +01:00
geegaset 7029891b06 use camera roll as default pictures source (#215)
* use camera roll as default pictures source

* creationDate restored
2016-09-02 14:16:45 +01:00
Peter Kolpashchikov 9a8dd758e0 sort assets by creation date 2016-09-01 14:07:31 +01:00
Diego Sánchez 585f0dbfc7 Makes some functions and properties public in TextMessageCollectionViewCellDefaultStyle (#207) 2016-08-23 14:49:24 +01:00
geegaset b98c487643 TabInputButton accessibilityId introduced (#206)
* TabInputButton accessibilityId introduced

* TabInputButton accessibilityId introduced
2016-08-23 11:48:13 +01:00
Diego Sánchez 22a3833761 Makes LiveCameraCellPresenter public and reusable out of ChattoAdditions (#205)
* Makes LiveCameraCellPresenter public and reusable out of ChattoAdditions

* Fixes tests
2016-08-22 22:14:24 +01:00
Anton Terehov 4bfc854a0b So generated initialisers for structs are internal and not visible from another module.. 2016-08-12 15:03:16 +01:00
Anton Terehov ed76fe6336 Code review comments 2016-08-12 12:00:32 +01:00
Anton Terehov 9c3b40df1d Refactors method name 2016-08-11 17:03:44 +01:00
Anton Terehov 6307c3119f Adds possibility to configure colour of LiveCameraCell, also providing default option. 2016-08-11 16:58:43 +01:00
Bohdan Orlov 3608e23120 xCode 8 Beta 5 compatibility. 2016-08-10 16:31:53 +01:00
Diego Sanchez 0f55395762 Bumps version to 2.0.1 2016-08-08 14:46:05 +01:00
Diego Sanchez 311831d4af Allows compiling ChattoAdditions with -O instead of just debug and whole-module. This is needed to pass podspec validation 2016-08-08 14:05:58 +01:00
Diego Sanchez dd34d2ebd0 Removes warnings 2016-08-08 12:58:08 +01:00
Diego Sánchez 8b003c64b8 Prepare release 2.0 (#194)
* Adds changelog

* Bumps version to 2.0.0

* Updates readme

* Updates readme with workaround for SR-2223

* Fix for readme
2016-08-08 11:33:12 +01:00
Zhao Wang 9f344f39a6 Add public initializer with frame and textContainer for ExpandableTextView (#193)
* Expose public initializer with frame and textContainer for ExpandableTextView

* add override keyword
2016-08-07 21:36:48 +01:00
Diego Sánchez a541e5b9f3 Makes MessageViewModelProtocol callbacks willBeShown and wasHidden optional (#190) 2016-08-01 21:09:47 +01:00
Max Konovalov 1ef46a0e35 Add updating logic to text message (#178)
* Add updating logic to text message

* Change Observable to class

* Fix avatar hiding

* Move willBeShown/wasHidden declarations to common protocol
2016-07-31 22:53:52 +01:00
Diego Sánchez d8a162cb0f Xcode 8.0 b3 + swift 2.3 support (#183)
* Fixes compilation for Xcode 8.0(beta 3)/Swift 2.3

* Adds NSCameraUsageDescription and NSPhotoLibraryUsageDescription to avoid crash on iOS 10 beta

* Runs swiftlint autocorrect
2016-07-18 23:28:11 +01:00
Max Konovalov 1329c96a0e Avatar improvements (#176)
* Add showsAvatar decoration attribute

* Add avatar tap handler

* Add avatar to photo message

* Fix tests

* Rename showsAvatar to canShowAvatar
2016-07-18 20:35:09 +01:00
Anton Schukin 26a4a0e0c8 Allow customisation of timestamp revealing behaviour 2016-07-12 17:49:40 +01:00
Anton Schukin 45730f1696 Merge branch 'dev' into improve-responsiveness-of-camera 2016-07-12 15:13:46 +01:00
Max Konovalov 7d410e5760 Make photo message cell style Colors initializer public (#177) 2016-07-08 00:04:34 +01:00
Diego Sánchez 359ebe1aa4 Merge branch 'dev' into improve-responsiveness-of-camera 2016-07-06 11:34:31 +01:00
Igor Kashkuta 6f0e82fb7d Fix jolty transitions between input items. (#174) 2016-07-06 11:16:51 +01:00
Diego Sanchez 8f9ce5df4e Improves responsiveness of camera when switching to/from full-screen camera view. 2016-07-05 23:14:22 +01:00
Diego Sánchez e4315bf4e8 Makes source code compatible with Swift 2.3 (#156) 2016-07-04 19:07:41 +01:00
Igor Kashkuta 600da97e13 Revert "Preserve height of ChatInputItem if keyboard item was previously opened. (#170)" (#172)
This reverts commit b2fcf7b7fc.
2016-07-04 16:18:21 +01:00
Igor Kashkuta b2fcf7b7fc Preserve height of ChatInputItem if keyboard item was previously opened. (#170) 2016-06-30 20:30:36 +01:00
Diego Sánchez 7a0f8d8e58 Improvements to photo input item: (#168)
- Just one capture session per input component.
 - Avoids starting/stoping capture during collection reloads, which can make the live camera take longer to capture or even hang.
 - Moves creation/destruction of capture session to the background: when opening/closing the input component many times it was resulting in capture start / stop blocking the main thread for some seconds on iOS 8
 - Queues updates in the collection view: doing a reloadData right after reloadItemsAtIndexPaths (update video) results in the visible cells not being refreshed
2016-06-29 23:54:15 +01:00
Igor Kashkuta 25b32bb0cb Add view parameter to userDidTapOnFailIcon() (#167)
* Add view parameter to userDidTapOnFailIcon() interaction handler method. Pass failed button view into it.
2016-06-28 15:20:20 +01:00
Diego Sánchez 37dd3bd562 Minor performance improvements for TextBubble (#166)
* Minor performance improvements:
 - Avoids updating font and color in TextBubble if it's not needed: would make attributed text to update
 - Avoids updating views in selected setter if value didn't change (setter is called by the collection view as part of dequeuing)
 - Avoids creating dictionary of attributes all the time for date attributed string (for some reason this was appearing in profiling with some swift-to-objc conversions)

Uses enum as image key in text style for greater safety.

* Removes linter warnings
2016-06-27 23:03:32 +01:00
Diego Sánchez bc4c9d8a64 Fixes crash when deleting a emoji. (#162)
Issue related to Unicode and String vs NSString.

NSRange has length = 2 for the emoji while it represents a single character.
2016-06-23 15:21:21 +01:00
Diego Sánchez 29173b03b5 Fixes text sizing issue. (#161)
Setting UITextView.textColor after UITextView.text may result in a NSTextStorage string that doesn't match our size calculation routine.
2016-06-23 14:41:08 +01:00
Diego Sánchez 5c3c84e6a6 Input bar customization enhancements (#154)
Adds more customizable options to the input bar

Bar with icons gets customizable height
Buttons get customizable intrinsic contentSize, so they can be bigger and easy to tap
Buttons get customizable images for any UIControlState
Send button gets customizable text colors for any UIControlState
2016-06-16 15:27:37 +01:00
Igor Kashkuta 33b2016638 Make default messages time formatter respect current locale. (#155) 2016-06-16 10:27:01 +01:00
Sergey Armodin 9538acf79d Make HorizontalStackScrollView public to make possible creating subclass of ChatInputBar with own xib (#153)
* Merge remote-tracking branch 'badoo/master' into dev

Make HorizontalStackScrollView public to make possible creating
subclass of ChatInputBar with own xib

* override fix
2016-06-14 16:00:42 +01:00
Diego Sánchez f442111937 Allows configuring a maximum number of characters for the input bar (#152) 2016-06-14 14:22:42 +01:00
Igor Kashkuta d4d2577959 Make updateQueue public so subclasses can control it. (#150)
* Make update queue of BaseChatViewController public

* Fix SwiftLint's warnings.

* Fix tests
2016-06-14 12:53:40 +01:00
Diego Sánchez d87fe40c90 Some optimizations for TextBubbleView (#144) 2016-06-01 13:43:37 +01:00