Skip to content

Commit

Permalink
Releasing version 6.0.0-beta.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTelezhkin committed Sep 27, 2017
1 parent bef3879 commit f16af91
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0
4.0
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

# Next

## [6.0.0-beta.2](https://github.com/DenHeadless/DTTableViewManager/releases/tag/6.0.0-beta.2)

* Build with Xcode 9.0 final release.
* Fixed partial-availability warnings.

## [6.0.0-beta.1](https://github.com/DenHeadless/DTTableViewManager/releases/tag/6.0.0-beta.1)

**This is a major release with some breaking changes, please read [DTTableViewManager 6.0 Migration Guide](https://github.com/DenHeadless/DTTableViewManager/blob/master/Documentation/DTTableViewManager%206.0%20Migration%20Guide.md)**
Expand Down
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "DenHeadless/DTModelStorage" "6.0.0-beta.1"
github "DenHeadless/DTModelStorage" "6.0.0-beta.2"
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "DenHeadless/DTModelStorage" "6.0.0-beta.1"
github "DenHeadless/DTModelStorage" "6.0.0-beta.2"
github "Quick/Nimble" "v7.0.1"
4 changes: 2 additions & 2 deletions DTTableViewManager.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'DTTableViewManager'
s.version = "6.0.0-beta.1"
s.version = "6.0.0-beta.2"
s.license = 'MIT'
s.summary = 'Protocol-oriented UITableView management, powered by generics and associated types.'
s.homepage = 'https://github.com/DenHeadless/DTTableViewManager'
Expand All @@ -12,5 +12,5 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'
s.frameworks = 'UIKit', 'Foundation'
s.dependency 'DTModelStorage' , '~> 6.0.0-beta.1'
s.dependency 'DTModelStorage' , '~> 6.0.0-beta.2'
end
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.5)
activesupport (4.2.9)
activesupport (4.2.10)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
Expand Down Expand Up @@ -48,7 +48,7 @@ GEM
colored2 (3.1.2)
commander-fastlane (4.4.5)
highline (~> 1.7.2)
declarative (0.0.9)
declarative (0.0.10)
declarative-option (0.1.0)
domain_name (0.5.20170404)
unf (>= 0.0.5, < 1.0.0)
Expand All @@ -63,7 +63,7 @@ GEM
faraday_middleware (0.12.2)
faraday (>= 0.7.4, < 1.0)
fastimage (2.1.0)
fastlane (2.55.0)
fastlane (2.59.0)
CFPropertyList (>= 2.3, < 3.0.0)
addressable (>= 2.3, < 3.0.0)
babosa (>= 1.0.2, < 2.0.0)
Expand Down Expand Up @@ -96,11 +96,11 @@ GEM
xcodeproj (>= 1.5.0, < 2.0.0)
xcpretty (>= 0.2.4, < 1.0.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-versioning (0.2.7)
fastlane-plugin-versioning (0.2.8)
fourflusher (2.0.1)
fuzzy_match (2.0.4)
gh_inspector (1.0.3)
google-api-client (0.13.5)
google-api-client (0.13.6)
addressable (~> 2.5, >= 2.5.1)
googleauth (~> 0.5)
httpclient (>= 2.8.1, < 3.0)
Expand Down Expand Up @@ -175,7 +175,7 @@ GEM
unf_ext (0.0.7.4)
unicode-display_width (1.3.0)
word_wrap (1.0.0)
xcodeproj (1.5.1)
xcodeproj (1.5.2)
CFPropertyList (~> 2.3.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
Expand Down
7 changes: 7 additions & 0 deletions Source/DTTableViewDragDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import DTModelStorage

/// Object, that implements `UITableViewDragDelegate` methods for `DTTableViewManager`.
open class DTTableViewDragDelegate: DTTableViewDelegateWrapper, UITableViewDragDelegate {
@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, itemsForBeginning session: UIDragSession,
at indexPath: IndexPath) -> [UIDragItem]
{
Expand All @@ -45,6 +46,7 @@ open class DTTableViewDragDelegate: DTTableViewDelegateWrapper, UITableViewDragD
return (delegate as? UITableViewDragDelegate)?.tableView(tableView, itemsForBeginning: session, at:indexPath) ?? []
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, itemsForAddingTo session: UIDragSession,
at indexPath: IndexPath,
point: CGPoint) -> [UIDragItem]
Expand All @@ -59,30 +61,35 @@ open class DTTableViewDragDelegate: DTTableViewDelegateWrapper, UITableViewDragD
return (delegate as? UITableViewDragDelegate)?.tableView?(tableView, itemsForAddingTo: session, at: indexPath, point: point) ?? []
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, dragPreviewParametersForRowAt indexPath: IndexPath) -> UIDragPreviewParameters? {
if let reaction = cellReaction(.dragPreviewParametersForRowAtIndexPath, location: indexPath) {
return performNillableCellReaction(reaction, location: indexPath, provideCell: true) as? UIDragPreviewParameters
}
return (delegate as? UITableViewDragDelegate)?.tableView?(tableView, dragPreviewParametersForRowAt: indexPath)
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, dragSessionWillBegin session: UIDragSession) {
_ = performNonCellReaction(.dragSessionWillBegin, argument: session)
(delegate as? UITableViewDragDelegate)?.tableView?(tableView, dragSessionWillBegin: session)
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, dragSessionDidEnd session: UIDragSession) {
_ = performNonCellReaction(.dragSessionDidEnd, argument: session)
(delegate as? UITableViewDragDelegate)?.tableView?(tableView, dragSessionDidEnd: session)
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, dragSessionAllowsMoveOperation session: UIDragSession) -> Bool {
if let allows = performNonCellReaction(.dragSessionAllowsMoveOperation, argument: session) as? Bool {
return allows
}
return (delegate as? UITableViewDragDelegate)?.tableView?(tableView, dragSessionAllowsMoveOperation: session) ?? true
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, dragSessionIsRestrictedToDraggingApplication session: UIDragSession) -> Bool {
if let allows = performNonCellReaction(.dragSessionIsRestrictedToDraggingApplication, argument: session) as? Bool {
return allows
Expand Down
7 changes: 7 additions & 0 deletions Source/DTTableViewDropDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import UIKit

/// Object, that implements `UITableViewDropDelegate` for `DTTableViewManager`.
open class DTTableViewDropDelegate: DTTableViewDelegateWrapper, UITableViewDropDelegate {
@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, performDropWith coordinator: UITableViewDropCoordinator) {
_ = performNonCellReaction(.performDropWithCoordinator, argument: coordinator)
(delegate as? UITableViewDropDelegate)?.tableView(tableView, performDropWith: coordinator)
Expand All @@ -40,18 +41,21 @@ open class DTTableViewDropDelegate: DTTableViewDelegateWrapper, UITableViewDropD
tableView?.dropDelegate = self
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, canHandle session: UIDropSession) -> Bool {
if let canHandle = performNonCellReaction(.canHandleDropSession, argument: session) as? Bool {
return canHandle
}
return (delegate as? UITableViewDropDelegate)?.tableView?(tableView, canHandle: session) ?? true
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, dropSessionDidEnter session: UIDropSession) {
_ = performNonCellReaction(.dropSessionDidEnter, argument: session)
(delegate as? UITableViewDropDelegate)?.tableView?(tableView, dropSessionDidEnter: session)
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, dropSessionDidUpdate session: UIDropSession, withDestinationIndexPath destinationIndexPath: IndexPath?) -> UITableViewDropProposal {
if let proposal = performNonCellReaction(.dropSessionDidUpdateWithDestinationIndexPath,
argumentOne: session,
Expand All @@ -63,16 +67,19 @@ open class DTTableViewDropDelegate: DTTableViewDelegateWrapper, UITableViewDropD
withDestinationIndexPath: destinationIndexPath) ?? UITableViewDropProposal(operation: .cancel)
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, dropSessionDidExit session: UIDropSession) {
_ = performNonCellReaction(.dropSessionDidExit, argument: session)
(delegate as? UITableViewDropDelegate)?.tableView?(tableView, dropSessionDidExit: session)
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, dropSessionDidEnd session: UIDropSession) {
_ = performNonCellReaction(.dropSessionDidEnd, argument: session)
(delegate as? UITableViewDropDelegate)?.tableView?(tableView, dropSessionDidEnd: session)
}

@available(iOS 11.0, *)
open func tableView(_ tableView: UITableView, dropPreviewParametersForRowAt indexPath: IndexPath) -> UIDragPreviewParameters? {
if let reaction = tableViewEventReactions.filter({ $0.methodSignature == EventMethodSignature.dropPreviewParametersForRowAtIndexPath.rawValue }).first {
return reaction.performWithArguments((indexPath,0,0)) as? UIDragPreviewParameters
Expand Down
2 changes: 1 addition & 1 deletion Supporting files/Framework.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>6.0.0-beta.1</string>
<string>6.0.0-beta.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
3 changes: 3 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ lane :release do |params|
sh "git tag #{version} -m '#{message}'"
sh "git push --follow-tags"

puts "Updating Specs repo"
sh "bundle exec pod repo update"

puts "Pushing to CocoaPods trunk."
sh "bundle exec pod trunk push DTTableViewManager.podspec --allow-warnings"

Expand Down

0 comments on commit f16af91

Please sign in to comment.