Commit fe14a10599f3c30e407c05b53bf5eba7579fcc39

Authored by 赵康
1 parent 3a2dd3d715
Exists in master and in 1 other branch features

update demo

Showing 31 changed files with 870 additions and 1 deletions Side-by-side Diff

ios/SpreadDemo/SpreadDemo.xcodeproj/project.pbxproj
... ... @@ -0,0 +1,355 @@
  1 +// !$*UTF8*$!
  2 +{
  3 + archiveVersion = 1;
  4 + classes = {
  5 + };
  6 + objectVersion = 46;
  7 + objects = {
  8 +
  9 +/* Begin PBXBuildFile section */
  10 + 3309D87E1C33A12200534E33 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3309D87D1C33A12200534E33 /* main.m */; };
  11 + 3309D8811C33A12200534E33 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3309D8801C33A12200534E33 /* AppDelegate.m */; };
  12 + 3309D8841C33A12200534E33 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3309D8831C33A12200534E33 /* ViewController.m */; };
  13 + 3309D8891C33A12200534E33 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3309D8881C33A12200534E33 /* Assets.xcassets */; };
  14 + 3309D88C1C33A12200534E33 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3309D88A1C33A12200534E33 /* LaunchScreen.storyboard */; };
  15 + 3309D8C71C33E5F500534E33 /* Spreader.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 3309D8C61C33E5F500534E33 /* Spreader.bundle */; };
  16 + 3309D8CF1C34CEF000534E33 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D8CE1C34CEF000534E33 /* CoreGraphics.framework */; };
  17 + 3309D8DC1C3BA7CE00534E33 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 3309D8DB1C3BA7CE00534E33 /* Default-568h@2x.png */; };
  18 + 3309D9511C3E098000534E33 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D9501C3E098000534E33 /* SystemConfiguration.framework */; };
  19 + 3309D95B1C3E0B1500534E33 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D95A1C3E0B1500534E33 /* MobileCoreServices.framework */; };
  20 + 336FC7E21C46413D00151550 /* Spreader.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 336FC7E11C46413D00151550 /* Spreader.framework */; };
  21 +/* End PBXBuildFile section */
  22 +
  23 +/* Begin PBXFileReference section */
  24 + 3309D8791C33A12200534E33 /* SpreadDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SpreadDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
  25 + 3309D87D1C33A12200534E33 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
  26 + 3309D87F1C33A12200534E33 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
  27 + 3309D8801C33A12200534E33 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
  28 + 3309D8821C33A12200534E33 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
  29 + 3309D8831C33A12200534E33 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
  30 + 3309D8881C33A12200534E33 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
  31 + 3309D88B1C33A12200534E33 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
  32 + 3309D88D1C33A12200534E33 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
  33 + 3309D8C61C33E5F500534E33 /* Spreader.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Spreader.bundle; sourceTree = "<group>"; };
  34 + 3309D8CE1C34CEF000534E33 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
  35 + 3309D8DB1C3BA7CE00534E33 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
  36 + 3309D9501C3E098000534E33 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
  37 + 3309D95A1C3E0B1500534E33 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
  38 + 336FC7E11C46413D00151550 /* Spreader.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Spreader.framework; path = ../Spreader.framework; sourceTree = "<group>"; };
  39 +/* End PBXFileReference section */
  40 +
  41 +/* Begin PBXFrameworksBuildPhase section */
  42 + 3309D8761C33A12200534E33 /* Frameworks */ = {
  43 + isa = PBXFrameworksBuildPhase;
  44 + buildActionMask = 2147483647;
  45 + files = (
  46 + 336FC7E21C46413D00151550 /* Spreader.framework in Frameworks */,
  47 + 3309D95B1C3E0B1500534E33 /* MobileCoreServices.framework in Frameworks */,
  48 + 3309D9511C3E098000534E33 /* SystemConfiguration.framework in Frameworks */,
  49 + 3309D8CF1C34CEF000534E33 /* CoreGraphics.framework in Frameworks */,
  50 + );
  51 + runOnlyForDeploymentPostprocessing = 0;
  52 + };
  53 +/* End PBXFrameworksBuildPhase section */
  54 +
  55 +/* Begin PBXGroup section */
  56 + 3309D8701C33A12200534E33 = {
  57 + isa = PBXGroup;
  58 + children = (
  59 + 3309D8D01C3A28A000534E33 /* Frameworks */,
  60 + 3309D87B1C33A12200534E33 /* SpreadDemo */,
  61 + 3309D87A1C33A12200534E33 /* Products */,
  62 + );
  63 + sourceTree = "<group>";
  64 + };
  65 + 3309D87A1C33A12200534E33 /* Products */ = {
  66 + isa = PBXGroup;
  67 + children = (
  68 + 3309D8791C33A12200534E33 /* SpreadDemo.app */,
  69 + );
  70 + name = Products;
  71 + sourceTree = "<group>";
  72 + };
  73 + 3309D87B1C33A12200534E33 /* SpreadDemo */ = {
  74 + isa = PBXGroup;
  75 + children = (
  76 + 3309D8DB1C3BA7CE00534E33 /* Default-568h@2x.png */,
  77 + 3309D87F1C33A12200534E33 /* AppDelegate.h */,
  78 + 3309D8801C33A12200534E33 /* AppDelegate.m */,
  79 + 3309D8821C33A12200534E33 /* ViewController.h */,
  80 + 3309D8831C33A12200534E33 /* ViewController.m */,
  81 + 3309D8881C33A12200534E33 /* Assets.xcassets */,
  82 + 3309D88A1C33A12200534E33 /* LaunchScreen.storyboard */,
  83 + 3309D88D1C33A12200534E33 /* Info.plist */,
  84 + 3309D87C1C33A12200534E33 /* Supporting Files */,
  85 + 3309D8C61C33E5F500534E33 /* Spreader.bundle */,
  86 + );
  87 + path = SpreadDemo;
  88 + sourceTree = "<group>";
  89 + };
  90 + 3309D87C1C33A12200534E33 /* Supporting Files */ = {
  91 + isa = PBXGroup;
  92 + children = (
  93 + 3309D87D1C33A12200534E33 /* main.m */,
  94 + );
  95 + name = "Supporting Files";
  96 + sourceTree = "<group>";
  97 + };
  98 + 3309D8D01C3A28A000534E33 /* Frameworks */ = {
  99 + isa = PBXGroup;
  100 + children = (
  101 + 336FC7E11C46413D00151550 /* Spreader.framework */,
  102 + 3309D95A1C3E0B1500534E33 /* MobileCoreServices.framework */,
  103 + 3309D9501C3E098000534E33 /* SystemConfiguration.framework */,
  104 + 3309D8CE1C34CEF000534E33 /* CoreGraphics.framework */,
  105 + );
  106 + name = Frameworks;
  107 + sourceTree = "<group>";
  108 + };
  109 +/* End PBXGroup section */
  110 +
  111 +/* Begin PBXNativeTarget section */
  112 + 3309D8781C33A12200534E33 /* SpreadDemo */ = {
  113 + isa = PBXNativeTarget;
  114 + buildConfigurationList = 3309D8901C33A12200534E33 /* Build configuration list for PBXNativeTarget "SpreadDemo" */;
  115 + buildPhases = (
  116 + 3309D8751C33A12200534E33 /* Sources */,
  117 + 3309D8761C33A12200534E33 /* Frameworks */,
  118 + 3309D8771C33A12200534E33 /* Resources */,
  119 + );
  120 + buildRules = (
  121 + );
  122 + dependencies = (
  123 + );
  124 + name = SpreadDemo;
  125 + productName = SpreadDemo;
  126 + productReference = 3309D8791C33A12200534E33 /* SpreadDemo.app */;
  127 + productType = "com.apple.product-type.application";
  128 + };
  129 +/* End PBXNativeTarget section */
  130 +
  131 +/* Begin PBXProject section */
  132 + 3309D8711C33A12200534E33 /* Project object */ = {
  133 + isa = PBXProject;
  134 + attributes = {
  135 + LastUpgradeCheck = 0710;
  136 + ORGANIZATIONNAME = Gump;
  137 + TargetAttributes = {
  138 + 3309D8781C33A12200534E33 = {
  139 + CreatedOnToolsVersion = 7.1.1;
  140 + DevelopmentTeam = TU2VD6BENZ;
  141 + };
  142 + };
  143 + };
  144 + buildConfigurationList = 3309D8741C33A12200534E33 /* Build configuration list for PBXProject "SpreadDemo" */;
  145 + compatibilityVersion = "Xcode 3.2";
  146 + developmentRegion = English;
  147 + hasScannedForEncodings = 0;
  148 + knownRegions = (
  149 + en,
  150 + Base,
  151 + );
  152 + mainGroup = 3309D8701C33A12200534E33;
  153 + productRefGroup = 3309D87A1C33A12200534E33 /* Products */;
  154 + projectDirPath = "";
  155 + projectRoot = "";
  156 + targets = (
  157 + 3309D8781C33A12200534E33 /* SpreadDemo */,
  158 + );
  159 + };
  160 +/* End PBXProject section */
  161 +
  162 +/* Begin PBXResourcesBuildPhase section */
  163 + 3309D8771C33A12200534E33 /* Resources */ = {
  164 + isa = PBXResourcesBuildPhase;
  165 + buildActionMask = 2147483647;
  166 + files = (
  167 + 3309D88C1C33A12200534E33 /* LaunchScreen.storyboard in Resources */,
  168 + 3309D8C71C33E5F500534E33 /* Spreader.bundle in Resources */,
  169 + 3309D8891C33A12200534E33 /* Assets.xcassets in Resources */,
  170 + 3309D8DC1C3BA7CE00534E33 /* Default-568h@2x.png in Resources */,
  171 + );
  172 + runOnlyForDeploymentPostprocessing = 0;
  173 + };
  174 +/* End PBXResourcesBuildPhase section */
  175 +
  176 +/* Begin PBXSourcesBuildPhase section */
  177 + 3309D8751C33A12200534E33 /* Sources */ = {
  178 + isa = PBXSourcesBuildPhase;
  179 + buildActionMask = 2147483647;
  180 + files = (
  181 + 3309D8841C33A12200534E33 /* ViewController.m in Sources */,
  182 + 3309D8811C33A12200534E33 /* AppDelegate.m in Sources */,
  183 + 3309D87E1C33A12200534E33 /* main.m in Sources */,
  184 + );
  185 + runOnlyForDeploymentPostprocessing = 0;
  186 + };
  187 +/* End PBXSourcesBuildPhase section */
  188 +
  189 +/* Begin PBXVariantGroup section */
  190 + 3309D88A1C33A12200534E33 /* LaunchScreen.storyboard */ = {
  191 + isa = PBXVariantGroup;
  192 + children = (
  193 + 3309D88B1C33A12200534E33 /* Base */,
  194 + );
  195 + name = LaunchScreen.storyboard;
  196 + sourceTree = "<group>";
  197 + };
  198 +/* End PBXVariantGroup section */
  199 +
  200 +/* Begin XCBuildConfiguration section */
  201 + 3309D88E1C33A12200534E33 /* Debug */ = {
  202 + isa = XCBuildConfiguration;
  203 + buildSettings = {
  204 + ALWAYS_SEARCH_USER_PATHS = NO;
  205 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  206 + CLANG_CXX_LIBRARY = "libc++";
  207 + CLANG_ENABLE_MODULES = YES;
  208 + CLANG_ENABLE_OBJC_ARC = YES;
  209 + CLANG_WARN_BOOL_CONVERSION = YES;
  210 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  211 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  212 + CLANG_WARN_EMPTY_BODY = YES;
  213 + CLANG_WARN_ENUM_CONVERSION = YES;
  214 + CLANG_WARN_INT_CONVERSION = YES;
  215 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  216 + CLANG_WARN_UNREACHABLE_CODE = YES;
  217 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  218 + CODE_SIGN_IDENTITY = "iPhone Developer: Fang Chen (57ZYSQ29Y4)";
  219 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  220 + COPY_PHASE_STRIP = NO;
  221 + DEBUG_INFORMATION_FORMAT = dwarf;
  222 + ENABLE_STRICT_OBJC_MSGSEND = YES;
  223 + ENABLE_TESTABILITY = YES;
  224 + GCC_C_LANGUAGE_STANDARD = gnu99;
  225 + GCC_DYNAMIC_NO_PIC = NO;
  226 + GCC_NO_COMMON_BLOCKS = YES;
  227 + GCC_OPTIMIZATION_LEVEL = 0;
  228 + GCC_PREPROCESSOR_DEFINITIONS = (
  229 + "DEBUG=1",
  230 + "$(inherited)",
  231 + );
  232 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  233 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  234 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  235 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  236 + GCC_WARN_UNUSED_FUNCTION = YES;
  237 + GCC_WARN_UNUSED_VARIABLE = YES;
  238 + IPHONEOS_DEPLOYMENT_TARGET = 9.1;
  239 + MTL_ENABLE_DEBUG_INFO = YES;
  240 + ONLY_ACTIVE_ARCH = YES;
  241 + SDKROOT = iphoneos;
  242 + TARGETED_DEVICE_FAMILY = "1,2";
  243 + };
  244 + name = Debug;
  245 + };
  246 + 3309D88F1C33A12200534E33 /* Release */ = {
  247 + isa = XCBuildConfiguration;
  248 + buildSettings = {
  249 + ALWAYS_SEARCH_USER_PATHS = NO;
  250 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  251 + CLANG_CXX_LIBRARY = "libc++";
  252 + CLANG_ENABLE_MODULES = YES;
  253 + CLANG_ENABLE_OBJC_ARC = YES;
  254 + CLANG_WARN_BOOL_CONVERSION = YES;
  255 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  256 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  257 + CLANG_WARN_EMPTY_BODY = YES;
  258 + CLANG_WARN_ENUM_CONVERSION = YES;
  259 + CLANG_WARN_INT_CONVERSION = YES;
  260 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  261 + CLANG_WARN_UNREACHABLE_CODE = YES;
  262 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  263 + CODE_SIGN_IDENTITY = "iPhone Developer: Fang Chen (57ZYSQ29Y4)";
  264 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  265 + COPY_PHASE_STRIP = NO;
  266 + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
  267 + ENABLE_NS_ASSERTIONS = NO;
  268 + ENABLE_STRICT_OBJC_MSGSEND = YES;
  269 + GCC_C_LANGUAGE_STANDARD = gnu99;
  270 + GCC_NO_COMMON_BLOCKS = YES;
  271 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  272 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  273 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  274 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  275 + GCC_WARN_UNUSED_FUNCTION = YES;
  276 + GCC_WARN_UNUSED_VARIABLE = YES;
  277 + IPHONEOS_DEPLOYMENT_TARGET = 9.1;
  278 + MTL_ENABLE_DEBUG_INFO = NO;
  279 + SDKROOT = iphoneos;
  280 + TARGETED_DEVICE_FAMILY = "1,2";
  281 + VALIDATE_PRODUCT = YES;
  282 + };
  283 + name = Release;
  284 + };
  285 + 3309D8911C33A12200534E33 /* Debug */ = {
  286 + isa = XCBuildConfiguration;
  287 + buildSettings = {
  288 + ALWAYS_SEARCH_USER_PATHS = YES;
  289 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  290 + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
  291 + CODE_SIGN_IDENTITY = "iPhone Developer";
  292 + FRAMEWORK_SEARCH_PATHS = (
  293 + "$(PROJECT_DIR)",
  294 + "$(PROJECT_DIR)/../",
  295 + );
  296 + HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../Spreader.Framework/**";
  297 + INFOPLIST_FILE = SpreadDemo/Info.plist;
  298 + IPHONEOS_DEPLOYMENT_TARGET = 6.0;
  299 + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
  300 + OTHER_CODE_SIGN_FLAGS = "";
  301 + OTHER_LDFLAGS = "-ObjC";
  302 + PRODUCT_BUNDLE_IDENTIFIER = Gump.SpreadDemo;
  303 + PRODUCT_NAME = "$(TARGET_NAME)";
  304 + PROVISIONING_PROFILE = "eb0168b9-d076-46ca-b632-badbf62beb18";
  305 + };
  306 + name = Debug;
  307 + };
  308 + 3309D8921C33A12200534E33 /* Release */ = {
  309 + isa = XCBuildConfiguration;
  310 + buildSettings = {
  311 + ALWAYS_SEARCH_USER_PATHS = YES;
  312 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  313 + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
  314 + CODE_SIGN_IDENTITY = "iPhone Developer";
  315 + FRAMEWORK_SEARCH_PATHS = (
  316 + "$(PROJECT_DIR)",
  317 + "$(PROJECT_DIR)/../",
  318 + );
  319 + HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../Spreader.Framework/**";
  320 + INFOPLIST_FILE = SpreadDemo/Info.plist;
  321 + IPHONEOS_DEPLOYMENT_TARGET = 6.0;
  322 + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
  323 + OTHER_CODE_SIGN_FLAGS = "";
  324 + OTHER_LDFLAGS = "-ObjC";
  325 + PRODUCT_BUNDLE_IDENTIFIER = Gump.SpreadDemo;
  326 + PRODUCT_NAME = "$(TARGET_NAME)";
  327 + PROVISIONING_PROFILE = "eb0168b9-d076-46ca-b632-badbf62beb18";
  328 + };
  329 + name = Release;
  330 + };
  331 +/* End XCBuildConfiguration section */
  332 +
  333 +/* Begin XCConfigurationList section */
  334 + 3309D8741C33A12200534E33 /* Build configuration list for PBXProject "SpreadDemo" */ = {
  335 + isa = XCConfigurationList;
  336 + buildConfigurations = (
  337 + 3309D88E1C33A12200534E33 /* Debug */,
  338 + 3309D88F1C33A12200534E33 /* Release */,
  339 + );
  340 + defaultConfigurationIsVisible = 0;
  341 + defaultConfigurationName = Release;
  342 + };
  343 + 3309D8901C33A12200534E33 /* Build configuration list for PBXNativeTarget "SpreadDemo" */ = {
  344 + isa = XCConfigurationList;
  345 + buildConfigurations = (
  346 + 3309D8911C33A12200534E33 /* Debug */,
  347 + 3309D8921C33A12200534E33 /* Release */,
  348 + );
  349 + defaultConfigurationIsVisible = 0;
  350 + defaultConfigurationName = Release;
  351 + };
  352 +/* End XCConfigurationList section */
  353 + };
  354 + rootObject = 3309D8711C33A12200534E33 /* Project object */;
  355 +}
ios/SpreadDemo/SpreadDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
... ... @@ -0,0 +1,7 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Workspace
  3 + version = "1.0">
  4 + <FileRef
  5 + location = "self:SpreadDemo.xcodeproj">
  6 + </FileRef>
  7 +</Workspace>
ios/SpreadDemo/SpreadDemo.xcodeproj/xcuserdata/gump.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
... ... @@ -0,0 +1,5 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Bucket
  3 + type = "1"
  4 + version = "2.0">
  5 +</Bucket>
ios/SpreadDemo/SpreadDemo.xcodeproj/xcuserdata/gump.xcuserdatad/xcschemes/SpreadDemo.xcscheme
... ... @@ -0,0 +1,91 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Scheme
  3 + LastUpgradeVersion = "0710"
  4 + version = "1.3">
  5 + <BuildAction
  6 + parallelizeBuildables = "YES"
  7 + buildImplicitDependencies = "YES">
  8 + <BuildActionEntries>
  9 + <BuildActionEntry
  10 + buildForTesting = "YES"
  11 + buildForRunning = "YES"
  12 + buildForProfiling = "YES"
  13 + buildForArchiving = "YES"
  14 + buildForAnalyzing = "YES">
  15 + <BuildableReference
  16 + BuildableIdentifier = "primary"
  17 + BlueprintIdentifier = "3309D8781C33A12200534E33"
  18 + BuildableName = "SpreadDemo.app"
  19 + BlueprintName = "SpreadDemo"
  20 + ReferencedContainer = "container:SpreadDemo.xcodeproj">
  21 + </BuildableReference>
  22 + </BuildActionEntry>
  23 + </BuildActionEntries>
  24 + </BuildAction>
  25 + <TestAction
  26 + buildConfiguration = "Debug"
  27 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
  28 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
  29 + shouldUseLaunchSchemeArgsEnv = "YES">
  30 + <Testables>
  31 + </Testables>
  32 + <MacroExpansion>
  33 + <BuildableReference
  34 + BuildableIdentifier = "primary"
  35 + BlueprintIdentifier = "3309D8781C33A12200534E33"
  36 + BuildableName = "SpreadDemo.app"
  37 + BlueprintName = "SpreadDemo"
  38 + ReferencedContainer = "container:SpreadDemo.xcodeproj">
  39 + </BuildableReference>
  40 + </MacroExpansion>
  41 + <AdditionalOptions>
  42 + </AdditionalOptions>
  43 + </TestAction>
  44 + <LaunchAction
  45 + buildConfiguration = "Debug"
  46 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
  47 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
  48 + launchStyle = "0"
  49 + useCustomWorkingDirectory = "NO"
  50 + ignoresPersistentStateOnLaunch = "NO"
  51 + debugDocumentVersioning = "YES"
  52 + debugServiceExtension = "internal"
  53 + allowLocationSimulation = "YES">
  54 + <BuildableProductRunnable
  55 + runnableDebuggingMode = "0">
  56 + <BuildableReference
  57 + BuildableIdentifier = "primary"
  58 + BlueprintIdentifier = "3309D8781C33A12200534E33"
  59 + BuildableName = "SpreadDemo.app"
  60 + BlueprintName = "SpreadDemo"
  61 + ReferencedContainer = "container:SpreadDemo.xcodeproj">
  62 + </BuildableReference>
  63 + </BuildableProductRunnable>
  64 + <AdditionalOptions>
  65 + </AdditionalOptions>
  66 + </LaunchAction>
  67 + <ProfileAction
  68 + buildConfiguration = "Release"
  69 + shouldUseLaunchSchemeArgsEnv = "YES"
  70 + savedToolIdentifier = ""
  71 + useCustomWorkingDirectory = "NO"
  72 + debugDocumentVersioning = "YES">
  73 + <BuildableProductRunnable
  74 + runnableDebuggingMode = "0">
  75 + <BuildableReference
  76 + BuildableIdentifier = "primary"
  77 + BlueprintIdentifier = "3309D8781C33A12200534E33"
  78 + BuildableName = "SpreadDemo.app"
  79 + BlueprintName = "SpreadDemo"
  80 + ReferencedContainer = "container:SpreadDemo.xcodeproj">
  81 + </BuildableReference>
  82 + </BuildableProductRunnable>
  83 + </ProfileAction>
  84 + <AnalyzeAction
  85 + buildConfiguration = "Debug">
  86 + </AnalyzeAction>
  87 + <ArchiveAction
  88 + buildConfiguration = "Release"
  89 + revealArchiveInOrganizer = "YES">
  90 + </ArchiveAction>
  91 +</Scheme>
ios/SpreadDemo/SpreadDemo.xcodeproj/xcuserdata/gump.xcuserdatad/xcschemes/xcschememanagement.plist
... ... @@ -0,0 +1,22 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>SchemeUserState</key>
  6 + <dict>
  7 + <key>SpreadDemo.xcscheme</key>
  8 + <dict>
  9 + <key>orderHint</key>
  10 + <integer>0</integer>
  11 + </dict>
  12 + </dict>
  13 + <key>SuppressBuildableAutocreation</key>
  14 + <dict>
  15 + <key>3309D8781C33A12200534E33</key>
  16 + <dict>
  17 + <key>primary</key>
  18 + <true/>
  19 + </dict>
  20 + </dict>
  21 +</dict>
  22 +</plist>
ios/SpreadDemo/SpreadDemo/AppDelegate.h
... ... @@ -0,0 +1,17 @@
  1 +//
  2 +// AppDelegate.h
  3 +// SpreadDemo
  4 +//
  5 +// Created by Gump on 15/12/30.
  6 +// Copyright © 2015年 Gump. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +@interface AppDelegate : UIResponder <UIApplicationDelegate>
  12 +
  13 +@property (strong, nonatomic) UIWindow *window;
  14 +
  15 +
  16 +@end
  17 +
ios/SpreadDemo/SpreadDemo/AppDelegate.m
... ... @@ -0,0 +1,50 @@
  1 +//
  2 +// AppDelegate.m
  3 +// SpreadDemo
  4 +//
  5 +// Created by Gump on 15/12/30.
  6 +// Copyright © 2015年 Gump. All rights reserved.
  7 +//
  8 +
  9 +#import "AppDelegate.h"
  10 +#import "ViewController.h"
  11 +
  12 +@interface AppDelegate ()
  13 +
  14 +@end
  15 +
  16 +@implementation AppDelegate
  17 +
  18 +
  19 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  20 + // Override point for customization after application launch.
  21 + self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  22 + ViewController *rootoViewController = [[ViewController alloc] init];
  23 + self.window.rootViewController = rootoViewController;
  24 + [self.window makeKeyAndVisible];
  25 + return YES;
  26 +}
  27 +
  28 +- (void)applicationWillResignActive:(UIApplication *)application {
  29 + // 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.
  30 + // 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.
  31 +}
  32 +
  33 +- (void)applicationDidEnterBackground:(UIApplication *)application {
  34 + // 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.
  35 + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  36 +}
  37 +
  38 +- (void)applicationWillEnterForeground:(UIApplication *)application {
  39 + // 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.
  40 +}
  41 +
  42 +- (void)applicationDidBecomeActive:(UIApplication *)application {
  43 + // 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.
  44 +}
  45 +
  46 +- (void)applicationWillTerminate:(UIApplication *)application {
  47 + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
  48 +}
  49 +
  50 +@end
ios/SpreadDemo/SpreadDemo/Assets.xcassets/AppIcon.appiconset/Contents.json
... ... @@ -0,0 +1,68 @@
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "iphone",
  5 + "size" : "29x29",
  6 + "scale" : "2x"
  7 + },
  8 + {
  9 + "idiom" : "iphone",
  10 + "size" : "29x29",
  11 + "scale" : "3x"
  12 + },
  13 + {
  14 + "idiom" : "iphone",
  15 + "size" : "40x40",
  16 + "scale" : "2x"
  17 + },
  18 + {
  19 + "idiom" : "iphone",
  20 + "size" : "40x40",
  21 + "scale" : "3x"
  22 + },
  23 + {
  24 + "idiom" : "iphone",
  25 + "size" : "60x60",
  26 + "scale" : "2x"
  27 + },
  28 + {
  29 + "idiom" : "iphone",
  30 + "size" : "60x60",
  31 + "scale" : "3x"
  32 + },
  33 + {
  34 + "idiom" : "ipad",
  35 + "size" : "29x29",
  36 + "scale" : "1x"
  37 + },
  38 + {
  39 + "idiom" : "ipad",
  40 + "size" : "29x29",
  41 + "scale" : "2x"
  42 + },
  43 + {
  44 + "idiom" : "ipad",
  45 + "size" : "40x40",
  46 + "scale" : "1x"
  47 + },
  48 + {
  49 + "idiom" : "ipad",
  50 + "size" : "40x40",
  51 + "scale" : "2x"
  52 + },
  53 + {
  54 + "idiom" : "ipad",
  55 + "size" : "76x76",
  56 + "scale" : "1x"
  57 + },
  58 + {
  59 + "idiom" : "ipad",
  60 + "size" : "76x76",
  61 + "scale" : "2x"
  62 + }
  63 + ],
  64 + "info" : {
  65 + "version" : 1,
  66 + "author" : "xcode"
  67 + }
  68 +}
0 69 \ No newline at end of file
ios/SpreadDemo/SpreadDemo/Assets.xcassets/Brand Assets.launchimage/Contents.json
... ... @@ -0,0 +1,89 @@
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "iphone",
  5 + "scale" : "1x",
  6 + "orientation" : "portrait"
  7 + },
  8 + {
  9 + "idiom" : "iphone",
  10 + "scale" : "2x",
  11 + "orientation" : "portrait"
  12 + },
  13 + {
  14 + "orientation" : "portrait",
  15 + "idiom" : "iphone",
  16 + "subtype" : "retina4",
  17 + "scale" : "2x"
  18 + },
  19 + {
  20 + "orientation" : "portrait",
  21 + "idiom" : "iphone",
  22 + "minimum-system-version" : "7.0",
  23 + "scale" : "2x"
  24 + },
  25 + {
  26 + "orientation" : "portrait",
  27 + "idiom" : "iphone",
  28 + "minimum-system-version" : "7.0",
  29 + "subtype" : "retina4",
  30 + "scale" : "2x"
  31 + },
  32 + {
  33 + "orientation" : "portrait",
  34 + "idiom" : "ipad",
  35 + "extent" : "to-status-bar",
  36 + "scale" : "1x"
  37 + },
  38 + {
  39 + "orientation" : "portrait",
  40 + "idiom" : "ipad",
  41 + "extent" : "to-status-bar",
  42 + "scale" : "2x"
  43 + },
  44 + {
  45 + "orientation" : "landscape",
  46 + "idiom" : "ipad",
  47 + "extent" : "to-status-bar",
  48 + "scale" : "1x"
  49 + },
  50 + {
  51 + "orientation" : "landscape",
  52 + "idiom" : "ipad",
  53 + "extent" : "to-status-bar",
  54 + "scale" : "2x"
  55 + },
  56 + {
  57 + "orientation" : "portrait",
  58 + "idiom" : "ipad",
  59 + "minimum-system-version" : "7.0",
  60 + "extent" : "full-screen",
  61 + "scale" : "1x"
  62 + },
  63 + {
  64 + "orientation" : "portrait",
  65 + "idiom" : "ipad",
  66 + "minimum-system-version" : "7.0",
  67 + "extent" : "full-screen",
  68 + "scale" : "2x"
  69 + },
  70 + {
  71 + "orientation" : "landscape",
  72 + "idiom" : "ipad",
  73 + "minimum-system-version" : "7.0",
  74 + "extent" : "full-screen",
  75 + "scale" : "1x"
  76 + },
  77 + {
  78 + "orientation" : "landscape",
  79 + "idiom" : "ipad",
  80 + "minimum-system-version" : "7.0",
  81 + "extent" : "full-screen",
  82 + "scale" : "2x"
  83 + }
  84 + ],
  85 + "info" : {
  86 + "version" : 1,
  87 + "author" : "xcode"
  88 + }
  89 +}
0 90 \ No newline at end of file
ios/SpreadDemo/SpreadDemo/Base.lproj/LaunchScreen.storyboard
... ... @@ -0,0 +1,28 @@
  1 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2 +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9060" systemVersion="14F1021" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
  3 + <dependencies>
  4 + <deployment identifier="iOS"/>
  5 + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9051"/>
  6 + </dependencies>
  7 + <scenes>
  8 + <!--View Controller-->
  9 + <scene sceneID="EHf-IW-A2E">
  10 + <objects>
  11 + <viewController id="01J-lp-oVM" sceneMemberID="viewController">
  12 + <layoutGuides>
  13 + <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
  14 + <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
  15 + </layoutGuides>
  16 + <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
  17 + <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
  18 + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  19 + <animations/>
  20 + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
  21 + </view>
  22 + </viewController>
  23 + <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
  24 + </objects>
  25 + <point key="canvasLocation" x="53" y="375"/>
  26 + </scene>
  27 + </scenes>
  28 +</document>
ios/SpreadDemo/SpreadDemo/Default-568h@2x.png

67.2 KB

ios/SpreadDemo/SpreadDemo/Info.plist
... ... @@ -0,0 +1,52 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>NSAppTransportSecurity</key>
  6 + <dict>
  7 + <key>NSAllowsArbitraryLoads</key>
  8 + <true/>
  9 + </dict>
  10 + <key>CFBundleDevelopmentRegion</key>
  11 + <string>en</string>
  12 + <key>CFBundleExecutable</key>
  13 + <string>$(EXECUTABLE_NAME)</string>
  14 + <key>CFBundleIdentifier</key>
  15 + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
  16 + <key>CFBundleInfoDictionaryVersion</key>
  17 + <string>6.0</string>
  18 + <key>CFBundleName</key>
  19 + <string>$(PRODUCT_NAME)</string>
  20 + <key>CFBundlePackageType</key>
  21 + <string>APPL</string>
  22 + <key>CFBundleShortVersionString</key>
  23 + <string>1.0</string>
  24 + <key>CFBundleSignature</key>
  25 + <string>????</string>
  26 + <key>CFBundleVersion</key>
  27 + <string>1</string>
  28 + <key>LSRequiresIPhoneOS</key>
  29 + <true/>
  30 + <key>UIRequiredDeviceCapabilities</key>
  31 + <array>
  32 + <string>armv7</string>
  33 + </array>
  34 + <key>UIRequiresFullScreen</key>
  35 + <true/>
  36 + <key>UIStatusBarHidden</key>
  37 + <true/>
  38 + <key>UISupportedInterfaceOrientations</key>
  39 + <array>
  40 + <string>UIInterfaceOrientationPortrait</string>
  41 + <string>UIInterfaceOrientationLandscapeLeft</string>
  42 + <string>UIInterfaceOrientationLandscapeRight</string>
  43 + </array>
  44 + <key>UISupportedInterfaceOrientations~ipad</key>
  45 + <array>
  46 + <string>UIInterfaceOrientationPortrait</string>
  47 + <string>UIInterfaceOrientationPortraitUpsideDown</string>
  48 + <string>UIInterfaceOrientationLandscapeLeft</string>
  49 + <string>UIInterfaceOrientationLandscapeRight</string>
  50 + </array>
  51 +</dict>
  52 +</plist>
ios/SpreadDemo/SpreadDemo/Spreader.bundle/btn_get_reward@2x.png

23.4 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/btn_get_reward_disable@2x.png

5.66 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/btn_spread@2x.png

9.46 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/btn_verify_code@2x.png

13.5 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/btn_verify_code_disable@2x.png

7.97 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/en.strings
... ... @@ -0,0 +1,4 @@
  1 +"promote"="Promote";
  2 +"claim"="Claim";
  3 +"verify"="Verify";
  4 +"invalid_request"="Invalid request";
0 5 \ No newline at end of file
ios/SpreadDemo/SpreadDemo/Spreader.bundle/ic_arrow@2x.png

6.75 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/ic_close@2x.png

8.7 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/ic_indicator@2x.png

3.75 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/left_bg@2x.png

524 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/progress_bg@2x.png

2.75 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/progress_step@2x.png

1.34 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/right_bottom_bg@2x.png

231 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/right_top_bg@2x.png

342 KB

ios/SpreadDemo/SpreadDemo/Spreader.bundle/text_field_bg@2x.png

9.95 KB

ios/SpreadDemo/SpreadDemo/ViewController.h
... ... @@ -0,0 +1,15 @@
  1 +//
  2 +// ViewController.h
  3 +// SpreadDemo
  4 +//
  5 +// Created by Gump on 15/12/30.
  6 +// Copyright © 2015年 Gump. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +@interface ViewController : UIViewController
  12 +
  13 +
  14 +@end
  15 +
ios/SpreadDemo/SpreadDemo/ViewController.m
... ... @@ -0,0 +1,51 @@
  1 +//
  2 +// ViewController.m
  3 +// SpreadDemo
  4 +//
  5 +// Created by Gump on 15/12/30.
  6 +// Copyright © 2015年 Gump. All rights reserved.
  7 +//
  8 +
  9 +#import "ViewController.h"
  10 +#import "Spreader.h"
  11 +
  12 +@interface ViewController ()<SpreaderDelegate>
  13 +
  14 +@end
  15 +
  16 +@implementation ViewController
  17 +
  18 +-(void)loadView{
  19 + [super loadView];
  20 + [self.view setBackgroundColor:[UIColor whiteColor]];
  21 + UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
  22 + button.frame = CGRectMake(100, 100, 200, 20);
  23 + button.backgroundColor = [UIColor brownColor];
  24 + [button setTitle:@"推广员系统进入" forState:UIControlStateNormal];
  25 + [button addTarget:self action:@selector(enter) forControlEvents:UIControlEventTouchUpInside];
  26 +
  27 + [self.view addSubview:button];
  28 +}
  29 +
  30 +-(void)enter{
  31 + [SpreaderSDK sharedSDK].appId = @"10022";
  32 + [SpreaderSDK sharedSDK].userId = @"10076";
  33 + [SpreaderSDK sharedSDK].serverId = @"1001";
  34 + [SpreaderSDK sharedSDK].roleId = @"10009";
  35 + [[SpreaderSDK sharedSDK] enter];
  36 +}
  37 +
  38 +- (void)viewDidLoad {
  39 + [super viewDidLoad];
  40 + [SpreaderSDK sharedSDK].delegate = self;
  41 +}
  42 +
  43 +- (void)didReceiveMemoryWarning {
  44 + [super didReceiveMemoryWarning];
  45 + // Dispose of any resources that can be recreated.
  46 +}
  47 +
  48 +-(void)shouldPresentViewController:(UIViewController *)presentViewController{
  49 + [self presentModalViewController:presentViewController animated:YES];
  50 +}
  51 +@end
ios/SpreadDemo/SpreadDemo/main.m
... ... @@ -0,0 +1,16 @@
  1 +//
  2 +// main.m
  3 +// SpreadDemo
  4 +//
  5 +// Created by Gump on 15/12/30.
  6 +// Copyright © 2015年 Gump. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +#import "AppDelegate.h"
  11 +
  12 +int main(int argc, char * argv[]) {
  13 + @autoreleasepool {
  14 + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
  15 + }
  16 +}