hxb лет назад: 8
Родитель
Сommit
cbb638725c
21 измененных файлов с 880 добавлено и 710 удалено
  1. 11 9
      Podfile
  2. 1 1
      Podfile.lock
  3. 24 0
      Pods/Local Podspecs/SwiftMonkeyPaws.podspec.json
  4. 1 1
      Pods/Manifest.lock
  5. 197 314
      Pods/Pods.xcodeproj/project.pbxproj
  6. 0 60
      Pods/Pods.xcodeproj/xcuserdata/jonathanh.xcuserdatad/xcschemes/Pods-WSCloudStorageUITests.xcscheme
  7. 0 10
      Pods/Pods.xcodeproj/xcuserdata/jonathanh.xcuserdatad/xcschemes/xcschememanagement.plist
  8. 7 0
      Pods/SwiftMonkeyPaws/LICENSE
  9. 258 0
      Pods/SwiftMonkeyPaws/README.md
  10. 372 0
      Pods/SwiftMonkeyPaws/SwiftMonkeyPaws/MonkeyPaws.swift
  11. 0 3
      Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-acknowledgements.markdown
  12. 0 29
      Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-acknowledgements.plist
  13. 0 5
      Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-dummy.m
  14. 0 92
      Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-frameworks.sh
  15. 0 102
      Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-resources.sh
  16. 0 10
      Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests.debug.xcconfig
  17. 0 10
      Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests.release.xcconfig
  18. 7 63
      WSCloudStorage.xcodeproj/project.pbxproj
  19. BIN
      WSCloudStorage.xcworkspace/xcuserdata/jonathanh.xcuserdatad/UserInterfaceState.xcuserstate
  20. 1 1
      WSCloudStorage/VC/TabBarMore/PreferencesViewController.m
  21. 1 0
      WSCloudStorageTests/WSCloudStorageTests.m

+ 11 - 9
Podfile

@@ -1,5 +1,5 @@
 # Uncomment the next line to define a global platform for your project
- platform :ios, '7.0'
+platform :ios, '8.0'
 post_install do |installer| 
   installer.pods_project.targets.each do |target|
     target.build_configurations.each do |configuration|
@@ -24,19 +24,21 @@ target 'WSCloudStorage' do
   pod 'Masonry'
   pod 'FTPopOverMenu'
   pod 'JDStatusBarNotification', '~> 1.5.1'
+  #pod 'SwiftMonkeyPaws', :git => 'https://github.com/zalando/SwiftMonkey.git'  #测试专用上架记得移除
+ 
 #use_frameworks!
  # pod 'RxSwift',    '~> 2.0'
  # pod 'RxCocoa',    '~> 2.0'
-  #Pods for WSCloudStorage
-
-  target 'WSCloudStorageTests' do
-    inherit! :search_paths
+ #Pods for WSCloudStorage
+target 'WSCloudStorageTests' do
+      inherit! :search_paths
     # Pods for testing
+    # pod 'SwiftMonkey' #测试专用上架记得移除
   end
 
-  target 'WSCloudStorageUITests' do
-    inherit! :search_paths
-    # Pods for testing
-  end
+#target 'WSCloudStorageUITests' do
+#   inherit! :search_paths
+#    # Pods for testing
+#  end
 
 end

+ 1 - 1
Podfile.lock

@@ -60,6 +60,6 @@ SPEC CHECKSUMS:
   SDWebImage: c325cf02c30337336b95beff20a13df489ec0ec9
   SWTableViewCell: 2a94aadc9d47b2b611fa064566bf57948b95b579
 
-PODFILE CHECKSUM: c095a7ca2335dd7b679a344a607a273f1f99a82b
+PODFILE CHECKSUM: e7f86b8b8edc771caa6391c02c095917741b001b
 
 COCOAPODS: 1.2.1

+ 24 - 0
Pods/Local Podspecs/SwiftMonkeyPaws.podspec.json

@@ -0,0 +1,24 @@
+{
+  "name": "SwiftMonkeyPaws",
+  "version": "1.0.1",
+  "summary": "Visualisation of input events, especially useful during UI testing.",
+  "description": "Visualise all touch events in a layer on top of\nyour UI. This is meant to be paired with the\nSwiftMonkey monkey testing library, but can also\nbe used on its own.",
+  "homepage": "https://github.com/zalando/SwiftMonkey",
+  "license": {
+    "type": "MIT",
+    "file": "LICENSE"
+  },
+  "authors": {
+    "Dag Ågren": "dag.agren@zalando.fi"
+  },
+  "social_media_url": "http://twitter.com/WAHa_06x36",
+  "platforms": {
+    "ios": "8.0"
+  },
+  "source": {
+    "git": "https://github.com/zalando/SwiftMonkey.git",
+    "tag": "1.0.1"
+  },
+  "source_files": "SwiftMonkeyPaws/*.swift",
+  "exclude_files": "SwiftMonkeyPaws/Package.swift"
+}

+ 1 - 1
Pods/Manifest.lock

@@ -60,6 +60,6 @@ SPEC CHECKSUMS:
   SDWebImage: c325cf02c30337336b95beff20a13df489ec0ec9
   SWTableViewCell: 2a94aadc9d47b2b611fa064566bf57948b95b579
 
-PODFILE CHECKSUM: c095a7ca2335dd7b679a344a607a273f1f99a82b
+PODFILE CHECKSUM: e7f86b8b8edc771caa6391c02c095917741b001b
 
 COCOAPODS: 1.2.1

Разница между файлами не показана из-за своего большого размера
+ 197 - 314
Pods/Pods.xcodeproj/project.pbxproj


+ 0 - 60
Pods/Pods.xcodeproj/xcuserdata/jonathanh.xcuserdatad/xcschemes/Pods-WSCloudStorageUITests.xcscheme

@@ -1,60 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   LastUpgradeVersion = "0700"
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForAnalyzing = "YES"
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES">
-            <BuildableReference
-               BuildableIdentifier = 'primary'
-               BlueprintIdentifier = 'D67C1B04E5CBEB162C745A054CA5C9E2'
-               BlueprintName = 'Pods-WSCloudStorageUITests'
-               ReferencedContainer = 'container:Pods.xcodeproj'
-               BuildableName = 'libPods-WSCloudStorageUITests.a'>
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      ignoresPersistentStateOnLaunch = "NO"
-      debugDocumentVersioning = "YES"
-      debugServiceExtension = "internal"
-      buildConfiguration = "Debug"
-      allowLocationSimulation = "YES">
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      debugDocumentVersioning = "YES"
-      buildConfiguration = "Release"
-      shouldUseLaunchSchemeArgsEnv = "YES">
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 0 - 10
Pods/Pods.xcodeproj/xcuserdata/jonathanh.xcuserdatad/xcschemes/xcschememanagement.plist

@@ -59,11 +59,6 @@
 			<key>isShown</key>
 			<false/>
 		</dict>
-		<key>Pods-WSCloudStorageUITests.xcscheme</key>
-		<dict>
-			<key>isShown</key>
-			<false/>
-		</dict>
 		<key>SDWebImage.xcscheme</key>
 		<dict>
 			<key>isShown</key>
@@ -127,11 +122,6 @@
 			<key>primary</key>
 			<true/>
 		</dict>
-		<key>D67C1B04E5CBEB162C745A054CA5C9E2</key>
-		<dict>
-			<key>primary</key>
-			<true/>
-		</dict>
 		<key>E063821EB849C602CC143CD9011186BE</key>
 		<dict>
 			<key>primary</key>

+ 7 - 0
Pods/SwiftMonkeyPaws/LICENSE

@@ -0,0 +1,7 @@
+The MIT License (MIT) Copyright © 2016 Zalando SE, https://tech.zalando.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 258 - 0
Pods/SwiftMonkeyPaws/README.md

@@ -0,0 +1,258 @@
+# SwiftMonkey
+
+This project is a framework for generating randomised user input
+in iOS apps. This kind of monkey testing is useful for
+stress-testing apps and finding rare crashes.
+
+It also contains a related framework called SwiftMonkeyPaws, which
+provides visualisation of the generated events. This greatly
+increases the usefulness of your randomised testing, as you can
+see what touches caused any crash you may encounter.
+
+## Why Use SwiftMonkey?
+
+- When testing your UI, it's very easy to think about how to test
+  how things *should* work, but do you struggle to figure out
+  what kind of thing might *not* work?
+- Ever showed your app to someone who proceeded to bang away at the
+  screen and immediately crashed it by doing something you had never
+  thought of?
+- Do you want to feel a bit more confident about your app's stability?
+- Do you have rare crashes that you just can't reproduce?
+- Do you have memory leaks that take a long time to manifest
+  themselves, and require lots of UI actions?
+
+Randomised testing will help you with all of these!
+
+SwiftMonkey is inspired by and has similar goals to
+[UI AutoMonkey][], but is integrated into the Xcode UI testing
+framework, providing better opportunities to debug.
+
+Also, it is fun to look at:
+
+<img src="https://thumbs.gfycat.com/IndolentTallFoxterrier-size_restricted.gif" height="480">
+
+## Quick Start
+
+To see for yourself how this framework works, just grab the code
+and open `SwiftMonkeyExample/SwiftMonkeyExample.xcodeproj`. Then press `Cmd-U` to run the UI test.
+
+## Installation
+
+As a high-level overview, add `SwiftMonkey.framework` to your
+UI test target. Then add a test that creates a `Monkey`
+object and uses it to generate events.
+
+Optionally, you also add the `SwiftMonkeyPaws.framework` to your
+main app, and create a `MonkeyPaws` object to enable visualisation.
+You probably only want to do this for debug builds, or when a
+specific command line flag is used.
+
+### Requirements
+
+SwiftMonkey uses Swift 3.0. It has no dependencies other than
+iOS itself (8.0 and up should work). SwiftMonkeyPaws doesn't
+have any dependencies, either; you can even use on its own,
+without SwiftMonkey.
+
+### CocoaPods
+
+You can install the frameworks using [CocoaPods][]. Assuming
+that you've named your main app and test targets "App" and "Tests", you
+can use something like this in your `Podfile`:
+
+````ruby
+target "App" do
+    pod "SwiftMonkeyPaws", "~> 1.0"
+end
+
+target "Tests" do
+    pod "SwiftMonkey", "~> 1.0"
+end
+````
+
+### Manual Installation
+
+Copy the `SwiftMonkey` and `SwiftMonkeyPaws` folders into your
+project. Next, drag the `xcodeproj` files into your project.
+
+Then, for SwiftMonkey, add `SwiftMonkey.framework` as a
+dependency for your test target, and add a Copy Files build
+phase to copy it into `Frameworks`.
+
+For SwiftMonkeyPaws, adding `SwiftMonkeyPaws.framework` to the
+Embedded Binaries section of your app target is enough.
+
+(You can also just directly link the Swift files, if you do not
+want to use frameworks.)
+
+### Swift Package Manager
+
+As of this writing, the Swift Package Manager doesn't support
+iOS projects. SPM package files have experimentally been created,
+but obviously don't really work yet.
+
+## Usage
+
+### SwiftMonkey
+
+To do monkey testing, `import SwiftMonkey`, then create a new
+test case that uses the `Monkey` object to configure and run
+the input event generation. Here is a simple example:
+
+````swift
+func testMonkey() {
+    let application = XCUIApplication()
+
+    // Workaround for bug in Xcode 7.3. Snapshots are not properly updated
+    // when you initially call app.frame, resulting in a zero-sized rect.
+    // Doing a random query seems to update everything properly.
+    // TODO: Remove this when the Xcode bug is fixed!
+    _ = application.descendants(matching: .any).element(boundBy: 0).frame
+
+    // Initialise the monkey tester with the current device
+    // frame. Giving an explicit seed will make it generate
+    // the same sequence of events on each run, and leaving it
+    // out will generate a new sequence on each run.
+    let monkey = Monkey(frame: application.frame)
+    //let monkey = Monkey(seed: 123, frame: application.frame)
+
+    // Add actions for the monkey to perform. We just use a
+    // default set of actions for this, which is usually enough.
+    // Use either one of these, but maybe not both.
+    // XCTest private actions seem to work better at the moment.
+    // UIAutomation actions seem to work only on the simulator.
+    monkey.addDefaultXCTestPrivateActions()
+    //monkey.addDefaultUIAutomationActions()
+
+    // Occasionally, use the regular XCTest functionality
+    // to check if an alert is shown, and click a random
+    // button on it.
+    monkey.addXCTestTapAlertAction(interval: 100, application: application)
+
+    // Run the monkey test indefinitely.
+    monkey.monkeyAround()
+}
+````
+
+The `Monkey` object allows you not only to add the built-in
+event generators, but also any block of your
+own to be executed either randomly or at set intervals. In
+these blocks you can do whatever you want, including (but not
+only) generate more input events.
+
+Documentation for this is limited at the moment, so please
+refer to `Monkey.swift` and its extensions for examples of
+how to use the more advanced functionality if you need it.
+
+### SwiftMonkeyPaws
+
+The simplest way to enable the visualisation in your app is to
+first `import SwiftMonkeyPaws`, then do the following somewhere
+early on in your program execution:
+
+````swift
+var paws: MonkeyPaws?
+
+func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
+    if CommandLine.arguments.contains("--MonkeyPaws") {
+        paws = MonkeyPaws(view: window!)
+    }
+    return true
+}
+````
+
+(This example uses `application(_, didFinishLaunchingWithOptions)`,
+but any time after you have a UIWindow will do. It also only
+instatiates the visualisation if a certain command line flag
+is passed, so that it can be enabled only for test runs.)
+
+This call will swizzle some methods in UIApplication to capture
+UIEvents. If you would rather not do this, or if you already have
+a source of UIEvents, you can pass the following option to `init`
+to disable swizzling:
+
+````swift
+paws = MonkeyPaws(view: window!, tapUIApplication: false)
+````
+
+Then you can pass in events with the following call:
+
+````swift
+paws?.append(event: event) // event is UIEvent
+````
+
+## Contributing
+
+Feel free to file issues and send pull requests for this
+project! It is very new and not overly organised yet, so be
+bold and go ahead. We will sort out the details as we go along.
+
+Code style is currently just four-space identation and regular
+Apple Swift formatting.
+
+Also, we have adopted the Contributor Covenant as the code
+of conduct for this project:
+
+<http://contributor-covenant.org/version/1/4/>
+
+### Thanks to
+
+* The Zalando Open Source Guild for helping get this project
+  off the ground.
+* João Nunes for help with documentation.
+* Jakub Mucha for bugfixing.
+
+## TODO
+
+### SwiftMonkey
+
+- Write more documentation.
+- Add more input event actions.
+- Add randomised testing using public XCTest APIs instead of private ones.
+  - Find clickable view and click them directly instead of
+    clicking random locations, to compensate for the slow
+    event generation.
+- Fix swipe actions to avoid pulling out the top and bottom panels. (This
+  can cause the monkey to escape from your app, which can be problematic!)
+- Generally, find a quick way to see if the monkey manages to leave the
+  application.
+- Find out how to do device rotations using XCTest private API.
+- Find out why UIAutomation actions do not work on device, but only on the
+  simulator.
+- Investigate other methods of generating input events that do not rely
+  on private APIs.
+- Once Swift Package Manager has iOS support, update project
+  to support it properly.
+
+### SwiftMonkeyPaws
+
+- Add more customisability for the visualisation.
+
+### SwiftMonkeyExample
+
+- Add more UI elements, views and controls to make the example
+  look more interesting.
+- Maybe add some actual crashes that the monkey testing can find?
+
+## Contact
+
+This software was originally written by Dag Ågren
+(dag.agren@zalando.fi) for Zalando SE. This email address serves
+as the main contact address for this project.
+
+Bug reports and feature requests are more likely to be addressed
+if posted as issues here on GitHub.
+
+## License
+
+The MIT License (MIT) Copyright © 2016 Zalando SE, https://tech.zalando.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+[CocoaPods]: https://cocoapods.org/
+[UI AutoMonkey]: https://github.com/jonathanpenn/ui-auto-monkey

+ 372 - 0
Pods/SwiftMonkeyPaws/SwiftMonkeyPaws/MonkeyPaws.swift

@@ -0,0 +1,372 @@
+//
+//  MonkeyPaws.swift
+//  Fleek
+//
+//  Created by Dag Agren on 12/04/16.
+//  Copyright © 2016 Zalando SE. All rights reserved.
+//
+
+import UIKit
+
+private let maxGesturesShown: Int = 15
+private let crossRadius: CGFloat = 7
+private let circleRadius: CGFloat = 7
+
+/**
+    A class that visualises input events as an overlay over
+    your regular UI. To use, simply instantiate it and
+    keep a reference to it around so that it does not get
+    deinited.
+
+    You will want to have some way to only instantiate it
+    for test usage, though, such as adding a command-line
+    flag to enable it.
+
+    Example usage:
+
+    ```
+    var paws: MonkeyPaws?
+
+    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
+        if CommandLine.arguments.contains("--MonkeyPaws") {
+            paws = MonkeyPaws(view: window!)
+        }
+        return true
+    }
+    ```
+*/
+public class MonkeyPaws: NSObject, CALayerDelegate {
+    private var gestures: [(hash: Int?, gesture: Gesture)] = []
+    private weak var view: UIView?
+
+    let layer = CALayer()
+
+    fileprivate static var tappingTracks: [WeakReference<MonkeyPaws>] = []
+
+    /**
+        Create a MonkeyPaws object that will visualise input
+        events.
+
+        - parameter view: The view to put the visualisation
+          layer in. Usually, you will want to pass your main
+          `UIWindow` here.
+        - parameter tapUIApplication: By default, MonkeyPaws
+          will swizzle some methods in UIApplication to
+          intercept events so that it can visualise them.
+          If you do not want this, pass `false` here and
+          provide it with events manually.
+    */
+    public init(view: UIView, tapUIApplication: Bool = true) {
+        super.init()
+        self.view = view
+
+        layer.delegate = self
+        layer.isOpaque = false
+        layer.frame = view.layer.bounds
+        layer.contentsScale = UIScreen.main.scale
+        layer.rasterizationScale = UIScreen.main.scale
+
+        view.layer.addSublayer(layer)
+
+        if tapUIApplication {
+            tapUIApplicationSendEvent()
+        }
+    }
+
+    /**
+        If you have disabled UIApplication event tapping,
+        use this method to pass in `UIEvent` objects to
+        visualise.
+    */
+    public func append(event: UIEvent) {
+        guard event.type == .touches else { return }
+        guard let touches = event.allTouches else { return }
+
+        for touch in touches {
+            append(touch: touch)
+        }
+
+        bumpAndDisplayLayer()
+    }
+
+    func append(touch: UITouch) {
+        guard let view = view else { return }
+
+        let touchHash = touch.hash
+        let point = touch.location(in: view)
+
+        let index = gestures.index(where: { (gestureHash, _) -> Bool in
+            return gestureHash == touchHash
+        })
+
+        if let index = index {
+            let gesture = gestures[index].gesture
+
+            if touch.phase == .ended {
+                gestures[index].gesture.end(at: point)
+                gestures[index].hash = nil
+            } else if touch.phase == .cancelled {
+                gestures[index].gesture.cancel(at: point)
+                gestures[index].hash = nil
+            } else {
+                gesture.extend(to: point)
+            }
+        } else {
+            if gestures.count > maxGesturesShown {
+                gestures.removeFirst()
+            }
+
+            gestures.append((hash: touchHash, gesture: Gesture(from: point, inLayer: layer)))
+
+            for i in 0 ..< gestures.count {
+                gestures[i].gesture.number = gestures.count - i
+            }
+        }
+    }
+
+    private static let swizzleMethods: Bool = {
+        let originalSelector = #selector(UIApplication.sendEvent(_:))
+        let swizzledSelector = #selector(UIApplication.monkey_sendEvent(_:))
+        
+        let originalMethod = class_getInstanceMethod(UIApplication.self, originalSelector)
+        let swizzledMethod = class_getInstanceMethod(UIApplication.self, swizzledSelector)
+        
+        let didAddMethod = class_addMethod(UIApplication.self, originalSelector, method_getImplementation(swizzledMethod), method_getTypeEncoding(swizzledMethod))
+        
+        if didAddMethod {
+            class_replaceMethod(UIApplication.self, swizzledSelector, method_getImplementation(originalMethod), method_getTypeEncoding(originalMethod))
+        } else {
+            method_exchangeImplementations(originalMethod, swizzledMethod)
+        }
+
+        return true
+    }()
+    
+    private func tapUIApplicationSendEvent() {
+        _ = MonkeyPaws.swizzleMethods
+        MonkeyPaws.tappingTracks.append(WeakReference(self))
+    }
+
+    private func bumpAndDisplayLayer() {
+        guard let superlayer = layer.superlayer else { return }
+        guard let layers = superlayer.sublayers else { return }
+        guard let index = layers.index(of: layer) else { return }
+
+        if index != layers.count - 1 {
+            layer.removeFromSuperlayer()
+            superlayer.addSublayer(layer)
+        }
+
+        layer.frame = superlayer.bounds
+
+        layer.setNeedsDisplay()
+        layer.displayIfNeeded()
+    }
+}
+
+private class Gesture {
+    var points: [CGPoint]
+
+    var containerLayer = CALayer()
+    var startLayer = CAShapeLayer()
+    var numberLayer = CATextLayer()
+    var pathLayer: CAShapeLayer?
+    var endLayer: CAShapeLayer?
+
+    private static var counter: Int = 0
+
+    init(from: CGPoint, inLayer: CALayer) {
+        self.points = [from]
+
+        let counter = Gesture.counter
+        Gesture.counter += 1
+
+        let angle = 45 * (CGFloat(fmod(Float(counter) * 0.279, 1)) * 2 - 1)
+        let mirrored = counter % 2 == 0
+        let colour = UIColor(hue: CGFloat(fmod(Float(counter) * 0.391, 1)), saturation: 1, brightness: 0.5, alpha: 1)
+        startLayer.path = monkeyHandPath(angle: angle, scale: 1, mirrored: mirrored).cgPath
+        startLayer.strokeColor = colour.cgColor
+        startLayer.fillColor = nil
+        startLayer.position = from
+        containerLayer.addSublayer(startLayer)
+
+        numberLayer.string = "1"
+        numberLayer.bounds = CGRect(x:0, y: 0, width: 32, height: 13)
+        numberLayer.fontSize = 10
+        numberLayer.alignmentMode = kCAAlignmentCenter
+        numberLayer.foregroundColor = colour.cgColor
+        numberLayer.position = from
+        numberLayer.contentsScale = UIScreen.main.scale
+        containerLayer.addSublayer(numberLayer)
+
+        inLayer.addSublayer(containerLayer)
+    }
+
+    deinit {
+        containerLayer.removeFromSuperlayer()
+    }
+
+
+    var number: Int = 0 {
+        didSet {
+            numberLayer.string = String(number)
+
+            let fraction = Float(number - 1) / Float(maxGesturesShown)
+            let alpha = sqrt(1 - fraction)
+            containerLayer.opacity = alpha
+        }
+    }
+
+    func extend(to: CGPoint) {
+        guard let startPath = startLayer.path,
+        let startPoint = points.first else {
+            assertionFailure("No start marker layer exists")
+            return
+        }
+
+        points.append(to)
+
+        let pathLayer = self.pathLayer ?? { () -> CAShapeLayer in
+            let newLayer = CAShapeLayer()
+            newLayer.strokeColor = self.startLayer.strokeColor
+            newLayer.fillColor = nil
+
+            let maskPath = CGMutablePath()
+            maskPath.addRect(CGRect(x: -10000, y: -10000, width: 20000, height: 20000))
+            maskPath.addPath(startPath)
+
+            let maskLayer = CAShapeLayer()
+            maskLayer.path = maskPath
+            maskLayer.fillRule = kCAFillRuleEvenOdd
+            maskLayer.position = self.startLayer.position
+            newLayer.mask = maskLayer
+
+            self.pathLayer = newLayer
+            self.containerLayer.addSublayer(newLayer)
+
+            return newLayer
+        }()
+
+        let path = CGMutablePath()
+        path.move(to: startPoint)
+        for point in points.dropFirst() {
+            path.addLine(to: point)
+        }
+
+        pathLayer.path = path
+    }
+
+    func end(at: CGPoint) {
+        guard endLayer == nil else {
+            assertionFailure("Attempted to end or cancel a gesture twice!")
+            return
+        }
+
+        extend(to: at)
+
+        let layer = CAShapeLayer()
+        layer.strokeColor = startLayer.strokeColor
+        layer.fillColor = nil
+        layer.position = at
+
+        let path = circlePath()
+        layer.path = path.cgPath
+
+        containerLayer.addSublayer(layer)
+        endLayer = layer
+    }
+
+    func cancel(at: CGPoint) {
+        guard endLayer == nil else {
+            assertionFailure("Attempted to end or cancel a gesture twice!")
+            return
+        }
+
+        extend(to: at)
+
+        let layer = CAShapeLayer()
+        layer.strokeColor = startLayer.strokeColor
+        layer.fillColor = nil
+        layer.position = at
+
+        let path = crossPath()
+        layer.path = path.cgPath
+
+        containerLayer.addSublayer(layer)
+        endLayer = layer
+    }
+}
+
+private func monkeyHandPath(angle: CGFloat, scale: CGFloat, mirrored: Bool) -> UIBezierPath {
+    let bezierPath = UIBezierPath()
+    bezierPath.move(to: CGPoint(x: -5.91, y: 8.76))
+    bezierPath.addCurve(to: CGPoint(x: -10.82, y: 2.15), controlPoint1: CGPoint(x: -9.18, y: 7.11), controlPoint2: CGPoint(x: -8.09, y: 4.9))
+    bezierPath.addCurve(to: CGPoint(x: -16.83, y: -1.16), controlPoint1: CGPoint(x: -13.56, y: -0.6), controlPoint2: CGPoint(x: -14.65, y: 0.5))
+    bezierPath.addCurve(to: CGPoint(x: -14.65, y: -6.11), controlPoint1: CGPoint(x: -19.02, y: -2.81), controlPoint2: CGPoint(x: -19.57, y: -6.66))
+    bezierPath.addCurve(to: CGPoint(x: -8.09, y: -2.81), controlPoint1: CGPoint(x: -9.73, y: -5.56), controlPoint2: CGPoint(x: -8.64, y: -0.05))
+    bezierPath.addCurve(to: CGPoint(x: -11.37, y: -13.82), controlPoint1: CGPoint(x: -7.54, y: -5.56), controlPoint2: CGPoint(x: -7, y: -8.32))
+    bezierPath.addCurve(to: CGPoint(x: -7.54, y: -17.13), controlPoint1: CGPoint(x: -15.74, y: -19.33), controlPoint2: CGPoint(x: -9.73, y: -20.98))
+    bezierPath.addCurve(to: CGPoint(x: -4.27, y: -8.87), controlPoint1: CGPoint(x: -5.36, y: -13.27), controlPoint2: CGPoint(x: -6.45, y: -7.76))
+    bezierPath.addCurve(to: CGPoint(x: -4.27, y: -18.23), controlPoint1: CGPoint(x: -2.08, y: -9.97), controlPoint2: CGPoint(x: -3.72, y: -12.72))
+    bezierPath.addCurve(to: CGPoint(x: 0.65, y: -18.23), controlPoint1: CGPoint(x: -4.81, y: -23.74), controlPoint2: CGPoint(x: 0.65, y: -25.39))
+    bezierPath.addCurve(to: CGPoint(x: 1.2, y: -8.32), controlPoint1: CGPoint(x: 0.65, y: -11.07), controlPoint2: CGPoint(x: -0.74, y: -9.29))
+    bezierPath.addCurve(to: CGPoint(x: 3.93, y: -18.78), controlPoint1: CGPoint(x: 2.29, y: -7.76), controlPoint2: CGPoint(x: 3.93, y: -9.3))
+    bezierPath.addCurve(to: CGPoint(x: 8.3, y: -16.03), controlPoint1: CGPoint(x: 3.93, y: -23.19), controlPoint2: CGPoint(x: 9.96, y: -21.86))
+    bezierPath.addCurve(to: CGPoint(x: 5.57, y: -6.11), controlPoint1: CGPoint(x: 7.76, y: -14.1), controlPoint2: CGPoint(x: 3.93, y: -6.66))
+    bezierPath.addCurve(to: CGPoint(x: 9.4, y: -10.52), controlPoint1: CGPoint(x: 7.21, y: -5.56), controlPoint2: CGPoint(x: 9.16, y: -10.09))
+    bezierPath.addCurve(to: CGPoint(x: 12.13, y: -6.66), controlPoint1: CGPoint(x: 12.13, y: -15.48), controlPoint2: CGPoint(x: 15.41, y: -9.42))
+    bezierPath.addCurve(to: CGPoint(x: 8.3, y: -1.16), controlPoint1: CGPoint(x: 8.85, y: -3.91), controlPoint2: CGPoint(x: 8.85, y: -3.91))
+    bezierPath.addCurve(to: CGPoint(x: 8.3, y: 7.11), controlPoint1: CGPoint(x: 7.76, y: 1.6), controlPoint2: CGPoint(x: 9.4, y: 4.35))
+    bezierPath.addCurve(to: CGPoint(x: -5.91, y: 8.76), controlPoint1: CGPoint(x: 7.21, y: 9.86), controlPoint2: CGPoint(x: -2.63, y: 10.41))
+    bezierPath.close()
+
+    bezierPath.apply(CGAffineTransform(translationX: 0.5, y: 0))
+
+    bezierPath.apply(CGAffineTransform(scaleX: scale, y: scale))
+
+    if mirrored {
+        bezierPath.apply(CGAffineTransform(scaleX: -1, y: 1))
+    }
+
+    bezierPath.apply(CGAffineTransform(rotationAngle: angle / 180 * CGFloat.pi))
+
+    return bezierPath
+}
+
+private func circlePath() -> UIBezierPath {
+    return UIBezierPath(ovalIn: CGRect(centre: CGPoint.zero, size: CGSize(width: circleRadius * 2, height: circleRadius * 2)))
+}
+
+private func crossPath() -> UIBezierPath {
+    let rect = CGRect(centre: CGPoint.zero, size: CGSize(width: crossRadius * 2, height: crossRadius * 2))
+    let cross = UIBezierPath()
+    cross.move(to: CGPoint(x: rect.minX, y: rect.minY))
+    cross.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY))
+    cross.move(to: CGPoint(x: rect.minX, y: rect.maxY))
+    cross.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
+    return cross
+}
+
+private struct WeakReference<T: AnyObject> {
+    weak var value: T?
+    init(_ value: T) { self.value = value }
+}
+
+extension UIApplication {
+    func monkey_sendEvent(_ event: UIEvent) {
+        for weakTrack in MonkeyPaws.tappingTracks {
+            if let track = weakTrack.value {
+                track.append(event: event)
+            }
+        }
+
+        self.monkey_sendEvent(event)
+    }
+}
+
+extension CGRect {
+    public init(centre: CGPoint, size: CGSize) {
+        self.origin = CGPoint(x: centre.x - size.width / 2, y: centre.y - size.height / 2)
+        self.size = size
+    }
+}

+ 0 - 3
Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-acknowledgements.markdown

@@ -1,3 +0,0 @@
-# Acknowledgements
-This application makes use of the following third party libraries:
-Generated by CocoaPods - https://cocoapods.org

+ 0 - 29
Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-acknowledgements.plist

@@ -1,29 +0,0 @@
-<?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>PreferenceSpecifiers</key>
-	<array>
-		<dict>
-			<key>FooterText</key>
-			<string>This application makes use of the following third party libraries:</string>
-			<key>Title</key>
-			<string>Acknowledgements</string>
-			<key>Type</key>
-			<string>PSGroupSpecifier</string>
-		</dict>
-		<dict>
-			<key>FooterText</key>
-			<string>Generated by CocoaPods - https://cocoapods.org</string>
-			<key>Title</key>
-			<string></string>
-			<key>Type</key>
-			<string>PSGroupSpecifier</string>
-		</dict>
-	</array>
-	<key>StringsTable</key>
-	<string>Acknowledgements</string>
-	<key>Title</key>
-	<string>Acknowledgements</string>
-</dict>
-</plist>

+ 0 - 5
Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-dummy.m

@@ -1,5 +0,0 @@
-#import <Foundation/Foundation.h>
-@interface PodsDummy_Pods_WSCloudStorageUITests : NSObject
-@end
-@implementation PodsDummy_Pods_WSCloudStorageUITests
-@end

+ 0 - 92
Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-frameworks.sh

@@ -1,92 +0,0 @@
-#!/bin/sh
-set -e
-
-echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
-mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
-
-SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
-
-install_framework()
-{
-  if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
-    local source="${BUILT_PRODUCTS_DIR}/$1"
-  elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then
-    local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")"
-  elif [ -r "$1" ]; then
-    local source="$1"
-  fi
-
-  local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
-
-  if [ -L "${source}" ]; then
-      echo "Symlinked..."
-      source="$(readlink "${source}")"
-  fi
-
-  # use filter instead of exclude so missing patterns dont' throw errors
-  echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""
-  rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
-
-  local basename
-  basename="$(basename -s .framework "$1")"
-  binary="${destination}/${basename}.framework/${basename}"
-  if ! [ -r "$binary" ]; then
-    binary="${destination}/${basename}"
-  fi
-
-  # Strip invalid architectures so "fat" simulator / device frameworks work on device
-  if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then
-    strip_invalid_archs "$binary"
-  fi
-
-  # Resign the code if required by the build settings to avoid unstable apps
-  code_sign_if_enabled "${destination}/$(basename "$1")"
-
-  # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.
-  if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
-    local swift_runtime_libs
-    swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u  && exit ${PIPESTATUS[0]})
-    for lib in $swift_runtime_libs; do
-      echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\""
-      rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
-      code_sign_if_enabled "${destination}/${lib}"
-    done
-  fi
-}
-
-# Signs a framework with the provided identity
-code_sign_if_enabled() {
-  if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
-    # Use the current code_sign_identitiy
-    echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
-    local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'"
-
-    if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
-      code_sign_cmd="$code_sign_cmd &"
-    fi
-    echo "$code_sign_cmd"
-    eval "$code_sign_cmd"
-  fi
-}
-
-# Strip invalid architectures
-strip_invalid_archs() {
-  binary="$1"
-  # Get architectures for current file
-  archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)"
-  stripped=""
-  for arch in $archs; do
-    if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then
-      # Strip non-valid architectures in-place
-      lipo -remove "$arch" -output "$binary" "$binary" || exit 1
-      stripped="$stripped $arch"
-    fi
-  done
-  if [[ "$stripped" ]]; then
-    echo "Stripped $binary of architectures:$stripped"
-  fi
-}
-
-if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
-  wait
-fi

+ 0 - 102
Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-resources.sh

@@ -1,102 +0,0 @@
-#!/bin/sh
-set -e
-
-mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
-
-RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
-> "$RESOURCES_TO_COPY"
-
-XCASSET_FILES=()
-
-case "${TARGETED_DEVICE_FAMILY}" in
-  1,2)
-    TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
-    ;;
-  1)
-    TARGET_DEVICE_ARGS="--target-device iphone"
-    ;;
-  2)
-    TARGET_DEVICE_ARGS="--target-device ipad"
-    ;;
-  3)
-    TARGET_DEVICE_ARGS="--target-device tv"
-    ;;
-  4)
-    TARGET_DEVICE_ARGS="--target-device watch"
-    ;;
-  *)
-    TARGET_DEVICE_ARGS="--target-device mac"
-    ;;
-esac
-
-install_resource()
-{
-  if [[ "$1" = /* ]] ; then
-    RESOURCE_PATH="$1"
-  else
-    RESOURCE_PATH="${PODS_ROOT}/$1"
-  fi
-  if [[ ! -e "$RESOURCE_PATH" ]] ; then
-    cat << EOM
-error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script.
-EOM
-    exit 1
-  fi
-  case $RESOURCE_PATH in
-    *.storyboard)
-      echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}"
-      ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
-      ;;
-    *.xib)
-      echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}"
-      ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
-      ;;
-    *.framework)
-      echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
-      mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
-      echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
-      rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
-      ;;
-    *.xcdatamodel)
-      echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\""
-      xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom"
-      ;;
-    *.xcdatamodeld)
-      echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\""
-      xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd"
-      ;;
-    *.xcmappingmodel)
-      echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\""
-      xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
-      ;;
-    *.xcassets)
-      ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH"
-      XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
-      ;;
-    *)
-      echo "$RESOURCE_PATH"
-      echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY"
-      ;;
-  esac
-}
-
-mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
-rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
-if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
-  mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
-  rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
-fi
-rm -f "$RESOURCES_TO_COPY"
-
-if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
-then
-  # Find all other xcassets (this unfortunately includes those of path pods and other targets).
-  OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
-  while read line; do
-    if [[ $line != "${PODS_ROOT}*" ]]; then
-      XCASSET_FILES+=("$line")
-    fi
-  done <<<"$OTHER_XCASSETS"
-
-  printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
-fi

Разница между файлами не показана из-за своего большого размера
+ 0 - 10
Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests.debug.xcconfig


Разница между файлами не показана из-за своего большого размера
+ 0 - 10
Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests.release.xcconfig


+ 7 - 63
WSCloudStorage.xcodeproj/project.pbxproj

@@ -7,7 +7,6 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
-		138DC01E2ECCFACAFDA51DFB /* libPods-WSCloudStorageUITests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BE3D9117FAA876ACF77EC2BF /* libPods-WSCloudStorageUITests.a */; };
 		2742F67A6A0042C4A0659B2D /* libPods-WSCloudStorage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6230EBA6B8A92D52244EC3E9 /* libPods-WSCloudStorage.a */; };
 		AC38D6341F3311E6000DD19D /* fav_download_normal@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = AC38D6041F3311E6000DD19D /* fav_download_normal@2x.png */; };
 		AC38D6351F3311E6000DD19D /* fav_download_pressed@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = AC38D6051F3311E6000DD19D /* fav_download_pressed@2x.png */; };
@@ -311,7 +310,6 @@
 		2C31AAE161649013D8E55F15 /* Pods-WSCloudStorageTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WSCloudStorageTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-WSCloudStorageTests/Pods-WSCloudStorageTests.debug.xcconfig"; sourceTree = "<group>"; };
 		6230EBA6B8A92D52244EC3E9 /* libPods-WSCloudStorage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-WSCloudStorage.a"; sourceTree = BUILT_PRODUCTS_DIR; };
 		7EFFE0B01B29319374D08C52 /* Pods-WSCloudStorage.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WSCloudStorage.release.xcconfig"; path = "Pods/Target Support Files/Pods-WSCloudStorage/Pods-WSCloudStorage.release.xcconfig"; sourceTree = "<group>"; };
-		83F00F1E071F68258509627C /* Pods-WSCloudStorageUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WSCloudStorageUITests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests.debug.xcconfig"; sourceTree = "<group>"; };
 		91B7F9A29BFCBB7EDBBAFAAD /* Pods-WSCloudStorage.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WSCloudStorage.debug.xcconfig"; path = "Pods/Target Support Files/Pods-WSCloudStorage/Pods-WSCloudStorage.debug.xcconfig"; sourceTree = "<group>"; };
 		AC28A2CE1F3B064A00AF42BF /* Rx.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Rx.xcodeproj; path = "../../../Downloads/RxSwift-rxswift-2.0/Rx.xcodeproj"; sourceTree = "<group>"; };
 		AC38D6041F3311E6000DD19D /* fav_download_normal@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "fav_download_normal@2x.png"; sourceTree = "<group>"; };
@@ -546,7 +544,6 @@
 		ACF53A011F3806A700D4F08A /* gridviewtest.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = gridviewtest.png; sourceTree = "<group>"; };
 		BE3D9117FAA876ACF77EC2BF /* libPods-WSCloudStorageUITests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-WSCloudStorageUITests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
 		E57E3FA6D913300041C84BEB /* Pods-WSCloudStorageTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WSCloudStorageTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-WSCloudStorageTests/Pods-WSCloudStorageTests.release.xcconfig"; sourceTree = "<group>"; };
-		ECCBFB4328A8AB37C4E2AB84 /* Pods-WSCloudStorageUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WSCloudStorageUITests.release.xcconfig"; path = "Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests.release.xcconfig"; sourceTree = "<group>"; };
 		F04C907EA8A626A448C90433 /* libPods-WSCloudStorageTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-WSCloudStorageTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
 /* End PBXFileReference section */
 
@@ -573,7 +570,6 @@
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				138DC01E2ECCFACAFDA51DFB /* libPods-WSCloudStorageUITests.a in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -587,8 +583,6 @@
 				7EFFE0B01B29319374D08C52 /* Pods-WSCloudStorage.release.xcconfig */,
 				2C31AAE161649013D8E55F15 /* Pods-WSCloudStorageTests.debug.xcconfig */,
 				E57E3FA6D913300041C84BEB /* Pods-WSCloudStorageTests.release.xcconfig */,
-				83F00F1E071F68258509627C /* Pods-WSCloudStorageUITests.debug.xcconfig */,
-				ECCBFB4328A8AB37C4E2AB84 /* Pods-WSCloudStorageUITests.release.xcconfig */,
 			);
 			name = Pods;
 			sourceTree = "<group>";
@@ -1181,12 +1175,9 @@
 			isa = PBXNativeTarget;
 			buildConfigurationList = AC73C7261F2873BF00155E1F /* Build configuration list for PBXNativeTarget "WSCloudStorageUITests" */;
 			buildPhases = (
-				B3372482BC5BDDE2C6C1658F /* [CP] Check Pods Manifest.lock */,
 				AC73C7131F2873BF00155E1F /* Sources */,
 				AC73C7141F2873BF00155E1F /* Frameworks */,
 				AC73C7151F2873BF00155E1F /* Resources */,
-				8E336DB46D6BEB1018A5E3A9 /* [CP] Embed Pods Frameworks */,
-				E804BBF191D69487A5931911 /* [CP] Copy Pods Resources */,
 			);
 			buildRules = (
 			);
@@ -1209,7 +1200,7 @@
 				TargetAttributes = {
 					AC73C6F21F2873BF00155E1F = {
 						CreatedOnToolsVersion = 7.3.1;
-						DevelopmentTeam = JQABFF2G58;
+						DevelopmentTeam = LUEY2M2KL8;
 						LastSwiftMigration = 0830;
 						ProvisioningStyle = Automatic;
 					};
@@ -1513,21 +1504,6 @@
 			shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-WSCloudStorage/Pods-WSCloudStorage-resources.sh\"\n";
 			showEnvVarsInLog = 0;
 		};
-		8E336DB46D6BEB1018A5E3A9 /* [CP] Embed Pods Frameworks */ = {
-			isa = PBXShellScriptBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-			);
-			inputPaths = (
-			);
-			name = "[CP] Embed Pods Frameworks";
-			outputPaths = (
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-			shellPath = /bin/sh;
-			shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-frameworks.sh\"\n";
-			showEnvVarsInLog = 0;
-		};
 		B08BF2E88500B4A0CBAA54C5 /* [CP] Check Pods Manifest.lock */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
@@ -1543,36 +1519,6 @@
 			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n";
 			showEnvVarsInLog = 0;
 		};
-		B3372482BC5BDDE2C6C1658F /* [CP] Check Pods Manifest.lock */ = {
-			isa = PBXShellScriptBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-			);
-			inputPaths = (
-			);
-			name = "[CP] Check Pods Manifest.lock";
-			outputPaths = (
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-			shellPath = /bin/sh;
-			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n";
-			showEnvVarsInLog = 0;
-		};
-		E804BBF191D69487A5931911 /* [CP] Copy Pods Resources */ = {
-			isa = PBXShellScriptBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-			);
-			inputPaths = (
-			);
-			name = "[CP] Copy Pods Resources";
-			outputPaths = (
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-			shellPath = /bin/sh;
-			shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-WSCloudStorageUITests/Pods-WSCloudStorageUITests-resources.sh\"\n";
-			showEnvVarsInLog = 0;
-		};
 		FEADAC09CB9875078ECFEA05 /* [CP] Check Pods Manifest.lock */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
@@ -1829,16 +1775,16 @@
 				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
 				CLANG_ENABLE_MODULES = YES;
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				DEVELOPMENT_TEAM = JQABFF2G58;
+				DEVELOPMENT_TEAM = LUEY2M2KL8;
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(inherited)",
 					"$(PROJECT_DIR)",
 				);
 				GCC_PREFIX_HEADER = "$(SRCROOT)/WSCloudstorage/WSCloudStorage.pch";
 				INFOPLIST_FILE = WSCloudStorage/Info.plist;
-				IPHONEOS_DEPLOYMENT_TARGET = 7.1;
+				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
-				PRODUCT_BUNDLE_IDENTIFIER = com.hxb.WSCloudStorage;
+				PRODUCT_BUNDLE_IDENTIFIER = com.hxb.WSCloudStorageDemo;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PROVISIONING_PROFILE_SPECIFIER = "";
 				SWIFT_OBJC_BRIDGING_HEADER = "WSCloudStorage/VC/Login/WSCloudStorage-Bridging-Header.h";
@@ -1855,16 +1801,16 @@
 				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
 				CLANG_ENABLE_MODULES = YES;
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				DEVELOPMENT_TEAM = JQABFF2G58;
+				DEVELOPMENT_TEAM = LUEY2M2KL8;
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(inherited)",
 					"$(PROJECT_DIR)",
 				);
 				GCC_PREFIX_HEADER = "$(SRCROOT)/WSCloudstorage/WSCloudStorage.pch";
 				INFOPLIST_FILE = WSCloudStorage/Info.plist;
-				IPHONEOS_DEPLOYMENT_TARGET = 7.1;
+				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
-				PRODUCT_BUNDLE_IDENTIFIER = com.hxb.WSCloudStorage;
+				PRODUCT_BUNDLE_IDENTIFIER = com.hxb.WSCloudStorageDemo;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PROVISIONING_PROFILE_SPECIFIER = "";
 				SWIFT_OBJC_BRIDGING_HEADER = "WSCloudStorage/VC/Login/WSCloudStorage-Bridging-Header.h";
@@ -1902,7 +1848,6 @@
 		};
 		AC73C7271F2873BF00155E1F /* Debug */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 83F00F1E071F68258509627C /* Pods-WSCloudStorageUITests.debug.xcconfig */;
 			buildSettings = {
 				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
 				INFOPLIST_FILE = WSCloudStorageUITests/Info.plist;
@@ -1915,7 +1860,6 @@
 		};
 		AC73C7281F2873BF00155E1F /* Release */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = ECCBFB4328A8AB37C4E2AB84 /* Pods-WSCloudStorageUITests.release.xcconfig */;
 			buildSettings = {
 				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
 				INFOPLIST_FILE = WSCloudStorageUITests/Info.plist;

BIN
WSCloudStorage.xcworkspace/xcuserdata/jonathanh.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 1
WSCloudStorage/VC/TabBarMore/PreferencesViewController.m

@@ -192,7 +192,7 @@ static NSString * const kCellID = @"PreferencesViewControllerCellID";
         NSLog(@"tap:%@",indexPath);
         //            BAKit_ShowAlertWithMsg_ios8(model.titleString);
     }];
-    gridview.frame = CGRectMake(0, CGRectGetMaxY(avatarview.frame)+20, screenW, kGridView_H+20);
+    gridview.frame = CGRectMake(0, CGRectGetMaxY(avatarview.frame)+20, screenW, kGridView_H+10);
     //[self.view addSubview:gridview];
     self.gridView = gridview;
     CALayer *garylayer = [CALayer layer];

+ 1 - 0
WSCloudStorageTests/WSCloudStorageTests.m

@@ -17,6 +17,7 @@
 - (void)setUp {
     [super setUp];
     // Put setup code here. This method is called before the invocation of each test method in the class.
+    
 }
 
 - (void)tearDown {