Skip to content
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.

Swift 2.3 #159

Merged
merged 54 commits into from
Oct 11, 2016
Merged

Swift 2.3 #159

merged 54 commits into from
Oct 11, 2016

Conversation

rcedwards
Copy link
Contributor

@rcedwards rcedwards commented Sep 22, 2016

Release Todo List

  • Update documentation
  • Address hound violations
  • Fix carthage validation script

Summary of Changes

  • Moves to Swift 2.3 and Xcode 8
  • Deprecates CoreDataStack and CoreDataModelable
  • Splits unit tests into Deprecated and Current targets
  • Creates new sample project using NSPersistentContainer

Addresses

#152

Copy link
Contributor

@randomstep randomstep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I did not run it locally though.

let _ = try? fm.removeItemAtURL(storeURL.URLByAppendingPathComponent("-shm"))
let _ = try? fm.removeItemAtURL(storeURL.URLByAppendingPathComponent("-wal"))
if let indexURL = storeURL.URLByAppendingPathComponent("-shm") {
let _ = try? fm.removeItemAtURL(indexURL)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can leave the let off of _ = try? ...

@rcedwards rcedwards mentioned this pull request Sep 29, 2016
5 tasks
This makes it easier to add different configuration params to each platform
This is a good starting point for Circle should we decide to go this route
but since its not in use it will be clearer with the config commented out.
This is also not being used at the moment and is not needed
@rcedwards rcedwards changed the title Swift 2.3 WIP Swift 2.3 Oct 3, 2016
Copy link
Contributor

@zwaldowski zwaldowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecation bits are fine. 👍 overall.

@@ -53,5 +51,7 @@ DESC
s.source_files = "Sources"

s.frameworks = "CoreData"
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '2.3',
'SWIFT_INCLUDE_PATHS': '$(PODS_ROOT)/Sources' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SWIFT_INCLUDE_PATHS isn't needed, only was in Deferred.

}
if let walFile = storeURL.URLByAppendingPathComponent("-wal") {
let _ = try? fm.removeItemAtURL(walFile)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's 100% OK to ! the URLs you get back from URLByAppendingPathComponent. They were only made ? for arcane reasons.

@rcedwards rcedwards merged commit e72183c into master Oct 11, 2016
@rcedwards rcedwards deleted the rcedwards/swift_2.3 branch October 12, 2016 15:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants