Skip to content

Commit

Permalink
drop XCode 6.2 and lower, adopt Swift 1.2, use DTModelStorage 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTelezhkin committed Apr 10, 2015
1 parent ea23d17 commit f6210aa
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 31 deletions.
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 = '3.0.5'
s.version = '3.1.0'
s.license = 'MIT'
s.summary = 'The most simple and robust way to manage UITableView.'
s.homepage = 'https://github.com/DenHeadless/DTTableViewManager'
Expand All @@ -12,5 +12,5 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '7.0'
s.ios.frameworks = 'UIKit', 'Foundation'
s.platform = :ios,'7.0'
s.dependency 'DTModelStorage' , '~> 1.1.2'
s.dependency 'DTModelStorage' , '~> 1.2.0'
end
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@

#import <DTModelStorage/DTMemoryStorage.h>

#if __has_feature(nullability) // Xcode 6.3+
#pragma clang assume_nonnull begin
#else
#define nullable
#define __nullable
#endif

/**
This category is used to adapt DTMemoryStorage for table view models. It adds UITableView specific methods like moving items between indexPaths and moving sections in UITableView.
Expand Down Expand Up @@ -77,6 +72,4 @@

@end

#if __has_feature(nullability)
#pragma clang assume_nonnull end
#endif
11 changes: 1 addition & 10 deletions DTTableViewManager/DTTableViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,7 @@
#import "DTMemoryStorage_DTTableViewManagerAdditions.h"
#import "DTTableViewControllerEvents.h"

#if __has_feature(nullability) // Xcode 6.3+
#pragma clang assume_nonnull begin
#else
#define nullable
#define __nullable
#define __null_unspecified
#define null_resettable
#endif

typedef NS_ENUM(NSUInteger,DTTableViewSectionStyle)
{
Expand Down Expand Up @@ -72,7 +65,7 @@ typedef NS_ENUM(NSUInteger,DTTableViewSectionStyle)
@return DTMemoryStorage instance.
*/
- (__null_unspecified DTMemoryStorage *)memoryStorage;
- (null_unspecified DTMemoryStorage *)memoryStorage;

/**
Searching data storage object. It will be created automatically, responding to changes in UISearchBar, or after method filterTableItemsForSearchString:inScope: is called.
Expand Down Expand Up @@ -249,6 +242,4 @@ typedef NS_ENUM(NSUInteger,DTTableViewSectionStyle)

@end

#if __has_feature(nullability)
#pragma clang assume_nonnull end
#endif
20 changes: 10 additions & 10 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
PODS:
- Cedar (0.11.1)
- DTModelStorage (HEAD based on 1.1.2):
- DTModelStorage/All (= HEAD based on 1.1.2)
- DTModelStorage/All (HEAD based on 1.1.2):
- DTModelStorage (HEAD based on 1.2.0):
- DTModelStorage/All (= HEAD based on 1.2.0)
- DTModelStorage/All (HEAD based on 1.2.0):
- DTModelStorage/Core
- DTModelStorage/CoreDataStorage
- DTModelStorage/MemoryStorage
- DTModelStorage/Core (HEAD based on 1.1.2)
- DTModelStorage/CoreDataStorage (HEAD based on 1.1.2):
- DTModelStorage/Core (HEAD based on 1.2.0)
- DTModelStorage/CoreDataStorage (HEAD based on 1.2.0):
- DTModelStorage/Core
- DTModelStorage/MemoryStorage (HEAD based on 1.1.2):
- DTModelStorage/MemoryStorage (HEAD based on 1.2.0):
- DTModelStorage/Core
- OCMock (2.2.4)

Expand All @@ -19,8 +19,8 @@ DEPENDENCIES:
- OCMock (~> 2.2)

SPEC CHECKSUMS:
Cedar: 16fce41646511e08a488bac8f196f97f54184ed7
DTModelStorage: 3542ba5bee1d3654924abeccd8cb8733c5e278e7
OCMock: 6db79185520e24f9f299548f2b8b07e41d881bd5
Cedar: 95007bec7e0339ea6c21b1a4858a45c25cbe8f09
DTModelStorage: cf3faf432601537fbaed823cc9cc9b2dd912a19e
OCMock: a6a7dc0e3997fb9f35d99f72528698ebf60d64f2

COCOAPODS: 0.36.0
COCOAPODS: 0.36.3
2 changes: 1 addition & 1 deletion Example/TableViewFactory/Cells/NumberCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class NumberCell: UITableViewCell, DTModelTransfer {
@IBOutlet weak var label: UILabel!
func updateWithModel(model: AnyObject)
{
let number = model as Int
let number = model as! Int
label.text = number.description
}
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,15 @@ DTTableViewManager has a built-in search system, that is easy to use and flexibl
## Requirements
* XCode 6.3 and higher
* iOS 7.x, 8.x
* ARC
## Installation
Simplest option is to use [CocoaPods](http://www.cocoapods.org):
pod 'DTTableViewManager', '~> 3.0.0'
pod 'DTTableViewManager', '~> 3.1.0'
## Documentation
Expand Down

0 comments on commit f6210aa

Please sign in to comment.