Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Migrated to Swift 3 and ASDK 1.9.90 #44

Merged
merged 1 commit into from
Sep 14, 2016
Merged

Conversation

DavidSchechter
Copy link
Contributor

@@ -6,7 +6,7 @@ target 'nMessenger' do
use_frameworks!

# Pods for nMessenger
pod 'AsyncDisplayKit', '1.9.80'
pod 'AsyncDisplayKit'

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we keep this at 1.9.90? I want to avoid issues like the 1.9.81 we had earlier.

@@ -133,5 +133,5 @@ NMessenger is a fast, lightweight messenger component built on AsyncDisplaykit a
s.requires_arc = true

# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
s.dependency "AsyncDisplayKit", "1.9.80"
s.dependency "AsyncDisplayKit"
end
Copy link
Contributor

Choose a reason for hiding this comment

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

same

fileprivate func waitForMessageLock(_ completion: @escaping ()->Void) {
//DispatchQueue.global(priority: DispatchQueue.GlobalQueuePriority.default).async {

DispatchQueue.global(qos: DispatchQoS.QoSClass.default).async {
Copy link
Contributor

@atainter atainter Sep 14, 2016

Choose a reason for hiding this comment

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

This can also be DispatchQueue.global().async {}. (qos' default value is ´DispatchQoS.QoSClass.default`) I'd prefer this since it is a bit cleaner.

messengerNode.frame = self.bounds
messengerNode.view.separatorStyle = UITableViewCellSeparatorStyle.None
messengerNode?.frame = self.bounds
messengerNode?.view.separatorStyle = UITableViewCellSeparatorStyle.none
Copy link
Contributor

@atainter atainter Sep 14, 2016

Choose a reason for hiding this comment

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

Why is messengerNode an optional now? I'd prefer to fix this since it ripples down to so many functions.

}
}

//run this on a background thread
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {
DispatchQueue.global(qos: DispatchQoS.QoSClass.default).async {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same

Changes according to @atainter comments

Removed cocoapod junk and edited readme
@atainter
Copy link
Contributor

LGTM

@atainter atainter merged commit 8c41691 into eBay:master Sep 14, 2016
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.

2 participants