Merge pull request #1465 from MessageKit/development

Prepare release 3.4.0
This commit is contained in:
Jakub Kašpar
2020-09-16 21:56:31 +02:00
committed by GitHub
14 changed files with 74 additions and 82 deletions
+8
View File
@@ -2,12 +2,20 @@
The changelog for `MessageKit`. Also see the [releases](https://github.com/MessageKit/MessageKit/releases) on GitHub.
## 3.4.0
### Changed
- **Breaking Change** Dropped support for iOS 11, added support for Swift 5.3 SPM and XCode 12 [#1464](https://github.com/MessageKit/MessageKit/pull/1464) by [@kaspik](https://github.com/kaspik)
## 3.3.0
### Fixed
- Fixes missing insets for link preview messages [#1447](https://github.com/MessageKit/MessageKit/pull/1447) by [@bguidolim](https://github.com/bguidolim)
### Added
- Show message time by swiping left over the chat controller. [#1444](https://github.com/MessageKit/MessageKit/pull/1444) by [@amirpirzad](https://github.com/amirpirzad)
## 3.2.0
@@ -405,7 +405,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0730;
LastUpgradeCheck = 1020;
LastUpgradeCheck = 1200;
ORGANIZATIONNAME = MessageKit;
TargetAttributes = {
882B5E321CF7D4B900B6E160 = {
@@ -679,6 +679,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -703,7 +704,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
@@ -737,6 +738,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -755,7 +757,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_VERSION = 5.0;
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
@@ -42,15 +42,6 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "882B5E321CF7D4B900B6E160"
BuildableName = "ChatExample.app"
BlueprintName = "ChatExample"
ReferencedContainer = "container:ChatExample.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
+1 -1
View File
@@ -1,6 +1,6 @@
source 'https://cdn.cocoapods.org/'
platform :ios, '11.0'
platform :ios, '12.0'
target 'ChatExample' do
use_frameworks!
+22 -22
View File
@@ -1,23 +1,23 @@
PODS:
- InputBarAccessoryView (5.1.0):
- InputBarAccessoryView/Core (= 5.1.0)
- InputBarAccessoryView/Core (5.1.0)
- MessageKit (3.2.0):
- InputBarAccessoryView (~> 5.1.0)
- PINCache (3.0.1-beta.8):
- PINCache/Arc-exception-safe (= 3.0.1-beta.8)
- PINCache/Core (= 3.0.1-beta.8)
- PINCache/Arc-exception-safe (3.0.1-beta.8):
- InputBarAccessoryView (5.2.0):
- InputBarAccessoryView/Core (= 5.2.0)
- InputBarAccessoryView/Core (5.2.0)
- MessageKit (3.4.0):
- InputBarAccessoryView (~> 5.2.0)
- PINCache (3.0.1):
- PINCache/Arc-exception-safe (= 3.0.1)
- PINCache/Core (= 3.0.1)
- PINCache/Arc-exception-safe (3.0.1):
- PINCache/Core
- PINCache/Core (3.0.1-beta.8):
- PINOperation (~> 1.1.1)
- PINOperation (1.1.2)
- PINRemoteImage/Core (3.0.0):
- PINCache/Core (3.0.1):
- PINOperation (~> 1.2.0)
- PINOperation (1.2)
- PINRemoteImage/Core (3.0.1):
- PINOperation
- PINRemoteImage/iOS (3.0.0):
- PINRemoteImage/iOS (3.0.1):
- PINRemoteImage/Core
- PINRemoteImage/PINCache (3.0.0):
- PINCache (= 3.0.1-beta.8)
- PINRemoteImage/PINCache (3.0.1):
- PINCache (~> 3.0.1)
- PINRemoteImage/Core
- SwiftLint (0.39.2)
@@ -40,13 +40,13 @@ EXTERNAL SOURCES:
:path: "../"
SPEC CHECKSUMS:
InputBarAccessoryView: 19953f486a23e846e9487099f92bbe3456e46ce5
MessageKit: ce553a92153b597540ea4688b654680542c4af6a
PINCache: 534fd41d358d828dfdf227a0d327f3673a65e20b
PINOperation: 24b774353ca248fcf87d67b2d61eef42087c125a
PINRemoteImage: e2b89e19fb6e77ffc099f9d9f3b3fe1745e3f9f9
InputBarAccessoryView: ac1bc2a11508fc2490c2322beb1d4c9f05c8e634
MessageKit: d204dc36338c45f637cb8b885c4bed591c74a189
PINCache: ee3c4abadd09970a61cdda0cfc345e69a3d75b26
PINOperation: 3a967a927e7867e61976c6cc23e5770416449fbc
PINRemoteImage: 3b7cedb118c2d357f87e9eabc7c81ba0202cb236
SwiftLint: 22ccbbe3b8008684be5955693bab135e0ed6a447
PODFILE CHECKSUM: cf0af8a506e2b58d4d51b99e165b58c56c26d619
PODFILE CHECKSUM: d87de19c82a33df79ca0eedc112ab70c443b2622
COCOAPODS: 1.9.3
+4 -4
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'MessageKit'
s.version = '3.3.0'
s.version = '3.4.0'
s.license = { :type => "MIT", :file => "LICENSE.md" }
s.summary = 'An elegant messages UI library for iOS.'
@@ -11,11 +11,11 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/MessageKit/MessageKit.git', :tag => s.version }
s.source_files = 'Sources/**/*.swift'
s.swift_version = '5.0'
s.swift_version = '5.3'
s.ios.deployment_target = '11.0'
s.ios.deployment_target = '12.0'
s.ios.resources = ['Sources/Assets.xcassets']
s.dependency 'InputBarAccessoryView', '~> 5.1.0'
s.dependency 'InputBarAccessoryView', '~> 5.2.0'
end
+7 -5
View File
@@ -572,7 +572,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0730;
LastUpgradeCheck = 1020;
LastUpgradeCheck = 1200;
ORGANIZATIONNAME = MessageKit;
TargetAttributes = {
88916B211CF0DF2F00469F91 = {
@@ -773,6 +773,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -798,7 +799,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
@@ -834,6 +835,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -853,7 +855,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_VERSION = 5.0;
@@ -881,7 +883,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Sources/Supporting/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
MARKETING_VERSION = 3.3.0;
MARKETING_VERSION = 3.4.0;
PRODUCT_BUNDLE_IDENTIFIER = com.messagekit.MessageKit;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
@@ -907,7 +909,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Sources/Supporting/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
MARKETING_VERSION = 3.3.0;
MARKETING_VERSION = 3.4.0;
PRODUCT_BUNDLE_IDENTIFIER = com.messagekit.MessageKit;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
@@ -26,8 +26,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
@@ -40,17 +40,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "88916B211CF0DF2F00469F91"
BuildableName = "MessageKit.framework"
BlueprintName = "MessageKit"
ReferencedContainer = "container:MessageKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
@@ -71,8 +60,6 @@
ReferencedContainer = "container:MessageKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
@@ -10,8 +10,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
@@ -24,8 +24,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
@@ -37,8 +35,6 @@
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
+16 -13
View File
@@ -18,7 +18,7 @@
<img src="https://cocoapod-badges.herokuapp.com/v/MessageKit/badge.png" alt="CocoaPods">
</a>
<a href="https://developer.apple.com/xcode">
<img src="https://img.shields.io/badge/Xcode-11-blue.svg" alt="Xcode">
<img src="https://img.shields.io/badge/Xcode-12-blue.svg" alt="Xcode">
</a>
<a href="https://opensource.org/licenses/MIT">
<img src="https://img.shields.io/badge/License-MIT-red.svg" alt="MIT">
@@ -48,10 +48,17 @@ See [VISION.md](https://github.com/MessageKit/MessageKit/blob/master/VISION.md)
### [CocoaPods](https://cocoapods.org/) **Recommended**
```ruby
# Swift 5.0
# Swift 5.3
pod 'MessageKit'
```
> For Swift 5.0 use version 3.3.0
```ruby
# Swift 5.0
pod 'MessageKit', '~> 3.3.0'
```
> For Swift 4.2 use version 3.0.0
```ruby
@@ -67,28 +74,24 @@ To integrate MessageKit using Carthage, add the following to your `Cartfile`:
github "MessageKit/MessageKit"
```
### [Swift Package Manager](https://swift.org/package-manager/) **Beta** ⚠️
### [Swift Package Manager](https://swift.org/package-manager/)
Swift 5.3 in Xcode 12 [added support](https://github.com/apple/swift-evolution/blob/master/proposals/0271-package-manager-resources.md) for assets in Swift Packages.
So if you're using Xcode 12, you can [just add](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app) MessageKit package to your project by entering it's repository URL
You can [just add](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app) MessageKit package to your project by entering it's repository URL
```
https://github.com/MessageKit/MessageKit
```
If you're using an older version of Xcode (mainly Xcode 11), it's still possible to use MessageKit as Swift package, but you will be limited to only `custom` cell types as any other cell type will crash your application ❗️
After adding MessageKit's repository URL to your project, point the branch to:
```
spm-5_2
```
Older versions of Swift and XCode don't support MessageKit via SPM.
### [Manual](https://github.com/MessageKit/MessageKit/blob/master/Documentation/MANUAL_INSTALLATION.md)
## Requirements
- **iOS 11** or later
- **Swift 5.0** or later
- **iOS 12** or later
- **Swift 5.3** or later
> For iOS 11 please use version 3.3.0
> For iOS 9 and iOS 10 please use version 3.1.0
@@ -23,6 +23,7 @@
*/
import Foundation
import UIKit
open class LinkPreviewMessageSizeCalculator: TextMessageSizeCalculator {
+1
View File
@@ -23,6 +23,7 @@
*/
import Foundation
import UIKit
public struct LinkPreviewFonts: Equatable {
let titleFont: UIFont
+1
View File
@@ -24,6 +24,7 @@
import Foundation
import CoreGraphics
import UIKit
/// A protocol used to represent the data for a link preview message.
public protocol LinkItem {