117 Commits
Author SHA1 Message Date
Dmitry Khudyakov 93511cad3b Fix for overlapping detected matches 2024-07-13 20:57:10 +06:00
Martin PúčikandJakub Kaspar bff35fda61 Added Swiftlint and Swiftformat plugins (#1729)
* build: Swiftlint plugin

* build: Swiftformat plugin

* build: Swiftformat plugin

* build: Swiftformat bash command

* style: Swiftformat rules

* style: Swiftformat applied to codebase

* style: Ignore Tests for Swiftlint

* Update bundler

* Update changelog and migration guide

* style: Ignore Example for Swiftlint

* chore: Changelog

* Update Xcode version for ci_pr_tests.yml

* Update ci_pr_framework.yml

* Update ci_pr_example.yml

* chore: Changelog

Co-authored-by: Jakub Kaspar <kaspikk@gmail.com>
2022-07-25 08:46:14 +00:00
Martin Púčik cf07a475c9 Renamed func currentSender() -> SenderType to var currentSender: SenderType (#1714)
* refactor: Renamed `func currentSender() -> SenderType` to `var currentSender: SenderType`

* refactor: Renamed `func currentSender() -> SenderType` to `var currentSender: SenderType`

Changelog
2022-05-10 16:42:34 +02:00
martinpucik dee9a22483 refactor: InpuBar as subview instead of accessoryView
Fix tests
2022-05-04 18:02:42 +02:00
Jakub Kaspar 4e97e02d85 Prepare release 2021-03-08 11:44:20 +01:00
Martin Pucik f61fcf2eac test: Move to XCTest from dependency based 2020-10-05 22:37:14 +02:00
Kino Roy 02b03f3c26 Merge branch 'development' into link-preview-support 2020-06-30 10:42:28 -07:00
Martin Púčik 81395b6575 Swift Package Manager support without RxSwift dependency (#1341)
* feat: SPM support

Using InputAccessoryView dependency without Rx

* feat: SPM support

Add missing imports

* feat: Swift Package Manager support

Added Package description with Assets support for Swift 5.3

* feat: Swift Package Manager support

Remove .swiftpm temp files

* feat: Swift Package Manager support

Ignore .swiftpm temp files

* feat: Swift Package Manager support

Remove Package.resolved

* feat: Swift Package Manager support

Ignore Package.resolved

* feat: Swift Package Manager support

Assets in framework project

* feat: Swift Package Manager support

Fix tests

* feat: Swift Package Manager support

Fix tests

* feat: Swift Package Manager support

Fix tests

* feat: Swift Package Manager support

Try Bundle.module to get MessageKit bundle

* feat: Swift Package Manager support

SPM condition in bundle

* feat: Swift Package Manager support

Remove previous Swift 5.2 version Package.swift

* feat: Swift Package Manager support

Update Readme with SPM installation
2020-06-30 17:24:07 +02: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
Shawn Gong 378e60fcf2 Fix tests 2020-02-17 19:18:21 -08: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
Nathan Tannar 16a070bf58 Fix test spec 2018-12-26 15:46:57 -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
Wu Zhong 528ed1aae6 Fixed MessageContentCell's subviews frame when size equal to .zero (#716)
* Fixed MessageContentCell's subviews frame when size equal to .zero

* Remove .zero check

* Fix test failure
2018-06-07 11:45:32 +08:00
Steven Deutsch 9bfccfba2e Fix failing tests 2018-04-26 02:51:49 -05:00
zhongwuzw 39986f0458 Renamed MessageData to MessageKind 2018-04-16 11:57:50 +08:00
Steven Deutsch bb1ea1d67e Remove failing tests 2018-04-03 13:45:52 -05: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 a79149e6cd Fix failing unit tests 2018-03-28 06:18:57 -05:00
Steven Deutsch caefdbc22b Fix tests 2018-03-24 03:52:35 -05:00
Steven Deutsch 5707a3441f Add MediaItem protocol 2018-03-24 03:52:35 -05:00
Steven Deutsch c3a2bef1c9 Merge branch 'master' of https://github.com/MessageKit/MessageKit into development 2018-03-18 16:51:09 -05:00
Yishai c5c4bd4c86 TransitInformation - Updated tests and example project 2018-02-15 09:53:43 +00:00