Skip to content

Commit

Permalink
Merge branch '3.0.0-beta' into CustomDetectorType
Browse files Browse the repository at this point in the history
  • Loading branch information
nathantannar4 authored Mar 1, 2019
2 parents 60c10d6 + 50ce463 commit 7555e0a
Show file tree
Hide file tree
Showing 105 changed files with 1,366 additions and 289 deletions.
Binary file added Assets/MessageKitAssets.bundle/Images/pause.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/MessageKitAssets.bundle/Images/play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/MessageKitAssets.bundle/Images/play@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 30 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,40 @@

The changelog for `MessageKit`. Also see the [releases](https://github.com/MessageKit/MessageKit/releases) on GitHub.

--------------------------------------
## 3.0.0

## Upcoming Release
### Dependency Changes

- **Breaking Change** The dependency `MessageInputBar` was replaced with `InputBarAccessoryView`. As `MessageInputBar` was previously a fork this means no functionality has been lost but improvements and bug fixes will be present. `InputBarAccessoryView` has more of a following outside of `MessageKit` making its development faster than `MessageInputBar`. Maintaining two versions only increased the workload. You can find the changelog for `InputBarAccessoryView` [here](https://github.com/nathantannar4/InputBarAccessoryView/blob/master/CHANGELOG.md).

### Changed

- **Breaking Change** Deprecated the Sender struct in favor of the `SenderType` protocol. [#909](https://github.com/MessageKit/MessageKit/pull/909) by [@nathantannar4](https://github.com/nathantannar4)

- **Breaking Change** Add support for audio messages [#892](https://github.com/MessageKit/MessageKit/pull/892) by [@moldovaniosif](https://github.com/moldovaniosif). Added new protocols `AudioControllerDelegate`, `AudioItem` a new cell `AudioMessageCell` and a new controller `BasicAudioController`.

- **Breaking Change** Moved `handleTapGesture` method to `MessageCollectionViewCell` [#950](https://github.com/MessageKit/MessageKit/pull/950) by [@nathantannar4](https://github.com/nathantannar4)

- **Breaking Change** Renamed function `layoutBottomLabel(with:)` to `layoutMessageBottomLabel(with:)` in `MessageContentCell` class.
[#920](https://github.com/MessageKit/MessageKit/pull/920) by [@maxxx777](https://github.com/maxxx777)

### Added

- Added `AccessoryPosition` class.
[#989](https://github.com/MessageKit/MessageKit/pull/989) by [@subdiox](https://github.com/subdiox)

- Added `incomingAccessoryViewPosition` and `outgoingAccessoryViewPosition` variables to `MessageSizeCalculator` class.
[#989](https://github.com/MessageKit/MessageKit/pull/989) by [@subdiox](https://github.com/subdiox)

- Added `setMessageIncomingAccessoryViewPosition(_:)` and `setMessageOutgoingAccessoryViewPosition(_:)` functions to `MessagesCollectionViewFlowLayout` class.
[#989](https://github.com/MessageKit/MessageKit/pull/989) by [@subdiox](https://github.com/subdiox)

- **Breaking Change** Added `avatarLeadingTrailingPadding` as a property of `CellSizeCalculator` and `MessagesCollectionViewLayoutAttributes` to inset the `AvatarView` layout
[#944](https://github.com/MessageKit/MessageKit/pull/944) by [@nathantannar4](https://github.com/nathantannar4)

- **Breaking Change** Added `didTapBackground(in:)` function to `MessageCellDelegate` protocol.
[#922](https://github.com/MessageKit/MessageKit/pull/922) by [@kpennacchia](https://github.com/kpennacchia)

- **Breaking Change** Added `didTapCellBottomLabel(in:)` function to `MessageCellDelegate` protocol.
[#920](https://github.com/MessageKit/MessageKit/pull/920) by [@maxxx777](https://github.com/maxxx777)

Expand Down Expand Up @@ -42,6 +65,11 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa

## [2.0.0](https://github.com/MessageKit/MessageKit/releases/tag/2.0.0)

### Added

- **Breaking Change** Added new methods to simplify using of custom messages: `customCellSizeCalculator(for:at:in:)` for `MessagesLayoutDelegate` and `customCell(for:at:in:)` for `MessagesDataSource`.
[#879](https://github.com/MessageKit/MessageKit/pull/879) by [@realbonus](https://github.com/RealBonus)

### Changed

- Change acl of `handleGesture(touchLocation:)` in `MessageLabel` from internal to open.
Expand Down Expand Up @@ -73,9 +101,6 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa
- Added `additionalBottomInset` property that allows to adjust the bottom content inset automatically set on the messages collection view by the view controller.
[#787](https://github.com/MessageKit/MessageKit/pull/787) by [@andreyvit](https://github.com/andreyvit)

- Added new methods to simplify using of custom messages: `customCellSizeCalculator(for:at:in:)` for `MessagesLayoutDelegate` and `customCell(for:at:in:)` for `MessagesDataSource`.
[#879](https://github.com/MessageKit/MessageKit/pull/879) by [@realbonus](https://github.com/RealBonus)

### Fixed

- **Breaking Change** Fixed typo of `scrollsToBottomOnKeybordBeginsEditing` to `scrollsToBottomOnKeyboardBeginsEditing`.
Expand Down
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "MessageKit/MessageInputBar" "0.4.0"
github "nathantannar4/InputBarAccessoryView" "4.2.1"
6 changes: 3 additions & 3 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github "MessageKit/MessageInputBar" "0.4.0"
github "Quick/Nimble" "v7.3.1"
github "Quick/Quick" "v1.3.2"
github "Quick/Nimble" "v7.3.4"
github "Quick/Quick" "v1.3.4"
github "nathantannar4/InputBarAccessoryView" "4.2.1"
Binary file added Example/.Podfile.un~
Binary file not shown.
36 changes: 34 additions & 2 deletions Example/ChatExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
383B9EB32172A1C4008AB91A /* MockUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = 383B9EB22172A1C4008AB91A /* MockUser.swift */; };
385C2922211FF32E0010B4BA /* CustomCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 385C2920211FF32E0010B4BA /* CustomCell.swift */; };
385C2923211FF32E0010B4BA /* TableViewCells.swift in Sources */ = {isa = PBXBuildFile; fileRef = 385C2921211FF32E0010B4BA /* TableViewCells.swift */; };
385C2927211FF33B0010B4BA /* MockSocket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 385C2925211FF33A0010B4BA /* MockSocket.swift */; };
Expand All @@ -24,6 +25,9 @@
385C2946211FF38F0010B4BA /* LaunchViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 385C293F211FF38F0010B4BA /* LaunchViewController.swift */; };
385C2947211FF38F0010B4BA /* BasicExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 385C2940211FF38F0010B4BA /* BasicExampleViewController.swift */; };
385C2948211FF38F0010B4BA /* ChatViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 385C2941211FF38F0010B4BA /* ChatViewController.swift */; };
50739F9621C5090A008CA369 /* BasicAudioController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50739F9521C5090A008CA369 /* BasicAudioController.swift */; };
5074EF4E2163555900D82952 /* sound2.m4a in Resources */ = {isa = PBXBuildFile; fileRef = 5074EF4C2163555900D82952 /* sound2.m4a */; };
5074EF4F2163555900D82952 /* sound1.m4a in Resources */ = {isa = PBXBuildFile; fileRef = 5074EF4D2163555900D82952 /* sound1.m4a */; };
882B5E811CF7D53600B6E160 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 882B5E781CF7D53600B6E160 /* AppDelegate.swift */; };
882B5E821CF7D53600B6E160 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 882B5E791CF7D53600B6E160 /* Assets.xcassets */; };
882B5E831CF7D53600B6E160 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 882B5E7A1CF7D53600B6E160 /* LaunchScreen.storyboard */; };
Expand Down Expand Up @@ -67,6 +71,7 @@
/* Begin PBXFileReference section */
0364943D08CDBE656E6F6DF8 /* Pods-ChatExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ChatExampleTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ChatExampleTests/Pods-ChatExampleTests.debug.xcconfig"; sourceTree = "<group>"; };
2AC6E3F5C11E39F57598DBE6 /* Pods_ChatExampleUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ChatExampleUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
383B9EB22172A1C4008AB91A /* MockUser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockUser.swift; sourceTree = "<group>"; };
385C2920211FF32E0010B4BA /* CustomCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomCell.swift; sourceTree = "<group>"; };
385C2921211FF32E0010B4BA /* TableViewCells.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableViewCells.swift; sourceTree = "<group>"; };
385C2925211FF33A0010B4BA /* MockSocket.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MockSocket.swift; sourceTree = "<group>"; };
Expand All @@ -85,6 +90,9 @@
385C2940211FF38F0010B4BA /* BasicExampleViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BasicExampleViewController.swift; sourceTree = "<group>"; };
385C2941211FF38F0010B4BA /* ChatViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChatViewController.swift; sourceTree = "<group>"; };
3B316705C4717C3B4C916D62 /* Pods_ChatExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ChatExample.framework; sourceTree = BUILT_PRODUCTS_DIR; };
50739F9521C5090A008CA369 /* BasicAudioController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BasicAudioController.swift; sourceTree = "<group>"; };
5074EF4C2163555900D82952 /* sound2.m4a */ = {isa = PBXFileReference; lastKnownFileType = file; path = sound2.m4a; sourceTree = "<group>"; };
5074EF4D2163555900D82952 /* sound1.m4a */ = {isa = PBXFileReference; lastKnownFileType = file; path = sound1.m4a; sourceTree = "<group>"; };
56F0AC85B38034EC92CCBC7D /* Pods_ChatExampleTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ChatExampleTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
882B5E331CF7D4B900B6E160 /* ChatExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ChatExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
882B5E491CF7D4B900B6E160 /* ChatExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ChatExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -146,6 +154,7 @@
children = (
385C2926211FF33B0010B4BA /* MockMessage.swift */,
385C2925211FF33A0010B4BA /* MockSocket.swift */,
383B9EB22172A1C4008AB91A /* MockUser.swift */,
);
path = Models;
sourceTree = "<group>";
Expand Down Expand Up @@ -190,6 +199,23 @@
path = "View Controllers";
sourceTree = "<group>";
};
50739F9421C5075D008CA369 /* AudioController */ = {
isa = PBXGroup;
children = (
50739F9521C5090A008CA369 /* BasicAudioController.swift */,
);
path = AudioController;
sourceTree = "<group>";
};
5074EF4B2163554900D82952 /* Sounds */ = {
isa = PBXGroup;
children = (
5074EF4D2163555900D82952 /* sound1.m4a */,
5074EF4C2163555900D82952 /* sound2.m4a */,
);
path = Sounds;
sourceTree = "<group>";
};
7523553CCB4B87460CE4DED6 /* Pods */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -229,11 +255,13 @@
isa = PBXGroup;
children = (
882B5E781CF7D53600B6E160 /* AppDelegate.swift */,
50739F9421C5075D008CA369 /* AudioController */,
385C2949211FF3930010B4BA /* View Controllers */,
385C293A211FF3800010B4BA /* Data Generation */,
385C292E211FF3540010B4BA /* Layout */,
385C2929211FF33D0010B4BA /* Models */,
385C2924211FF3310010B4BA /* Views */,
5074EF4B2163554900D82952 /* Sounds */,
882B5E791CF7D53600B6E160 /* Assets.xcassets */,
882B5E7F1CF7D53600B6E160 /* Info.plist */,
882B5E7A1CF7D53600B6E160 /* LaunchScreen.storyboard */,
Expand Down Expand Up @@ -383,7 +411,9 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5074EF4F2163555900D82952 /* sound1.m4a in Resources */,
882B5E821CF7D53600B6E160 /* Assets.xcassets in Resources */,
5074EF4E2163555900D82952 /* sound2.m4a in Resources */,
882B5E831CF7D53600B6E160 /* LaunchScreen.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -448,12 +478,12 @@
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-ChatExample/Pods-ChatExample-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/MessageInputBar/MessageInputBar.framework",
"${BUILT_PRODUCTS_DIR}/InputBarAccessoryView/InputBarAccessoryView.framework",
"${BUILT_PRODUCTS_DIR}/MessageKit/MessageKit.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MessageInputBar.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/InputBarAccessoryView.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MessageKit.framework",
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -505,13 +535,15 @@
385C2928211FF33B0010B4BA /* MockMessage.swift in Sources */,
385C2923211FF32E0010B4BA /* TableViewCells.swift in Sources */,
385C2942211FF38F0010B4BA /* AdvancedExampleViewController.swift in Sources */,
50739F9621C5090A008CA369 /* BasicAudioController.swift in Sources */,
385C2937211FF37B0010B4BA /* SampleData.swift in Sources */,
385C2931211FF3630010B4BA /* UIColor+Extensions.swift in Sources */,
385C2932211FF3630010B4BA /* UIViewController+Extensions.swift in Sources */,
385C292B211FF3450010B4BA /* Settings+UserDefaults.swift in Sources */,
385C2945211FF38F0010B4BA /* NavigationController.swift in Sources */,
385C2948211FF38F0010B4BA /* ChatViewController.swift in Sources */,
385C2944211FF38F0010B4BA /* MessageContainerController.swift in Sources */,
383B9EB32172A1C4008AB91A /* MockUser.swift in Sources */,
385C2943211FF38F0010B4BA /* SettingsViewController.swift in Sources */,
385C2927211FF33B0010B4BA /* MockSocket.swift in Sources */,
385C2947211FF38F0010B4BA /* BasicExampleViewController.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1000"
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1000"
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
1 change: 0 additions & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ platform :ios, '9.0'
target 'ChatExample' do
use_frameworks!
pod 'MessageKit', :path => '../'
pod 'MessageInputBar', :git => 'https://github.com/MessageKit/MessageInputBar.git', :branch => 'master'

target 'ChatExampleTests' do
inherit! :search_paths
Expand Down
29 changes: 11 additions & 18 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
PODS:
- MessageInputBar (0.4.1):
- MessageInputBar/Core (= 0.4.1)
- MessageInputBar/Core (0.4.1)
- MessageKit (1.0.0):
- MessageInputBar/Core
- InputBarAccessoryView (4.2.1)
- MessageKit (3.0.0):
- InputBarAccessoryView

DEPENDENCIES:
- MessageInputBar (from `https://github.com/MessageKit/MessageInputBar.git`, branch `master`)
- MessageKit (from `../`)

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- InputBarAccessoryView

EXTERNAL SOURCES:
MessageInputBar:
:branch: master
:git: https://github.com/MessageKit/MessageInputBar.git
MessageKit:
:path: "../"

CHECKOUT OPTIONS:
MessageInputBar:
:commit: faebe27f2dd8f39ea145e75b7296ef48133c099a
:git: https://github.com/MessageKit/MessageInputBar.git

SPEC CHECKSUMS:
MessageInputBar: e81c7535347f1f7b923de7080409a535a004b6e4
MessageKit: 2bbd13dd6a7c06f42f2d13ed8871d1fe5383b477
InputBarAccessoryView: 37175becdced159cd9ea335f47ae001b1e112909
MessageKit: f291e31fbca3020e90f0e0507a8f087304ecd005

PODFILE CHECKSUM: 04c1a805e1997e83bacab1a34787e71e9fe4432b
PODFILE CHECKSUM: cecdb7bc8129cf99f66de9f68eea3256fec30c3d

COCOAPODS: 1.5.3
COCOAPODS: 1.6.0
16 changes: 16 additions & 0 deletions Example/Podfile~
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
platform :ios, '9.0'

target 'ChatExample' do
use_frameworks!
pod 'MessageKit', :path => '../'
pod 'MessageInputBar', :git => 'https://github.com/MessageKit/MessageInputBar.git', :branch => 'master'

target 'ChatExampleTests' do
inherit! :search_paths
end

target 'ChatExampleUITests' do
inherit! :search_paths
end

end
Loading

0 comments on commit 7555e0a

Please sign in to comment.