55 Commits

Author SHA1 Message Date
Kino Roy 02b03f3c26 Merge branch 'development' into link-preview-support 2020-06-30 10:42:28 -07:00
Kino Roy 1918e55a48 Convert internal, static colors into color assets. (#1386)
* Add Assets.xcassets to MessageKitAssets.bundle

* Replace incomingGray, outgoingGreen, inputBarGray

* Replace playButtonLightGray, with UIVisualEffectView to mimic iMessage (Fixes #1321 , Fixes #1335)

* Fixes an issue where the triangle in the play button is not centered

* remove sendButtonBlue, add incoming/outgoingAudioMessageTint

Matches audio tint more closely to iMessage by tinting white on outgoing and tinting blue on incoming

* Remove backgroundColor, add collectionViewBackground

* remove unused labelColor

* Remove unused placeholderTextColor

* Remove grayColor

* remove darkTextColor, add typingIndicatorDot

Matches dot color more closely to iMessage

* Remove unused lightGrayColor

* Adds high contrast appearances to the color assets

* Add MessageKitError string for case when color asset could not be loaded

Also removes redundant internal access level modifier on MessageKitError (internal is default), and changes MessageKitError from enum -> struct as its members were not enum cases

* Fix swiftlint issues

* Add label color asset and use in ContactMessageCell

* Fix tests
2020-06-23 13:42:00 -07:00
Bruno Guidolim c85a255c48 Added test for LinkPreviewMessageCell and entry to the Changelog. 2020-05-10 13:02:52 +02:00
Jakub Kaspar 9a492e916a Fix tests 2020-02-28 15:39:28 +01:00
Vlada Radchenko db27093302 dark mode support 2019-10-01 18:30:48 +03:00
Nathan Tannar a4654372ef Merge pull request #913 from JulienKode/CustomDetectorType
[DetectorType][MessageLabel] Add custom, mention and hashtag detector type 👻
2019-03-24 17:39:48 -07:00
Nathan Tannar b542ac88ee Rename id to senderId in SenderType 2019-03-24 17:38:20 -07:00
Nathan Tannar 7555e0ac16 Merge branch '3.0.0-beta' into CustomDetectorType 2019-02-28 19:21:38 -08:00
subdiox 223205381f fix .audio for test 2019-02-27 11:26:30 +09:00
Nathan Tannar 2f1c0e53ce Bump copyright year 2019-02-21 20:53:23 -08:00
Nathan Tannar 94d121bc00 Merge remote-tracking branch 'origin/3.0.0-beta' into sender-protocol 2019-02-19 00:07:50 -08:00
Iosif Moldovan 7f855d20a3 pull out BasicAudioController from MessageKit framework 2018-12-15 12:44:33 +02:00
Julien K 60c10d62f3 Merge remote-tracking branch 'upstream/development' into CustomDetectorType 2018-11-27 16:37:34 +01:00
Nathan Tannar 308eb6bffe Update Test Cases 2018-11-25 21:27:33 -08:00
Iosif Moldovan 8130c6e0f5 Merge branch 'development' of https://github.com/MessageKit/MessageKit into tagonsoft_development
# Conflicts:
#	CHANGELOG.md
2018-11-16 13:19:37 +02:00
Aleph Retamal be91c62393 Merge remote-tracking branch 'origin/master' into HEAD 2018-11-04 11:05:52 +11:00
Julien K d238e09155 [Update] 2018-11-02 11:17:39 +01:00
Aleph Retamal 6f04569369 Move test to Quick/Nimble (#924)
Moved **testMessageCollectionView_hasMessageCollectionFlowLayoutAfterViewDidLoad** to MessagesViewControlerSpec.swift and removed a duplication of this test
2018-11-01 22:35:38 -05:00
Aleph Retamal 7465fff120 Removed repeated test
On MessagesViewControllerTests.swift there was a test verifying if the delegate and datasorce were the same object. A similar test can be found on MessagesViewController.spec, so I removed it
2018-10-31 10:43:30 +11:00
Julien K 77e9ccda46 [DetectorType] add .mention, .hashtag and .custon() to detect your own pattern
[DetectorType] Put mention and hashtag as var

[CHANGELOG] Update

[DetectorType] Update to have at least 4 characters and more

[CHANGELOG] Update

[DetectorType]

[MessageLabel] run NSDataDetector once

[MessageLabel] Run NSDataDetector once

[Testing] Add testing and pass rangesOfDetectors as internal

[Refactoring]

[Filter] only .custom

[Examples]
2018-10-26 12:15:27 +02:00
Iosif Moldovan 0396faf5d4 try fix Circle CI tests 2018-10-26 10:09:11 +03:00
Iosif Moldovan 4d7e0ed839 try fix Circle CI tests 2018-10-26 10:00:56 +03:00
Iosif Moldovan e4099ffc1d try fix Circle CI fail test 2018-10-26 09:51:30 +03:00
Iosif Moldovan d12d8c0162 apply talanov edit sugestion 2018-10-17 17:22:06 +03:00
Iosif Moldovan ab9683b034 add logs in AudioControllerTests 2018-10-17 11:02:39 +03:00
Iosif Moldovan 2e6c76f061 rename AudioControllerDelegate method 2018-10-17 10:19:19 +03:00
Iosif Moldovan de8ba43a34 clean code and add tests for audio controller 2018-10-16 10:31:51 +03:00
Iosif Moldovan 09907c10bd add test case for check return of audio message cell 2018-10-04 12:40:12 +03:00
Nathan Tannar 9a2affcd6f Update to Swift 4.2 2018-09-29 11:45:50 -07:00
Nathan Tannar 230e067009 Integrate MessageInputBar as a dependency (#732)
* Remove MessageInputBar files and change build settings

* Conditional imports to allow for builds without MessageInputBar

* Update Cardfile

* Specify Version in Cartfile for MessageInputBar

* Remove conditional imports in favor of Carthage for local development

* Additional `import MessageInputBar`

* Remove `MessageInputBar` from Cartfile.private

* Bump MessageInputBar version

* Add Cartfile

* Tweak build settings

* Specify import of MessageInputBar for Carthage
2018-09-17 12:22:21 -05:00
Polina Petrenko 3bfeccd080 Fix a typo in scrollsToBottomOnKeybordBeginsEditing 2018-09-11 23:10:20 +03:00
Steven Deutsch 07c0e58597 Remove the limitation of 1 cell to 1 section (#601)
* Add numberOfSections delegate method

* Remove numberOfMessages(in) and add other two substitution methods

* Fix tests failure
2018-03-29 13:16:32 +08:00
Steven Deutsch 148d138787 Merge branch 'master' into development 2018-01-11 23:35:20 -06:00
Alessio Arsuffi faa4f92d1d LocationMessageSnapshotOptions public
Added public init and public accessors for
LocationMessageSnapshotOptions;
added test also;
2018-01-10 12:01:59 +01:00
Rich Gabrielli 1782b0b2a1 Change Copyright to "Copyright (c) 2017-2018 MessageKit" 2018-01-02 22:16:05 -05:00
Steven Deutsch 435b053c8a Revert change that attempts to sync MessageLabel properties 2017-12-16 21:07:15 -06:00
Steven Deutsch 769dc7477a Merge pull request #395 from zhongwuzw/fix-scroll-to-bottm
Fix scrollToBottom && remove scrollsToBottomOnFirstLayout
2017-12-12 02:49:59 -06:00
Steven Deutsch 0af6454ad9 Merge pull request #391 from MessageKit/enhancement/remove-cells
Removing cell generic constraints
2017-12-11 13:38:03 -06:00
zhongwuzw c7a9ad6ec3 update tests code to remove scrollsToBottomOnFirstLayout check 2017-12-11 22:27:37 +08:00
Steven Deutsch 982695c673 Clean up tests 2017-12-10 14:32:16 -06:00
Steven Deutsch 034a9c1c7c Merge branch 'development' into testing/message-label 2017-12-10 14:27:53 -06:00
Steven Deutsch b24d8bcff2 Fix failing tests 2017-12-10 14:22:48 -06:00
Steven Deutsch 26ed8ea708 Refactor Avatar, Sender, & DetectorType tests 2017-12-07 21:42:55 -06:00
Steven Deutsch 62e1c1c72f Add MessagesViewControllerTests stubs and convert some tests 2017-12-07 21:07:04 -06:00
Steven Deutsch 96db36e02c Add test stubs for MessageLabelSpec 2017-12-07 14:58:21 -06:00
Steven Deutsch a5de50a401 Add MessageLabel tests around detector attributes 2017-12-07 01:57:01 -06:00
zhongwuzw c29cf4cb14 Remove hack code in tests 2017-12-04 09:50:54 +08:00
Steven Deutsch 9b8cad1e53 Fix failing test 2017-12-02 00:56:58 -06:00
Steven Deutsch 5ac13b937f Refactor MessagesViewControllerTests to use Quick/Nimble 2017-12-02 00:25:13 -06:00
Steven Deutsch 1f13555158 Fix failing unit tests from #363 2017-12-01 23:00:09 -06:00