Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release/4.2.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
vmartinelli committed Oct 6, 2016
2 parents 4b19eb0 + 971a82b commit 58c619c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 33 deletions.
2 changes: 1 addition & 1 deletion AlecrimCoreData.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "AlecrimCoreData"
s.version = "4.2.4"
s.version = "4.2.5"
s.summary = "A powerful and simple Core Data wrapper framework written in Swift."
s.homepage = "https://github.com/Alecrim/AlecrimCoreData"

Expand Down
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
![AlecrimCoreData](https://raw.githubusercontent.com/Alecrim/AlecrimCoreData/master/AlecrimCoreData.png)

[![Language: Swift](https://img.shields.io/badge/lang-Swift-orange.svg?style=flat)](https://developer.apple.com/swift/)
[![Language: Swift](https://img.shields.io/badge/lang-Swift 2.3-orange.svg?style=flat)](https://developer.apple.com/swift/)
[![Platform](https://img.shields.io/cocoapods/p/AlecrimCoreData.svg?style=flat)](http://cocoadocs.org/docsets/AlecrimCoreData)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://raw.githubusercontent.com/Alecrim/AlecrimCoreData/develop/LICENSE)
[![CocoaPods](https://img.shields.io/cocoapods/v/AlecrimCoreData.svg?style=flat)](http://cocoapods.org)
[![Forks](https://img.shields.io/github/forks/Alecrim/AlecrimCoreData.svg?style=flat)](https://github.com/Alecrim/AlecrimCoreData/network)
[![Stars](https://img.shields.io/github/stars/Alecrim/AlecrimCoreData.svg?style=flat)](https://github.com/Alecrim/AlecrimCoreData/stargazers)
[![Apps](https://img.shields.io/cocoapods/at/AlecrimCoreData.svg?style=flat)](http://cocoadocs.org/docsets/AlecrimCoreData)
[![Twitter](https://img.shields.io/badge/twitter-@vmartinelli-blue.svg?style=flat)](https://twitter.com/vmartinelli)

A powerful and simple Core Data wrapper framework written in Swift.

Expand Down Expand Up @@ -297,7 +298,7 @@ Since **AlecrimCoreData** version 4 the `DataContext` is an `NSManagedObjectCont

- Swift 2.3
- Xcode 8
- OS X 10.9 / iOS 8.0 / watchOS 2.0
- OS X 10.10 / iOS 8.0 / tvOS 9.0 / watchOS 2.0

### Installation

Expand All @@ -314,11 +315,12 @@ $ gem install cocoapods
To integrate AlecrimCoreData into your Xcode project using CocoaPods, specify it in your `Podfile`:

```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
platform :ios, '9.0'
use_frameworks!

pod 'AlecrimCoreData'
target '<Your Target Name>' do
pod 'AlecrimCoreData', '4.2.5'
end
```

Then, run the following command:
Expand Down
4 changes: 2 additions & 2 deletions Source/AlecrimCoreData.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 581;
CURRENT_PROJECT_VERSION = 583;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -439,7 +439,7 @@
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 581;
CURRENT_PROJECT_VERSION = 583;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ extension FetchRequestController {
}
.willChangeContent {
if !reloadData {
insertedSectionIndexes.removeAllIndexes()
deletedSectionIndexes.removeAllIndexes()
updatedSectionIndexes.removeAllIndexes()

insertedItemIndexPaths.removeAll(keepCapacity: false)
deletedItemIndexPaths.removeAll(keepCapacity: false)
updatedItemIndexPaths.removeAll(keepCapacity: false)
reset()
}
}
.didInsertSection { sectionInfo, sectionIndex in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ extension FetchRequestController {
}
.willChangeContent {
if !reloadData {
insertedSectionIndexes.removeAllIndexes()
deletedSectionIndexes.removeAllIndexes()
updatedSectionIndexes.removeAllIndexes()

insertedItemIndexPaths.removeAll(keepCapacity: false)
deletedItemIndexPaths.removeAll(keepCapacity: false)
updatedItemIndexPaths.removeAll(keepCapacity: false)
reset()
}
}
.didInsertSection { sectionInfo, sectionIndex in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ extension FetchRequestController {
}
.willChangeContent {
if !reloadData {
//
reset()

//
tableView.beginUpdates()
}
}
.didInsertSection { sectionInfo, sectionIndex in
Expand Down Expand Up @@ -112,18 +108,22 @@ extension FetchRequestController {
}
}
.didChangeContent { [weak tableView] in
//
defer { reset() }


//
guard let tableView = tableView else {
reset()
return
}

//
if reloadData {
tableView.reloadData()
reset()
}
else {
tableView.beginUpdates()

if deletedSectionIndexes.count > 0 {
tableView.deleteSections(deletedSectionIndexes, withRowAnimation: rowAnimation)
}
Expand Down Expand Up @@ -157,8 +157,6 @@ extension FetchRequestController {
}
}
}

reset()
}
}

Expand Down
2 changes: 1 addition & 1 deletion Source/AlecrimCoreData/Info.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>4.2.4</string>
<string>4.2.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit 58c619c

Please sign in to comment.