132 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účik 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 4ab430c7b1 refactor: InpuBar as subview instead of accessoryView
Cleanup of commented and not used code
Moved some internal properties to state object
Removed iOS 13 available checks
2022-05-04 16:44:27 +02:00
martinpucik ddfc814d32 feat: MessagesLayoutDelegate method for avatar size 2022-03-04 13:07:06 +01:00
martinpucik ccad74807b feat: MessagesLayoutDelegate methods for Top/Bottom message label alignments 2022-02-03 18:56:17 +01:00
Seyed Mojtaba Hosseini Zeidabadi 0418a29353 fix: misspellings of comments inside the link item file 2021-09-10 14:35:22 +04:30
Seyed Mojtaba Hosseini Zeidabadi f06802f749 fix: misspellings of comments inside the media item file 2021-09-10 14:34:49 +04:30
Seyed Mojtaba Hosseini Zeidabadi 2d8141a70b fix: misspellings of comments inside the message display delegate file 2021-09-10 14:33:50 +04:30
Seyed Mojtaba Hosseini Zeidabadi bcd0558f6b fix: misspellings of comments inside the message layout delegate file 2021-09-10 14:32:55 +04:30
Itai Spector 330af7270c fixed typo 2021-06-16 15:20:47 +03:00
Vignesh J d383863700 Resolved merge conflicts 2021-04-23 13:32:01 +05:30
Vignesh J bcadf885af Added more cell size calculator delegate for non custom MessageType 2021-04-22 12:12:41 +05:30
Vignesh 0a5048864a Adding UICollectionViewCell delegation for non custom MessageType 2021-04-21 11:08:41 +05:30
Itai Spector e6e4a9b8d3 fixed typo 'retunValue' -> 'returnValue' 2021-04-12 17:45:50 +03:00
Jakub Kaspar 793dce6894 Fix typing indicator calulator based on delegate methods 2021-03-25 11:37:52 +01:00
Pavel Tikhonenko af2f9cd96a Fix compilation issues by importing UIKit 2020-09-08 21:48:41 +03:00
Jakub Kašpar 0e27b921ca Update MessagesDataSource.swift 2020-09-04 11:15:27 +02:00
amir pirzad c6bfdba900 Add document 2020-09-03 12:42:20 +04:30
amir pirzad d2b87770c9 Conform protocol 2020-09-02 22:47:11 +04:30
amir pirzad f08cdad1f4 Fix some issues 2020-09-02 22:28:24 +04:30
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
Bruno Guidolim 474af4f0cc Refactoring to support font customization on LinkPreview type. 2020-04-04 17:59:07 +02:00
Bruno Guidolim 99d0719224 Add LinkPreview support to MessageKit 2020-04-04 16:55:50 +02:00
hyouuu d0f32b0443 Merge pull request #1189 from Vlada31R/darkMode
Add support for dark mode
2020-02-16 22:28:45 -08:00
Vlada Radchenko db27093302 dark mode support 2019-10-01 18:30:48 +03:00
Domenico 57af77527f Added image tapped delegate 2019-08-18 19:26:07 +02:00
Nathan Tannar 8cc96d71a2 Merge remote-tracking branch 'origin/3.0.0-beta' into typingIndicatorView 2019-04-05 00:11:14 -07:00
Iosif Moldovan cdedd2bf8c apply code review 2019-04-04 15:09:59 +03:00
Nathan Tannar 3f93702ff1 Merge branch '3.0.0-beta' into typingIndicatorView 2019-04-02 22:45:52 -07:00
Nathan Tannar d19e7df997 Go back to using a reserved section method 2019-04-02 22:43:09 -07:00
Iosif Moldovan 7a6f15f452 Merge branch '3.0.0-beta' of https://github.com/MessageKit/MessageKit into share_contact
# Conflicts:
#	Example/Sources/Data Generation/SampleData.swift
2019-03-30 11:25:06 +02:00
Iosif Moldovan 9fa69e7e59 Apply code review 2019-03-30 11:12:02 +02: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 9e8abf6d16 Merge branch '3.0.0-beta' into typingIndicatorView 2019-03-24 11:43:16 -07:00
Nathan Tannar 71bfc40d0a Merge remote-tracking branch 'origin/master' into 3.0.0-beta 2019-03-24 11:42:55 -07:00
Iosif Moldovan de6a57645f Merge branch '3.0.0-beta' of github.com:MessageKit/MessageKit into share_contact
# Conflicts:
#	Example/Sources/Data Generation/SampleData.swift
#	Sources/Views/Cells/AudioMessageCell.swift
2019-03-12 16:42:05 +02:00
Iosif Moldovan 08451fbde0 Add contact share message support 2019-03-12 16:02:52 +02:00
Nathan Tannar 085f563a91 Crunch some bugs 2019-03-01 00:01:43 -08:00
Nathan Tannar fa06818e74 Typing Indicator as a Supplementary View 2019-02-28 22:40:36 -08:00
Nathan Tannar 7555e0ac16 Merge branch '3.0.0-beta' into CustomDetectorType 2019-02-28 19:21:38 -08:00
Ayoub Belemlih 3437eb27c6 Fix documentation error within MessagesDataSource.swift 2019-02-28 15:24:54 -06: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