46 Commits
Author SHA1 Message Date
Jakub Kaspar 6bb47d5af5 Remove plugins that caused issues, migrate to swift 6 2024-10-30 07:49:27 +01:00
Kutay Karakamış 9ecaf1fa07 duration Nan issue fix
If audio url has authentication, sometimes duration came as Nan.
Integer(NaN) causes crash.
2023-09-01 15:54:19 +03: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
Seyed Mojtaba Hosseini Zeidabadi 2d8141a70b fix: misspellings of comments inside the message display delegate file 2021-09-10 14:33:50 +04:30
Itai Spector 330af7270c fixed typo 2021-06-16 15:20:47 +03:00
Itai Spector e6e4a9b8d3 fixed typo 'retunValue' -> 'returnValue' 2021-04-12 17:45:50 +03: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 fd7665be8c Adds delegate method to configure LinkPreview's image view. 2020-04-04 19:19:35 +02:00
Vlada Radchenko db27093302 dark mode support 2019-10-01 18:30:48 +03: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
Nathan Tannar 762f583d49 Refactor to see what SenderType would look like 2018-11-25 21:27:33 -08:00
Iosif Moldovan ea4c123707 apply second review changes 2018-10-08 13:46:37 +03:00
Iosif Moldovan 84de5586c4 apply review changes 2018-10-05 13:00:46 +03:00
Iosif Moldovan cda9cfa470 implement support for audio message 2018-10-03 17:20:01 +03:00
Iosif Moldovan 515b98ce45 partial development in add audio message support 2018-10-03 12:19:33 +03:00
Nathan Tannar 9a2affcd6f Update to Swift 4.2 2018-09-29 11:45:50 -07:00
Shawn Gong 7fde2fdc26 mimic avatar 2018-06-02 19:11:19 -07:00
zhongwuzw 39986f0458 Renamed MessageData to MessageKind 2018-04-16 11:57:50 +08:00
Corey Walo 6fcd2d6aa2 Only apply textColor for .text case of MessageData (#625)
* Only apply textColor for .text case of MessageData

* Update CHANGELOG

* Add name and PR #
2018-04-06 10:27:01 +08:00
Steven Deutsch bb1ea1d67e Remove failing tests 2018-04-03 13:45:52 -05:00
Steven Deutsch 1dc97fc38f Remove shouldDisplayHeader method 2018-04-03 13:24:43 -05:00
Steven Deutsch 911387edc1 Refactor header/footer API to remove indexPath 2018-04-03 13:24:43 -05:00
Steven Deutsch 9b8f0ba915 Remove CollectionViewReusable protocol 2018-04-03 13:24:43 -05:00
Steven Deutsch 04bfb7c5d7 Document all protocols 2018-03-30 10:43:41 -05:00
Steven Deutsch 17398a2cb2 Add hook to configure async media on cell 2018-03-27 01:28:14 -05:00
zhongwuzw 6da545fa36 Fix typo 2018-01-25 11:12:19 +08:00
Wu Zhong 2e9ff264a8 Merge pull request #459 from MessageKit/refactor/clean-up
Split MessagesViewController functionality & add MessageKitError
2018-01-14 16:54:13 +08:00
Steven Deutsch 148d138787 Merge branch 'master' into development 2018-01-11 23:35:20 -06:00
Steven Deutsch 810b58d88d Add MessageKitError to cleanup strings 2018-01-11 22:42:50 -06:00
Rich Gabrielli 1782b0b2a1 Change Copyright to "Copyright (c) 2017-2018 MessageKit" 2018-01-02 22:16:05 -05:00
Wu Zhong b4aeea146c Add configureImageForAvatarView(::::) protocol to expose avatarView &… (#416)
* Add configureImageForAvatarView(::::) protocol to expose avatarView &&  remove avatar(:::)

* Refactor AvatarView && change configureImageForAvatarView's name to configureAvatarView

* Optimize code && fix tests

* Add CHANGELOG entry

* Revert "Add CHANGELOG entry"

This reverts commit 0124ab920b.
2017-12-21 16:52:04 -06:00
Steven Deutsch 435b053c8a Revert change that attempts to sync MessageLabel properties 2017-12-16 21:07:15 -06:00
Steven Deutsch 6bdbe65139 Allow detector attributes to be set outside of the cell 2017-12-14 11:54:48 -06:00
Steven Deutsch a5de50a401 Add MessageLabel tests around detector attributes 2017-12-07 01:57:01 -06:00
Steven Deutsch 3759610cfa Remove different delegates for different message types 2017-11-30 15:15:49 -06:00
Steven Deutsch 2017404988 Disable MessageLabel detectors by default 2017-11-18 21:45:20 -06:00
zhongwuzw aeddab2d66 replace class to AnyObject for Swift4 2017-11-08 14:52:16 +08:00
zhongwuzw 117dd63fe0 Fix MessageInputBar layout issues && code optimize
1. Fix ambiguous layout issues when MessageInputBar run layoutIfNeeded
method before added to superview.
2. Just reload new added message when click send button.
3. Change class-only protocols declaration.
4. Change placeholderLabel’s centerX、centerY priority because we need
satisfy left/right、top/bottom constraint first .
2017-11-03 23:01:18 +08:00
Steven Deutsch 14aeef08f8 Finish documenting protocols + a few more classes 2017-10-23 22:51:42 -05:00
Steven Deutsch da9a1a804a Add documentation for some of the protocols 2017-10-21 08:12:07 -05:00
Steven Deutsch ca6f9492a2 Add TextMessageDisplayDelegate 2017-10-05 12:55:28 -05:00
Candost Dagdeviren dde838630a Update folder structure to represent groups
Signed-off-by: Candost Dagdeviren <candostdagdeviren@gmail.com>
2017-10-05 15:47:23 +02:00