Skip to content

Commit

Permalink
Merge pull request #50 from swiftsocket/tvos
Browse files Browse the repository at this point in the history
tvOS target
  • Loading branch information
danshevluk authored Dec 18, 2016
2 parents 46f5cde + a02c4c3 commit a599a29
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 14 deletions.
30 changes: 30 additions & 0 deletions Sources/Info-tvOS.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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>4.2.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
</array>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Sources/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>1.1</string>
<string>2.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
15 changes: 8 additions & 7 deletions SwiftSocket.podspec
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
Pod::Spec.new do |s|

s.name = "SwiftSocket"
s.version = "2.0"
s.summary = "A cool framework to work with TCP and UDP sockets"
s.name = 'SwiftSocket'
s.version = '2.0'
s.summary = 'A cool framework to work with TCP and UDP sockets'

s.description = <<-DESC
SwiftSocket profieds an easy way to create TCP or UDP clients and servers 💁
DESC

s.homepage = "https://github.com/swiftsocket/SwiftSocket"
s.homepage = 'https://github.com/swiftsocket/SwiftSocket'

s.license = { :type => "BSD" }
s.license = { :type => 'BSD' }

s.author = { "Dan Shevlyuk" => "[email protected]" }
s.social_media_url = "http://twitter.com/danshevluk"
s.author = { 'Dan Shevlyuk' => '[email protected]' }
s.social_media_url = 'http://twitter.com/danshevluk'

s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.7'
s.tvos.deployment_target = '9.0'
s.source = {
:git => 'https://github.com/swiftsocket/SwiftSocket.git',
:tag => s.version
Expand Down
171 changes: 165 additions & 6 deletions SwiftSocket.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@
3723139A1DCF84EC0042DA87 /* Result.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372313981DCF84EC0042DA87 /* Result.swift */; };
3723139B1DCF84EC0042DA87 /* Socket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372313991DCF84EC0042DA87 /* Socket.swift */; };
3723139C1DCF85270042DA87 /* SwiftSocket.h in Headers */ = {isa = PBXBuildFile; fileRef = 3723138D1DCF84CA0042DA87 /* SwiftSocket.h */; settings = {ATTRIBUTES = (Public, ); }; };
37454ED71E0615FE00800AE5 /* SwiftSocket.h in Headers */ = {isa = PBXBuildFile; fileRef = 3723138D1DCF84CA0042DA87 /* SwiftSocket.h */; settings = {ATTRIBUTES = (Public, ); }; };
37454ED81E06163C00800AE5 /* Result.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372313981DCF84EC0042DA87 /* Result.swift */; };
37454ED91E06163C00800AE5 /* Socket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372313991DCF84EC0042DA87 /* Socket.swift */; };
37454EDA1E06163C00800AE5 /* TCPClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372313941DCF84E30042DA87 /* TCPClient.swift */; };
37454EDB1E06163C00800AE5 /* ytcpsocket.c in Sources */ = {isa = PBXBuildFile; fileRef = 372313951DCF84E30042DA87 /* ytcpsocket.c */; };
37454EDC1E06163C00800AE5 /* UDPClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372313901DCF84D80042DA87 /* UDPClient.swift */; };
37454EDD1E06163C00800AE5 /* yudpsocket.c in Sources */ = {isa = PBXBuildFile; fileRef = 372313911DCF84D80042DA87 /* yudpsocket.c */; };
37454EDE1E06163C00800AE5 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3723138C1DCF84CA0042DA87 /* Info.plist */; };
37454EDF1E06163D00800AE5 /* Result.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372313981DCF84EC0042DA87 /* Result.swift */; };
37454EE01E06163D00800AE5 /* Socket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372313991DCF84EC0042DA87 /* Socket.swift */; };
37454EE11E06163D00800AE5 /* TCPClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372313941DCF84E30042DA87 /* TCPClient.swift */; };
37454EE21E06163D00800AE5 /* ytcpsocket.c in Sources */ = {isa = PBXBuildFile; fileRef = 372313951DCF84E30042DA87 /* ytcpsocket.c */; };
37454EE31E06163D00800AE5 /* UDPClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 372313901DCF84D80042DA87 /* UDPClient.swift */; };
37454EE41E06163D00800AE5 /* yudpsocket.c in Sources */ = {isa = PBXBuildFile; fileRef = 372313911DCF84D80042DA87 /* yudpsocket.c */; };
37454EE91E0617F300800AE5 /* Info-tvOS.plist in Resources */ = {isa = PBXBuildFile; fileRef = 37454EE81E0617F300800AE5 /* Info-tvOS.plist */; };
375C48301DDC4C56008C701D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 375C482F1DDC4C56008C701D /* AppDelegate.swift */; };
375C48321DDC4C56008C701D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 375C48311DDC4C56008C701D /* ViewController.swift */; };
375C48351DDC4C56008C701D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 375C48331DDC4C56008C701D /* Main.storyboard */; };
Expand All @@ -32,6 +47,8 @@
372313951DCF84E30042DA87 /* ytcpsocket.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ytcpsocket.c; path = Sources/ytcpsocket.c; sourceTree = SOURCE_ROOT; };
372313981DCF84EC0042DA87 /* Result.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Result.swift; path = Sources/Result.swift; sourceTree = SOURCE_ROOT; };
372313991DCF84EC0042DA87 /* Socket.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Socket.swift; path = Sources/Socket.swift; sourceTree = SOURCE_ROOT; };
37454ECA1E06158200800AE5 /* SwiftSocket.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwiftSocket.framework; sourceTree = BUILT_PRODUCTS_DIR; };
37454EE81E0617F300800AE5 /* Info-tvOS.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "Info-tvOS.plist"; path = "Sources/Info-tvOS.plist"; sourceTree = SOURCE_ROOT; };
375C482D1DDC4C56008C701D /* iOS Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "iOS Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
375C482F1DDC4C56008C701D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
375C48311DDC4C56008C701D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
Expand All @@ -44,6 +61,13 @@
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
37454EC61E06158200800AE5 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
375C482A1DDC4C56008C701D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -103,6 +127,7 @@
isa = PBXGroup;
children = (
3723138C1DCF84CA0042DA87 /* Info.plist */,
37454EE81E0617F300800AE5 /* Info-tvOS.plist */,
3723138D1DCF84CA0042DA87 /* SwiftSocket.h */,
);
name = "Supporting Files";
Expand All @@ -124,6 +149,7 @@
377DAA691DCDE40200009697 /* SwiftSocket.framework */,
377DAA761DCDE45D00009697 /* SwiftSocket.framework */,
375C482D1DDC4C56008C701D /* iOS Example.app */,
37454ECA1E06158200800AE5 /* SwiftSocket.framework */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -144,6 +170,14 @@
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
37454EC71E06158200800AE5 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
37454ED71E0615FE00800AE5 /* SwiftSocket.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
377DAA661DCDE40200009697 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -163,6 +197,24 @@
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
37454EC91E06158200800AE5 /* SwiftSocket tvOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = 37454ED31E06158200800AE5 /* Build configuration list for PBXNativeTarget "SwiftSocket tvOS" */;
buildPhases = (
37454EC51E06158200800AE5 /* Sources */,
37454EC61E06158200800AE5 /* Frameworks */,
37454EC71E06158200800AE5 /* Headers */,
37454EC81E06158200800AE5 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "SwiftSocket tvOS";
productName = "SwiftSocket tvOS";
productReference = 37454ECA1E06158200800AE5 /* SwiftSocket.framework */;
productType = "com.apple.product-type.framework";
};
375C482C1DDC4C56008C701D /* iOS Example */ = {
isa = PBXNativeTarget;
buildConfigurationList = 375C483E1DDC4C56008C701D /* Build configuration list for PBXNativeTarget "iOS Example" */;
Expand Down Expand Up @@ -227,6 +279,10 @@
LastUpgradeCheck = 0710;
ORGANIZATIONNAME = swift;
TargetAttributes = {
37454EC91E06158200800AE5 = {
CreatedOnToolsVersion = 8.2;
ProvisioningStyle = Automatic;
};
375C482C1DDC4C56008C701D = {
CreatedOnToolsVersion = 8.1;
ProvisioningStyle = Automatic;
Expand Down Expand Up @@ -257,12 +313,21 @@
targets = (
377DAA681DCDE40200009697 /* SwiftSocket iOS */,
377DAA751DCDE45D00009697 /* SwiftSocket macOS */,
37454EC91E06158200800AE5 /* SwiftSocket tvOS */,
375C482C1DDC4C56008C701D /* iOS Example */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
37454EC81E06158200800AE5 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
37454EE91E0617F300800AE5 /* Info-tvOS.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
375C482B1DDC4C56008C701D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -285,12 +350,26 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
37454EDE1E06163C00800AE5 /* Info.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
37454EC51E06158200800AE5 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
37454EE31E06163D00800AE5 /* UDPClient.swift in Sources */,
37454EE01E06163D00800AE5 /* Socket.swift in Sources */,
37454EE41E06163D00800AE5 /* yudpsocket.c in Sources */,
37454EDF1E06163D00800AE5 /* Result.swift in Sources */,
37454EE21E06163D00800AE5 /* ytcpsocket.c in Sources */,
37454EE11E06163D00800AE5 /* TCPClient.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
375C48291DDC4C56008C701D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -317,6 +396,12 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
37454EDC1E06163C00800AE5 /* UDPClient.swift in Sources */,
37454ED91E06163C00800AE5 /* Socket.swift in Sources */,
37454EDD1E06163C00800AE5 /* yudpsocket.c in Sources */,
37454ED81E06163C00800AE5 /* Result.swift in Sources */,
37454EDB1E06163C00800AE5 /* ytcpsocket.c in Sources */,
37454EDA1E06163C00800AE5 /* TCPClient.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -342,6 +427,71 @@
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
37454ED41E06158200800AE5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.swiftsocket.SwiftSocket;
PRODUCT_NAME = SwiftSocket;
SDKROOT = appletvos;
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
37454ED51E06158200800AE5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.swiftsocket.SwiftSocket;
PRODUCT_NAME = SwiftSocket;
SDKROOT = appletvos;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
375C483C1DDC4C56008C701D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
Expand Down Expand Up @@ -410,7 +560,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.danshevluk.SwiftSocket;
PRODUCT_BUNDLE_IDENTIFIER = com.swiftsocket.SwiftSocket;
PRODUCT_NAME = SwiftSocket;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -444,7 +594,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.danshevluk.SwiftSocket;
PRODUCT_BUNDLE_IDENTIFIER = com.swiftsocket.SwiftSocket;
PRODUCT_NAME = SwiftSocket;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -477,9 +627,9 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.danshevluk.SwiftSocket;
PRODUCT_BUNDLE_IDENTIFIER = com.swiftsocket.SwiftSocket;
PRODUCT_NAME = SwiftSocket;
SDKROOT = iphoneos;
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_VERSION = 3.0;
Expand Down Expand Up @@ -509,9 +659,9 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.danshevluk.SwiftSocket;
PRODUCT_BUNDLE_IDENTIFIER = com.swiftsocket.SwiftSocket;
PRODUCT_NAME = SwiftSocket;
SDKROOT = iphoneos;
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 3.0;
Expand Down Expand Up @@ -607,13 +757,22 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
37454ED31E06158200800AE5 /* Build configuration list for PBXNativeTarget "SwiftSocket tvOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
37454ED41E06158200800AE5 /* Debug */,
37454ED51E06158200800AE5 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
375C483E1DDC4C56008C701D /* Build configuration list for PBXNativeTarget "iOS Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
375C483C1DDC4C56008C701D /* Debug */,
375C483D1DDC4C56008C701D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
377DAA6E1DCDE40200009697 /* Build configuration list for PBXNativeTarget "SwiftSocket iOS" */ = {
isa = XCConfigurationList;
Expand Down

0 comments on commit a599a29

Please sign in to comment.