Commit Graph

305 Commits

Author SHA1 Message Date
martinpucik 1f2f7336c3 refactor: deprecated scrollToBottom() in favor of scrollToLastItem 2020-12-03 18:53:48 +01:00
martinpucik d89ab53c54 refactor: Example project with SPM as dependency manager 2020-12-03 17:16:05 +01:00
Martin Púčik 86cd13eafa Updated MessageKit.podspec to use resource_bundle instead of resources (#1460)
* Update MessageKit.podspec

Changed resources to resource_bundle

* Update CHANGELOG.md

* Update MessageKit.podspec

Update resource bundle getter for updated podspec bundle setting

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Jakub Kašpar <kaspikk@gmail.com>
2020-10-06 10:08:59 +02:00
Martin Pucik f61fcf2eac test: Move to XCTest from dependency based 2020-10-05 22:37:14 +02:00
Jakub Kaspar 1e4b93c27c Bump dependencies, ship 3.4.2 2020-10-05 12:39:55 +02:00
Jakub Kaspar 24ec632f81 Bump minimum iOS to 12, update fox XCode 12, update example, update podspec, update IBAV 2020-09-16 21:26:41 +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
amir pirzad 5949d6e32c Add comment 2020-08-30 01:27:55 +04:30
amir pirzad 404f3ad332 Add boolean for enable/disable display time 2020-08-28 17:21:00 +04:30
Jakub Kaspar e535c7301e Update IBAV dependency to 5.1.0 with dark mode support 2020-08-27 17:34:31 +02:00
Jakub Kaspar 94fd0709c1 Fix building example app, fix assets, fix plist 2020-08-27 11:03:40 +02:00
Jakub Kaspar 2c1cbc1a24 Update example app 2020-08-05 23:35:59 +02:00
Jakub Kaspar b5d163ffc8 Merge branch 'master' into development
# Conflicts:
#	Example/ChatExample.xcodeproj/project.pbxproj
#	Example/Sources/View Controllers/LaunchViewController.swift
#	README.md
2020-08-05 23:23:45 +02:00
Jakub Kaspar 9bd9bd6b78 Update example project 2020-08-05 21:30:53 +02:00
Kino c2e41ae804 Address code review 2020-07-24 12:29:31 -07:00
Kino e4405580d2 Address code review 2020-07-24 12:27:33 -07:00
Kino 8b848dfefe Don't attempt to build with 32 bit architectures
SwiftUI doesn't include symbols for 32-bit archs so xcodebuild fails, and there is no reason to build the example app for 32 bit archs
2020-07-18 21:56:58 -07:00
Kino 93036d49d2 Remove unused getInitialMessages method 2020-07-18 16:36:58 -07:00
Kino a9a17956cb Add message top and bottom labels for name and time 2020-07-18 15:57:40 -07:00
Kino 6ff4bd7bc0 Scroll to bottom on keyboard begins editing 2020-07-18 15:57:21 -07:00
Kino 0f3e7cfe3b Add message sending ability by conforming Coordinator to InputBarAccessoryViewDelegate 2020-07-18 15:49:22 -07:00
Kino 76ac0722c3 add #if canImport for SwiftUI 2020-07-18 15:32:48 -07:00
Kino e9e524c465 Keep an initialized @State variable so we don't scrollToBottom animated the first time 2020-07-18 15:27:56 -07:00
Kino dbc7de1132 Initialize initial messages inline, add some helper methods 2020-07-18 15:27:22 -07:00
Kino f481519da4 Create SwiftUIExampleView to show use of MessagesView and data binding 2020-07-18 15:04:37 -07:00
Kino 2f6a2a14a0 Configure avatarView, currentSender 2020-07-18 14:32:51 -07:00
Kino 2436db9f5d Add SwiftUI Example to launchVC 2020-07-18 14:14:53 -07:00
Kino 5bb16cbf03 Add MessagesView wrapping MessageViewController 2020-07-18 13:41:49 -07: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 b0280fce54 Merge branch 'master' into development-patch-from-master
# Conflicts:
#	README.md
2020-06-28 21:29:04 -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
Austin Wright f0c638db6a Trivial commit to trigger danger 2020-06-01 14:13:41 -04:00
Austin Wright dadc83b89a Fix syntax/scope error from #1364 2020-06-01 13:54:34 -04:00
musa-almatri dd67cd26d9 Use messagesKey instead of string
messagesKey was initialized but not used
2020-06-01 18:16:10 +03:00
Kino ccc26481c7 Add padding info in the example proj for the InputBar 2020-05-26 20:47:23 -07:00
Jakub Kašpar de410bd954 Merge branch 'development' into link-preview-support 2020-05-14 10:11:51 +02:00
Kino Roy 7827025dea Merge branch 'development' into link-preview-support 2020-05-13 23:26:44 -07:00
Kino Roy 9806389593 Merge branch 'development' into Support_iPad_SplitView 2020-05-13 23:23:13 -07:00
Ashley Ng d2a34894a5 Address code review
- change varibale names with VC to ViewController
- add MIT License Header to new files
- add documentation about using a height constant
2020-05-07 18:29:23 -05:00
Jakub Kaspar 2460ce4551 Merge branch 'development' into mergeMaster
# Conflicts:
#	.github/workflows/danger.yml
#	Example/Gemfile
#	Example/Gemfile.lock
2020-04-24 00:38:01 +02:00
Jakub Kašpar e7f832b3a3 Merge branch 'development' into Support_iPad_SplitView 2020-04-06 17:24:27 +02:00
Bruno Guidolim 99d0719224 Add LinkPreview support to MessageKit 2020-04-04 16:55:50 +02:00
Jakub Kaspar 0c676da60c Fix swiftlint 2020-04-02 21:40:20 +02:00
Jakub Kaspar 4db71affef Fix Swiftlint 2020-04-02 21:39:46 +02:00
Ashley Ng d6ffbf87b3 Merge branch 'development' into Support_iPad_SplitView 2020-03-25 17:29:33 -05:00
Jakub Kaspar 6f3a7b2e1d Cherry pick changes for example app 2020-03-20 18:58:19 +01:00
martinpucik 81d4387d94 build: Bump Cocoapods bundle version 2020-03-20 14:02:16 +01:00