Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tidwall committed Jan 28, 2016
1 parent ff13ddc commit 1cd7827
Show file tree
Hide file tree
Showing 5 changed files with 254 additions and 40 deletions.
30 changes: 30 additions & 0 deletions Source/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>3.1.5</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>
46 changes: 22 additions & 24 deletions Source/Info.plist
Original file line number Diff line number Diff line change
@@ -1,28 +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>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 ONcast, LLC. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
<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>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
26 changes: 11 additions & 15 deletions Source/SwiftWebSocket.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
//
// SwiftWebSocket.h
// SwiftWebSocket
//
// Created by Josh Baker on 6/4/15.
// Copyright (c) 2015 ONcast, LLC. All rights reserved.
//
/*
* SwiftWebSocket (swiftwebsocket.h)
*
* Copyright (C) Josh Baker. All Rights Reserved.
* Contact: @tidwall, [email protected]
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
*/

#import <Foundation/Foundation.h>

//! Project version number for SwiftWebSocket.
FOUNDATION_EXPORT double SwiftWebSocketVersionNumber;

//! Project version string for SwiftWebSocket.
FOUNDATION_EXPORT const unsigned char SwiftWebSocketVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <SwiftWebSocket/PublicHeader.h>


FOUNDATION_EXPORT const unsigned char SwiftWebSocketVersionString[];
112 changes: 111 additions & 1 deletion SwiftWebSocket.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
/* Begin PBXBuildFile section */
031967101B4D96C40033860E /* WebSocket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03285D2A1B4A9F1A0078A1AA /* WebSocket.swift */; };
03285D2B1B4A9F1A0078A1AA /* WebSocket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03285D2A1B4A9F1A0078A1AA /* WebSocket.swift */; };
03957A461C5A734C005CC1DB /* SwiftWebSocket.h in Headers */ = {isa = PBXBuildFile; fileRef = D71948F11B35E5670015C529 /* SwiftWebSocket.h */; settings = {ATTRIBUTES = (Public, ); }; };
03957A471C5A7392005CC1DB /* WebSocket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03285D2A1B4A9F1A0078A1AA /* WebSocket.swift */; };
03957A4C1C5A7532005CC1DB /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 03957A4B1C5A7532005CC1DB /* libz.dylib */; };
03D1E7221B208A5C00AC49AC /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 03D1E7211B208A5C00AC49AC /* libz.dylib */; };
03D70CD11BDAC5EC00D245C3 /* SwiftWebSocket.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D71949011B35E6130015C529 /* SwiftWebSocket.framework */; };
03D70CE01BDAC63600D245C3 /* SwiftWebSocket.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03D1E7031B20897100AC49AC /* SwiftWebSocket.framework */; };
Expand Down Expand Up @@ -49,6 +52,9 @@
/* Begin PBXFileReference section */
0319670F1B4D96B80033860E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
03285D2A1B4A9F1A0078A1AA /* WebSocket.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WebSocket.swift; sourceTree = "<group>"; };
03957A3C1C5A71DB005CC1DB /* SwiftWebSocket.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwiftWebSocket.framework; sourceTree = BUILT_PRODUCTS_DIR; };
03957A481C5A74D9005CC1DB /* Info-tvOS.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-tvOS.plist"; sourceTree = "<group>"; };
03957A4B1C5A7532005CC1DB /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/libz.dylib; sourceTree = DEVELOPER_DIR; };
03D1E7031B20897100AC49AC /* SwiftWebSocket.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwiftWebSocket.framework; sourceTree = BUILT_PRODUCTS_DIR; };
03D1E7211B208A5C00AC49AC /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; };
03D70CCC1BDAC5EC00D245C3 /* Test-OSX.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Test-OSX.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
Expand All @@ -66,6 +72,14 @@
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
03957A381C5A71DB005CC1DB /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
03957A4C1C5A7532005CC1DB /* libz.dylib in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
03D1E6FF1B20897100AC49AC /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -112,6 +126,7 @@
03D1E6F91B20897100AC49AC = {
isa = PBXGroup;
children = (
03957A4B1C5A7532005CC1DB /* libz.dylib */,
D71948FA1B35E59D0015C529 /* libz.dylib */,
03D1E7211B208A5C00AC49AC /* libz.dylib */,
D71948F01B35E5670015C529 /* Source */,
Expand All @@ -129,6 +144,7 @@
03D70CCC1BDAC5EC00D245C3 /* Test-OSX.xctest */,
03D70CDB1BDAC63600D245C3 /* Test-iOS.xctest */,
D78C40301C232C3800EB72AA /* Test-ObjectiveC.xctest */,
03957A3C1C5A71DB005CC1DB /* SwiftWebSocket.framework */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -145,6 +161,7 @@
D71948F01B35E5670015C529 /* Source */ = {
isa = PBXGroup;
children = (
03957A481C5A74D9005CC1DB /* Info-tvOS.plist */,
0319670F1B4D96B80033860E /* Info.plist */,
D71948F11B35E5670015C529 /* SwiftWebSocket.h */,
03285D2A1B4A9F1A0078A1AA /* WebSocket.swift */,
Expand All @@ -166,6 +183,14 @@
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
03957A391C5A71DB005CC1DB /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
03957A461C5A734C005CC1DB /* SwiftWebSocket.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
03D1E7001B20897100AC49AC /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -185,6 +210,24 @@
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
03957A3B1C5A71DB005CC1DB /* SwiftWebSocket-tvOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = 03957A411C5A71DC005CC1DB /* Build configuration list for PBXNativeTarget "SwiftWebSocket-tvOS" */;
buildPhases = (
03957A371C5A71DB005CC1DB /* Sources */,
03957A381C5A71DB005CC1DB /* Frameworks */,
03957A391C5A71DB005CC1DB /* Headers */,
03957A3A1C5A71DB005CC1DB /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "SwiftWebSocket-tvOS";
productName = "SwiftWebSocket-tvOS";
productReference = 03957A3C1C5A71DB005CC1DB /* SwiftWebSocket.framework */;
productType = "com.apple.product-type.framework";
};
03D1E7021B20897100AC49AC /* SwiftWebSocket-iOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = 03D1E7191B20897100AC49AC /* Build configuration list for PBXNativeTarget "SwiftWebSocket-iOS" */;
Expand Down Expand Up @@ -281,10 +324,13 @@
03D1E6FA1B20897100AC49AC /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0710;
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = "ONcast, LLC";
TargetAttributes = {
03957A3B1C5A71DB005CC1DB = {
CreatedOnToolsVersion = 7.2;
};
03D1E7021B20897100AC49AC = {
CreatedOnToolsVersion = 6.3.2;
};
Expand All @@ -308,6 +354,7 @@
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 03D1E6F91B20897100AC49AC;
productRefGroup = 03D1E7041B20897100AC49AC /* Products */;
Expand All @@ -316,6 +363,7 @@
targets = (
03D1E7021B20897100AC49AC /* SwiftWebSocket-iOS */,
D71949001B35E6130015C529 /* SwiftWebSocket-OSX */,
03957A3B1C5A71DB005CC1DB /* SwiftWebSocket-tvOS */,
03D70CCB1BDAC5EC00D245C3 /* Test-OSX */,
03D70CDA1BDAC63600D245C3 /* Test-iOS */,
D78C402F1C232C3800EB72AA /* Test-ObjectiveC */,
Expand All @@ -324,6 +372,13 @@
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
03957A3A1C5A71DB005CC1DB /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
03D1E7011B20897100AC49AC /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -362,6 +417,14 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
03957A371C5A71DB005CC1DB /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
03957A471C5A7392005CC1DB /* WebSocket.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
03D1E6FE1B20897100AC49AC /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -424,6 +487,45 @@
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
03957A421C5A71DC005CC1DB /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Source/Info-tvOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.oncast.SwiftWebSocket;
PRODUCT_NAME = SwiftWebSocket;
SDKROOT = appletvos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.1;
};
name = Debug;
};
03957A431C5A71DC005CC1DB /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Source/Info-tvOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.oncast.SwiftWebSocket;
PRODUCT_NAME = SwiftWebSocket;
SDKROOT = appletvos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.1;
};
name = Release;
};
03D1E7171B20897100AC49AC /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
Expand Down Expand Up @@ -679,6 +781,14 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
03957A411C5A71DC005CC1DB /* Build configuration list for PBXNativeTarget "SwiftWebSocket-tvOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
03957A421C5A71DC005CC1DB /* Debug */,
03957A431C5A71DC005CC1DB /* Release */,
);
defaultConfigurationIsVisible = 0;
};
03D1E6FD1B20897100AC49AC /* Build configuration list for PBXProject "SwiftWebSocket" */ = {
isa = XCConfigurationList;
buildConfigurations = (
Expand Down
Loading

0 comments on commit 1cd7827

Please sign in to comment.