smartlink/Demo.xcodeproj/project.pbxproj
New file @@ -0,0 +1,583 @@ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ 4B3BB60A1E12C118006D85F6 /* libSmartLink7.3.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B3BB6091E12C118006D85F6 /* libSmartLink7.3.a */; }; D0018AA61C0693F100DCE703 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D0018AA51C0693F100DCE703 /* main.m */; }; D0018AA91C0693F100DCE703 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D0018AA81C0693F100DCE703 /* AppDelegate.m */; }; D0018AAC1C0693F100DCE703 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D0018AAB1C0693F100DCE703 /* ViewController.m */; }; D0018AAF1C0693F100DCE703 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D0018AAD1C0693F100DCE703 /* Main.storyboard */; }; D0018AB11C0693F100DCE703 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D0018AB01C0693F100DCE703 /* Assets.xcassets */; }; D0018AB41C0693F100DCE703 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D0018AB21C0693F100DCE703 /* LaunchScreen.storyboard */; }; D0018ABF1C0693F100DCE703 /* DemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D0018ABE1C0693F100DCE703 /* DemoTests.m */; }; D0018ACA1C0693F100DCE703 /* DemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = D0018AC91C0693F100DCE703 /* DemoUITests.m */; }; D0D73D111C97DE28001EB28E /* pic3.png in Resources */ = {isa = PBXBuildFile; fileRef = D0D73D101C97DE28001EB28E /* pic3.png */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ D0018ABB1C0693F100DCE703 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = D0018A991C0693F100DCE703 /* Project object */; proxyType = 1; remoteGlobalIDString = D0018AA01C0693F100DCE703; remoteInfo = Demo; }; D0018AC61C0693F100DCE703 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = D0018A991C0693F100DCE703 /* Project object */; proxyType = 1; remoteGlobalIDString = D0018AA01C0693F100DCE703; remoteInfo = Demo; }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ 4B2D34CF1E01864F00B69EB2 /* HFSmartLink.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HFSmartLink.h; sourceTree = "<group>"; }; 4B2D34D01E01864F00B69EB2 /* HFSmartLinkDeviceInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HFSmartLinkDeviceInfo.h; sourceTree = "<group>"; }; 4B2D34D21E01864F00B69EB2 /* smartlinklib_7x.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = smartlinklib_7x.h; sourceTree = "<group>"; }; 4B3BB6091E12C118006D85F6 /* libSmartLink7.3.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libSmartLink7.3.a; path = Demo/libSmartLink7.3.a; sourceTree = "<group>"; }; D0018AA11C0693F100DCE703 /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; }; D0018AA51C0693F100DCE703 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; D0018AA71C0693F100DCE703 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; D0018AA81C0693F100DCE703 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; D0018AAA1C0693F100DCE703 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; }; D0018AAB1C0693F100DCE703 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; }; D0018AAE1C0693F100DCE703 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; D0018AB01C0693F100DCE703 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; D0018AB31C0693F100DCE703 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; D0018AB51C0693F100DCE703 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; D0018ABA1C0693F100DCE703 /* Demo.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Demo.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; D0018ABE1C0693F100DCE703 /* DemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DemoTests.m; sourceTree = "<group>"; }; D0018AC01C0693F100DCE703 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; D0018AC51C0693F100DCE703 /* Demo.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Demo.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; D0018AC91C0693F100DCE703 /* DemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DemoUITests.m; sourceTree = "<group>"; }; D0018ACB1C0693F100DCE703 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; D0899E5B1CEFF1AB0029BF06 /* HFSmartLink.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = HFSmartLink.h; path = ../../smartlinklib_7x/SmartLinkLib/HFSmartLink.h; sourceTree = "<group>"; }; D0899E5C1CEFF1B30029BF06 /* HFSmartLinkDeviceInfo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = HFSmartLinkDeviceInfo.h; path = ../../smartlinklib_7x/SmartLinkLib/HFSmartLinkDeviceInfo.h; sourceTree = "<group>"; }; D0D73D101C97DE28001EB28E /* pic3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pic3.png; sourceTree = SOURCE_ROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ D0018A9E1C0693F100DCE703 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 4B3BB60A1E12C118006D85F6 /* libSmartLink7.3.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; D0018AB71C0693F100DCE703 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; D0018AC21C0693F100DCE703 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 4B2D34B91E01826C00B69EB2 /* Frameworks */ = { isa = PBXGroup; children = ( 4B3BB6091E12C118006D85F6 /* libSmartLink7.3.a */, ); name = Frameworks; sourceTree = "<group>"; }; D0018A981C0693F100DCE703 = { isa = PBXGroup; children = ( D0018AA31C0693F100DCE703 /* Demo */, D0018ABD1C0693F100DCE703 /* DemoTests */, D0018AC81C0693F100DCE703 /* DemoUITests */, D0018AA21C0693F100DCE703 /* Products */, 4B2D34B91E01826C00B69EB2 /* Frameworks */, ); sourceTree = "<group>"; }; D0018AA21C0693F100DCE703 /* Products */ = { isa = PBXGroup; children = ( D0018AA11C0693F100DCE703 /* Demo.app */, D0018ABA1C0693F100DCE703 /* Demo.xctest */, D0018AC51C0693F100DCE703 /* Demo.xctest */, ); name = Products; sourceTree = "<group>"; }; D0018AA31C0693F100DCE703 /* Demo */ = { isa = PBXGroup; children = ( 4B2D34CF1E01864F00B69EB2 /* HFSmartLink.h */, 4B2D34D01E01864F00B69EB2 /* HFSmartLinkDeviceInfo.h */, 4B2D34D21E01864F00B69EB2 /* smartlinklib_7x.h */, D0899E5B1CEFF1AB0029BF06 /* HFSmartLink.h */, D0899E5C1CEFF1B30029BF06 /* HFSmartLinkDeviceInfo.h */, D0018AA71C0693F100DCE703 /* AppDelegate.h */, D0018AA81C0693F100DCE703 /* AppDelegate.m */, D0018AAA1C0693F100DCE703 /* ViewController.h */, D0018AAB1C0693F100DCE703 /* ViewController.m */, D0018AAD1C0693F100DCE703 /* Main.storyboard */, D0018AB01C0693F100DCE703 /* Assets.xcassets */, D0018AB21C0693F100DCE703 /* LaunchScreen.storyboard */, D0018AB51C0693F100DCE703 /* Info.plist */, D0018AA41C0693F100DCE703 /* Supporting Files */, ); path = Demo; sourceTree = "<group>"; }; D0018AA41C0693F100DCE703 /* Supporting Files */ = { isa = PBXGroup; children = ( D0D73D101C97DE28001EB28E /* pic3.png */, D0018AA51C0693F100DCE703 /* main.m */, ); name = "Supporting Files"; sourceTree = "<group>"; }; D0018ABD1C0693F100DCE703 /* DemoTests */ = { isa = PBXGroup; children = ( D0018ABE1C0693F100DCE703 /* DemoTests.m */, D0018AC01C0693F100DCE703 /* Info.plist */, ); path = DemoTests; sourceTree = "<group>"; }; D0018AC81C0693F100DCE703 /* DemoUITests */ = { isa = PBXGroup; children = ( D0018AC91C0693F100DCE703 /* DemoUITests.m */, D0018ACB1C0693F100DCE703 /* Info.plist */, ); path = DemoUITests; sourceTree = "<group>"; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ D0018AA01C0693F100DCE703 /* Demo */ = { isa = PBXNativeTarget; buildConfigurationList = D0018ACE1C0693F100DCE703 /* Build configuration list for PBXNativeTarget "Demo" */; buildPhases = ( D0018A9D1C0693F100DCE703 /* Sources */, D0018A9E1C0693F100DCE703 /* Frameworks */, D0018A9F1C0693F100DCE703 /* Resources */, ); buildRules = ( ); dependencies = ( ); name = Demo; productName = Demo; productReference = D0018AA11C0693F100DCE703 /* Demo.app */; productType = "com.apple.product-type.application"; }; D0018AB91C0693F100DCE703 /* DemoTests */ = { isa = PBXNativeTarget; buildConfigurationList = D0018AD11C0693F100DCE703 /* Build configuration list for PBXNativeTarget "DemoTests" */; buildPhases = ( D0018AB61C0693F100DCE703 /* Sources */, D0018AB71C0693F100DCE703 /* Frameworks */, D0018AB81C0693F100DCE703 /* Resources */, ); buildRules = ( ); dependencies = ( D0018ABC1C0693F100DCE703 /* PBXTargetDependency */, ); name = DemoTests; productName = DemoTests; productReference = D0018ABA1C0693F100DCE703 /* Demo.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; D0018AC41C0693F100DCE703 /* DemoUITests */ = { isa = PBXNativeTarget; buildConfigurationList = D0018AD41C0693F100DCE703 /* Build configuration list for PBXNativeTarget "DemoUITests" */; buildPhases = ( D0018AC11C0693F100DCE703 /* Sources */, D0018AC21C0693F100DCE703 /* Frameworks */, D0018AC31C0693F100DCE703 /* Resources */, ); buildRules = ( ); dependencies = ( D0018AC71C0693F100DCE703 /* PBXTargetDependency */, ); name = DemoUITests; productName = DemoUITests; productReference = D0018AC51C0693F100DCE703 /* Demo.xctest */; productType = "com.apple.product-type.bundle.ui-testing"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ D0018A991C0693F100DCE703 /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 0810; ORGANIZATIONNAME = Peter; TargetAttributes = { D0018AA01C0693F100DCE703 = { CreatedOnToolsVersion = 7.1.1; DevelopmentTeam = 5S3JT4N839; ProvisioningStyle = Automatic; }; D0018AB91C0693F100DCE703 = { CreatedOnToolsVersion = 7.1.1; TestTargetID = D0018AA01C0693F100DCE703; }; D0018AC41C0693F100DCE703 = { CreatedOnToolsVersion = 7.1.1; TestTargetID = D0018AA01C0693F100DCE703; }; }; }; buildConfigurationList = D0018A9C1C0693F100DCE703 /* Build configuration list for PBXProject "Demo" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); mainGroup = D0018A981C0693F100DCE703; productRefGroup = D0018AA21C0693F100DCE703 /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( D0018AA01C0693F100DCE703 /* Demo */, D0018AB91C0693F100DCE703 /* DemoTests */, D0018AC41C0693F100DCE703 /* DemoUITests */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ D0018A9F1C0693F100DCE703 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( D0018AB41C0693F100DCE703 /* LaunchScreen.storyboard in Resources */, D0018AB11C0693F100DCE703 /* Assets.xcassets in Resources */, D0D73D111C97DE28001EB28E /* pic3.png in Resources */, D0018AAF1C0693F100DCE703 /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; D0018AB81C0693F100DCE703 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; D0018AC31C0693F100DCE703 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ D0018A9D1C0693F100DCE703 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( D0018AAC1C0693F100DCE703 /* ViewController.m in Sources */, D0018AA91C0693F100DCE703 /* AppDelegate.m in Sources */, D0018AA61C0693F100DCE703 /* main.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; D0018AB61C0693F100DCE703 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( D0018ABF1C0693F100DCE703 /* DemoTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; D0018AC11C0693F100DCE703 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( D0018ACA1C0693F100DCE703 /* DemoUITests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ D0018ABC1C0693F100DCE703 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = D0018AA01C0693F100DCE703 /* Demo */; targetProxy = D0018ABB1C0693F100DCE703 /* PBXContainerItemProxy */; }; D0018AC71C0693F100DCE703 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = D0018AA01C0693F100DCE703 /* Demo */; targetProxy = D0018AC61C0693F100DCE703 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ D0018AAD1C0693F100DCE703 /* Main.storyboard */ = { isa = PBXVariantGroup; children = ( D0018AAE1C0693F100DCE703 /* Base */, ); name = Main.storyboard; sourceTree = "<group>"; }; D0018AB21C0693F100DCE703 /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; children = ( D0018AB31C0693F100DCE703 /* Base */, ); name = LaunchScreen.storyboard; sourceTree = "<group>"; }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ D0018ACC1C0693F100DCE703 /* 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_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Distribution: High-Flying Electronics Technology Co.,Ltd"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: High-Flying Electronics Technology Co.,Ltd"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; 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 = 6.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; PROVISIONING_PROFILE = "60528877-bfd0-49c4-8e91-fd062c3f002d"; SDKROOT = iphoneos; }; name = Debug; }; D0018ACD1C0693F100DCE703 /* 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_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Distribution: High-Flying Electronics Technology Co.,Ltd"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: High-Flying Electronics Technology Co.,Ltd"; 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_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 = 6.0; MTL_ENABLE_DEBUG_INFO = NO; PROVISIONING_PROFILE = "60528877-bfd0-49c4-8e91-fd062c3f002d"; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; }; name = Release; }; D0018ACF1C0693F100DCE703 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; DEVELOPMENT_TEAM = 5S3JT4N839; INFOPLIST_FILE = Demo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)", "$(PROJECT_DIR)/Demo", ); ONLY_ACTIVE_ARCH = NO; PRODUCT_BUNDLE_IDENTIFIER = com.hf.smartlink7x; PRODUCT_NAME = Demo; PROVISIONING_PROFILE = ""; PROVISIONING_PROFILE_SPECIFIER = ""; TARGETED_DEVICE_FAMILY = 1; }; name = Debug; }; D0018AD01C0693F100DCE703 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; DEVELOPMENT_TEAM = 5S3JT4N839; INFOPLIST_FILE = Demo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)", "$(PROJECT_DIR)/Demo", ); PRODUCT_BUNDLE_IDENTIFIER = com.hf.smartlink7x; PRODUCT_NAME = Demo; PROVISIONING_PROFILE = ""; PROVISIONING_PROFILE_SPECIFIER = ""; TARGETED_DEVICE_FAMILY = 1; }; name = Release; }; D0018AD21C0693F100DCE703 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; INFOPLIST_FILE = DemoTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "High-Flying.DemoTests"; PRODUCT_NAME = Demo; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Demo.app/Demo"; }; name = Debug; }; D0018AD31C0693F100DCE703 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; INFOPLIST_FILE = DemoTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "High-Flying.DemoTests"; PRODUCT_NAME = Demo; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Demo.app/Demo"; }; name = Release; }; D0018AD51C0693F100DCE703 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { INFOPLIST_FILE = DemoUITests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "High-Flying.DemoUITests"; PRODUCT_NAME = Demo; TEST_TARGET_NAME = Demo; USES_XCTRUNNER = YES; }; name = Debug; }; D0018AD61C0693F100DCE703 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { INFOPLIST_FILE = DemoUITests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "High-Flying.DemoUITests"; PRODUCT_NAME = Demo; TEST_TARGET_NAME = Demo; USES_XCTRUNNER = YES; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ D0018A9C1C0693F100DCE703 /* Build configuration list for PBXProject "Demo" */ = { isa = XCConfigurationList; buildConfigurations = ( D0018ACC1C0693F100DCE703 /* Debug */, D0018ACD1C0693F100DCE703 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; D0018ACE1C0693F100DCE703 /* Build configuration list for PBXNativeTarget "Demo" */ = { isa = XCConfigurationList; buildConfigurations = ( D0018ACF1C0693F100DCE703 /* Debug */, D0018AD01C0693F100DCE703 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; D0018AD11C0693F100DCE703 /* Build configuration list for PBXNativeTarget "DemoTests" */ = { isa = XCConfigurationList; buildConfigurations = ( D0018AD21C0693F100DCE703 /* Debug */, D0018AD31C0693F100DCE703 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; D0018AD41C0693F100DCE703 /* Build configuration list for PBXNativeTarget "DemoUITests" */ = { isa = XCConfigurationList; buildConfigurations = ( D0018AD51C0693F100DCE703 /* Debug */, D0018AD61C0693F100DCE703 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = D0018A991C0693F100DCE703 /* Project object */; } smartlink/Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
New file @@ -0,0 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <Workspace version = "1.0"> <FileRef location = "self:Demo.xcodeproj"> </FileRef> </Workspace> smartlink/Demo.xcodeproj/project.xcworkspace/xcuserdata/WindShan.xcuserdatad/UserInterfaceState.xcuserstateBinary files differ
smartlink/Demo.xcodeproj/project.xcworkspace/xcuserdata/doirs.xcuserdatad/UserInterfaceState.xcuserstateBinary files differ
smartlink/Demo.xcodeproj/project.xcworkspace/xcuserdata/peter.xcuserdatad/UserInterfaceState.xcuserstateBinary files differ
smartlink/Demo.xcodeproj/xcuserdata/WindShan.xcuserdatad/xcschemes/Demo.xcscheme
New file @@ -0,0 +1,111 @@ <?xml version="1.0" encoding="UTF-8"?> <Scheme LastUpgradeVersion = "0810" version = "1.3"> <BuildAction parallelizeBuildables = "YES" buildImplicitDependencies = "YES"> <BuildActionEntries> <BuildActionEntry buildForTesting = "YES" buildForRunning = "YES" buildForProfiling = "YES" buildForArchiving = "YES" buildForAnalyzing = "YES"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </BuildActionEntry> </BuildActionEntries> </BuildAction> <TestAction buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> <Testables> <TestableReference skipped = "NO"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AB91C0693F100DCE703" BuildableName = "Demo.xctest" BlueprintName = "DemoTests" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </TestableReference> <TestableReference skipped = "NO"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AC41C0693F100DCE703" BuildableName = "Demo.xctest" BlueprintName = "DemoUITests" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </TestableReference> </Testables> <MacroExpansion> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </MacroExpansion> <AdditionalOptions> </AdditionalOptions> </TestAction> <LaunchAction buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" allowLocationSimulation = "YES"> <BuildableProductRunnable runnableDebuggingMode = "0"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </BuildableProductRunnable> <AdditionalOptions> </AdditionalOptions> </LaunchAction> <ProfileAction buildConfiguration = "Release" shouldUseLaunchSchemeArgsEnv = "YES" savedToolIdentifier = "" useCustomWorkingDirectory = "NO" debugDocumentVersioning = "YES"> <BuildableProductRunnable runnableDebuggingMode = "0"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </BuildableProductRunnable> </ProfileAction> <AnalyzeAction buildConfiguration = "Debug"> </AnalyzeAction> <ArchiveAction buildConfiguration = "Release" revealArchiveInOrganizer = "YES"> </ArchiveAction> </Scheme> smartlink/Demo.xcodeproj/xcuserdata/WindShan.xcuserdatad/xcschemes/xcschememanagement.plist
New file @@ -0,0 +1,32 @@ <?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>Demo.xcscheme</key> <dict> <key>orderHint</key> <integer>0</integer> </dict> </dict> <key>SuppressBuildableAutocreation</key> <dict> <key>D0018AA01C0693F100DCE703</key> <dict> <key>primary</key> <true/> </dict> <key>D0018AB91C0693F100DCE703</key> <dict> <key>primary</key> <true/> </dict> <key>D0018AC41C0693F100DCE703</key> <dict> <key>primary</key> <true/> </dict> </dict> </dict> </plist> smartlink/Demo.xcodeproj/xcuserdata/doirs.xcuserdatad/xcschemes/Demo.xcscheme
New file @@ -0,0 +1,111 @@ <?xml version="1.0" encoding="UTF-8"?> <Scheme LastUpgradeVersion = "0810" version = "1.3"> <BuildAction parallelizeBuildables = "YES" buildImplicitDependencies = "YES"> <BuildActionEntries> <BuildActionEntry buildForTesting = "YES" buildForRunning = "YES" buildForProfiling = "YES" buildForArchiving = "YES" buildForAnalyzing = "YES"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </BuildActionEntry> </BuildActionEntries> </BuildAction> <TestAction buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> <Testables> <TestableReference skipped = "NO"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AB91C0693F100DCE703" BuildableName = "Demo.xctest" BlueprintName = "DemoTests" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </TestableReference> <TestableReference skipped = "NO"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AC41C0693F100DCE703" BuildableName = "Demo.xctest" BlueprintName = "DemoUITests" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </TestableReference> </Testables> <MacroExpansion> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </MacroExpansion> <AdditionalOptions> </AdditionalOptions> </TestAction> <LaunchAction buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" allowLocationSimulation = "YES"> <BuildableProductRunnable runnableDebuggingMode = "0"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </BuildableProductRunnable> <AdditionalOptions> </AdditionalOptions> </LaunchAction> <ProfileAction buildConfiguration = "Release" shouldUseLaunchSchemeArgsEnv = "YES" savedToolIdentifier = "" useCustomWorkingDirectory = "NO" debugDocumentVersioning = "YES"> <BuildableProductRunnable runnableDebuggingMode = "0"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </BuildableProductRunnable> </ProfileAction> <AnalyzeAction buildConfiguration = "Debug"> </AnalyzeAction> <ArchiveAction buildConfiguration = "Release" revealArchiveInOrganizer = "YES"> </ArchiveAction> </Scheme> smartlink/Demo.xcodeproj/xcuserdata/doirs.xcuserdatad/xcschemes/xcschememanagement.plist
New file @@ -0,0 +1,32 @@ <?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>Demo.xcscheme</key> <dict> <key>orderHint</key> <integer>0</integer> </dict> </dict> <key>SuppressBuildableAutocreation</key> <dict> <key>D0018AA01C0693F100DCE703</key> <dict> <key>primary</key> <true/> </dict> <key>D0018AB91C0693F100DCE703</key> <dict> <key>primary</key> <true/> </dict> <key>D0018AC41C0693F100DCE703</key> <dict> <key>primary</key> <true/> </dict> </dict> </dict> </plist> smartlink/Demo.xcodeproj/xcuserdata/peter.xcuserdatad/xcschemes/Demo.xcscheme
New file @@ -0,0 +1,112 @@ <?xml version="1.0" encoding="UTF-8"?> <Scheme LastUpgradeVersion = "0710" version = "1.3"> <BuildAction parallelizeBuildables = "YES" buildImplicitDependencies = "YES"> <BuildActionEntries> <BuildActionEntry buildForTesting = "YES" buildForRunning = "YES" buildForProfiling = "YES" buildForArchiving = "YES" buildForAnalyzing = "YES"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </BuildActionEntry> </BuildActionEntries> </BuildAction> <TestAction buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> <Testables> <TestableReference skipped = "NO"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AB91C0693F100DCE703" BuildableName = "Demo.xctest" BlueprintName = "DemoTests" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </TestableReference> <TestableReference skipped = "NO"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AC41C0693F100DCE703" BuildableName = "Demo.xctest" BlueprintName = "DemoUITests" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </TestableReference> </Testables> <MacroExpansion> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </MacroExpansion> <AdditionalOptions> </AdditionalOptions> </TestAction> <LaunchAction buildConfiguration = "Release" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" allowLocationSimulation = "YES"> <BuildableProductRunnable runnableDebuggingMode = "0"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </BuildableProductRunnable> <AdditionalOptions> </AdditionalOptions> </LaunchAction> <ProfileAction buildConfiguration = "Release" shouldUseLaunchSchemeArgsEnv = "YES" savedToolIdentifier = "" useCustomWorkingDirectory = "NO" debugDocumentVersioning = "YES"> <BuildableProductRunnable runnableDebuggingMode = "0"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "D0018AA01C0693F100DCE703" BuildableName = "Demo.app" BlueprintName = "Demo" ReferencedContainer = "container:Demo.xcodeproj"> </BuildableReference> </BuildableProductRunnable> </ProfileAction> <AnalyzeAction buildConfiguration = "Debug"> </AnalyzeAction> <ArchiveAction buildConfiguration = "Release" customArchiveName = "HF-Smartlink_V7" revealArchiveInOrganizer = "YES"> </ArchiveAction> </Scheme> smartlink/Demo.xcodeproj/xcuserdata/peter.xcuserdatad/xcschemes/xcschememanagement.plist
New file @@ -0,0 +1,32 @@ <?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>Demo.xcscheme</key> <dict> <key>orderHint</key> <integer>0</integer> </dict> </dict> <key>SuppressBuildableAutocreation</key> <dict> <key>D0018AA01C0693F100DCE703</key> <dict> <key>primary</key> <true/> </dict> <key>D0018AB91C0693F100DCE703</key> <dict> <key>primary</key> <true/> </dict> <key>D0018AC41C0693F100DCE703</key> <dict> <key>primary</key> <true/> </dict> </dict> </dict> </plist> smartlink/Demo/AppDelegate.h
New file @@ -0,0 +1,17 @@ // // AppDelegate.h // Demo // // Created by Peter on 15/11/26. // Copyright © 2015年 Peter. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end smartlink/Demo/AppDelegate.m
New file @@ -0,0 +1,45 @@ // // AppDelegate.m // Demo // // Created by Peter on 15/11/26. // Copyright © 2015年 Peter. All rights reserved. // #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. return YES; } - (void)applicationWillResignActive:(UIApplication *)application { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } - (void)applicationDidEnterBackground:(UIApplication *)application { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } - (void)applicationWillEnterForeground:(UIApplication *)application { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } - (void)applicationDidBecomeActive:(UIApplication *)application { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } - (void)applicationWillTerminate:(UIApplication *)application { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } @end smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Contents.json
New file @@ -0,0 +1,133 @@ { "images" : [ { "size" : "20x20", "idiom" : "iphone", "filename" : "Icon-Spotlight-40.png", "scale" : "2x" }, { "size" : "20x20", "idiom" : "iphone", "filename" : "Icon-60.png", "scale" : "3x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-Small.png", "scale" : "1x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-Small@2x.png", "scale" : "2x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-Small@3x-1.png", "scale" : "3x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "Icon-Small-40@2x.png", "scale" : "2x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "Icon-Small-40@3x.png", "scale" : "3x" }, { "size" : "57x57", "idiom" : "iphone", "filename" : "Icon.png", "scale" : "1x" }, { "size" : "57x57", "idiom" : "iphone", "filename" : "Icon@2x.png", "scale" : "2x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "Icon-60@2x-1.png", "scale" : "2x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "Icon-60@3x-1.png", "scale" : "3x" }, { "size" : "60x60", "idiom" : "car", "filename" : "Icon-60@2x.png", "scale" : "2x" }, { "size" : "60x60", "idiom" : "car", "filename" : "Icon-60@3x.png", "scale" : "3x" }, { "size" : "24x24", "idiom" : "watch", "scale" : "2x", "role" : "notificationCenter", "subtype" : "38mm" }, { "size" : "27.5x27.5", "idiom" : "watch", "scale" : "2x", "role" : "notificationCenter", "subtype" : "42mm" }, { "size" : "29x29", "idiom" : "watch", "role" : "companionSettings", "scale" : "2x" }, { "size" : "29x29", "idiom" : "watch", "role" : "companionSettings", "scale" : "3x" }, { "size" : "40x40", "idiom" : "watch", "scale" : "2x", "role" : "appLauncher", "subtype" : "38mm" }, { "size" : "86x86", "idiom" : "watch", "scale" : "2x", "role" : "quickLook", "subtype" : "38mm" }, { "size" : "98x98", "idiom" : "watch", "scale" : "2x", "role" : "quickLook", "subtype" : "42mm" } ], "info" : { "version" : 1, "author" : "xcode" } } smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon-60.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon-60@2x-1.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon-60@3x-1.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon-Small.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x-1.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon-Spotlight-40.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon.png
smartlink/Demo/Assets.xcassets/AppIcon.appiconset/Icon@2x.png
smartlink/Demo/Assets.xcassets/Contents.json
New file @@ -0,0 +1,6 @@ { "info" : { "version" : 1, "author" : "xcode" } } smartlink/Demo/Base.lproj/LaunchScreen.storyboard
New file @@ -0,0 +1,27 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM"> <dependencies> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/> </dependencies> <scenes> <!--View Controller--> <scene sceneID="EHf-IW-A2E"> <objects> <viewController id="01J-lp-oVM" sceneMemberID="viewController"> <layoutGuides> <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/> <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/> </layoutGuides> <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <animations/> <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> </view> </viewController> <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> </objects> <point key="canvasLocation" x="53" y="375"/> </scene> </scenes> </document> smartlink/Demo/Base.lproj/Main.storyboard
New file @@ -0,0 +1,119 @@ <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2555" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r"> <device id="retina4_7" orientation="portrait"> <adaptation id="fullscreen"/> </device> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11524"/> <capability name="Constraints to layout margins" minToolsVersion="6.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <scenes> <!--View Controller--> <scene sceneID="tne-QT-ifu"> <objects> <viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController"> <layoutGuides> <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/> <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> </layoutGuides> <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Qt9-Kp-DXd"> <rect key="frame" x="32" y="80" width="311" height="30"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="wujianyu" borderStyle="roundedRect" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="R14-ME-uVA"> <rect key="frame" x="32" y="135" width="311" height="30"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits"/> </textField> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="M2K-Ex-yds"> <rect key="frame" x="32" y="216" width="311" height="30"/> <color key="backgroundColor" red="0.31764705879999999" green="0.73725490199999999" blue="0.098039215690000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <state key="normal" title="connect"> <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </state> <connections> <action selector="butPressed:" destination="BYZ-38-t0r" eventType="touchUpInside" id="ENc-Ea-TpZ"/> </connections> </button> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="SmartLink" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ANq-OS-WMB"> <rect key="frame" x="32" y="28" width="311" height="21"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <progressView opaque="NO" contentMode="scaleToFill" verticalHuggingPriority="750" progress="0.5" translatesAutoresizingMaskIntoConstraints="NO" id="anH-68-myp"> <rect key="frame" x="32" y="270" width="311" height="2"/> </progressView> <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="krm-qM-O3l"> <rect key="frame" x="294" y="175" width="51" height="31"/> <connections> <action selector="swPressed:" destination="BYZ-38-t0r" eventType="valueChanged" id="Vio-gI-Q6L"/> </connections> </switch> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Single Device Configure" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ktI-wg-KUE"> <rect key="frame" x="32" y="190" width="201" height="21"/> <constraints> <constraint firstAttribute="width" constant="201" id="nA0-nt-iBU"/> </constraints> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="V7.3" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ICH-LN-aj3"> <rect key="frame" x="252" y="57" width="91" height="21"/> <constraints> <constraint firstAttribute="height" constant="21" id="1ZC-oN-8pz"/> <constraint firstAttribute="width" constant="91" id="vGe-NA-E1T"/> </constraints> <fontDescription key="fontDescription" type="system" pointSize="12"/> <color key="textColor" red="0.53725490200000003" green="0.53725490200000003" blue="0.53725490200000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> </label> </subviews> <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <constraints> <constraint firstItem="Qt9-Kp-DXd" firstAttribute="leading" secondItem="ANq-OS-WMB" secondAttribute="leading" id="0Em-zo-a63"/> <constraint firstItem="Qt9-Kp-DXd" firstAttribute="trailing" secondItem="ICH-LN-aj3" secondAttribute="trailing" id="7Js-7L-cPF"/> <constraint firstItem="Qt9-Kp-DXd" firstAttribute="top" secondItem="ICH-LN-aj3" secondAttribute="bottom" constant="2" id="CDI-Hq-zXr"/> <constraint firstItem="R14-ME-uVA" firstAttribute="trailing" secondItem="krm-qM-O3l" secondAttribute="trailing" id="CW0-kQ-fdX"/> <constraint firstItem="ANq-OS-WMB" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" constant="8" symbolic="YES" id="ODS-9m-qNw"/> <constraint firstItem="Qt9-Kp-DXd" firstAttribute="trailing" secondItem="R14-ME-uVA" secondAttribute="trailing" id="PgS-9z-hO4"/> <constraint firstItem="ktI-wg-KUE" firstAttribute="leading" secondItem="R14-ME-uVA" secondAttribute="leading" id="SRz-ne-lsb"/> <constraint firstItem="M2K-Ex-yds" firstAttribute="top" secondItem="krm-qM-O3l" secondAttribute="bottom" constant="10" id="ZFh-n7-aj0"/> <constraint firstItem="ktI-wg-KUE" firstAttribute="leading" secondItem="M2K-Ex-yds" secondAttribute="leading" id="Zkd-gz-haB"/> <constraint firstItem="M2K-Ex-yds" firstAttribute="trailing" secondItem="krm-qM-O3l" secondAttribute="trailing" id="Zky-4a-pFs"/> <constraint firstItem="anH-68-myp" firstAttribute="top" secondItem="M2K-Ex-yds" secondAttribute="bottom" constant="24" id="cPf-Yr-56Y"/> <constraint firstItem="anH-68-myp" firstAttribute="leading" secondItem="M2K-Ex-yds" secondAttribute="leading" id="iko-C9-ddy"/> <constraint firstItem="krm-qM-O3l" firstAttribute="top" secondItem="R14-ME-uVA" secondAttribute="bottom" constant="10" id="ilL-LJ-BH4"/> <constraint firstItem="M2K-Ex-yds" firstAttribute="trailing" secondItem="anH-68-myp" secondAttribute="trailing" id="jYd-FG-dsF"/> <constraint firstItem="M2K-Ex-yds" firstAttribute="top" secondItem="ktI-wg-KUE" secondAttribute="bottom" constant="5" id="lOE-7I-ARE"/> <constraint firstItem="ANq-OS-WMB" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" constant="16" id="oHz-6R-Cic"/> <constraint firstItem="ICH-LN-aj3" firstAttribute="trailing" secondItem="ANq-OS-WMB" secondAttribute="trailing" id="q90-Zk-ebI"/> <constraint firstItem="anH-68-myp" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="rDn-Q0-ag3"/> <constraint firstItem="ICH-LN-aj3" firstAttribute="top" secondItem="ANq-OS-WMB" secondAttribute="bottom" constant="8" symbolic="YES" id="rc9-YN-8Eh"/> <constraint firstItem="R14-ME-uVA" firstAttribute="top" secondItem="Qt9-Kp-DXd" secondAttribute="bottom" constant="25" id="rxt-Bm-uKJ"/> <constraint firstItem="R14-ME-uVA" firstAttribute="leading" secondItem="Qt9-Kp-DXd" secondAttribute="leading" id="yyy-Jt-ZrP"/> </constraints> </view> <connections> <outlet property="butConnect" destination="M2K-Ex-yds" id="rHM-0H-hjG"/> <outlet property="lblVersion" destination="ICH-LN-aj3" id="suP-ts-VNJ"/> <outlet property="progress" destination="anH-68-myp" id="XWS-pR-6FT"/> <outlet property="switcher" destination="krm-qM-O3l" id="qq0-nU-zLb"/> <outlet property="txtPwd" destination="R14-ME-uVA" id="CNA-3F-AHN"/> <outlet property="txtSSID" destination="Qt9-Kp-DXd" id="9JE-Wx-tQf"/> </connections> </viewController> <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> </objects> <point key="canvasLocation" x="322" y="375"/> </scene> </scenes> </document> smartlink/Demo/HFSmartLink.h
New file @@ -0,0 +1,88 @@ // // HFSmartLink.h // SmartlinkLib // // Created by wangmeng on 15/3/16. // Copyright (c) 2015年 HF. All rights reserved. // #import <Foundation/Foundation.h> #import "HFSmartLinkDeviceInfo.h" typedef void(^SmartLinkProcessBlock)(NSInteger process); /** * 设置成功以后的Block * * @param dev */ typedef void(^SmartLinkSuccessBlock)(HFSmartLinkDeviceInfo *dev); /** * 设置失败的信息 * * @param failmsg 失败信息 */ typedef void(^SmartLinkFailBlock)(NSString * failmsg); /** * 用户手动停掉的block * * @param stopMsg 停止的信息 * @param isOk 是否停止成功 */ typedef void(^SmartLinkStopBlock)(NSString *stopMsg,BOOL isOk); /** * 关闭服务的Block * * @param closeMsg 关闭的信息 * @param isOK 是否关闭成功 */ typedef void(^SmartLinkCloseBlock)(NSString * closeMsg,BOOL isOK); /** * 发现设备的block * * @param deviceDic 发现的设备 */ typedef void(^SmartLinkEndblock)(NSDictionary * deviceDic); @interface HFSmartLink : NSObject /** * 是否配置单个设备,或者多个设备 默认false */ @property (nonatomic) BOOL isConfigOneDevice; /** * 配置信息发送完成以后,等待搜索设备的时间 second 默认15 */ @property (nonatomic) NSInteger waitTimers; /** * 获取smartlink 的单例 * * @return 返回smartlink的单例 */ +(instancetype)shareInstence; /** * 开始配置 block不能为nil * * @param key 路由器密码 * @param pblock 进度block * @param sblock 成功block * @param fblock 失败block * @param eblock 结束block */ //-(void)startWithKey:(NSString*)key processblock:(SmartLinkProcessBlock)pblock successBlock:(SmartLinkSuccessBlock)sblock failBlock:(SmartLinkFailBlock)fblock endBlock:(SmartLinkEndblock)eblock; -(void)startWithSSID:(NSString*)ssid Key:(NSString*)key withV3x:(BOOL)v3x processblock:(SmartLinkProcessBlock)pblock successBlock:(SmartLinkSuccessBlock)sblock failBlock:(SmartLinkFailBlock)fblock endBlock:(SmartLinkEndblock)eblock; // for smartlink V7.0 //-(void)startWithContent:(char *)content lenght:(int)len key:(NSString *)key withV3x:(BOOL)v3x processblock:(SmartLinkProcessBlock)pblock successBlock:(SmartLinkSuccessBlock)sblock failBlock:(SmartLinkFailBlock)fblock endBlock:(SmartLinkEndblock)eblock; /** * 停止配置 * * @param block 停止配置的block */ -(void)stopWithBlock:(SmartLinkStopBlock)block; /** * 关闭整个Smartlink服务,再次调用的时候必须 从头开始 初始化。 * * @param block 关闭服务block */ -(void)closeWithBlock:(SmartLinkCloseBlock)block; @end smartlink/Demo/HFSmartLinkDeviceInfo.h
New file @@ -0,0 +1,14 @@ // // HFSmartLinkDeviceInfo.h // SmartlinkLib // // Created by wangmeng on 15/3/17. // Copyright (c) 2015年 HF. All rights reserved. // #import <Foundation/Foundation.h> @interface HFSmartLinkDeviceInfo : NSObject @property (nonatomic,strong) NSString * ip; @property (nonatomic,strong) NSString * mac; @end smartlink/Demo/Info.plist
New file @@ -0,0 +1,42 @@ <?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>CFBundleDisplayName</key> <string>Smartlink_V7</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIconFiles</key> <array/> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>HF-Smartlink_V7</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>1.3</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>1.3</string> <key>LSRequiresIPhoneOS</key> <true/> <key>UILaunchStoryboardName</key> <string>LaunchScreen</string> <key>UIMainStoryboardFile</key> <string>Main</string> <key>UIRequiredDeviceCapabilities</key> <array> <string>armv7</string> </array> <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> </array> </dict> </plist> smartlink/Demo/ViewController.h
New file @@ -0,0 +1,24 @@ // // ViewController.h // Demo // // Created by Peter on 15/11/26. // Copyright © 2015年 Peter. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController<UITextFieldDelegate> @property (weak, nonatomic) IBOutlet UITextField *txtSSID; @property (weak, nonatomic) IBOutlet UITextField *txtPwd; @property (weak, nonatomic) IBOutlet UIButton *butConnect; @property (weak, nonatomic) IBOutlet UIProgressView *progress; @property (weak, nonatomic) IBOutlet UISwitch *switcher; @property (weak, nonatomic) IBOutlet UILabel *lblVersion; - (IBAction)butPressed:(id)sender; - (IBAction)swPressed:(id)sender; @end smartlink/Demo/ViewController.m
New file @@ -0,0 +1,143 @@ // // ViewController.m // Demo // // Created by Peter on 15/11/26. // Copyright © 2015年 Peter. All rights reserved. // #import "ViewController.h" #import "smartlinklib_7x.h" #import "HFSmartLink.h" #import "HFSmartLinkDeviceInfo.h" #import <SystemConfiguration/CaptiveNetwork.h> @interface ViewController () { HFSmartLink * smtlk; BOOL isconnecting; } @end // V 7.2.00 for ipv6 compatible #define APP_VERSION @"V 7.2.01" @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. smtlk = [HFSmartLink shareInstence]; smtlk.isConfigOneDevice = true; smtlk.waitTimers = 30; isconnecting=false; self.progress.progress = 0.0; self.switcher.on = smtlk.isConfigOneDevice; [self showWifiSsid]; self.txtPwd.text = [self getspwdByssid:self.txtSSID.text]; _txtPwd.delegate=self; _txtSSID.delegate=self; _lblVersion.text=APP_VERSION; } - (IBAction)butPressed:(id)sender { NSString * ssidStr= self.txtSSID.text; NSString * pswdStr = self.txtPwd.text; [self savePswd]; self.progress.progress = 0.0; if(!isconnecting){ isconnecting = true; [smtlk startWithSSID:ssidStr Key:pswdStr withV3x:true processblock: ^(NSInteger pro) { self.progress.progress = (float)(pro)/100.0; } successBlock:^(HFSmartLinkDeviceInfo *dev) { [self showAlertWithMsg:[NSString stringWithFormat:@"%@:%@",dev.mac,dev.ip] title:@"OK"]; } failBlock:^(NSString *failmsg) { [self showAlertWithMsg:failmsg title:@"error"]; } endBlock:^(NSDictionary *deviceDic) { isconnecting = false; [self.butConnect setTitle:@"connect" forState:UIControlStateNormal]; }]; [self.butConnect setTitle:@"connecting" forState:UIControlStateNormal]; }else{ [smtlk stopWithBlock:^(NSString *stopMsg, BOOL isOk) { if(isOk){ isconnecting = false; [self.butConnect setTitle:@"1connect" forState:UIControlStateNormal]; [self showAlertWithMsg:stopMsg title:@"OK"]; }else{ [self showAlertWithMsg:stopMsg title:@"error"]; } }]; } } - (IBAction)swPressed:(id)sender { if(self.switcher.on){ smtlk.isConfigOneDevice = true; }else{ smtlk.isConfigOneDevice = false; } } -(void)showAlertWithMsg:(NSString *)msg title:(NSString*)title{ UIAlertView * alert = [[UIAlertView alloc]initWithTitle:title message:msg delegate:nil cancelButtonTitle:@"cancel" otherButtonTitles:@"ok", nil]; [alert show]; } -(void)savePswd{ NSUserDefaults * def = [NSUserDefaults standardUserDefaults]; [def setObject:self.txtPwd.text forKey:self.txtSSID.text]; } -(NSString *)getspwdByssid:(NSString * )mssid{ NSUserDefaults * def = [NSUserDefaults standardUserDefaults]; return [def objectForKey:mssid]; } - (void)showWifiSsid { BOOL wifiOK= FALSE; NSDictionary *ifs; NSString *ssid; UIAlertView *alert; if (!wifiOK) { ifs = [self fetchSSIDInfo]; ssid = [ifs objectForKey:@"SSID"]; if (ssid!= nil) { wifiOK= TRUE; self.txtSSID.text = ssid; } else { alert= [[UIAlertView alloc] initWithTitle:@"" message:[NSString stringWithFormat:@"请连接Wi-Fi"] delegate:self cancelButtonTitle:@"关闭" otherButtonTitles:nil]; alert.delegate=self; [alert show]; } } } - (id)fetchSSIDInfo { NSArray *ifs = (__bridge_transfer id)CNCopySupportedInterfaces(); NSLog(@"Supported interfaces: %@", ifs); id info = nil; for (NSString *ifnam in ifs) { info = (__bridge_transfer id)CNCopyCurrentNetworkInfo((__bridge CFStringRef)ifnam); NSLog(@"%@ => %@", ifnam, info); if (info && [info count]) { break; } } return info; } - (BOOL)textFieldShouldReturn:(UITextField *)theTextField { [theTextField resignFirstResponder]; return YES; } @end smartlink/Demo/libSmartLink7.3.aBinary files differ
smartlink/Demo/main.m
New file @@ -0,0 +1,16 @@ // // main.m // Demo // // Created by Peter on 15/11/26. // Copyright © 2015年 Peter. All rights reserved. // #import <UIKit/UIKit.h> #import "AppDelegate.h" int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } } smartlink/Demo/smartlinklib_7x.h
New file @@ -0,0 +1,16 @@ // // smartlinklib_7x.h // smartlinklib_7x // // Created by Peter on 15/11/26. // Copyright © 2015年 Peter. All rights reserved. // #import <Foundation/Foundation.h> @interface smartlinklib_7x : NSObject +(instancetype)shareInstence; -(NSString *)getSsid; @end smartlink/DemoTests/DemoTests.m
New file @@ -0,0 +1,39 @@ // // DemoTests.m // DemoTests // // Created by Peter on 15/11/26. // Copyright © 2015年 Peter. All rights reserved. // #import <XCTest/XCTest.h> @interface DemoTests : XCTestCase @end @implementation DemoTests - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. } - (void)tearDown { // Put teardown code here. This method is called after the invocation of each test method in the class. [super tearDown]; } - (void)testExample { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. } - (void)testPerformanceExample { // This is an example of a performance test case. [self measureBlock:^{ // Put the code you want to measure the time of here. }]; } @end smartlink/DemoTests/Info.plist
New file @@ -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>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>BNDL</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>1</string> </dict> </plist> smartlink/DemoUITests/DemoUITests.m
New file @@ -0,0 +1,40 @@ // // DemoUITests.m // DemoUITests // // Created by Peter on 15/11/26. // Copyright © 2015年 Peter. All rights reserved. // #import <XCTest/XCTest.h> @interface DemoUITests : XCTestCase @end @implementation DemoUITests - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is usually best to stop immediately when a failure occurs. self.continueAfterFailure = NO; // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. [[[XCUIApplication alloc] init] launch]; // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. } - (void)tearDown { // Put teardown code here. This method is called after the invocation of each test method in the class. [super tearDown]; } - (void)testExample { // Use recording to get started writing UI tests. // Use XCTAssert and related functions to verify your tests produce the correct results. } @end smartlink/DemoUITests/Info.plist
New file @@ -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>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>BNDL</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>1</string> </dict> </plist> smartlink/icon_57x57.png
smartlink/pic3.png
smartlink/pic_1024X1024.png