Skip to content

Commit

Permalink
Swift serial programming example
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnoldus committed May 16, 2015
1 parent d3c076f commit 7196940
Show file tree
Hide file tree
Showing 13 changed files with 621 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@

*.lock

Pods*

2 changes: 2 additions & 0 deletions swift-serial/Podfile
@@ -0,0 +1,2 @@
pod "ORSSerialPort"

306 changes: 306 additions & 0 deletions swift-serial/swift-serial.xcodeproj/project.pbxproj
@@ -0,0 +1,306 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
9077ECF71B07527700620FA8 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9077ECF61B07527700620FA8 /* main.swift */; };
9EFD83C20C205F18B7AB4AFE /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3282D1F93D7C771EFB207C92 /* libPods.a */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
9077ECF11B07527700620FA8 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
);
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
3282D1F93D7C771EFB207C92 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
9055E52F1B075E76001F2DE8 /* SwiftSerial-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SwiftSerial-Bridging-Header.h"; sourceTree = "<group>"; };
9077ECF31B07527700620FA8 /* swift-serial */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "swift-serial"; sourceTree = BUILT_PRODUCTS_DIR; };
9077ECF61B07527700620FA8 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
DFA55435514141205F14C4E5 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
DFC8DE0C88A1D329FA0E61EE /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
9077ECF01B07527700620FA8 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
9EFD83C20C205F18B7AB4AFE /* libPods.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
49AE15A2659C3877B066639E /* Pods */ = {
isa = PBXGroup;
children = (
DFC8DE0C88A1D329FA0E61EE /* Pods.debug.xcconfig */,
DFA55435514141205F14C4E5 /* Pods.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
9077ECEA1B07527700620FA8 = {
isa = PBXGroup;
children = (
9077ECF51B07527700620FA8 /* swift-serial */,
9077ECF41B07527700620FA8 /* Products */,
49AE15A2659C3877B066639E /* Pods */,
9BE0B00F0D170DF929DEC213 /* Frameworks */,
);
sourceTree = "<group>";
};
9077ECF41B07527700620FA8 /* Products */ = {
isa = PBXGroup;
children = (
9077ECF31B07527700620FA8 /* swift-serial */,
);
name = Products;
sourceTree = "<group>";
};
9077ECF51B07527700620FA8 /* swift-serial */ = {
isa = PBXGroup;
children = (
9077ECF61B07527700620FA8 /* main.swift */,
9055E52F1B075E76001F2DE8 /* SwiftSerial-Bridging-Header.h */,
);
path = "swift-serial";
sourceTree = "<group>";
};
9BE0B00F0D170DF929DEC213 /* Frameworks */ = {
isa = PBXGroup;
children = (
3282D1F93D7C771EFB207C92 /* libPods.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
9077ECF21B07527700620FA8 /* swift-serial */ = {
isa = PBXNativeTarget;
buildConfigurationList = 9077ECFA1B07527700620FA8 /* Build configuration list for PBXNativeTarget "swift-serial" */;
buildPhases = (
4D38556F7555B501E82DEE3C /* Check Pods Manifest.lock */,
9077ECEF1B07527700620FA8 /* Sources */,
9077ECF01B07527700620FA8 /* Frameworks */,
9077ECF11B07527700620FA8 /* CopyFiles */,
3E03A69BBD563A48C6B346D0 /* Copy Pods Resources */,
);
buildRules = (
);
dependencies = (
);
name = "swift-serial";
productName = "swift-serial";
productReference = 9077ECF31B07527700620FA8 /* swift-serial */;
productType = "com.apple.product-type.tool";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
9077ECEB1B07527700620FA8 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0620;
ORGANIZATIONNAME = Repleo;
TargetAttributes = {
9077ECF21B07527700620FA8 = {
CreatedOnToolsVersion = 6.2;
};
};
};
buildConfigurationList = 9077ECEE1B07527700620FA8 /* Build configuration list for PBXProject "swift-serial" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 9077ECEA1B07527700620FA8;
productRefGroup = 9077ECF41B07527700620FA8 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
9077ECF21B07527700620FA8 /* swift-serial */,
);
};
/* End PBXProject section */

/* Begin PBXShellScriptBuildPhase section */
3E03A69BBD563A48C6B346D0 /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
showEnvVarsInLog = 0;
};
4D38556F7555B501E82DEE3C /* Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
9077ECEF1B07527700620FA8 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9077ECF71B07527700620FA8 /* main.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
9077ECF81B07527700620FA8 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_OBJC_BRIDGING_HEADER = "swift-serial/SwiftSerial-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
9077ECF91B07527700620FA8 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_OBJC_BRIDGING_HEADER = "swift-serial/SwiftSerial-Bridging-Header.h";
};
name = Release;
};
9077ECFB1B07527700620FA8 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = DFC8DE0C88A1D329FA0E61EE /* Pods.debug.xcconfig */;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
9077ECFC1B07527700620FA8 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = DFA55435514141205F14C4E5 /* Pods.release.xcconfig */;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
9077ECEE1B07527700620FA8 /* Build configuration list for PBXProject "swift-serial" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9077ECF81B07527700620FA8 /* Debug */,
9077ECF91B07527700620FA8 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
9077ECFA1B07527700620FA8 /* Build configuration list for PBXNativeTarget "swift-serial" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9077ECFB1B07527700620FA8 /* Debug */,
9077ECFC1B07527700620FA8 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 9077ECEB1B07527700620FA8 /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,41 @@
<?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>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>1E72F1E0-14CE-4FB1-863E-5F0A861BF610</string>
<key>IDESourceControlProjectName</key>
<string>swift-serial</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>135544444C6A1E93921E33931AC0FC7B37D0F13A</key>
<string>https://github.com/bjarnoldus/osx-swift-serial.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>swift-serial/swift-serial.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>135544444C6A1E93921E33931AC0FC7B37D0F13A</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/bjarnoldus/osx-swift-serial.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>135544444C6A1E93921E33931AC0FC7B37D0F13A</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>135544444C6A1E93921E33931AC0FC7B37D0F13A</string>
<key>IDESourceControlWCCName</key>
<string>GITHUB-osx-swift-serial</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.

0 comments on commit 7196940

Please sign in to comment.