Skip to content

Commit

Permalink
Extract functionality into corresponding frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
zats committed Jul 17, 2016
1 parent 7474d4f commit b5d1acb
Show file tree
Hide file tree
Showing 7 changed files with 570 additions and 46 deletions.
7 changes: 1 addition & 6 deletions Mac/NWAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
//

#import "NWAppDelegate.h"
#import "NWHub.h"
#import "NWNotification.h"
#import "NWSecTools.h"
#import "NWLCore.h"
#import "NWPushFeedback.h"

#import <PusherKit/PusherKit.h>

@interface NWAppDelegate () <NWHubDelegate> @end

Expand Down
506 changes: 472 additions & 34 deletions NWPusher.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions PusherKit-OSX/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2016 noodlewerk. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
24 changes: 24 additions & 0 deletions PusherKit-OSX/PusherKit.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// PusherKit-OSX.h
// PusherKit-OSX
//
// Created by Sash Zats on 7/17/16.
// Copyright © 2016 noodlewerk. All rights reserved.
//

#import <Cocoa/Cocoa.h>

//! Project version number for PusherKit-OSX.
FOUNDATION_EXPORT double PusherKit_OSXVersionNumber;

//! Project version string for PusherKit-OSX.
FOUNDATION_EXPORT const unsigned char PusherKit_OSXVersionString[];

#import <PusherKit/NWHub.h>
#import <PusherKit/NWLCore.h>
#import <PusherKit/NWNotification.h>
#import <PusherKit/NWPushFeedback.h>
#import <PusherKit/NWPusher.h>
#import <PusherKit/NWSSLConnection.h>
#import <PusherKit/NWSecTools.h>

24 changes: 24 additions & 0 deletions PusherKit-iOS/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
22 changes: 22 additions & 0 deletions PusherKit-iOS/PusherKit.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// PusherKit-iOS.h
// PusherKit-iOS
//
// Created by Sash Zats on 7/17/16.
// Copyright © 2016 noodlewerk. All rights reserved.
//

#import <UIKit/UIKit.h>

//! Project version number for PusherKit-iOS.
FOUNDATION_EXPORT double PusherKit_iOSVersionNumber;

//! Project version string for PusherKit-iOS.
FOUNDATION_EXPORT const unsigned char PusherKit_iOSVersionString[];

#import <PusherKit/NWHub.h>
#import <PusherKit/NWLCore.h>
#import <PusherKit/NWNotification.h>
#import <PusherKit/NWPusher.h>
#import <PusherKit/NWSSLConnection.h>
#import <PusherKit/NWSecTools.h>
7 changes: 1 addition & 6 deletions Touch/NWAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
//

#import "NWAppDelegate.h"
#import "NWHub.h"
#import "NWPusher.h"
#import "NWNotification.h"
#import "NWLCore.h"
#import "NWSSLConnection.h"
#import "NWSecTools.h"
#import <PusherKit/PusherKit.h>

// TODO: Export your push certificate and key in PKCS12 format to pusher.p12 in the root of the project directory.
static NSString * const pkcs12FileName = @"pusher.p12";
Expand Down

0 comments on commit b5d1acb

Please sign in to comment.