-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1251306
commit 74caecf
Showing
14 changed files
with
411 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// VPSocketLogger.h | ||
// VPSocketIO | ||
// | ||
// Created by Vasily Popov on 9/26/17. | ||
// Copyright © 2017 Vasily Popov. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface VPSocketLogger:NSObject | ||
|
||
@property (nonatomic) BOOL log; | ||
|
||
-(void) log:(NSString*)message type:(NSString*)type; | ||
-(void) error:(NSString*)message type:(NSString*)type; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// VPSocketLogger.m | ||
// VPSocketIO | ||
// | ||
// Created by Vasily Popov on 9/26/17. | ||
// Copyright © 2017 Vasily Popov. All rights reserved. | ||
// | ||
|
||
#import "VPSocketLogger.h" | ||
|
||
@implementation VPSocketLogger | ||
|
||
- (instancetype)init | ||
{ | ||
self = [super init]; | ||
if (self) { | ||
self.log = NO; | ||
} | ||
return self; | ||
} | ||
|
||
-(void) log:(NSString*)message type:(NSString*)type | ||
{ | ||
[self printLog:@"LOG" message:message type:type]; | ||
} | ||
-(void) error:(NSString*)message type:(NSString*)type | ||
{ | ||
[self printLog:@"ERROR" message:message type:type]; | ||
} | ||
|
||
-(void) printLog:(NSString*)logType message:(NSString*)message type:(NSString*)type | ||
{ | ||
if(_log) { | ||
NSLog(@"%@ %@: %@", logType, type, message); | ||
} | ||
|
||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>$(DEVELOPMENT_LANGUAGE)</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// VPSocketIO_iOS.h | ||
// VPSocketIO-iOS | ||
// | ||
// Created by Vasily Popov on 9/26/17. | ||
// Copyright © 2017 Vasily Popov. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
//! Project version number for VPSocketIO_iOS. | ||
FOUNDATION_EXPORT double VPSocketIO_iOSVersionNumber; | ||
|
||
//! Project version string for VPSocketIO_iOS. | ||
FOUNDATION_EXPORT const unsigned char VPSocketIO_iOSVersionString[]; | ||
|
||
// In this header, you should import all the public headers of your framework using statements like #import <VPSocketIO_iOS/PublicHeader.h> | ||
|
||
#import <VPSocketIO_iOS/VPSocketIOClient.h> | ||
#import <VPSocketIO_iOS/VPSocketOnAckCallback.h> | ||
#import <VPSocketIO_iOS/VPSocketIOClientProtocol.h> | ||
#import <VPSocketIO_iOS/VPSocketLogger.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "VPSocketIO" | ||
s.module_name = "SocketIO" | ||
s.version = "1.0.0" | ||
s.summary = "Socket.IO-client for iOS and OS X" | ||
s.description = <<-DESC | ||
Socket.IO-client for iOS and OS X. | ||
Supports ws/wss/polling connections and binary. | ||
For socket.io 2.0+ and Objective-C. | ||
DESC | ||
s.license = { :type => 'MIT' } | ||
s.author = { "Vasily Popov" => "vasily.popov.it@gmail.com" } | ||
s.ios.deployment_target = '9.0' | ||
s.osx.deployment_target = '10.10' | ||
s.tvos.deployment_target = '9.0' | ||
s.requires_arc = true | ||
s.source = { | ||
:git => "https://github.com/vascome/VPSocketIO.git", | ||
:tag => "#{s.version}" | ||
} | ||
s.source_files = "Source/*.h", "Source/*.m" | ||
# s.dependency "jetfire", git => "https://github.com/acmacalister/jetfire.git", tag => "0.1.6" | ||
end |
Oops, something went wrong.