Skip to content

Commit

Permalink
Add example-ios sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
bizz84 committed Mar 18, 2018
1 parent 599a42e commit 5c6c53b
Show file tree
Hide file tree
Showing 11 changed files with 682 additions and 0 deletions.
325 changes: 325 additions & 0 deletions example-ios/stopwatch-ios.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,325 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 48;
objects = {

/* Begin PBXBuildFile section */
654D66A0205DE0FC008AEE06 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 654D669F205DE0FC008AEE06 /* AppDelegate.swift */; };
654D66A2205DE0FD008AEE06 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 654D66A1205DE0FD008AEE06 /* ViewController.swift */; };
654D66A5205DE0FD008AEE06 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 654D66A3205DE0FD008AEE06 /* Main.storyboard */; };
654D66A7205DE0FD008AEE06 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 654D66A6205DE0FD008AEE06 /* Assets.xcassets */; };
654D66AA205DE0FD008AEE06 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 654D66A8205DE0FD008AEE06 /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
654D669C205DE0FC008AEE06 /* stopwatch-ios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "stopwatch-ios.app"; sourceTree = BUILT_PRODUCTS_DIR; };
654D669F205DE0FC008AEE06 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
654D66A1205DE0FD008AEE06 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
654D66A4205DE0FD008AEE06 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
654D66A6205DE0FD008AEE06 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
654D66A9205DE0FD008AEE06 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
654D66AB205DE0FD008AEE06 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
654D6699205DE0FC008AEE06 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
654D6693205DE0FC008AEE06 = {
isa = PBXGroup;
children = (
654D669E205DE0FC008AEE06 /* stopwatch-ios */,
654D669D205DE0FC008AEE06 /* Products */,
);
sourceTree = "<group>";
};
654D669D205DE0FC008AEE06 /* Products */ = {
isa = PBXGroup;
children = (
654D669C205DE0FC008AEE06 /* stopwatch-ios.app */,
);
name = Products;
sourceTree = "<group>";
};
654D669E205DE0FC008AEE06 /* stopwatch-ios */ = {
isa = PBXGroup;
children = (
654D669F205DE0FC008AEE06 /* AppDelegate.swift */,
654D66A1205DE0FD008AEE06 /* ViewController.swift */,
654D66A3205DE0FD008AEE06 /* Main.storyboard */,
654D66A6205DE0FD008AEE06 /* Assets.xcassets */,
654D66A8205DE0FD008AEE06 /* LaunchScreen.storyboard */,
654D66AB205DE0FD008AEE06 /* Info.plist */,
);
path = "stopwatch-ios";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
654D669B205DE0FC008AEE06 /* stopwatch-ios */ = {
isa = PBXNativeTarget;
buildConfigurationList = 654D66AE205DE0FD008AEE06 /* Build configuration list for PBXNativeTarget "stopwatch-ios" */;
buildPhases = (
654D6698205DE0FC008AEE06 /* Sources */,
654D6699205DE0FC008AEE06 /* Frameworks */,
654D669A205DE0FC008AEE06 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "stopwatch-ios";
productName = "stopwatch-ios";
productReference = 654D669C205DE0FC008AEE06 /* stopwatch-ios.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
654D6694205DE0FC008AEE06 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 0920;
ORGANIZATIONNAME = musevisions;
TargetAttributes = {
654D669B205DE0FC008AEE06 = {
CreatedOnToolsVersion = 9.2;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 654D6697205DE0FC008AEE06 /* Build configuration list for PBXProject "stopwatch-ios" */;
compatibilityVersion = "Xcode 8.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 654D6693205DE0FC008AEE06;
productRefGroup = 654D669D205DE0FC008AEE06 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
654D669B205DE0FC008AEE06 /* stopwatch-ios */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
654D669A205DE0FC008AEE06 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
654D66AA205DE0FD008AEE06 /* LaunchScreen.storyboard in Resources */,
654D66A7205DE0FD008AEE06 /* Assets.xcassets in Resources */,
654D66A5205DE0FD008AEE06 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
654D6698205DE0FC008AEE06 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
654D66A2205DE0FD008AEE06 /* ViewController.swift in Sources */,
654D66A0205DE0FC008AEE06 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
654D66A3205DE0FD008AEE06 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
654D66A4205DE0FD008AEE06 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
654D66A8205DE0FD008AEE06 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
654D66A9205DE0FD008AEE06 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
654D66AC205DE0FD008AEE06 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
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;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
654D66AD205DE0FD008AEE06 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
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;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
654D66AF205DE0FD008AEE06 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = "stopwatch-ios/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.musevisions.ios.stopwatch-ios";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
654D66B0205DE0FD008AEE06 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = "stopwatch-ios/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.musevisions.ios.stopwatch-ios";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
654D6697205DE0FC008AEE06 /* Build configuration list for PBXProject "stopwatch-ios" */ = {
isa = XCConfigurationList;
buildConfigurations = (
654D66AC205DE0FD008AEE06 /* Debug */,
654D66AD205DE0FD008AEE06 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
654D66AE205DE0FD008AEE06 /* Build configuration list for PBXNativeTarget "stopwatch-ios" */ = {
isa = XCConfigurationList;
buildConfigurations = (
654D66AF205DE0FD008AEE06 /* Debug */,
654D66B0205DE0FD008AEE06 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 654D6694205DE0FC008AEE06 /* Project object */;
}

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

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>SchemeUserState</key>
<dict>
<key>stopwatch-ios.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
Loading

0 comments on commit 5c6c53b

Please sign in to comment.