From 8ccecdcdec1ff4dafac5ff88fa12938e2fa82110 Mon Sep 17 00:00:00 2001 From: Jonathan Martins Date: Sun, 6 Jan 2019 23:58:40 -0200 Subject: [PATCH 01/11] First Commit - Created some of the model classes - Created the ContactView - Created the ProductView - Created the ContactPresenter - Created the Requet classes - Added Alamofire to the project --- Santander/Podfile | 9 + Santander/Podfile.lock | 16 + Santander/Pods/Alamofire/LICENSE | 19 + Santander/Pods/Alamofire/README.md | 243 +++++ Santander/Pods/Alamofire/Source/AFError.swift | 460 +++++++++ .../Pods/Alamofire/Source/Alamofire.swift | 465 +++++++++ .../Source/DispatchQueue+Alamofire.swift | 37 + .../Alamofire/Source/MultipartFormData.swift | 580 +++++++++++ .../Source/NetworkReachabilityManager.swift | 233 +++++ .../Pods/Alamofire/Source/Notifications.swift | 55 ++ .../Alamofire/Source/ParameterEncoding.swift | 483 ++++++++++ Santander/Pods/Alamofire/Source/Request.swift | 649 +++++++++++++ .../Pods/Alamofire/Source/Response.swift | 567 +++++++++++ .../Source/ResponseSerialization.swift | 715 ++++++++++++++ Santander/Pods/Alamofire/Source/Result.swift | 300 ++++++ .../Alamofire/Source/ServerTrustPolicy.swift | 307 ++++++ .../Alamofire/Source/SessionDelegate.swift | 725 ++++++++++++++ .../Alamofire/Source/SessionManager.swift | 899 ++++++++++++++++++ .../Pods/Alamofire/Source/TaskDelegate.swift | 466 +++++++++ .../Pods/Alamofire/Source/Timeline.swift | 136 +++ .../Pods/Alamofire/Source/Validation.swift | 315 ++++++ Santander/Pods/Manifest.lock | 16 + Santander/Pods/Pods.xcodeproj/project.pbxproj | 671 +++++++++++++ .../xcschemes/Alamofire.xcscheme | 60 ++ .../xcschemes/Pods-Santander.xcscheme | 60 ++ .../xcschemes/xcschememanagement.plist | 21 + .../Alamofire/Alamofire-Info.plist | 26 + .../Alamofire/Alamofire-dummy.m | 5 + .../Alamofire/Alamofire-prefix.pch | 12 + .../Alamofire/Alamofire-umbrella.h | 16 + .../Alamofire/Alamofire.modulemap | 6 + .../Alamofire/Alamofire.xcconfig | 9 + .../Pods-Santander/Pods-Santander-Info.plist | 26 + .../Pods-Santander-acknowledgements.markdown | 26 + .../Pods-Santander-acknowledgements.plist | 5 + .../Pods-Santander/Pods-Santander-dummy.m | 5 + .../Pods-Santander-frameworks.sh | 158 +++ .../Pods-Santander/Pods-Santander-umbrella.h | 16 + .../Pods-Santander.debug.xcconfig | 11 + .../Pods-Santander/Pods-Santander.modulemap | 6 + .../Pods-Santander.release.xcconfig | 11 + Santander/Santander.xcodeproj/project.pbxproj | 485 ++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../UserInterfaceState.xcuserstate | Bin 0 -> 60909 bytes .../xcschemes/Santander - PROD.xcscheme | 91 ++ .../xcschemes/Santander - STAG.xcscheme | 91 ++ .../xcshareddata/xcschemes/Santander.xcscheme | 91 ++ .../xcschemes/xcschememanagement.plist | 32 + .../contents.xcworkspacedata | 10 + Santander/Santander/AppDelegate.swift | 50 + .../AppIcon.appiconset/Contents.json | 98 ++ .../Santander/Assets.xcassets/Contents.json | 6 + .../Base.lproj/LaunchScreen.storyboard | 25 + Santander/Santander/Endpoint.plist | 10 + Santander/Santander/Info.plist | 70 ++ Santander/Santander/Model/FormItem.swift | 11 + .../Presenter/ContactPresenter.swift | 48 + Santander/Santander/Request/RequestBase.swift | 75 ++ .../Santander/Request/RequestService.swift | 24 + Santander/Santander/View/ContactView.swift | 130 +++ Santander/Santander/View/ProductView.swift | 56 ++ .../View/ProductViewController.swift | 17 + .../ContactViewController.swift | 42 + .../ViewController/MainViewController.swift | 40 + .../ProductViewController.swift | 17 + 66 files changed, 10379 insertions(+) create mode 100644 Santander/Podfile create mode 100644 Santander/Podfile.lock create mode 100644 Santander/Pods/Alamofire/LICENSE create mode 100644 Santander/Pods/Alamofire/README.md create mode 100644 Santander/Pods/Alamofire/Source/AFError.swift create mode 100644 Santander/Pods/Alamofire/Source/Alamofire.swift create mode 100644 Santander/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift create mode 100644 Santander/Pods/Alamofire/Source/MultipartFormData.swift create mode 100644 Santander/Pods/Alamofire/Source/NetworkReachabilityManager.swift create mode 100644 Santander/Pods/Alamofire/Source/Notifications.swift create mode 100644 Santander/Pods/Alamofire/Source/ParameterEncoding.swift create mode 100644 Santander/Pods/Alamofire/Source/Request.swift create mode 100644 Santander/Pods/Alamofire/Source/Response.swift create mode 100644 Santander/Pods/Alamofire/Source/ResponseSerialization.swift create mode 100644 Santander/Pods/Alamofire/Source/Result.swift create mode 100644 Santander/Pods/Alamofire/Source/ServerTrustPolicy.swift create mode 100644 Santander/Pods/Alamofire/Source/SessionDelegate.swift create mode 100644 Santander/Pods/Alamofire/Source/SessionManager.swift create mode 100644 Santander/Pods/Alamofire/Source/TaskDelegate.swift create mode 100644 Santander/Pods/Alamofire/Source/Timeline.swift create mode 100644 Santander/Pods/Alamofire/Source/Validation.swift create mode 100644 Santander/Pods/Manifest.lock create mode 100644 Santander/Pods/Pods.xcodeproj/project.pbxproj create mode 100644 Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Alamofire.xcscheme create mode 100644 Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Pods-Santander.xcscheme create mode 100644 Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 Santander/Pods/Target Support Files/Alamofire/Alamofire-Info.plist create mode 100644 Santander/Pods/Target Support Files/Alamofire/Alamofire-dummy.m create mode 100644 Santander/Pods/Target Support Files/Alamofire/Alamofire-prefix.pch create mode 100644 Santander/Pods/Target Support Files/Alamofire/Alamofire-umbrella.h create mode 100644 Santander/Pods/Target Support Files/Alamofire/Alamofire.modulemap create mode 100644 Santander/Pods/Target Support Files/Alamofire/Alamofire.xcconfig create mode 100644 Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-Info.plist create mode 100644 Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-acknowledgements.markdown create mode 100644 Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-acknowledgements.plist create mode 100644 Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-dummy.m create mode 100755 Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-frameworks.sh create mode 100644 Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-umbrella.h create mode 100644 Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.debug.xcconfig create mode 100644 Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.modulemap create mode 100644 Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.release.xcconfig create mode 100644 Santander/Santander.xcodeproj/project.pbxproj create mode 100644 Santander/Santander.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Santander/Santander.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 Santander/Santander.xcodeproj/project.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate create mode 100644 Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - PROD.xcscheme create mode 100644 Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - STAG.xcscheme create mode 100644 Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander.xcscheme create mode 100644 Santander/Santander.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 Santander/Santander.xcworkspace/contents.xcworkspacedata create mode 100644 Santander/Santander/AppDelegate.swift create mode 100644 Santander/Santander/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Santander/Santander/Assets.xcassets/Contents.json create mode 100644 Santander/Santander/Base.lproj/LaunchScreen.storyboard create mode 100644 Santander/Santander/Endpoint.plist create mode 100644 Santander/Santander/Info.plist create mode 100644 Santander/Santander/Model/FormItem.swift create mode 100644 Santander/Santander/Presenter/ContactPresenter.swift create mode 100644 Santander/Santander/Request/RequestBase.swift create mode 100644 Santander/Santander/Request/RequestService.swift create mode 100644 Santander/Santander/View/ContactView.swift create mode 100644 Santander/Santander/View/ProductView.swift create mode 100644 Santander/Santander/View/ProductViewController.swift create mode 100644 Santander/Santander/ViewController/ContactViewController.swift create mode 100644 Santander/Santander/ViewController/MainViewController.swift create mode 100644 Santander/Santander/ViewController/ProductViewController.swift diff --git a/Santander/Podfile b/Santander/Podfile new file mode 100644 index 00000000..7f6a79cb --- /dev/null +++ b/Santander/Podfile @@ -0,0 +1,9 @@ +# Uncomment the next line to define a global platform for your project +# platform :ios, '9.0' + +target 'Santander' do + use_frameworks! + + pod 'Alamofire', '~> 4.7' + +end diff --git a/Santander/Podfile.lock b/Santander/Podfile.lock new file mode 100644 index 00000000..88336ea4 --- /dev/null +++ b/Santander/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - Alamofire (4.8.0) + +DEPENDENCIES: + - Alamofire (~> 4.7) + +SPEC REPOS: + https://github.com/cocoapods/specs.git: + - Alamofire + +SPEC CHECKSUMS: + Alamofire: 3ec537f71edc9804815215393ae2b1a8ea33a844 + +PODFILE CHECKSUM: 6a64a1ba1209b9d92566ec0649257e0039255ee1 + +COCOAPODS: 1.6.0.beta.1 diff --git a/Santander/Pods/Alamofire/LICENSE b/Santander/Pods/Alamofire/LICENSE new file mode 100644 index 00000000..2ec3cb14 --- /dev/null +++ b/Santander/Pods/Alamofire/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) + +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. diff --git a/Santander/Pods/Alamofire/README.md b/Santander/Pods/Alamofire/README.md new file mode 100644 index 00000000..26e364a8 --- /dev/null +++ b/Santander/Pods/Alamofire/README.md @@ -0,0 +1,243 @@ +![Alamofire: Elegant Networking in Swift](https://raw.githubusercontent.com/Alamofire/Alamofire/master/alamofire.png) + +[![Build Status](https://travis-ci.org/Alamofire/Alamofire.svg?branch=master)](https://travis-ci.org/Alamofire/Alamofire) +[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Alamofire.svg)](https://img.shields.io/cocoapods/v/Alamofire.svg) +[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) +[![Platform](https://img.shields.io/cocoapods/p/Alamofire.svg?style=flat)](https://alamofire.github.io/Alamofire) +[![Twitter](https://img.shields.io/badge/twitter-@AlamofireSF-blue.svg?style=flat)](https://twitter.com/AlamofireSF) +[![Gitter](https://badges.gitter.im/Alamofire/Alamofire.svg)](https://gitter.im/Alamofire/Alamofire?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) + +Alamofire is an HTTP networking library written in Swift. + +- [Features](#features) +- [Component Libraries](#component-libraries) +- [Requirements](#requirements) +- [Migration Guides](#migration-guides) +- [Communication](#communication) +- [Installation](#installation) +- [Usage](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md) + - **Intro -** [Making a Request](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#making-a-request), [Response Handling](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-handling), [Response Validation](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-validation), [Response Caching](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#response-caching) + - **HTTP -** [HTTP Methods](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#http-methods), [Parameter Encoding](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#parameter-encoding), [HTTP Headers](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#http-headers), [Authentication](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#authentication) + - **Large Data -** [Downloading Data to a File](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#downloading-data-to-a-file), [Uploading Data to a Server](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#uploading-data-to-a-server) + - **Tools -** [Statistical Metrics](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#statistical-metrics), [cURL Command Output](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Usage.md#curl-command-output) +- [Advanced Usage](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md) + - **URL Session -** [Session Manager](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#session-manager), [Session Delegate](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#session-delegate), [Request](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#request) + - **Routing -** [Routing Requests](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#routing-requests), [Adapting and Retrying Requests](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#adapting-and-retrying-requests) + - **Model Objects -** [Custom Response Serialization](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#custom-response-serialization) + - **Connection -** [Security](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#security), [Network Reachability](https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#network-reachability) +- [Open Radars](#open-radars) +- [FAQ](#faq) +- [Credits](#credits) +- [Donations](#donations) +- [License](#license) + +## Features + +- [x] Chainable Request / Response Methods +- [x] URL / JSON / plist Parameter Encoding +- [x] Upload File / Data / Stream / MultipartFormData +- [x] Download File using Request or Resume Data +- [x] Authentication with URLCredential +- [x] HTTP Response Validation +- [x] Upload and Download Progress Closures with Progress +- [x] cURL Command Output +- [x] Dynamically Adapt and Retry Requests +- [x] TLS Certificate and Public Key Pinning +- [x] Network Reachability +- [x] Comprehensive Unit and Integration Test Coverage +- [x] [Complete Documentation](https://alamofire.github.io/Alamofire) + +## Component Libraries + +In order to keep Alamofire focused specifically on core networking implementations, additional component libraries have been created by the [Alamofire Software Foundation](https://github.com/Alamofire/Foundation) to bring additional functionality to the Alamofire ecosystem. + +- [AlamofireImage](https://github.com/Alamofire/AlamofireImage) - An image library including image response serializers, `UIImage` and `UIImageView` extensions, custom image filters, an auto-purging in-memory cache and a priority-based image downloading system. +- [AlamofireNetworkActivityIndicator](https://github.com/Alamofire/AlamofireNetworkActivityIndicator) - Controls the visibility of the network activity indicator on iOS using Alamofire. It contains configurable delay timers to help mitigate flicker and can support `URLSession` instances not managed by Alamofire. + +## Requirements + +- iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+ +- Xcode 8.3+ +- Swift 3.1+ + +## Migration Guides + +- [Alamofire 4.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%204.0%20Migration%20Guide.md) +- [Alamofire 3.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%203.0%20Migration%20Guide.md) +- [Alamofire 2.0 Migration Guide](https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%202.0%20Migration%20Guide.md) + +## Communication +- If you **need help with making network requests**, use [Stack Overflow](https://stackoverflow.com/questions/tagged/alamofire) and tag `alamofire`. +- If you need to **find or understand an API**, check [our documentation](http://alamofire.github.io/Alamofire/) or [Apple's documentation for `URLSession`](https://developer.apple.com/documentation/foundation/url_loading_system), on top of which Alamofire is built. +- If you need **help with an Alamofire feature**, use [our forum on swift.org](https://forums.swift.org/c/related-projects/alamofire). +- If you'd like to **discuss Alamofire best practices**, use [our forum on swift.org](https://forums.swift.org/c/related-projects/alamofire). +- If you'd like to **discuss a feature request**, use [our forum on swift.org](https://forums.swift.org/c/related-projects/alamofire). +- If you **found a bug**, open an issue and follow the guide. The more detail the better! +- If you **want to contribute**, submit a pull request. + +## Installation + +### CocoaPods + +[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command: + +```bash +$ gem install cocoapods +``` + +> CocoaPods 1.1+ is required to build Alamofire 4.0+. + +To integrate Alamofire into your Xcode project using CocoaPods, specify it in your `Podfile`: + +```ruby +source 'https://github.com/CocoaPods/Specs.git' +platform :ios, '10.0' +use_frameworks! + +target '' do + pod 'Alamofire', '~> 4.7' +end +``` + +Then, run the following command: + +```bash +$ pod install +``` + +### Carthage + +[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. + +You can install Carthage with [Homebrew](https://brew.sh/) using the following command: + +```bash +$ brew update +$ brew install carthage +``` + +To integrate Alamofire into your Xcode project using Carthage, specify it in your `Cartfile`: + +```ogdl +github "Alamofire/Alamofire" ~> 4.7 +``` + +Run `carthage update` to build the framework and drag the built `Alamofire.framework` into your Xcode project. + +### Swift Package Manager + +The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It is in early development, but Alamofire does support its use on supported platforms. + +Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`. + +#### Swift 3 + +```swift +dependencies: [ + .Package(url: "https://github.com/Alamofire/Alamofire.git", majorVersion: 4) +] +``` + +#### Swift 4 + +```swift +dependencies: [ + .package(url: "https://github.com/Alamofire/Alamofire.git", from: "4.0.0") +] +``` + +### Manually + +If you prefer not to use any of the aforementioned dependency managers, you can integrate Alamofire into your project manually. + +#### Embedded Framework + +- Open up Terminal, `cd` into your top-level project directory, and run the following command "if" your project is not initialized as a git repository: + + ```bash + $ git init + ``` + +- Add Alamofire as a git [submodule](https://git-scm.com/docs/git-submodule) by running the following command: + + ```bash + $ git submodule add https://github.com/Alamofire/Alamofire.git + ``` + +- Open the new `Alamofire` folder, and drag the `Alamofire.xcodeproj` into the Project Navigator of your application's Xcode project. + + > It should appear nested underneath your application's blue project icon. Whether it is above or below all the other Xcode groups does not matter. + +- Select the `Alamofire.xcodeproj` in the Project Navigator and verify the deployment target matches that of your application target. +- Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the "Targets" heading in the sidebar. +- In the tab bar at the top of that window, open the "General" panel. +- Click on the `+` button under the "Embedded Binaries" section. +- You will see two different `Alamofire.xcodeproj` folders each with two different versions of the `Alamofire.framework` nested inside a `Products` folder. + + > It does not matter which `Products` folder you choose from, but it does matter whether you choose the top or bottom `Alamofire.framework`. + +- Select the top `Alamofire.framework` for iOS and the bottom one for OS X. + + > You can verify which one you selected by inspecting the build log for your project. The build target for `Alamofire` will be listed as either `Alamofire iOS`, `Alamofire macOS`, `Alamofire tvOS` or `Alamofire watchOS`. + +- And that's it! + + > The `Alamofire.framework` is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device. + +## Open Radars + +The following radars have some effect on the current implementation of Alamofire. + +- [`rdar://21349340`](http://www.openradar.me/radar?id=5517037090635776) - Compiler throwing warning due to toll-free bridging issue in test case +- `rdar://26870455` - Background URL Session Configurations do not work in the simulator +- `rdar://26849668` - Some URLProtocol APIs do not properly handle `URLRequest` +- [`rdar://36082113`](http://openradar.appspot.com/radar?id=4942308441063424) - `URLSessionTaskMetrics` failing to link on watchOS 3.0+ + +## Resolved Radars + +The following radars have been resolved over time after being filed against the Alamofire project. + +- [`rdar://26761490`](http://www.openradar.me/radar?id=5010235949318144) - Swift string interpolation causing memory leak with common usage (Resolved on 9/1/17 in Xcode 9 beta 6). + +## FAQ + +### What's the origin of the name Alamofire? + +Alamofire is named after the [Alamo Fire flower](https://aggie-horticulture.tamu.edu/wildseed/alamofire.html), a hybrid variant of the Bluebonnet, the official state flower of Texas. + +### What logic belongs in a Router vs. a Request Adapter? + +Simple, static data such as paths, parameters and common headers belong in the `Router`. Dynamic data such as an `Authorization` header whose value can changed based on an authentication system belongs in a `RequestAdapter`. + +The reason the dynamic data MUST be placed into the `RequestAdapter` is to support retry operations. When a `Request` is retried, the original request is not rebuilt meaning the `Router` will not be called again. The `RequestAdapter` is called again allowing the dynamic data to be updated on the original request before retrying the `Request`. + +## Credits + +Alamofire is owned and maintained by the [Alamofire Software Foundation](http://alamofire.org). You can follow them on Twitter at [@AlamofireSF](https://twitter.com/AlamofireSF) for project updates and releases. + +### Security Disclosure + +If you believe you have identified a security vulnerability with Alamofire, you should report it as soon as possible via email to security@alamofire.org. Please do not post it to a public issue tracker. + +## Donations + +The [ASF](https://github.com/Alamofire/Foundation#members) is looking to raise money to officially stay registered as a federal non-profit organization. +Registering will allow us members to gain some legal protections and also allow us to put donations to use, tax free. +Donating to the ASF will enable us to: + +- Pay our yearly legal fees to keep the non-profit in good status +- Pay for our mail servers to help us stay on top of all questions and security issues +- Potentially fund test servers to make it easier for us to test the edge cases +- Potentially fund developers to work on one of our projects full-time + +The community adoption of the ASF libraries has been amazing. +We are greatly humbled by your enthusiasm around the projects, and want to continue to do everything we can to move the needle forward. +With your continued support, the ASF will be able to improve its reach and also provide better legal safety for the core members. +If you use any of our libraries for work, see if your employers would be interested in donating. +Any amount you can donate today to help us reach our goal would be greatly appreciated. + +[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W34WPEE74APJQ) + +## License + +Alamofire is released under the MIT license. [See LICENSE](https://github.com/Alamofire/Alamofire/blob/master/LICENSE) for details. diff --git a/Santander/Pods/Alamofire/Source/AFError.swift b/Santander/Pods/Alamofire/Source/AFError.swift new file mode 100644 index 00000000..8b90d847 --- /dev/null +++ b/Santander/Pods/Alamofire/Source/AFError.swift @@ -0,0 +1,460 @@ +// +// AFError.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// `AFError` is the error type returned by Alamofire. It encompasses a few different types of errors, each with +/// their own associated reasons. +/// +/// - invalidURL: Returned when a `URLConvertible` type fails to create a valid `URL`. +/// - parameterEncodingFailed: Returned when a parameter encoding object throws an error during the encoding process. +/// - multipartEncodingFailed: Returned when some step in the multipart encoding process fails. +/// - responseValidationFailed: Returned when a `validate()` call fails. +/// - responseSerializationFailed: Returned when a response serializer encounters an error in the serialization process. +public enum AFError: Error { + /// The underlying reason the parameter encoding error occurred. + /// + /// - missingURL: The URL request did not have a URL to encode. + /// - jsonEncodingFailed: JSON serialization failed with an underlying system error during the + /// encoding process. + /// - propertyListEncodingFailed: Property list serialization failed with an underlying system error during + /// encoding process. + public enum ParameterEncodingFailureReason { + case missingURL + case jsonEncodingFailed(error: Error) + case propertyListEncodingFailed(error: Error) + } + + /// The underlying reason the multipart encoding error occurred. + /// + /// - bodyPartURLInvalid: The `fileURL` provided for reading an encodable body part isn't a + /// file URL. + /// - bodyPartFilenameInvalid: The filename of the `fileURL` provided has either an empty + /// `lastPathComponent` or `pathExtension. + /// - bodyPartFileNotReachable: The file at the `fileURL` provided was not reachable. + /// - bodyPartFileNotReachableWithError: Attempting to check the reachability of the `fileURL` provided threw + /// an error. + /// - bodyPartFileIsDirectory: The file at the `fileURL` provided is actually a directory. + /// - bodyPartFileSizeNotAvailable: The size of the file at the `fileURL` provided was not returned by + /// the system. + /// - bodyPartFileSizeQueryFailedWithError: The attempt to find the size of the file at the `fileURL` provided + /// threw an error. + /// - bodyPartInputStreamCreationFailed: An `InputStream` could not be created for the provided `fileURL`. + /// - outputStreamCreationFailed: An `OutputStream` could not be created when attempting to write the + /// encoded data to disk. + /// - outputStreamFileAlreadyExists: The encoded body data could not be writtent disk because a file + /// already exists at the provided `fileURL`. + /// - outputStreamURLInvalid: The `fileURL` provided for writing the encoded body data to disk is + /// not a file URL. + /// - outputStreamWriteFailed: The attempt to write the encoded body data to disk failed with an + /// underlying error. + /// - inputStreamReadFailed: The attempt to read an encoded body part `InputStream` failed with + /// underlying system error. + public enum MultipartEncodingFailureReason { + case bodyPartURLInvalid(url: URL) + case bodyPartFilenameInvalid(in: URL) + case bodyPartFileNotReachable(at: URL) + case bodyPartFileNotReachableWithError(atURL: URL, error: Error) + case bodyPartFileIsDirectory(at: URL) + case bodyPartFileSizeNotAvailable(at: URL) + case bodyPartFileSizeQueryFailedWithError(forURL: URL, error: Error) + case bodyPartInputStreamCreationFailed(for: URL) + + case outputStreamCreationFailed(for: URL) + case outputStreamFileAlreadyExists(at: URL) + case outputStreamURLInvalid(url: URL) + case outputStreamWriteFailed(error: Error) + + case inputStreamReadFailed(error: Error) + } + + /// The underlying reason the response validation error occurred. + /// + /// - dataFileNil: The data file containing the server response did not exist. + /// - dataFileReadFailed: The data file containing the server response could not be read. + /// - missingContentType: The response did not contain a `Content-Type` and the `acceptableContentTypes` + /// provided did not contain wildcard type. + /// - unacceptableContentType: The response `Content-Type` did not match any type in the provided + /// `acceptableContentTypes`. + /// - unacceptableStatusCode: The response status code was not acceptable. + public enum ResponseValidationFailureReason { + case dataFileNil + case dataFileReadFailed(at: URL) + case missingContentType(acceptableContentTypes: [String]) + case unacceptableContentType(acceptableContentTypes: [String], responseContentType: String) + case unacceptableStatusCode(code: Int) + } + + /// The underlying reason the response serialization error occurred. + /// + /// - inputDataNil: The server response contained no data. + /// - inputDataNilOrZeroLength: The server response contained no data or the data was zero length. + /// - inputFileNil: The file containing the server response did not exist. + /// - inputFileReadFailed: The file containing the server response could not be read. + /// - stringSerializationFailed: String serialization failed using the provided `String.Encoding`. + /// - jsonSerializationFailed: JSON serialization failed with an underlying system error. + /// - propertyListSerializationFailed: Property list serialization failed with an underlying system error. + public enum ResponseSerializationFailureReason { + case inputDataNil + case inputDataNilOrZeroLength + case inputFileNil + case inputFileReadFailed(at: URL) + case stringSerializationFailed(encoding: String.Encoding) + case jsonSerializationFailed(error: Error) + case propertyListSerializationFailed(error: Error) + } + + case invalidURL(url: URLConvertible) + case parameterEncodingFailed(reason: ParameterEncodingFailureReason) + case multipartEncodingFailed(reason: MultipartEncodingFailureReason) + case responseValidationFailed(reason: ResponseValidationFailureReason) + case responseSerializationFailed(reason: ResponseSerializationFailureReason) +} + +// MARK: - Adapt Error + +struct AdaptError: Error { + let error: Error +} + +extension Error { + var underlyingAdaptError: Error? { return (self as? AdaptError)?.error } +} + +// MARK: - Error Booleans + +extension AFError { + /// Returns whether the AFError is an invalid URL error. + public var isInvalidURLError: Bool { + if case .invalidURL = self { return true } + return false + } + + /// Returns whether the AFError is a parameter encoding error. When `true`, the `underlyingError` property will + /// contain the associated value. + public var isParameterEncodingError: Bool { + if case .parameterEncodingFailed = self { return true } + return false + } + + /// Returns whether the AFError is a multipart encoding error. When `true`, the `url` and `underlyingError` properties + /// will contain the associated values. + public var isMultipartEncodingError: Bool { + if case .multipartEncodingFailed = self { return true } + return false + } + + /// Returns whether the `AFError` is a response validation error. When `true`, the `acceptableContentTypes`, + /// `responseContentType`, and `responseCode` properties will contain the associated values. + public var isResponseValidationError: Bool { + if case .responseValidationFailed = self { return true } + return false + } + + /// Returns whether the `AFError` is a response serialization error. When `true`, the `failedStringEncoding` and + /// `underlyingError` properties will contain the associated values. + public var isResponseSerializationError: Bool { + if case .responseSerializationFailed = self { return true } + return false + } +} + +// MARK: - Convenience Properties + +extension AFError { + /// The `URLConvertible` associated with the error. + public var urlConvertible: URLConvertible? { + switch self { + case .invalidURL(let url): + return url + default: + return nil + } + } + + /// The `URL` associated with the error. + public var url: URL? { + switch self { + case .multipartEncodingFailed(let reason): + return reason.url + default: + return nil + } + } + + /// The `Error` returned by a system framework associated with a `.parameterEncodingFailed`, + /// `.multipartEncodingFailed` or `.responseSerializationFailed` error. + public var underlyingError: Error? { + switch self { + case .parameterEncodingFailed(let reason): + return reason.underlyingError + case .multipartEncodingFailed(let reason): + return reason.underlyingError + case .responseSerializationFailed(let reason): + return reason.underlyingError + default: + return nil + } + } + + /// The acceptable `Content-Type`s of a `.responseValidationFailed` error. + public var acceptableContentTypes: [String]? { + switch self { + case .responseValidationFailed(let reason): + return reason.acceptableContentTypes + default: + return nil + } + } + + /// The response `Content-Type` of a `.responseValidationFailed` error. + public var responseContentType: String? { + switch self { + case .responseValidationFailed(let reason): + return reason.responseContentType + default: + return nil + } + } + + /// The response code of a `.responseValidationFailed` error. + public var responseCode: Int? { + switch self { + case .responseValidationFailed(let reason): + return reason.responseCode + default: + return nil + } + } + + /// The `String.Encoding` associated with a failed `.stringResponse()` call. + public var failedStringEncoding: String.Encoding? { + switch self { + case .responseSerializationFailed(let reason): + return reason.failedStringEncoding + default: + return nil + } + } +} + +extension AFError.ParameterEncodingFailureReason { + var underlyingError: Error? { + switch self { + case .jsonEncodingFailed(let error), .propertyListEncodingFailed(let error): + return error + default: + return nil + } + } +} + +extension AFError.MultipartEncodingFailureReason { + var url: URL? { + switch self { + case .bodyPartURLInvalid(let url), .bodyPartFilenameInvalid(let url), .bodyPartFileNotReachable(let url), + .bodyPartFileIsDirectory(let url), .bodyPartFileSizeNotAvailable(let url), + .bodyPartInputStreamCreationFailed(let url), .outputStreamCreationFailed(let url), + .outputStreamFileAlreadyExists(let url), .outputStreamURLInvalid(let url), + .bodyPartFileNotReachableWithError(let url, _), .bodyPartFileSizeQueryFailedWithError(let url, _): + return url + default: + return nil + } + } + + var underlyingError: Error? { + switch self { + case .bodyPartFileNotReachableWithError(_, let error), .bodyPartFileSizeQueryFailedWithError(_, let error), + .outputStreamWriteFailed(let error), .inputStreamReadFailed(let error): + return error + default: + return nil + } + } +} + +extension AFError.ResponseValidationFailureReason { + var acceptableContentTypes: [String]? { + switch self { + case .missingContentType(let types), .unacceptableContentType(let types, _): + return types + default: + return nil + } + } + + var responseContentType: String? { + switch self { + case .unacceptableContentType(_, let responseType): + return responseType + default: + return nil + } + } + + var responseCode: Int? { + switch self { + case .unacceptableStatusCode(let code): + return code + default: + return nil + } + } +} + +extension AFError.ResponseSerializationFailureReason { + var failedStringEncoding: String.Encoding? { + switch self { + case .stringSerializationFailed(let encoding): + return encoding + default: + return nil + } + } + + var underlyingError: Error? { + switch self { + case .jsonSerializationFailed(let error), .propertyListSerializationFailed(let error): + return error + default: + return nil + } + } +} + +// MARK: - Error Descriptions + +extension AFError: LocalizedError { + public var errorDescription: String? { + switch self { + case .invalidURL(let url): + return "URL is not valid: \(url)" + case .parameterEncodingFailed(let reason): + return reason.localizedDescription + case .multipartEncodingFailed(let reason): + return reason.localizedDescription + case .responseValidationFailed(let reason): + return reason.localizedDescription + case .responseSerializationFailed(let reason): + return reason.localizedDescription + } + } +} + +extension AFError.ParameterEncodingFailureReason { + var localizedDescription: String { + switch self { + case .missingURL: + return "URL request to encode was missing a URL" + case .jsonEncodingFailed(let error): + return "JSON could not be encoded because of error:\n\(error.localizedDescription)" + case .propertyListEncodingFailed(let error): + return "PropertyList could not be encoded because of error:\n\(error.localizedDescription)" + } + } +} + +extension AFError.MultipartEncodingFailureReason { + var localizedDescription: String { + switch self { + case .bodyPartURLInvalid(let url): + return "The URL provided is not a file URL: \(url)" + case .bodyPartFilenameInvalid(let url): + return "The URL provided does not have a valid filename: \(url)" + case .bodyPartFileNotReachable(let url): + return "The URL provided is not reachable: \(url)" + case .bodyPartFileNotReachableWithError(let url, let error): + return ( + "The system returned an error while checking the provided URL for " + + "reachability.\nURL: \(url)\nError: \(error)" + ) + case .bodyPartFileIsDirectory(let url): + return "The URL provided is a directory: \(url)" + case .bodyPartFileSizeNotAvailable(let url): + return "Could not fetch the file size from the provided URL: \(url)" + case .bodyPartFileSizeQueryFailedWithError(let url, let error): + return ( + "The system returned an error while attempting to fetch the file size from the " + + "provided URL.\nURL: \(url)\nError: \(error)" + ) + case .bodyPartInputStreamCreationFailed(let url): + return "Failed to create an InputStream for the provided URL: \(url)" + case .outputStreamCreationFailed(let url): + return "Failed to create an OutputStream for URL: \(url)" + case .outputStreamFileAlreadyExists(let url): + return "A file already exists at the provided URL: \(url)" + case .outputStreamURLInvalid(let url): + return "The provided OutputStream URL is invalid: \(url)" + case .outputStreamWriteFailed(let error): + return "OutputStream write failed with error: \(error)" + case .inputStreamReadFailed(let error): + return "InputStream read failed with error: \(error)" + } + } +} + +extension AFError.ResponseSerializationFailureReason { + var localizedDescription: String { + switch self { + case .inputDataNil: + return "Response could not be serialized, input data was nil." + case .inputDataNilOrZeroLength: + return "Response could not be serialized, input data was nil or zero length." + case .inputFileNil: + return "Response could not be serialized, input file was nil." + case .inputFileReadFailed(let url): + return "Response could not be serialized, input file could not be read: \(url)." + case .stringSerializationFailed(let encoding): + return "String could not be serialized with encoding: \(encoding)." + case .jsonSerializationFailed(let error): + return "JSON could not be serialized because of error:\n\(error.localizedDescription)" + case .propertyListSerializationFailed(let error): + return "PropertyList could not be serialized because of error:\n\(error.localizedDescription)" + } + } +} + +extension AFError.ResponseValidationFailureReason { + var localizedDescription: String { + switch self { + case .dataFileNil: + return "Response could not be validated, data file was nil." + case .dataFileReadFailed(let url): + return "Response could not be validated, data file could not be read: \(url)." + case .missingContentType(let types): + return ( + "Response Content-Type was missing and acceptable content types " + + "(\(types.joined(separator: ","))) do not match \"*/*\"." + ) + case .unacceptableContentType(let acceptableTypes, let responseType): + return ( + "Response Content-Type \"\(responseType)\" does not match any acceptable types: " + + "\(acceptableTypes.joined(separator: ","))." + ) + case .unacceptableStatusCode(let code): + return "Response status code was unacceptable: \(code)." + } + } +} diff --git a/Santander/Pods/Alamofire/Source/Alamofire.swift b/Santander/Pods/Alamofire/Source/Alamofire.swift new file mode 100644 index 00000000..2fcc05ca --- /dev/null +++ b/Santander/Pods/Alamofire/Source/Alamofire.swift @@ -0,0 +1,465 @@ +// +// Alamofire.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// Types adopting the `URLConvertible` protocol can be used to construct URLs, which are then used to construct +/// URL requests. +public protocol URLConvertible { + /// Returns a URL that conforms to RFC 2396 or throws an `Error`. + /// + /// - throws: An `Error` if the type cannot be converted to a `URL`. + /// + /// - returns: A URL or throws an `Error`. + func asURL() throws -> URL +} + +extension String: URLConvertible { + /// Returns a URL if `self` represents a valid URL string that conforms to RFC 2396 or throws an `AFError`. + /// + /// - throws: An `AFError.invalidURL` if `self` is not a valid URL string. + /// + /// - returns: A URL or throws an `AFError`. + public func asURL() throws -> URL { + guard let url = URL(string: self) else { throw AFError.invalidURL(url: self) } + return url + } +} + +extension URL: URLConvertible { + /// Returns self. + public func asURL() throws -> URL { return self } +} + +extension URLComponents: URLConvertible { + /// Returns a URL if `url` is not nil, otherwise throws an `Error`. + /// + /// - throws: An `AFError.invalidURL` if `url` is `nil`. + /// + /// - returns: A URL or throws an `AFError`. + public func asURL() throws -> URL { + guard let url = url else { throw AFError.invalidURL(url: self) } + return url + } +} + +// MARK: - + +/// Types adopting the `URLRequestConvertible` protocol can be used to construct URL requests. +public protocol URLRequestConvertible { + /// Returns a URL request or throws if an `Error` was encountered. + /// + /// - throws: An `Error` if the underlying `URLRequest` is `nil`. + /// + /// - returns: A URL request. + func asURLRequest() throws -> URLRequest +} + +extension URLRequestConvertible { + /// The URL request. + public var urlRequest: URLRequest? { return try? asURLRequest() } +} + +extension URLRequest: URLRequestConvertible { + /// Returns a URL request or throws if an `Error` was encountered. + public func asURLRequest() throws -> URLRequest { return self } +} + +// MARK: - + +extension URLRequest { + /// Creates an instance with the specified `method`, `urlString` and `headers`. + /// + /// - parameter url: The URL. + /// - parameter method: The HTTP method. + /// - parameter headers: The HTTP headers. `nil` by default. + /// + /// - returns: The new `URLRequest` instance. + public init(url: URLConvertible, method: HTTPMethod, headers: HTTPHeaders? = nil) throws { + let url = try url.asURL() + + self.init(url: url) + + httpMethod = method.rawValue + + if let headers = headers { + for (headerField, headerValue) in headers { + setValue(headerValue, forHTTPHeaderField: headerField) + } + } + } + + func adapt(using adapter: RequestAdapter?) throws -> URLRequest { + guard let adapter = adapter else { return self } + return try adapter.adapt(self) + } +} + +// MARK: - Data Request + +/// Creates a `DataRequest` using the default `SessionManager` to retrieve the contents of the specified `url`, +/// `method`, `parameters`, `encoding` and `headers`. +/// +/// - parameter url: The URL. +/// - parameter method: The HTTP method. `.get` by default. +/// - parameter parameters: The parameters. `nil` by default. +/// - parameter encoding: The parameter encoding. `URLEncoding.default` by default. +/// - parameter headers: The HTTP headers. `nil` by default. +/// +/// - returns: The created `DataRequest`. +@discardableResult +public func request( + _ url: URLConvertible, + method: HTTPMethod = .get, + parameters: Parameters? = nil, + encoding: ParameterEncoding = URLEncoding.default, + headers: HTTPHeaders? = nil) + -> DataRequest +{ + return SessionManager.default.request( + url, + method: method, + parameters: parameters, + encoding: encoding, + headers: headers + ) +} + +/// Creates a `DataRequest` using the default `SessionManager` to retrieve the contents of a URL based on the +/// specified `urlRequest`. +/// +/// - parameter urlRequest: The URL request +/// +/// - returns: The created `DataRequest`. +@discardableResult +public func request(_ urlRequest: URLRequestConvertible) -> DataRequest { + return SessionManager.default.request(urlRequest) +} + +// MARK: - Download Request + +// MARK: URL Request + +/// Creates a `DownloadRequest` using the default `SessionManager` to retrieve the contents of the specified `url`, +/// `method`, `parameters`, `encoding`, `headers` and save them to the `destination`. +/// +/// If `destination` is not specified, the contents will remain in the temporary location determined by the +/// underlying URL session. +/// +/// - parameter url: The URL. +/// - parameter method: The HTTP method. `.get` by default. +/// - parameter parameters: The parameters. `nil` by default. +/// - parameter encoding: The parameter encoding. `URLEncoding.default` by default. +/// - parameter headers: The HTTP headers. `nil` by default. +/// - parameter destination: The closure used to determine the destination of the downloaded file. `nil` by default. +/// +/// - returns: The created `DownloadRequest`. +@discardableResult +public func download( + _ url: URLConvertible, + method: HTTPMethod = .get, + parameters: Parameters? = nil, + encoding: ParameterEncoding = URLEncoding.default, + headers: HTTPHeaders? = nil, + to destination: DownloadRequest.DownloadFileDestination? = nil) + -> DownloadRequest +{ + return SessionManager.default.download( + url, + method: method, + parameters: parameters, + encoding: encoding, + headers: headers, + to: destination + ) +} + +/// Creates a `DownloadRequest` using the default `SessionManager` to retrieve the contents of a URL based on the +/// specified `urlRequest` and save them to the `destination`. +/// +/// If `destination` is not specified, the contents will remain in the temporary location determined by the +/// underlying URL session. +/// +/// - parameter urlRequest: The URL request. +/// - parameter destination: The closure used to determine the destination of the downloaded file. `nil` by default. +/// +/// - returns: The created `DownloadRequest`. +@discardableResult +public func download( + _ urlRequest: URLRequestConvertible, + to destination: DownloadRequest.DownloadFileDestination? = nil) + -> DownloadRequest +{ + return SessionManager.default.download(urlRequest, to: destination) +} + +// MARK: Resume Data + +/// Creates a `DownloadRequest` using the default `SessionManager` from the `resumeData` produced from a +/// previous request cancellation to retrieve the contents of the original request and save them to the `destination`. +/// +/// If `destination` is not specified, the contents will remain in the temporary location determined by the +/// underlying URL session. +/// +/// On the latest release of all the Apple platforms (iOS 10, macOS 10.12, tvOS 10, watchOS 3), `resumeData` is broken +/// on background URL session configurations. There's an underlying bug in the `resumeData` generation logic where the +/// data is written incorrectly and will always fail to resume the download. For more information about the bug and +/// possible workarounds, please refer to the following Stack Overflow post: +/// +/// - http://stackoverflow.com/a/39347461/1342462 +/// +/// - parameter resumeData: The resume data. This is an opaque data blob produced by `URLSessionDownloadTask` +/// when a task is cancelled. See `URLSession -downloadTask(withResumeData:)` for additional +/// information. +/// - parameter destination: The closure used to determine the destination of the downloaded file. `nil` by default. +/// +/// - returns: The created `DownloadRequest`. +@discardableResult +public func download( + resumingWith resumeData: Data, + to destination: DownloadRequest.DownloadFileDestination? = nil) + -> DownloadRequest +{ + return SessionManager.default.download(resumingWith: resumeData, to: destination) +} + +// MARK: - Upload Request + +// MARK: File + +/// Creates an `UploadRequest` using the default `SessionManager` from the specified `url`, `method` and `headers` +/// for uploading the `file`. +/// +/// - parameter file: The file to upload. +/// - parameter url: The URL. +/// - parameter method: The HTTP method. `.post` by default. +/// - parameter headers: The HTTP headers. `nil` by default. +/// +/// - returns: The created `UploadRequest`. +@discardableResult +public func upload( + _ fileURL: URL, + to url: URLConvertible, + method: HTTPMethod = .post, + headers: HTTPHeaders? = nil) + -> UploadRequest +{ + return SessionManager.default.upload(fileURL, to: url, method: method, headers: headers) +} + +/// Creates a `UploadRequest` using the default `SessionManager` from the specified `urlRequest` for +/// uploading the `file`. +/// +/// - parameter file: The file to upload. +/// - parameter urlRequest: The URL request. +/// +/// - returns: The created `UploadRequest`. +@discardableResult +public func upload(_ fileURL: URL, with urlRequest: URLRequestConvertible) -> UploadRequest { + return SessionManager.default.upload(fileURL, with: urlRequest) +} + +// MARK: Data + +/// Creates an `UploadRequest` using the default `SessionManager` from the specified `url`, `method` and `headers` +/// for uploading the `data`. +/// +/// - parameter data: The data to upload. +/// - parameter url: The URL. +/// - parameter method: The HTTP method. `.post` by default. +/// - parameter headers: The HTTP headers. `nil` by default. +/// +/// - returns: The created `UploadRequest`. +@discardableResult +public func upload( + _ data: Data, + to url: URLConvertible, + method: HTTPMethod = .post, + headers: HTTPHeaders? = nil) + -> UploadRequest +{ + return SessionManager.default.upload(data, to: url, method: method, headers: headers) +} + +/// Creates an `UploadRequest` using the default `SessionManager` from the specified `urlRequest` for +/// uploading the `data`. +/// +/// - parameter data: The data to upload. +/// - parameter urlRequest: The URL request. +/// +/// - returns: The created `UploadRequest`. +@discardableResult +public func upload(_ data: Data, with urlRequest: URLRequestConvertible) -> UploadRequest { + return SessionManager.default.upload(data, with: urlRequest) +} + +// MARK: InputStream + +/// Creates an `UploadRequest` using the default `SessionManager` from the specified `url`, `method` and `headers` +/// for uploading the `stream`. +/// +/// - parameter stream: The stream to upload. +/// - parameter url: The URL. +/// - parameter method: The HTTP method. `.post` by default. +/// - parameter headers: The HTTP headers. `nil` by default. +/// +/// - returns: The created `UploadRequest`. +@discardableResult +public func upload( + _ stream: InputStream, + to url: URLConvertible, + method: HTTPMethod = .post, + headers: HTTPHeaders? = nil) + -> UploadRequest +{ + return SessionManager.default.upload(stream, to: url, method: method, headers: headers) +} + +/// Creates an `UploadRequest` using the default `SessionManager` from the specified `urlRequest` for +/// uploading the `stream`. +/// +/// - parameter urlRequest: The URL request. +/// - parameter stream: The stream to upload. +/// +/// - returns: The created `UploadRequest`. +@discardableResult +public func upload(_ stream: InputStream, with urlRequest: URLRequestConvertible) -> UploadRequest { + return SessionManager.default.upload(stream, with: urlRequest) +} + +// MARK: MultipartFormData + +/// Encodes `multipartFormData` using `encodingMemoryThreshold` with the default `SessionManager` and calls +/// `encodingCompletion` with new `UploadRequest` using the `url`, `method` and `headers`. +/// +/// It is important to understand the memory implications of uploading `MultipartFormData`. If the cummulative +/// payload is small, encoding the data in-memory and directly uploading to a server is the by far the most +/// efficient approach. However, if the payload is too large, encoding the data in-memory could cause your app to +/// be terminated. Larger payloads must first be written to disk using input and output streams to keep the memory +/// footprint low, then the data can be uploaded as a stream from the resulting file. Streaming from disk MUST be +/// used for larger payloads such as video content. +/// +/// The `encodingMemoryThreshold` parameter allows Alamofire to automatically determine whether to encode in-memory +/// or stream from disk. If the content length of the `MultipartFormData` is below the `encodingMemoryThreshold`, +/// encoding takes place in-memory. If the content length exceeds the threshold, the data is streamed to disk +/// during the encoding process. Then the result is uploaded as data or as a stream depending on which encoding +/// technique was used. +/// +/// - parameter multipartFormData: The closure used to append body parts to the `MultipartFormData`. +/// - parameter encodingMemoryThreshold: The encoding memory threshold in bytes. +/// `multipartFormDataEncodingMemoryThreshold` by default. +/// - parameter url: The URL. +/// - parameter method: The HTTP method. `.post` by default. +/// - parameter headers: The HTTP headers. `nil` by default. +/// - parameter encodingCompletion: The closure called when the `MultipartFormData` encoding is complete. +public func upload( + multipartFormData: @escaping (MultipartFormData) -> Void, + usingThreshold encodingMemoryThreshold: UInt64 = SessionManager.multipartFormDataEncodingMemoryThreshold, + to url: URLConvertible, + method: HTTPMethod = .post, + headers: HTTPHeaders? = nil, + encodingCompletion: ((SessionManager.MultipartFormDataEncodingResult) -> Void)?) +{ + return SessionManager.default.upload( + multipartFormData: multipartFormData, + usingThreshold: encodingMemoryThreshold, + to: url, + method: method, + headers: headers, + encodingCompletion: encodingCompletion + ) +} + +/// Encodes `multipartFormData` using `encodingMemoryThreshold` and the default `SessionManager` and +/// calls `encodingCompletion` with new `UploadRequest` using the `urlRequest`. +/// +/// It is important to understand the memory implications of uploading `MultipartFormData`. If the cummulative +/// payload is small, encoding the data in-memory and directly uploading to a server is the by far the most +/// efficient approach. However, if the payload is too large, encoding the data in-memory could cause your app to +/// be terminated. Larger payloads must first be written to disk using input and output streams to keep the memory +/// footprint low, then the data can be uploaded as a stream from the resulting file. Streaming from disk MUST be +/// used for larger payloads such as video content. +/// +/// The `encodingMemoryThreshold` parameter allows Alamofire to automatically determine whether to encode in-memory +/// or stream from disk. If the content length of the `MultipartFormData` is below the `encodingMemoryThreshold`, +/// encoding takes place in-memory. If the content length exceeds the threshold, the data is streamed to disk +/// during the encoding process. Then the result is uploaded as data or as a stream depending on which encoding +/// technique was used. +/// +/// - parameter multipartFormData: The closure used to append body parts to the `MultipartFormData`. +/// - parameter encodingMemoryThreshold: The encoding memory threshold in bytes. +/// `multipartFormDataEncodingMemoryThreshold` by default. +/// - parameter urlRequest: The URL request. +/// - parameter encodingCompletion: The closure called when the `MultipartFormData` encoding is complete. +public func upload( + multipartFormData: @escaping (MultipartFormData) -> Void, + usingThreshold encodingMemoryThreshold: UInt64 = SessionManager.multipartFormDataEncodingMemoryThreshold, + with urlRequest: URLRequestConvertible, + encodingCompletion: ((SessionManager.MultipartFormDataEncodingResult) -> Void)?) +{ + return SessionManager.default.upload( + multipartFormData: multipartFormData, + usingThreshold: encodingMemoryThreshold, + with: urlRequest, + encodingCompletion: encodingCompletion + ) +} + +#if !os(watchOS) + +// MARK: - Stream Request + +// MARK: Hostname and Port + +/// Creates a `StreamRequest` using the default `SessionManager` for bidirectional streaming with the `hostname` +/// and `port`. +/// +/// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. +/// +/// - parameter hostName: The hostname of the server to connect to. +/// - parameter port: The port of the server to connect to. +/// +/// - returns: The created `StreamRequest`. +@discardableResult +@available(iOS 9.0, macOS 10.11, tvOS 9.0, *) +public func stream(withHostName hostName: String, port: Int) -> StreamRequest { + return SessionManager.default.stream(withHostName: hostName, port: port) +} + +// MARK: NetService + +/// Creates a `StreamRequest` using the default `SessionManager` for bidirectional streaming with the `netService`. +/// +/// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. +/// +/// - parameter netService: The net service used to identify the endpoint. +/// +/// - returns: The created `StreamRequest`. +@discardableResult +@available(iOS 9.0, macOS 10.11, tvOS 9.0, *) +public func stream(with netService: NetService) -> StreamRequest { + return SessionManager.default.stream(with: netService) +} + +#endif diff --git a/Santander/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift b/Santander/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift new file mode 100644 index 00000000..dea3ebc1 --- /dev/null +++ b/Santander/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift @@ -0,0 +1,37 @@ +// +// DispatchQueue+Alamofire.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Dispatch +import Foundation + +extension DispatchQueue { + static var userInteractive: DispatchQueue { return DispatchQueue.global(qos: .userInteractive) } + static var userInitiated: DispatchQueue { return DispatchQueue.global(qos: .userInitiated) } + static var utility: DispatchQueue { return DispatchQueue.global(qos: .utility) } + static var background: DispatchQueue { return DispatchQueue.global(qos: .background) } + + func after(_ delay: TimeInterval, execute closure: @escaping () -> Void) { + asyncAfter(deadline: .now() + delay, execute: closure) + } +} diff --git a/Santander/Pods/Alamofire/Source/MultipartFormData.swift b/Santander/Pods/Alamofire/Source/MultipartFormData.swift new file mode 100644 index 00000000..057e68b9 --- /dev/null +++ b/Santander/Pods/Alamofire/Source/MultipartFormData.swift @@ -0,0 +1,580 @@ +// +// MultipartFormData.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +#if os(iOS) || os(watchOS) || os(tvOS) +import MobileCoreServices +#elseif os(macOS) +import CoreServices +#endif + +/// Constructs `multipart/form-data` for uploads within an HTTP or HTTPS body. There are currently two ways to encode +/// multipart form data. The first way is to encode the data directly in memory. This is very efficient, but can lead +/// to memory issues if the dataset is too large. The second way is designed for larger datasets and will write all the +/// data to a single file on disk with all the proper boundary segmentation. The second approach MUST be used for +/// larger datasets such as video content, otherwise your app may run out of memory when trying to encode the dataset. +/// +/// For more information on `multipart/form-data` in general, please refer to the RFC-2388 and RFC-2045 specs as well +/// and the w3 form documentation. +/// +/// - https://www.ietf.org/rfc/rfc2388.txt +/// - https://www.ietf.org/rfc/rfc2045.txt +/// - https://www.w3.org/TR/html401/interact/forms.html#h-17.13 +open class MultipartFormData { + + // MARK: - Helper Types + + struct EncodingCharacters { + static let crlf = "\r\n" + } + + struct BoundaryGenerator { + enum BoundaryType { + case initial, encapsulated, final + } + + static func randomBoundary() -> String { + return String(format: "alamofire.boundary.%08x%08x", arc4random(), arc4random()) + } + + static func boundaryData(forBoundaryType boundaryType: BoundaryType, boundary: String) -> Data { + let boundaryText: String + + switch boundaryType { + case .initial: + boundaryText = "--\(boundary)\(EncodingCharacters.crlf)" + case .encapsulated: + boundaryText = "\(EncodingCharacters.crlf)--\(boundary)\(EncodingCharacters.crlf)" + case .final: + boundaryText = "\(EncodingCharacters.crlf)--\(boundary)--\(EncodingCharacters.crlf)" + } + + return boundaryText.data(using: String.Encoding.utf8, allowLossyConversion: false)! + } + } + + class BodyPart { + let headers: HTTPHeaders + let bodyStream: InputStream + let bodyContentLength: UInt64 + var hasInitialBoundary = false + var hasFinalBoundary = false + + init(headers: HTTPHeaders, bodyStream: InputStream, bodyContentLength: UInt64) { + self.headers = headers + self.bodyStream = bodyStream + self.bodyContentLength = bodyContentLength + } + } + + // MARK: - Properties + + /// The `Content-Type` header value containing the boundary used to generate the `multipart/form-data`. + open lazy var contentType: String = "multipart/form-data; boundary=\(self.boundary)" + + /// The content length of all body parts used to generate the `multipart/form-data` not including the boundaries. + public var contentLength: UInt64 { return bodyParts.reduce(0) { $0 + $1.bodyContentLength } } + + /// The boundary used to separate the body parts in the encoded form data. + public let boundary: String + + private var bodyParts: [BodyPart] + private var bodyPartError: AFError? + private let streamBufferSize: Int + + // MARK: - Lifecycle + + /// Creates a multipart form data object. + /// + /// - returns: The multipart form data object. + public init() { + self.boundary = BoundaryGenerator.randomBoundary() + self.bodyParts = [] + + /// + /// The optimal read/write buffer size in bytes for input and output streams is 1024 (1KB). For more + /// information, please refer to the following article: + /// - https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Streams/Articles/ReadingInputStreams.html + /// + + self.streamBufferSize = 1024 + } + + // MARK: - Body Parts + + /// Creates a body part from the data and appends it to the multipart form data object. + /// + /// The body part data will be encoded using the following format: + /// + /// - `Content-Disposition: form-data; name=#{name}` (HTTP Header) + /// - Encoded data + /// - Multipart form boundary + /// + /// - parameter data: The data to encode into the multipart form data. + /// - parameter name: The name to associate with the data in the `Content-Disposition` HTTP header. + public func append(_ data: Data, withName name: String) { + let headers = contentHeaders(withName: name) + let stream = InputStream(data: data) + let length = UInt64(data.count) + + append(stream, withLength: length, headers: headers) + } + + /// Creates a body part from the data and appends it to the multipart form data object. + /// + /// The body part data will be encoded using the following format: + /// + /// - `Content-Disposition: form-data; name=#{name}` (HTTP Header) + /// - `Content-Type: #{generated mimeType}` (HTTP Header) + /// - Encoded data + /// - Multipart form boundary + /// + /// - parameter data: The data to encode into the multipart form data. + /// - parameter name: The name to associate with the data in the `Content-Disposition` HTTP header. + /// - parameter mimeType: The MIME type to associate with the data content type in the `Content-Type` HTTP header. + public func append(_ data: Data, withName name: String, mimeType: String) { + let headers = contentHeaders(withName: name, mimeType: mimeType) + let stream = InputStream(data: data) + let length = UInt64(data.count) + + append(stream, withLength: length, headers: headers) + } + + /// Creates a body part from the data and appends it to the multipart form data object. + /// + /// The body part data will be encoded using the following format: + /// + /// - `Content-Disposition: form-data; name=#{name}; filename=#{filename}` (HTTP Header) + /// - `Content-Type: #{mimeType}` (HTTP Header) + /// - Encoded file data + /// - Multipart form boundary + /// + /// - parameter data: The data to encode into the multipart form data. + /// - parameter name: The name to associate with the data in the `Content-Disposition` HTTP header. + /// - parameter fileName: The filename to associate with the data in the `Content-Disposition` HTTP header. + /// - parameter mimeType: The MIME type to associate with the data in the `Content-Type` HTTP header. + public func append(_ data: Data, withName name: String, fileName: String, mimeType: String) { + let headers = contentHeaders(withName: name, fileName: fileName, mimeType: mimeType) + let stream = InputStream(data: data) + let length = UInt64(data.count) + + append(stream, withLength: length, headers: headers) + } + + /// Creates a body part from the file and appends it to the multipart form data object. + /// + /// The body part data will be encoded using the following format: + /// + /// - `Content-Disposition: form-data; name=#{name}; filename=#{generated filename}` (HTTP Header) + /// - `Content-Type: #{generated mimeType}` (HTTP Header) + /// - Encoded file data + /// - Multipart form boundary + /// + /// The filename in the `Content-Disposition` HTTP header is generated from the last path component of the + /// `fileURL`. The `Content-Type` HTTP header MIME type is generated by mapping the `fileURL` extension to the + /// system associated MIME type. + /// + /// - parameter fileURL: The URL of the file whose content will be encoded into the multipart form data. + /// - parameter name: The name to associate with the file content in the `Content-Disposition` HTTP header. + public func append(_ fileURL: URL, withName name: String) { + let fileName = fileURL.lastPathComponent + let pathExtension = fileURL.pathExtension + + if !fileName.isEmpty && !pathExtension.isEmpty { + let mime = mimeType(forPathExtension: pathExtension) + append(fileURL, withName: name, fileName: fileName, mimeType: mime) + } else { + setBodyPartError(withReason: .bodyPartFilenameInvalid(in: fileURL)) + } + } + + /// Creates a body part from the file and appends it to the multipart form data object. + /// + /// The body part data will be encoded using the following format: + /// + /// - Content-Disposition: form-data; name=#{name}; filename=#{filename} (HTTP Header) + /// - Content-Type: #{mimeType} (HTTP Header) + /// - Encoded file data + /// - Multipart form boundary + /// + /// - parameter fileURL: The URL of the file whose content will be encoded into the multipart form data. + /// - parameter name: The name to associate with the file content in the `Content-Disposition` HTTP header. + /// - parameter fileName: The filename to associate with the file content in the `Content-Disposition` HTTP header. + /// - parameter mimeType: The MIME type to associate with the file content in the `Content-Type` HTTP header. + public func append(_ fileURL: URL, withName name: String, fileName: String, mimeType: String) { + let headers = contentHeaders(withName: name, fileName: fileName, mimeType: mimeType) + + //============================================================ + // Check 1 - is file URL? + //============================================================ + + guard fileURL.isFileURL else { + setBodyPartError(withReason: .bodyPartURLInvalid(url: fileURL)) + return + } + + //============================================================ + // Check 2 - is file URL reachable? + //============================================================ + + do { + let isReachable = try fileURL.checkPromisedItemIsReachable() + guard isReachable else { + setBodyPartError(withReason: .bodyPartFileNotReachable(at: fileURL)) + return + } + } catch { + setBodyPartError(withReason: .bodyPartFileNotReachableWithError(atURL: fileURL, error: error)) + return + } + + //============================================================ + // Check 3 - is file URL a directory? + //============================================================ + + var isDirectory: ObjCBool = false + let path = fileURL.path + + guard FileManager.default.fileExists(atPath: path, isDirectory: &isDirectory) && !isDirectory.boolValue else { + setBodyPartError(withReason: .bodyPartFileIsDirectory(at: fileURL)) + return + } + + //============================================================ + // Check 4 - can the file size be extracted? + //============================================================ + + let bodyContentLength: UInt64 + + do { + guard let fileSize = try FileManager.default.attributesOfItem(atPath: path)[.size] as? NSNumber else { + setBodyPartError(withReason: .bodyPartFileSizeNotAvailable(at: fileURL)) + return + } + + bodyContentLength = fileSize.uint64Value + } + catch { + setBodyPartError(withReason: .bodyPartFileSizeQueryFailedWithError(forURL: fileURL, error: error)) + return + } + + //============================================================ + // Check 5 - can a stream be created from file URL? + //============================================================ + + guard let stream = InputStream(url: fileURL) else { + setBodyPartError(withReason: .bodyPartInputStreamCreationFailed(for: fileURL)) + return + } + + append(stream, withLength: bodyContentLength, headers: headers) + } + + /// Creates a body part from the stream and appends it to the multipart form data object. + /// + /// The body part data will be encoded using the following format: + /// + /// - `Content-Disposition: form-data; name=#{name}; filename=#{filename}` (HTTP Header) + /// - `Content-Type: #{mimeType}` (HTTP Header) + /// - Encoded stream data + /// - Multipart form boundary + /// + /// - parameter stream: The input stream to encode in the multipart form data. + /// - parameter length: The content length of the stream. + /// - parameter name: The name to associate with the stream content in the `Content-Disposition` HTTP header. + /// - parameter fileName: The filename to associate with the stream content in the `Content-Disposition` HTTP header. + /// - parameter mimeType: The MIME type to associate with the stream content in the `Content-Type` HTTP header. + public func append( + _ stream: InputStream, + withLength length: UInt64, + name: String, + fileName: String, + mimeType: String) + { + let headers = contentHeaders(withName: name, fileName: fileName, mimeType: mimeType) + append(stream, withLength: length, headers: headers) + } + + /// Creates a body part with the headers, stream and length and appends it to the multipart form data object. + /// + /// The body part data will be encoded using the following format: + /// + /// - HTTP headers + /// - Encoded stream data + /// - Multipart form boundary + /// + /// - parameter stream: The input stream to encode in the multipart form data. + /// - parameter length: The content length of the stream. + /// - parameter headers: The HTTP headers for the body part. + public func append(_ stream: InputStream, withLength length: UInt64, headers: HTTPHeaders) { + let bodyPart = BodyPart(headers: headers, bodyStream: stream, bodyContentLength: length) + bodyParts.append(bodyPart) + } + + // MARK: - Data Encoding + + /// Encodes all the appended body parts into a single `Data` value. + /// + /// It is important to note that this method will load all the appended body parts into memory all at the same + /// time. This method should only be used when the encoded data will have a small memory footprint. For large data + /// cases, please use the `writeEncodedDataToDisk(fileURL:completionHandler:)` method. + /// + /// - throws: An `AFError` if encoding encounters an error. + /// + /// - returns: The encoded `Data` if encoding is successful. + public func encode() throws -> Data { + if let bodyPartError = bodyPartError { + throw bodyPartError + } + + var encoded = Data() + + bodyParts.first?.hasInitialBoundary = true + bodyParts.last?.hasFinalBoundary = true + + for bodyPart in bodyParts { + let encodedData = try encode(bodyPart) + encoded.append(encodedData) + } + + return encoded + } + + /// Writes the appended body parts into the given file URL. + /// + /// This process is facilitated by reading and writing with input and output streams, respectively. Thus, + /// this approach is very memory efficient and should be used for large body part data. + /// + /// - parameter fileURL: The file URL to write the multipart form data into. + /// + /// - throws: An `AFError` if encoding encounters an error. + public func writeEncodedData(to fileURL: URL) throws { + if let bodyPartError = bodyPartError { + throw bodyPartError + } + + if FileManager.default.fileExists(atPath: fileURL.path) { + throw AFError.multipartEncodingFailed(reason: .outputStreamFileAlreadyExists(at: fileURL)) + } else if !fileURL.isFileURL { + throw AFError.multipartEncodingFailed(reason: .outputStreamURLInvalid(url: fileURL)) + } + + guard let outputStream = OutputStream(url: fileURL, append: false) else { + throw AFError.multipartEncodingFailed(reason: .outputStreamCreationFailed(for: fileURL)) + } + + outputStream.open() + defer { outputStream.close() } + + self.bodyParts.first?.hasInitialBoundary = true + self.bodyParts.last?.hasFinalBoundary = true + + for bodyPart in self.bodyParts { + try write(bodyPart, to: outputStream) + } + } + + // MARK: - Private - Body Part Encoding + + private func encode(_ bodyPart: BodyPart) throws -> Data { + var encoded = Data() + + let initialData = bodyPart.hasInitialBoundary ? initialBoundaryData() : encapsulatedBoundaryData() + encoded.append(initialData) + + let headerData = encodeHeaders(for: bodyPart) + encoded.append(headerData) + + let bodyStreamData = try encodeBodyStream(for: bodyPart) + encoded.append(bodyStreamData) + + if bodyPart.hasFinalBoundary { + encoded.append(finalBoundaryData()) + } + + return encoded + } + + private func encodeHeaders(for bodyPart: BodyPart) -> Data { + var headerText = "" + + for (key, value) in bodyPart.headers { + headerText += "\(key): \(value)\(EncodingCharacters.crlf)" + } + headerText += EncodingCharacters.crlf + + return headerText.data(using: String.Encoding.utf8, allowLossyConversion: false)! + } + + private func encodeBodyStream(for bodyPart: BodyPart) throws -> Data { + let inputStream = bodyPart.bodyStream + inputStream.open() + defer { inputStream.close() } + + var encoded = Data() + + while inputStream.hasBytesAvailable { + var buffer = [UInt8](repeating: 0, count: streamBufferSize) + let bytesRead = inputStream.read(&buffer, maxLength: streamBufferSize) + + if let error = inputStream.streamError { + throw AFError.multipartEncodingFailed(reason: .inputStreamReadFailed(error: error)) + } + + if bytesRead > 0 { + encoded.append(buffer, count: bytesRead) + } else { + break + } + } + + return encoded + } + + // MARK: - Private - Writing Body Part to Output Stream + + private func write(_ bodyPart: BodyPart, to outputStream: OutputStream) throws { + try writeInitialBoundaryData(for: bodyPart, to: outputStream) + try writeHeaderData(for: bodyPart, to: outputStream) + try writeBodyStream(for: bodyPart, to: outputStream) + try writeFinalBoundaryData(for: bodyPart, to: outputStream) + } + + private func writeInitialBoundaryData(for bodyPart: BodyPart, to outputStream: OutputStream) throws { + let initialData = bodyPart.hasInitialBoundary ? initialBoundaryData() : encapsulatedBoundaryData() + return try write(initialData, to: outputStream) + } + + private func writeHeaderData(for bodyPart: BodyPart, to outputStream: OutputStream) throws { + let headerData = encodeHeaders(for: bodyPart) + return try write(headerData, to: outputStream) + } + + private func writeBodyStream(for bodyPart: BodyPart, to outputStream: OutputStream) throws { + let inputStream = bodyPart.bodyStream + + inputStream.open() + defer { inputStream.close() } + + while inputStream.hasBytesAvailable { + var buffer = [UInt8](repeating: 0, count: streamBufferSize) + let bytesRead = inputStream.read(&buffer, maxLength: streamBufferSize) + + if let streamError = inputStream.streamError { + throw AFError.multipartEncodingFailed(reason: .inputStreamReadFailed(error: streamError)) + } + + if bytesRead > 0 { + if buffer.count != bytesRead { + buffer = Array(buffer[0.. 0, outputStream.hasSpaceAvailable { + let bytesWritten = outputStream.write(buffer, maxLength: bytesToWrite) + + if let error = outputStream.streamError { + throw AFError.multipartEncodingFailed(reason: .outputStreamWriteFailed(error: error)) + } + + bytesToWrite -= bytesWritten + + if bytesToWrite > 0 { + buffer = Array(buffer[bytesWritten.. String { + if + let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(), + let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue() + { + return contentType as String + } + + return "application/octet-stream" + } + + // MARK: - Private - Content Headers + + private func contentHeaders(withName name: String, fileName: String? = nil, mimeType: String? = nil) -> [String: String] { + var disposition = "form-data; name=\"\(name)\"" + if let fileName = fileName { disposition += "; filename=\"\(fileName)\"" } + + var headers = ["Content-Disposition": disposition] + if let mimeType = mimeType { headers["Content-Type"] = mimeType } + + return headers + } + + // MARK: - Private - Boundary Encoding + + private func initialBoundaryData() -> Data { + return BoundaryGenerator.boundaryData(forBoundaryType: .initial, boundary: boundary) + } + + private func encapsulatedBoundaryData() -> Data { + return BoundaryGenerator.boundaryData(forBoundaryType: .encapsulated, boundary: boundary) + } + + private func finalBoundaryData() -> Data { + return BoundaryGenerator.boundaryData(forBoundaryType: .final, boundary: boundary) + } + + // MARK: - Private - Errors + + private func setBodyPartError(withReason reason: AFError.MultipartEncodingFailureReason) { + guard bodyPartError == nil else { return } + bodyPartError = AFError.multipartEncodingFailed(reason: reason) + } +} diff --git a/Santander/Pods/Alamofire/Source/NetworkReachabilityManager.swift b/Santander/Pods/Alamofire/Source/NetworkReachabilityManager.swift new file mode 100644 index 00000000..3ff2e7fc --- /dev/null +++ b/Santander/Pods/Alamofire/Source/NetworkReachabilityManager.swift @@ -0,0 +1,233 @@ +// +// NetworkReachabilityManager.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +#if !os(watchOS) + +import Foundation +import SystemConfiguration + +/// The `NetworkReachabilityManager` class listens for reachability changes of hosts and addresses for both WWAN and +/// WiFi network interfaces. +/// +/// Reachability can be used to determine background information about why a network operation failed, or to retry +/// network requests when a connection is established. It should not be used to prevent a user from initiating a network +/// request, as it's possible that an initial request may be required to establish reachability. +open class NetworkReachabilityManager { + /// Defines the various states of network reachability. + /// + /// - unknown: It is unknown whether the network is reachable. + /// - notReachable: The network is not reachable. + /// - reachable: The network is reachable. + public enum NetworkReachabilityStatus { + case unknown + case notReachable + case reachable(ConnectionType) + } + + /// Defines the various connection types detected by reachability flags. + /// + /// - ethernetOrWiFi: The connection type is either over Ethernet or WiFi. + /// - wwan: The connection type is a WWAN connection. + public enum ConnectionType { + case ethernetOrWiFi + case wwan + } + + /// A closure executed when the network reachability status changes. The closure takes a single argument: the + /// network reachability status. + public typealias Listener = (NetworkReachabilityStatus) -> Void + + // MARK: - Properties + + /// Whether the network is currently reachable. + open var isReachable: Bool { return isReachableOnWWAN || isReachableOnEthernetOrWiFi } + + /// Whether the network is currently reachable over the WWAN interface. + open var isReachableOnWWAN: Bool { return networkReachabilityStatus == .reachable(.wwan) } + + /// Whether the network is currently reachable over Ethernet or WiFi interface. + open var isReachableOnEthernetOrWiFi: Bool { return networkReachabilityStatus == .reachable(.ethernetOrWiFi) } + + /// The current network reachability status. + open var networkReachabilityStatus: NetworkReachabilityStatus { + guard let flags = self.flags else { return .unknown } + return networkReachabilityStatusForFlags(flags) + } + + /// The dispatch queue to execute the `listener` closure on. + open var listenerQueue: DispatchQueue = DispatchQueue.main + + /// A closure executed when the network reachability status changes. + open var listener: Listener? + + open var flags: SCNetworkReachabilityFlags? { + var flags = SCNetworkReachabilityFlags() + + if SCNetworkReachabilityGetFlags(reachability, &flags) { + return flags + } + + return nil + } + + private let reachability: SCNetworkReachability + open var previousFlags: SCNetworkReachabilityFlags + + // MARK: - Initialization + + /// Creates a `NetworkReachabilityManager` instance with the specified host. + /// + /// - parameter host: The host used to evaluate network reachability. + /// + /// - returns: The new `NetworkReachabilityManager` instance. + public convenience init?(host: String) { + guard let reachability = SCNetworkReachabilityCreateWithName(nil, host) else { return nil } + self.init(reachability: reachability) + } + + /// Creates a `NetworkReachabilityManager` instance that monitors the address 0.0.0.0. + /// + /// Reachability treats the 0.0.0.0 address as a special token that causes it to monitor the general routing + /// status of the device, both IPv4 and IPv6. + /// + /// - returns: The new `NetworkReachabilityManager` instance. + public convenience init?() { + var address = sockaddr_in() + address.sin_len = UInt8(MemoryLayout.size) + address.sin_family = sa_family_t(AF_INET) + + guard let reachability = withUnsafePointer(to: &address, { pointer in + return pointer.withMemoryRebound(to: sockaddr.self, capacity: MemoryLayout.size) { + return SCNetworkReachabilityCreateWithAddress(nil, $0) + } + }) else { return nil } + + self.init(reachability: reachability) + } + + private init(reachability: SCNetworkReachability) { + self.reachability = reachability + self.previousFlags = SCNetworkReachabilityFlags() + } + + deinit { + stopListening() + } + + // MARK: - Listening + + /// Starts listening for changes in network reachability status. + /// + /// - returns: `true` if listening was started successfully, `false` otherwise. + @discardableResult + open func startListening() -> Bool { + var context = SCNetworkReachabilityContext(version: 0, info: nil, retain: nil, release: nil, copyDescription: nil) + context.info = Unmanaged.passUnretained(self).toOpaque() + + let callbackEnabled = SCNetworkReachabilitySetCallback( + reachability, + { (_, flags, info) in + let reachability = Unmanaged.fromOpaque(info!).takeUnretainedValue() + reachability.notifyListener(flags) + }, + &context + ) + + let queueEnabled = SCNetworkReachabilitySetDispatchQueue(reachability, listenerQueue) + + listenerQueue.async { + self.previousFlags = SCNetworkReachabilityFlags() + self.notifyListener(self.flags ?? SCNetworkReachabilityFlags()) + } + + return callbackEnabled && queueEnabled + } + + /// Stops listening for changes in network reachability status. + open func stopListening() { + SCNetworkReachabilitySetCallback(reachability, nil, nil) + SCNetworkReachabilitySetDispatchQueue(reachability, nil) + } + + // MARK: - Internal - Listener Notification + + func notifyListener(_ flags: SCNetworkReachabilityFlags) { + guard previousFlags != flags else { return } + previousFlags = flags + + listener?(networkReachabilityStatusForFlags(flags)) + } + + // MARK: - Internal - Network Reachability Status + + func networkReachabilityStatusForFlags(_ flags: SCNetworkReachabilityFlags) -> NetworkReachabilityStatus { + guard isNetworkReachable(with: flags) else { return .notReachable } + + var networkStatus: NetworkReachabilityStatus = .reachable(.ethernetOrWiFi) + + #if os(iOS) + if flags.contains(.isWWAN) { networkStatus = .reachable(.wwan) } + #endif + + return networkStatus + } + + func isNetworkReachable(with flags: SCNetworkReachabilityFlags) -> Bool { + let isReachable = flags.contains(.reachable) + let needsConnection = flags.contains(.connectionRequired) + let canConnectAutomatically = flags.contains(.connectionOnDemand) || flags.contains(.connectionOnTraffic) + let canConnectWithoutUserInteraction = canConnectAutomatically && !flags.contains(.interventionRequired) + + return isReachable && (!needsConnection || canConnectWithoutUserInteraction) + } +} + +// MARK: - + +extension NetworkReachabilityManager.NetworkReachabilityStatus: Equatable {} + +/// Returns whether the two network reachability status values are equal. +/// +/// - parameter lhs: The left-hand side value to compare. +/// - parameter rhs: The right-hand side value to compare. +/// +/// - returns: `true` if the two values are equal, `false` otherwise. +public func ==( + lhs: NetworkReachabilityManager.NetworkReachabilityStatus, + rhs: NetworkReachabilityManager.NetworkReachabilityStatus) + -> Bool +{ + switch (lhs, rhs) { + case (.unknown, .unknown): + return true + case (.notReachable, .notReachable): + return true + case let (.reachable(lhsConnectionType), .reachable(rhsConnectionType)): + return lhsConnectionType == rhsConnectionType + default: + return false + } +} + +#endif diff --git a/Santander/Pods/Alamofire/Source/Notifications.swift b/Santander/Pods/Alamofire/Source/Notifications.swift new file mode 100644 index 00000000..e1b61204 --- /dev/null +++ b/Santander/Pods/Alamofire/Source/Notifications.swift @@ -0,0 +1,55 @@ +// +// Notifications.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +extension Notification.Name { + /// Used as a namespace for all `URLSessionTask` related notifications. + public struct Task { + /// Posted when a `URLSessionTask` is resumed. The notification `object` contains the resumed `URLSessionTask`. + public static let DidResume = Notification.Name(rawValue: "org.alamofire.notification.name.task.didResume") + + /// Posted when a `URLSessionTask` is suspended. The notification `object` contains the suspended `URLSessionTask`. + public static let DidSuspend = Notification.Name(rawValue: "org.alamofire.notification.name.task.didSuspend") + + /// Posted when a `URLSessionTask` is cancelled. The notification `object` contains the cancelled `URLSessionTask`. + public static let DidCancel = Notification.Name(rawValue: "org.alamofire.notification.name.task.didCancel") + + /// Posted when a `URLSessionTask` is completed. The notification `object` contains the completed `URLSessionTask`. + public static let DidComplete = Notification.Name(rawValue: "org.alamofire.notification.name.task.didComplete") + } +} + +// MARK: - + +extension Notification { + /// Used as a namespace for all `Notification` user info dictionary keys. + public struct Key { + /// User info dictionary key representing the `URLSessionTask` associated with the notification. + public static let Task = "org.alamofire.notification.key.task" + + /// User info dictionary key representing the responseData associated with the notification. + public static let ResponseData = "org.alamofire.notification.key.responseData" + } +} diff --git a/Santander/Pods/Alamofire/Source/ParameterEncoding.swift b/Santander/Pods/Alamofire/Source/ParameterEncoding.swift new file mode 100644 index 00000000..4a54f2dd --- /dev/null +++ b/Santander/Pods/Alamofire/Source/ParameterEncoding.swift @@ -0,0 +1,483 @@ +// +// ParameterEncoding.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// HTTP method definitions. +/// +/// See https://tools.ietf.org/html/rfc7231#section-4.3 +public enum HTTPMethod: String { + case options = "OPTIONS" + case get = "GET" + case head = "HEAD" + case post = "POST" + case put = "PUT" + case patch = "PATCH" + case delete = "DELETE" + case trace = "TRACE" + case connect = "CONNECT" +} + +// MARK: - + +/// A dictionary of parameters to apply to a `URLRequest`. +public typealias Parameters = [String: Any] + +/// A type used to define how a set of parameters are applied to a `URLRequest`. +public protocol ParameterEncoding { + /// Creates a URL request by encoding parameters and applying them onto an existing request. + /// + /// - parameter urlRequest: The request to have parameters applied. + /// - parameter parameters: The parameters to apply. + /// + /// - throws: An `AFError.parameterEncodingFailed` error if encoding fails. + /// + /// - returns: The encoded request. + func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest +} + +// MARK: - + +/// Creates a url-encoded query string to be set as or appended to any existing URL query string or set as the HTTP +/// body of the URL request. Whether the query string is set or appended to any existing URL query string or set as +/// the HTTP body depends on the destination of the encoding. +/// +/// The `Content-Type` HTTP header field of an encoded request with HTTP body is set to +/// `application/x-www-form-urlencoded; charset=utf-8`. +/// +/// There is no published specification for how to encode collection types. By default the convention of appending +/// `[]` to the key for array values (`foo[]=1&foo[]=2`), and appending the key surrounded by square brackets for +/// nested dictionary values (`foo[bar]=baz`) is used. Optionally, `ArrayEncoding` can be used to omit the +/// square brackets appended to array keys. +/// +/// `BoolEncoding` can be used to configure how boolean values are encoded. The default behavior is to encode +/// `true` as 1 and `false` as 0. +public struct URLEncoding: ParameterEncoding { + + // MARK: Helper Types + + /// Defines whether the url-encoded query string is applied to the existing query string or HTTP body of the + /// resulting URL request. + /// + /// - methodDependent: Applies encoded query string result to existing query string for `GET`, `HEAD` and `DELETE` + /// requests and sets as the HTTP body for requests with any other HTTP method. + /// - queryString: Sets or appends encoded query string result to existing query string. + /// - httpBody: Sets encoded query string result as the HTTP body of the URL request. + public enum Destination { + case methodDependent, queryString, httpBody + } + + /// Configures how `Array` parameters are encoded. + /// + /// - brackets: An empty set of square brackets is appended to the key for every value. + /// This is the default behavior. + /// - noBrackets: No brackets are appended. The key is encoded as is. + public enum ArrayEncoding { + case brackets, noBrackets + + func encode(key: String) -> String { + switch self { + case .brackets: + return "\(key)[]" + case .noBrackets: + return key + } + } + } + + /// Configures how `Bool` parameters are encoded. + /// + /// - numeric: Encode `true` as `1` and `false` as `0`. This is the default behavior. + /// - literal: Encode `true` and `false` as string literals. + public enum BoolEncoding { + case numeric, literal + + func encode(value: Bool) -> String { + switch self { + case .numeric: + return value ? "1" : "0" + case .literal: + return value ? "true" : "false" + } + } + } + + // MARK: Properties + + /// Returns a default `URLEncoding` instance. + public static var `default`: URLEncoding { return URLEncoding() } + + /// Returns a `URLEncoding` instance with a `.methodDependent` destination. + public static var methodDependent: URLEncoding { return URLEncoding() } + + /// Returns a `URLEncoding` instance with a `.queryString` destination. + public static var queryString: URLEncoding { return URLEncoding(destination: .queryString) } + + /// Returns a `URLEncoding` instance with an `.httpBody` destination. + public static var httpBody: URLEncoding { return URLEncoding(destination: .httpBody) } + + /// The destination defining where the encoded query string is to be applied to the URL request. + public let destination: Destination + + /// The encoding to use for `Array` parameters. + public let arrayEncoding: ArrayEncoding + + /// The encoding to use for `Bool` parameters. + public let boolEncoding: BoolEncoding + + // MARK: Initialization + + /// Creates a `URLEncoding` instance using the specified destination. + /// + /// - parameter destination: The destination defining where the encoded query string is to be applied. + /// - parameter arrayEncoding: The encoding to use for `Array` parameters. + /// - parameter boolEncoding: The encoding to use for `Bool` parameters. + /// + /// - returns: The new `URLEncoding` instance. + public init(destination: Destination = .methodDependent, arrayEncoding: ArrayEncoding = .brackets, boolEncoding: BoolEncoding = .numeric) { + self.destination = destination + self.arrayEncoding = arrayEncoding + self.boolEncoding = boolEncoding + } + + // MARK: Encoding + + /// Creates a URL request by encoding parameters and applying them onto an existing request. + /// + /// - parameter urlRequest: The request to have parameters applied. + /// - parameter parameters: The parameters to apply. + /// + /// - throws: An `Error` if the encoding process encounters an error. + /// + /// - returns: The encoded request. + public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest { + var urlRequest = try urlRequest.asURLRequest() + + guard let parameters = parameters else { return urlRequest } + + if let method = HTTPMethod(rawValue: urlRequest.httpMethod ?? "GET"), encodesParametersInURL(with: method) { + guard let url = urlRequest.url else { + throw AFError.parameterEncodingFailed(reason: .missingURL) + } + + if var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false), !parameters.isEmpty { + let percentEncodedQuery = (urlComponents.percentEncodedQuery.map { $0 + "&" } ?? "") + query(parameters) + urlComponents.percentEncodedQuery = percentEncodedQuery + urlRequest.url = urlComponents.url + } + } else { + if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil { + urlRequest.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type") + } + + urlRequest.httpBody = query(parameters).data(using: .utf8, allowLossyConversion: false) + } + + return urlRequest + } + + /// Creates percent-escaped, URL encoded query string components from the given key-value pair using recursion. + /// + /// - parameter key: The key of the query component. + /// - parameter value: The value of the query component. + /// + /// - returns: The percent-escaped, URL encoded query string components. + public func queryComponents(fromKey key: String, value: Any) -> [(String, String)] { + var components: [(String, String)] = [] + + if let dictionary = value as? [String: Any] { + for (nestedKey, value) in dictionary { + components += queryComponents(fromKey: "\(key)[\(nestedKey)]", value: value) + } + } else if let array = value as? [Any] { + for value in array { + components += queryComponents(fromKey: arrayEncoding.encode(key: key), value: value) + } + } else if let value = value as? NSNumber { + if value.isBool { + components.append((escape(key), escape(boolEncoding.encode(value: value.boolValue)))) + } else { + components.append((escape(key), escape("\(value)"))) + } + } else if let bool = value as? Bool { + components.append((escape(key), escape(boolEncoding.encode(value: bool)))) + } else { + components.append((escape(key), escape("\(value)"))) + } + + return components + } + + /// Returns a percent-escaped string following RFC 3986 for a query string key or value. + /// + /// RFC 3986 states that the following characters are "reserved" characters. + /// + /// - General Delimiters: ":", "#", "[", "]", "@", "?", "/" + /// - Sub-Delimiters: "!", "$", "&", "'", "(", ")", "*", "+", ",", ";", "=" + /// + /// In RFC 3986 - Section 3.4, it states that the "?" and "/" characters should not be escaped to allow + /// query strings to include a URL. Therefore, all "reserved" characters with the exception of "?" and "/" + /// should be percent-escaped in the query string. + /// + /// - parameter string: The string to be percent-escaped. + /// + /// - returns: The percent-escaped string. + public func escape(_ string: String) -> String { + let generalDelimitersToEncode = ":#[]@" // does not include "?" or "/" due to RFC 3986 - Section 3.4 + let subDelimitersToEncode = "!$&'()*+,;=" + + var allowedCharacterSet = CharacterSet.urlQueryAllowed + allowedCharacterSet.remove(charactersIn: "\(generalDelimitersToEncode)\(subDelimitersToEncode)") + + var escaped = "" + + //========================================================================================================== + // + // Batching is required for escaping due to an internal bug in iOS 8.1 and 8.2. Encoding more than a few + // hundred Chinese characters causes various malloc error crashes. To avoid this issue until iOS 8 is no + // longer supported, batching MUST be used for encoding. This introduces roughly a 20% overhead. For more + // info, please refer to: + // + // - https://github.com/Alamofire/Alamofire/issues/206 + // + //========================================================================================================== + + if #available(iOS 8.3, *) { + escaped = string.addingPercentEncoding(withAllowedCharacters: allowedCharacterSet) ?? string + } else { + let batchSize = 50 + var index = string.startIndex + + while index != string.endIndex { + let startIndex = index + let endIndex = string.index(index, offsetBy: batchSize, limitedBy: string.endIndex) ?? string.endIndex + let range = startIndex.. String { + var components: [(String, String)] = [] + + for key in parameters.keys.sorted(by: <) { + let value = parameters[key]! + components += queryComponents(fromKey: key, value: value) + } + return components.map { "\($0)=\($1)" }.joined(separator: "&") + } + + private func encodesParametersInURL(with method: HTTPMethod) -> Bool { + switch destination { + case .queryString: + return true + case .httpBody: + return false + default: + break + } + + switch method { + case .get, .head, .delete: + return true + default: + return false + } + } +} + +// MARK: - + +/// Uses `JSONSerialization` to create a JSON representation of the parameters object, which is set as the body of the +/// request. The `Content-Type` HTTP header field of an encoded request is set to `application/json`. +public struct JSONEncoding: ParameterEncoding { + + // MARK: Properties + + /// Returns a `JSONEncoding` instance with default writing options. + public static var `default`: JSONEncoding { return JSONEncoding() } + + /// Returns a `JSONEncoding` instance with `.prettyPrinted` writing options. + public static var prettyPrinted: JSONEncoding { return JSONEncoding(options: .prettyPrinted) } + + /// The options for writing the parameters as JSON data. + public let options: JSONSerialization.WritingOptions + + // MARK: Initialization + + /// Creates a `JSONEncoding` instance using the specified options. + /// + /// - parameter options: The options for writing the parameters as JSON data. + /// + /// - returns: The new `JSONEncoding` instance. + public init(options: JSONSerialization.WritingOptions = []) { + self.options = options + } + + // MARK: Encoding + + /// Creates a URL request by encoding parameters and applying them onto an existing request. + /// + /// - parameter urlRequest: The request to have parameters applied. + /// - parameter parameters: The parameters to apply. + /// + /// - throws: An `Error` if the encoding process encounters an error. + /// + /// - returns: The encoded request. + public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest { + var urlRequest = try urlRequest.asURLRequest() + + guard let parameters = parameters else { return urlRequest } + + do { + let data = try JSONSerialization.data(withJSONObject: parameters, options: options) + + if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil { + urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type") + } + + urlRequest.httpBody = data + } catch { + throw AFError.parameterEncodingFailed(reason: .jsonEncodingFailed(error: error)) + } + + return urlRequest + } + + /// Creates a URL request by encoding the JSON object and setting the resulting data on the HTTP body. + /// + /// - parameter urlRequest: The request to apply the JSON object to. + /// - parameter jsonObject: The JSON object to apply to the request. + /// + /// - throws: An `Error` if the encoding process encounters an error. + /// + /// - returns: The encoded request. + public func encode(_ urlRequest: URLRequestConvertible, withJSONObject jsonObject: Any? = nil) throws -> URLRequest { + var urlRequest = try urlRequest.asURLRequest() + + guard let jsonObject = jsonObject else { return urlRequest } + + do { + let data = try JSONSerialization.data(withJSONObject: jsonObject, options: options) + + if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil { + urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type") + } + + urlRequest.httpBody = data + } catch { + throw AFError.parameterEncodingFailed(reason: .jsonEncodingFailed(error: error)) + } + + return urlRequest + } +} + +// MARK: - + +/// Uses `PropertyListSerialization` to create a plist representation of the parameters object, according to the +/// associated format and write options values, which is set as the body of the request. The `Content-Type` HTTP header +/// field of an encoded request is set to `application/x-plist`. +public struct PropertyListEncoding: ParameterEncoding { + + // MARK: Properties + + /// Returns a default `PropertyListEncoding` instance. + public static var `default`: PropertyListEncoding { return PropertyListEncoding() } + + /// Returns a `PropertyListEncoding` instance with xml formatting and default writing options. + public static var xml: PropertyListEncoding { return PropertyListEncoding(format: .xml) } + + /// Returns a `PropertyListEncoding` instance with binary formatting and default writing options. + public static var binary: PropertyListEncoding { return PropertyListEncoding(format: .binary) } + + /// The property list serialization format. + public let format: PropertyListSerialization.PropertyListFormat + + /// The options for writing the parameters as plist data. + public let options: PropertyListSerialization.WriteOptions + + // MARK: Initialization + + /// Creates a `PropertyListEncoding` instance using the specified format and options. + /// + /// - parameter format: The property list serialization format. + /// - parameter options: The options for writing the parameters as plist data. + /// + /// - returns: The new `PropertyListEncoding` instance. + public init( + format: PropertyListSerialization.PropertyListFormat = .xml, + options: PropertyListSerialization.WriteOptions = 0) + { + self.format = format + self.options = options + } + + // MARK: Encoding + + /// Creates a URL request by encoding parameters and applying them onto an existing request. + /// + /// - parameter urlRequest: The request to have parameters applied. + /// - parameter parameters: The parameters to apply. + /// + /// - throws: An `Error` if the encoding process encounters an error. + /// + /// - returns: The encoded request. + public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest { + var urlRequest = try urlRequest.asURLRequest() + + guard let parameters = parameters else { return urlRequest } + + do { + let data = try PropertyListSerialization.data( + fromPropertyList: parameters, + format: format, + options: options + ) + + if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil { + urlRequest.setValue("application/x-plist", forHTTPHeaderField: "Content-Type") + } + + urlRequest.httpBody = data + } catch { + throw AFError.parameterEncodingFailed(reason: .propertyListEncodingFailed(error: error)) + } + + return urlRequest + } +} + +// MARK: - + +extension NSNumber { + fileprivate var isBool: Bool { return CFBooleanGetTypeID() == CFGetTypeID(self) } +} diff --git a/Santander/Pods/Alamofire/Source/Request.swift b/Santander/Pods/Alamofire/Source/Request.swift new file mode 100644 index 00000000..bf569f4c --- /dev/null +++ b/Santander/Pods/Alamofire/Source/Request.swift @@ -0,0 +1,649 @@ +// +// Request.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// A type that can inspect and optionally adapt a `URLRequest` in some manner if necessary. +public protocol RequestAdapter { + /// Inspects and adapts the specified `URLRequest` in some manner if necessary and returns the result. + /// + /// - parameter urlRequest: The URL request to adapt. + /// + /// - throws: An `Error` if the adaptation encounters an error. + /// + /// - returns: The adapted `URLRequest`. + func adapt(_ urlRequest: URLRequest) throws -> URLRequest +} + +// MARK: - + +/// A closure executed when the `RequestRetrier` determines whether a `Request` should be retried or not. +public typealias RequestRetryCompletion = (_ shouldRetry: Bool, _ timeDelay: TimeInterval) -> Void + +/// A type that determines whether a request should be retried after being executed by the specified session manager +/// and encountering an error. +public protocol RequestRetrier { + /// Determines whether the `Request` should be retried by calling the `completion` closure. + /// + /// This operation is fully asynchronous. Any amount of time can be taken to determine whether the request needs + /// to be retried. The one requirement is that the completion closure is called to ensure the request is properly + /// cleaned up after. + /// + /// - parameter manager: The session manager the request was executed on. + /// - parameter request: The request that failed due to the encountered error. + /// - parameter error: The error encountered when executing the request. + /// - parameter completion: The completion closure to be executed when retry decision has been determined. + func should(_ manager: SessionManager, retry request: Request, with error: Error, completion: @escaping RequestRetryCompletion) +} + +// MARK: - + +protocol TaskConvertible { + func task(session: URLSession, adapter: RequestAdapter?, queue: DispatchQueue) throws -> URLSessionTask +} + +/// A dictionary of headers to apply to a `URLRequest`. +public typealias HTTPHeaders = [String: String] + +// MARK: - + +/// Responsible for sending a request and receiving the response and associated data from the server, as well as +/// managing its underlying `URLSessionTask`. +open class Request { + + // MARK: Helper Types + + /// A closure executed when monitoring upload or download progress of a request. + public typealias ProgressHandler = (Progress) -> Void + + enum RequestTask { + case data(TaskConvertible?, URLSessionTask?) + case download(TaskConvertible?, URLSessionTask?) + case upload(TaskConvertible?, URLSessionTask?) + case stream(TaskConvertible?, URLSessionTask?) + } + + // MARK: Properties + + /// The delegate for the underlying task. + open internal(set) var delegate: TaskDelegate { + get { + taskDelegateLock.lock() ; defer { taskDelegateLock.unlock() } + return taskDelegate + } + set { + taskDelegateLock.lock() ; defer { taskDelegateLock.unlock() } + taskDelegate = newValue + } + } + + /// The underlying task. + open var task: URLSessionTask? { return delegate.task } + + /// The session belonging to the underlying task. + public let session: URLSession + + /// The request sent or to be sent to the server. + open var request: URLRequest? { return task?.originalRequest } + + /// The response received from the server, if any. + open var response: HTTPURLResponse? { return task?.response as? HTTPURLResponse } + + /// The number of times the request has been retried. + open internal(set) var retryCount: UInt = 0 + + let originalTask: TaskConvertible? + + var startTime: CFAbsoluteTime? + var endTime: CFAbsoluteTime? + + var validations: [() -> Void] = [] + + private var taskDelegate: TaskDelegate + private var taskDelegateLock = NSLock() + + // MARK: Lifecycle + + init(session: URLSession, requestTask: RequestTask, error: Error? = nil) { + self.session = session + + switch requestTask { + case .data(let originalTask, let task): + taskDelegate = DataTaskDelegate(task: task) + self.originalTask = originalTask + case .download(let originalTask, let task): + taskDelegate = DownloadTaskDelegate(task: task) + self.originalTask = originalTask + case .upload(let originalTask, let task): + taskDelegate = UploadTaskDelegate(task: task) + self.originalTask = originalTask + case .stream(let originalTask, let task): + taskDelegate = TaskDelegate(task: task) + self.originalTask = originalTask + } + + delegate.error = error + delegate.queue.addOperation { self.endTime = CFAbsoluteTimeGetCurrent() } + } + + // MARK: Authentication + + /// Associates an HTTP Basic credential with the request. + /// + /// - parameter user: The user. + /// - parameter password: The password. + /// - parameter persistence: The URL credential persistence. `.ForSession` by default. + /// + /// - returns: The request. + @discardableResult + open func authenticate( + user: String, + password: String, + persistence: URLCredential.Persistence = .forSession) + -> Self + { + let credential = URLCredential(user: user, password: password, persistence: persistence) + return authenticate(usingCredential: credential) + } + + /// Associates a specified credential with the request. + /// + /// - parameter credential: The credential. + /// + /// - returns: The request. + @discardableResult + open func authenticate(usingCredential credential: URLCredential) -> Self { + delegate.credential = credential + return self + } + + /// Returns a base64 encoded basic authentication credential as an authorization header tuple. + /// + /// - parameter user: The user. + /// - parameter password: The password. + /// + /// - returns: A tuple with Authorization header and credential value if encoding succeeds, `nil` otherwise. + open class func authorizationHeader(user: String, password: String) -> (key: String, value: String)? { + guard let data = "\(user):\(password)".data(using: .utf8) else { return nil } + + let credential = data.base64EncodedString(options: []) + + return (key: "Authorization", value: "Basic \(credential)") + } + + // MARK: State + + /// Resumes the request. + open func resume() { + guard let task = task else { delegate.queue.isSuspended = false ; return } + + if startTime == nil { startTime = CFAbsoluteTimeGetCurrent() } + + task.resume() + + NotificationCenter.default.post( + name: Notification.Name.Task.DidResume, + object: self, + userInfo: [Notification.Key.Task: task] + ) + } + + /// Suspends the request. + open func suspend() { + guard let task = task else { return } + + task.suspend() + + NotificationCenter.default.post( + name: Notification.Name.Task.DidSuspend, + object: self, + userInfo: [Notification.Key.Task: task] + ) + } + + /// Cancels the request. + open func cancel() { + guard let task = task else { return } + + task.cancel() + + NotificationCenter.default.post( + name: Notification.Name.Task.DidCancel, + object: self, + userInfo: [Notification.Key.Task: task] + ) + } +} + +// MARK: - CustomStringConvertible + +extension Request: CustomStringConvertible { + /// The textual representation used when written to an output stream, which includes the HTTP method and URL, as + /// well as the response status code if a response has been received. + open var description: String { + var components: [String] = [] + + if let HTTPMethod = request?.httpMethod { + components.append(HTTPMethod) + } + + if let urlString = request?.url?.absoluteString { + components.append(urlString) + } + + if let response = response { + components.append("(\(response.statusCode))") + } + + return components.joined(separator: " ") + } +} + +// MARK: - CustomDebugStringConvertible + +extension Request: CustomDebugStringConvertible { + /// The textual representation used when written to an output stream, in the form of a cURL command. + open var debugDescription: String { + return cURLRepresentation() + } + + func cURLRepresentation() -> String { + var components = ["$ curl -v"] + + guard let request = self.request, + let url = request.url, + let host = url.host + else { + return "$ curl command could not be created" + } + + if let httpMethod = request.httpMethod, httpMethod != "GET" { + components.append("-X \(httpMethod)") + } + + if let credentialStorage = self.session.configuration.urlCredentialStorage { + let protectionSpace = URLProtectionSpace( + host: host, + port: url.port ?? 0, + protocol: url.scheme, + realm: host, + authenticationMethod: NSURLAuthenticationMethodHTTPBasic + ) + + if let credentials = credentialStorage.credentials(for: protectionSpace)?.values { + for credential in credentials { + guard let user = credential.user, let password = credential.password else { continue } + components.append("-u \(user):\(password)") + } + } else { + if let credential = delegate.credential, let user = credential.user, let password = credential.password { + components.append("-u \(user):\(password)") + } + } + } + + if session.configuration.httpShouldSetCookies { + if + let cookieStorage = session.configuration.httpCookieStorage, + let cookies = cookieStorage.cookies(for: url), !cookies.isEmpty + { + let string = cookies.reduce("") { $0 + "\($1.name)=\($1.value);" } + + #if swift(>=3.2) + components.append("-b \"\(string[.. URLSessionTask { + do { + let urlRequest = try self.urlRequest.adapt(using: adapter) + return queue.sync { session.dataTask(with: urlRequest) } + } catch { + throw AdaptError(error: error) + } + } + } + + // MARK: Properties + + /// The request sent or to be sent to the server. + open override var request: URLRequest? { + if let request = super.request { return request } + if let requestable = originalTask as? Requestable { return requestable.urlRequest } + + return nil + } + + /// The progress of fetching the response data from the server for the request. + open var progress: Progress { return dataDelegate.progress } + + var dataDelegate: DataTaskDelegate { return delegate as! DataTaskDelegate } + + // MARK: Stream + + /// Sets a closure to be called periodically during the lifecycle of the request as data is read from the server. + /// + /// This closure returns the bytes most recently received from the server, not including data from previous calls. + /// If this closure is set, data will only be available within this closure, and will not be saved elsewhere. It is + /// also important to note that the server data in any `Response` object will be `nil`. + /// + /// - parameter closure: The code to be executed periodically during the lifecycle of the request. + /// + /// - returns: The request. + @discardableResult + open func stream(closure: ((Data) -> Void)? = nil) -> Self { + dataDelegate.dataStream = closure + return self + } + + // MARK: Progress + + /// Sets a closure to be called periodically during the lifecycle of the `Request` as data is read from the server. + /// + /// - parameter queue: The dispatch queue to execute the closure on. + /// - parameter closure: The code to be executed periodically as data is read from the server. + /// + /// - returns: The request. + @discardableResult + open func downloadProgress(queue: DispatchQueue = DispatchQueue.main, closure: @escaping ProgressHandler) -> Self { + dataDelegate.progressHandler = (closure, queue) + return self + } +} + +// MARK: - + +/// Specific type of `Request` that manages an underlying `URLSessionDownloadTask`. +open class DownloadRequest: Request { + + // MARK: Helper Types + + /// A collection of options to be executed prior to moving a downloaded file from the temporary URL to the + /// destination URL. + public struct DownloadOptions: OptionSet { + /// Returns the raw bitmask value of the option and satisfies the `RawRepresentable` protocol. + public let rawValue: UInt + + /// A `DownloadOptions` flag that creates intermediate directories for the destination URL if specified. + public static let createIntermediateDirectories = DownloadOptions(rawValue: 1 << 0) + + /// A `DownloadOptions` flag that removes a previous file from the destination URL if specified. + public static let removePreviousFile = DownloadOptions(rawValue: 1 << 1) + + /// Creates a `DownloadFileDestinationOptions` instance with the specified raw value. + /// + /// - parameter rawValue: The raw bitmask value for the option. + /// + /// - returns: A new log level instance. + public init(rawValue: UInt) { + self.rawValue = rawValue + } + } + + /// A closure executed once a download request has successfully completed in order to determine where to move the + /// temporary file written to during the download process. The closure takes two arguments: the temporary file URL + /// and the URL response, and returns a two arguments: the file URL where the temporary file should be moved and + /// the options defining how the file should be moved. + public typealias DownloadFileDestination = ( + _ temporaryURL: URL, + _ response: HTTPURLResponse) + -> (destinationURL: URL, options: DownloadOptions) + + enum Downloadable: TaskConvertible { + case request(URLRequest) + case resumeData(Data) + + func task(session: URLSession, adapter: RequestAdapter?, queue: DispatchQueue) throws -> URLSessionTask { + do { + let task: URLSessionTask + + switch self { + case let .request(urlRequest): + let urlRequest = try urlRequest.adapt(using: adapter) + task = queue.sync { session.downloadTask(with: urlRequest) } + case let .resumeData(resumeData): + task = queue.sync { session.downloadTask(withResumeData: resumeData) } + } + + return task + } catch { + throw AdaptError(error: error) + } + } + } + + // MARK: Properties + + /// The request sent or to be sent to the server. + open override var request: URLRequest? { + if let request = super.request { return request } + + if let downloadable = originalTask as? Downloadable, case let .request(urlRequest) = downloadable { + return urlRequest + } + + return nil + } + + /// The resume data of the underlying download task if available after a failure. + open var resumeData: Data? { return downloadDelegate.resumeData } + + /// The progress of downloading the response data from the server for the request. + open var progress: Progress { return downloadDelegate.progress } + + var downloadDelegate: DownloadTaskDelegate { return delegate as! DownloadTaskDelegate } + + // MARK: State + + /// Cancels the request. + open override func cancel() { + downloadDelegate.downloadTask.cancel { self.downloadDelegate.resumeData = $0 } + + NotificationCenter.default.post( + name: Notification.Name.Task.DidCancel, + object: self, + userInfo: [Notification.Key.Task: task as Any] + ) + } + + // MARK: Progress + + /// Sets a closure to be called periodically during the lifecycle of the `Request` as data is read from the server. + /// + /// - parameter queue: The dispatch queue to execute the closure on. + /// - parameter closure: The code to be executed periodically as data is read from the server. + /// + /// - returns: The request. + @discardableResult + open func downloadProgress(queue: DispatchQueue = DispatchQueue.main, closure: @escaping ProgressHandler) -> Self { + downloadDelegate.progressHandler = (closure, queue) + return self + } + + // MARK: Destination + + /// Creates a download file destination closure which uses the default file manager to move the temporary file to a + /// file URL in the first available directory with the specified search path directory and search path domain mask. + /// + /// - parameter directory: The search path directory. `.DocumentDirectory` by default. + /// - parameter domain: The search path domain mask. `.UserDomainMask` by default. + /// + /// - returns: A download file destination closure. + open class func suggestedDownloadDestination( + for directory: FileManager.SearchPathDirectory = .documentDirectory, + in domain: FileManager.SearchPathDomainMask = .userDomainMask) + -> DownloadFileDestination + { + return { temporaryURL, response in + let directoryURLs = FileManager.default.urls(for: directory, in: domain) + + if !directoryURLs.isEmpty { + return (directoryURLs[0].appendingPathComponent(response.suggestedFilename!), []) + } + + return (temporaryURL, []) + } + } +} + +// MARK: - + +/// Specific type of `Request` that manages an underlying `URLSessionUploadTask`. +open class UploadRequest: DataRequest { + + // MARK: Helper Types + + enum Uploadable: TaskConvertible { + case data(Data, URLRequest) + case file(URL, URLRequest) + case stream(InputStream, URLRequest) + + func task(session: URLSession, adapter: RequestAdapter?, queue: DispatchQueue) throws -> URLSessionTask { + do { + let task: URLSessionTask + + switch self { + case let .data(data, urlRequest): + let urlRequest = try urlRequest.adapt(using: adapter) + task = queue.sync { session.uploadTask(with: urlRequest, from: data) } + case let .file(url, urlRequest): + let urlRequest = try urlRequest.adapt(using: adapter) + task = queue.sync { session.uploadTask(with: urlRequest, fromFile: url) } + case let .stream(_, urlRequest): + let urlRequest = try urlRequest.adapt(using: adapter) + task = queue.sync { session.uploadTask(withStreamedRequest: urlRequest) } + } + + return task + } catch { + throw AdaptError(error: error) + } + } + } + + // MARK: Properties + + /// The request sent or to be sent to the server. + open override var request: URLRequest? { + if let request = super.request { return request } + + guard let uploadable = originalTask as? Uploadable else { return nil } + + switch uploadable { + case .data(_, let urlRequest), .file(_, let urlRequest), .stream(_, let urlRequest): + return urlRequest + } + } + + /// The progress of uploading the payload to the server for the upload request. + open var uploadProgress: Progress { return uploadDelegate.uploadProgress } + + var uploadDelegate: UploadTaskDelegate { return delegate as! UploadTaskDelegate } + + // MARK: Upload Progress + + /// Sets a closure to be called periodically during the lifecycle of the `UploadRequest` as data is sent to + /// the server. + /// + /// After the data is sent to the server, the `progress(queue:closure:)` APIs can be used to monitor the progress + /// of data being read from the server. + /// + /// - parameter queue: The dispatch queue to execute the closure on. + /// - parameter closure: The code to be executed periodically as data is sent to the server. + /// + /// - returns: The request. + @discardableResult + open func uploadProgress(queue: DispatchQueue = DispatchQueue.main, closure: @escaping ProgressHandler) -> Self { + uploadDelegate.uploadProgressHandler = (closure, queue) + return self + } +} + +// MARK: - + +#if !os(watchOS) + +/// Specific type of `Request` that manages an underlying `URLSessionStreamTask`. +@available(iOS 9.0, macOS 10.11, tvOS 9.0, *) +open class StreamRequest: Request { + enum Streamable: TaskConvertible { + case stream(hostName: String, port: Int) + case netService(NetService) + + func task(session: URLSession, adapter: RequestAdapter?, queue: DispatchQueue) throws -> URLSessionTask { + let task: URLSessionTask + + switch self { + case let .stream(hostName, port): + task = queue.sync { session.streamTask(withHostName: hostName, port: port) } + case let .netService(netService): + task = queue.sync { session.streamTask(with: netService) } + } + + return task + } + } +} + +#endif diff --git a/Santander/Pods/Alamofire/Source/Response.swift b/Santander/Pods/Alamofire/Source/Response.swift new file mode 100644 index 00000000..74b1ef54 --- /dev/null +++ b/Santander/Pods/Alamofire/Source/Response.swift @@ -0,0 +1,567 @@ +// +// Response.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// Used to store all data associated with an non-serialized response of a data or upload request. +public struct DefaultDataResponse { + /// The URL request sent to the server. + public let request: URLRequest? + + /// The server's response to the URL request. + public let response: HTTPURLResponse? + + /// The data returned by the server. + public let data: Data? + + /// The error encountered while executing or validating the request. + public let error: Error? + + /// The timeline of the complete lifecycle of the request. + public let timeline: Timeline + + var _metrics: AnyObject? + + /// Creates a `DefaultDataResponse` instance from the specified parameters. + /// + /// - Parameters: + /// - request: The URL request sent to the server. + /// - response: The server's response to the URL request. + /// - data: The data returned by the server. + /// - error: The error encountered while executing or validating the request. + /// - timeline: The timeline of the complete lifecycle of the request. `Timeline()` by default. + /// - metrics: The task metrics containing the request / response statistics. `nil` by default. + public init( + request: URLRequest?, + response: HTTPURLResponse?, + data: Data?, + error: Error?, + timeline: Timeline = Timeline(), + metrics: AnyObject? = nil) + { + self.request = request + self.response = response + self.data = data + self.error = error + self.timeline = timeline + } +} + +// MARK: - + +/// Used to store all data associated with a serialized response of a data or upload request. +public struct DataResponse { + /// The URL request sent to the server. + public let request: URLRequest? + + /// The server's response to the URL request. + public let response: HTTPURLResponse? + + /// The data returned by the server. + public let data: Data? + + /// The result of response serialization. + public let result: Result + + /// The timeline of the complete lifecycle of the request. + public let timeline: Timeline + + /// Returns the associated value of the result if it is a success, `nil` otherwise. + public var value: Value? { return result.value } + + /// Returns the associated error value if the result if it is a failure, `nil` otherwise. + public var error: Error? { return result.error } + + var _metrics: AnyObject? + + /// Creates a `DataResponse` instance with the specified parameters derived from response serialization. + /// + /// - parameter request: The URL request sent to the server. + /// - parameter response: The server's response to the URL request. + /// - parameter data: The data returned by the server. + /// - parameter result: The result of response serialization. + /// - parameter timeline: The timeline of the complete lifecycle of the `Request`. Defaults to `Timeline()`. + /// + /// - returns: The new `DataResponse` instance. + public init( + request: URLRequest?, + response: HTTPURLResponse?, + data: Data?, + result: Result, + timeline: Timeline = Timeline()) + { + self.request = request + self.response = response + self.data = data + self.result = result + self.timeline = timeline + } +} + +// MARK: - + +extension DataResponse: CustomStringConvertible, CustomDebugStringConvertible { + /// The textual representation used when written to an output stream, which includes whether the result was a + /// success or failure. + public var description: String { + return result.debugDescription + } + + /// The debug textual representation used when written to an output stream, which includes the URL request, the URL + /// response, the server data, the response serialization result and the timeline. + public var debugDescription: String { + var output: [String] = [] + + output.append(request != nil ? "[Request]: \(request!.httpMethod ?? "GET") \(request!)" : "[Request]: nil") + output.append(response != nil ? "[Response]: \(response!)" : "[Response]: nil") + output.append("[Data]: \(data?.count ?? 0) bytes") + output.append("[Result]: \(result.debugDescription)") + output.append("[Timeline]: \(timeline.debugDescription)") + + return output.joined(separator: "\n") + } +} + +// MARK: - + +extension DataResponse { + /// Evaluates the specified closure when the result of this `DataResponse` is a success, passing the unwrapped + /// result value as a parameter. + /// + /// Use the `map` method with a closure that does not throw. For example: + /// + /// let possibleData: DataResponse = ... + /// let possibleInt = possibleData.map { $0.count } + /// + /// - parameter transform: A closure that takes the success value of the instance's result. + /// + /// - returns: A `DataResponse` whose result wraps the value returned by the given closure. If this instance's + /// result is a failure, returns a response wrapping the same failure. + public func map(_ transform: (Value) -> T) -> DataResponse { + var response = DataResponse( + request: request, + response: self.response, + data: data, + result: result.map(transform), + timeline: timeline + ) + + response._metrics = _metrics + + return response + } + + /// Evaluates the given closure when the result of this `DataResponse` is a success, passing the unwrapped result + /// value as a parameter. + /// + /// Use the `flatMap` method with a closure that may throw an error. For example: + /// + /// let possibleData: DataResponse = ... + /// let possibleObject = possibleData.flatMap { + /// try JSONSerialization.jsonObject(with: $0) + /// } + /// + /// - parameter transform: A closure that takes the success value of the instance's result. + /// + /// - returns: A success or failure `DataResponse` depending on the result of the given closure. If this instance's + /// result is a failure, returns the same failure. + public func flatMap(_ transform: (Value) throws -> T) -> DataResponse { + var response = DataResponse( + request: request, + response: self.response, + data: data, + result: result.flatMap(transform), + timeline: timeline + ) + + response._metrics = _metrics + + return response + } + + /// Evaluates the specified closure when the `DataResponse` is a failure, passing the unwrapped error as a parameter. + /// + /// Use the `mapError` function with a closure that does not throw. For example: + /// + /// let possibleData: DataResponse = ... + /// let withMyError = possibleData.mapError { MyError.error($0) } + /// + /// - Parameter transform: A closure that takes the error of the instance. + /// - Returns: A `DataResponse` instance containing the result of the transform. + public func mapError(_ transform: (Error) -> E) -> DataResponse { + var response = DataResponse( + request: request, + response: self.response, + data: data, + result: result.mapError(transform), + timeline: timeline + ) + + response._metrics = _metrics + + return response + } + + /// Evaluates the specified closure when the `DataResponse` is a failure, passing the unwrapped error as a parameter. + /// + /// Use the `flatMapError` function with a closure that may throw an error. For example: + /// + /// let possibleData: DataResponse = ... + /// let possibleObject = possibleData.flatMapError { + /// try someFailableFunction(taking: $0) + /// } + /// + /// - Parameter transform: A throwing closure that takes the error of the instance. + /// + /// - Returns: A `DataResponse` instance containing the result of the transform. + public func flatMapError(_ transform: (Error) throws -> E) -> DataResponse { + var response = DataResponse( + request: request, + response: self.response, + data: data, + result: result.flatMapError(transform), + timeline: timeline + ) + + response._metrics = _metrics + + return response + } +} + +// MARK: - + +/// Used to store all data associated with an non-serialized response of a download request. +public struct DefaultDownloadResponse { + /// The URL request sent to the server. + public let request: URLRequest? + + /// The server's response to the URL request. + public let response: HTTPURLResponse? + + /// The temporary destination URL of the data returned from the server. + public let temporaryURL: URL? + + /// The final destination URL of the data returned from the server if it was moved. + public let destinationURL: URL? + + /// The resume data generated if the request was cancelled. + public let resumeData: Data? + + /// The error encountered while executing or validating the request. + public let error: Error? + + /// The timeline of the complete lifecycle of the request. + public let timeline: Timeline + + var _metrics: AnyObject? + + /// Creates a `DefaultDownloadResponse` instance from the specified parameters. + /// + /// - Parameters: + /// - request: The URL request sent to the server. + /// - response: The server's response to the URL request. + /// - temporaryURL: The temporary destination URL of the data returned from the server. + /// - destinationURL: The final destination URL of the data returned from the server if it was moved. + /// - resumeData: The resume data generated if the request was cancelled. + /// - error: The error encountered while executing or validating the request. + /// - timeline: The timeline of the complete lifecycle of the request. `Timeline()` by default. + /// - metrics: The task metrics containing the request / response statistics. `nil` by default. + public init( + request: URLRequest?, + response: HTTPURLResponse?, + temporaryURL: URL?, + destinationURL: URL?, + resumeData: Data?, + error: Error?, + timeline: Timeline = Timeline(), + metrics: AnyObject? = nil) + { + self.request = request + self.response = response + self.temporaryURL = temporaryURL + self.destinationURL = destinationURL + self.resumeData = resumeData + self.error = error + self.timeline = timeline + } +} + +// MARK: - + +/// Used to store all data associated with a serialized response of a download request. +public struct DownloadResponse { + /// The URL request sent to the server. + public let request: URLRequest? + + /// The server's response to the URL request. + public let response: HTTPURLResponse? + + /// The temporary destination URL of the data returned from the server. + public let temporaryURL: URL? + + /// The final destination URL of the data returned from the server if it was moved. + public let destinationURL: URL? + + /// The resume data generated if the request was cancelled. + public let resumeData: Data? + + /// The result of response serialization. + public let result: Result + + /// The timeline of the complete lifecycle of the request. + public let timeline: Timeline + + /// Returns the associated value of the result if it is a success, `nil` otherwise. + public var value: Value? { return result.value } + + /// Returns the associated error value if the result if it is a failure, `nil` otherwise. + public var error: Error? { return result.error } + + var _metrics: AnyObject? + + /// Creates a `DownloadResponse` instance with the specified parameters derived from response serialization. + /// + /// - parameter request: The URL request sent to the server. + /// - parameter response: The server's response to the URL request. + /// - parameter temporaryURL: The temporary destination URL of the data returned from the server. + /// - parameter destinationURL: The final destination URL of the data returned from the server if it was moved. + /// - parameter resumeData: The resume data generated if the request was cancelled. + /// - parameter result: The result of response serialization. + /// - parameter timeline: The timeline of the complete lifecycle of the `Request`. Defaults to `Timeline()`. + /// + /// - returns: The new `DownloadResponse` instance. + public init( + request: URLRequest?, + response: HTTPURLResponse?, + temporaryURL: URL?, + destinationURL: URL?, + resumeData: Data?, + result: Result, + timeline: Timeline = Timeline()) + { + self.request = request + self.response = response + self.temporaryURL = temporaryURL + self.destinationURL = destinationURL + self.resumeData = resumeData + self.result = result + self.timeline = timeline + } +} + +// MARK: - + +extension DownloadResponse: CustomStringConvertible, CustomDebugStringConvertible { + /// The textual representation used when written to an output stream, which includes whether the result was a + /// success or failure. + public var description: String { + return result.debugDescription + } + + /// The debug textual representation used when written to an output stream, which includes the URL request, the URL + /// response, the temporary and destination URLs, the resume data, the response serialization result and the + /// timeline. + public var debugDescription: String { + var output: [String] = [] + + output.append(request != nil ? "[Request]: \(request!.httpMethod ?? "GET") \(request!)" : "[Request]: nil") + output.append(response != nil ? "[Response]: \(response!)" : "[Response]: nil") + output.append("[TemporaryURL]: \(temporaryURL?.path ?? "nil")") + output.append("[DestinationURL]: \(destinationURL?.path ?? "nil")") + output.append("[ResumeData]: \(resumeData?.count ?? 0) bytes") + output.append("[Result]: \(result.debugDescription)") + output.append("[Timeline]: \(timeline.debugDescription)") + + return output.joined(separator: "\n") + } +} + +// MARK: - + +extension DownloadResponse { + /// Evaluates the given closure when the result of this `DownloadResponse` is a success, passing the unwrapped + /// result value as a parameter. + /// + /// Use the `map` method with a closure that does not throw. For example: + /// + /// let possibleData: DownloadResponse = ... + /// let possibleInt = possibleData.map { $0.count } + /// + /// - parameter transform: A closure that takes the success value of the instance's result. + /// + /// - returns: A `DownloadResponse` whose result wraps the value returned by the given closure. If this instance's + /// result is a failure, returns a response wrapping the same failure. + public func map(_ transform: (Value) -> T) -> DownloadResponse { + var response = DownloadResponse( + request: request, + response: self.response, + temporaryURL: temporaryURL, + destinationURL: destinationURL, + resumeData: resumeData, + result: result.map(transform), + timeline: timeline + ) + + response._metrics = _metrics + + return response + } + + /// Evaluates the given closure when the result of this `DownloadResponse` is a success, passing the unwrapped + /// result value as a parameter. + /// + /// Use the `flatMap` method with a closure that may throw an error. For example: + /// + /// let possibleData: DownloadResponse = ... + /// let possibleObject = possibleData.flatMap { + /// try JSONSerialization.jsonObject(with: $0) + /// } + /// + /// - parameter transform: A closure that takes the success value of the instance's result. + /// + /// - returns: A success or failure `DownloadResponse` depending on the result of the given closure. If this + /// instance's result is a failure, returns the same failure. + public func flatMap(_ transform: (Value) throws -> T) -> DownloadResponse { + var response = DownloadResponse( + request: request, + response: self.response, + temporaryURL: temporaryURL, + destinationURL: destinationURL, + resumeData: resumeData, + result: result.flatMap(transform), + timeline: timeline + ) + + response._metrics = _metrics + + return response + } + + /// Evaluates the specified closure when the `DownloadResponse` is a failure, passing the unwrapped error as a parameter. + /// + /// Use the `mapError` function with a closure that does not throw. For example: + /// + /// let possibleData: DownloadResponse = ... + /// let withMyError = possibleData.mapError { MyError.error($0) } + /// + /// - Parameter transform: A closure that takes the error of the instance. + /// - Returns: A `DownloadResponse` instance containing the result of the transform. + public func mapError(_ transform: (Error) -> E) -> DownloadResponse { + var response = DownloadResponse( + request: request, + response: self.response, + temporaryURL: temporaryURL, + destinationURL: destinationURL, + resumeData: resumeData, + result: result.mapError(transform), + timeline: timeline + ) + + response._metrics = _metrics + + return response + } + + /// Evaluates the specified closure when the `DownloadResponse` is a failure, passing the unwrapped error as a parameter. + /// + /// Use the `flatMapError` function with a closure that may throw an error. For example: + /// + /// let possibleData: DownloadResponse = ... + /// let possibleObject = possibleData.flatMapError { + /// try someFailableFunction(taking: $0) + /// } + /// + /// - Parameter transform: A throwing closure that takes the error of the instance. + /// + /// - Returns: A `DownloadResponse` instance containing the result of the transform. + public func flatMapError(_ transform: (Error) throws -> E) -> DownloadResponse { + var response = DownloadResponse( + request: request, + response: self.response, + temporaryURL: temporaryURL, + destinationURL: destinationURL, + resumeData: resumeData, + result: result.flatMapError(transform), + timeline: timeline + ) + + response._metrics = _metrics + + return response + } +} + +// MARK: - + +protocol Response { + /// The task metrics containing the request / response statistics. + var _metrics: AnyObject? { get set } + mutating func add(_ metrics: AnyObject?) +} + +extension Response { + mutating func add(_ metrics: AnyObject?) { + #if !os(watchOS) + guard #available(iOS 10.0, macOS 10.12, tvOS 10.0, *) else { return } + guard let metrics = metrics as? URLSessionTaskMetrics else { return } + + _metrics = metrics + #endif + } +} + +// MARK: - + +@available(iOS 10.0, macOS 10.12, tvOS 10.0, *) +extension DefaultDataResponse: Response { +#if !os(watchOS) + /// The task metrics containing the request / response statistics. + public var metrics: URLSessionTaskMetrics? { return _metrics as? URLSessionTaskMetrics } +#endif +} + +@available(iOS 10.0, macOS 10.12, tvOS 10.0, *) +extension DataResponse: Response { +#if !os(watchOS) + /// The task metrics containing the request / response statistics. + public var metrics: URLSessionTaskMetrics? { return _metrics as? URLSessionTaskMetrics } +#endif +} + +@available(iOS 10.0, macOS 10.12, tvOS 10.0, *) +extension DefaultDownloadResponse: Response { +#if !os(watchOS) + /// The task metrics containing the request / response statistics. + public var metrics: URLSessionTaskMetrics? { return _metrics as? URLSessionTaskMetrics } +#endif +} + +@available(iOS 10.0, macOS 10.12, tvOS 10.0, *) +extension DownloadResponse: Response { +#if !os(watchOS) + /// The task metrics containing the request / response statistics. + public var metrics: URLSessionTaskMetrics? { return _metrics as? URLSessionTaskMetrics } +#endif +} diff --git a/Santander/Pods/Alamofire/Source/ResponseSerialization.swift b/Santander/Pods/Alamofire/Source/ResponseSerialization.swift new file mode 100644 index 00000000..3333726d --- /dev/null +++ b/Santander/Pods/Alamofire/Source/ResponseSerialization.swift @@ -0,0 +1,715 @@ +// +// ResponseSerialization.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// The type in which all data response serializers must conform to in order to serialize a response. +public protocol DataResponseSerializerProtocol { + /// The type of serialized object to be created by this `DataResponseSerializerType`. + associatedtype SerializedObject + + /// A closure used by response handlers that takes a request, response, data and error and returns a result. + var serializeResponse: (URLRequest?, HTTPURLResponse?, Data?, Error?) -> Result { get } +} + +// MARK: - + +/// A generic `DataResponseSerializerType` used to serialize a request, response, and data into a serialized object. +public struct DataResponseSerializer: DataResponseSerializerProtocol { + /// The type of serialized object to be created by this `DataResponseSerializer`. + public typealias SerializedObject = Value + + /// A closure used by response handlers that takes a request, response, data and error and returns a result. + public var serializeResponse: (URLRequest?, HTTPURLResponse?, Data?, Error?) -> Result + + /// Initializes the `ResponseSerializer` instance with the given serialize response closure. + /// + /// - parameter serializeResponse: The closure used to serialize the response. + /// + /// - returns: The new generic response serializer instance. + public init(serializeResponse: @escaping (URLRequest?, HTTPURLResponse?, Data?, Error?) -> Result) { + self.serializeResponse = serializeResponse + } +} + +// MARK: - + +/// The type in which all download response serializers must conform to in order to serialize a response. +public protocol DownloadResponseSerializerProtocol { + /// The type of serialized object to be created by this `DownloadResponseSerializerType`. + associatedtype SerializedObject + + /// A closure used by response handlers that takes a request, response, url and error and returns a result. + var serializeResponse: (URLRequest?, HTTPURLResponse?, URL?, Error?) -> Result { get } +} + +// MARK: - + +/// A generic `DownloadResponseSerializerType` used to serialize a request, response, and data into a serialized object. +public struct DownloadResponseSerializer: DownloadResponseSerializerProtocol { + /// The type of serialized object to be created by this `DownloadResponseSerializer`. + public typealias SerializedObject = Value + + /// A closure used by response handlers that takes a request, response, url and error and returns a result. + public var serializeResponse: (URLRequest?, HTTPURLResponse?, URL?, Error?) -> Result + + /// Initializes the `ResponseSerializer` instance with the given serialize response closure. + /// + /// - parameter serializeResponse: The closure used to serialize the response. + /// + /// - returns: The new generic response serializer instance. + public init(serializeResponse: @escaping (URLRequest?, HTTPURLResponse?, URL?, Error?) -> Result) { + self.serializeResponse = serializeResponse + } +} + +// MARK: - Timeline + +extension Request { + var timeline: Timeline { + let requestStartTime = self.startTime ?? CFAbsoluteTimeGetCurrent() + let requestCompletedTime = self.endTime ?? CFAbsoluteTimeGetCurrent() + let initialResponseTime = self.delegate.initialResponseTime ?? requestCompletedTime + + return Timeline( + requestStartTime: requestStartTime, + initialResponseTime: initialResponseTime, + requestCompletedTime: requestCompletedTime, + serializationCompletedTime: CFAbsoluteTimeGetCurrent() + ) + } +} + +// MARK: - Default + +extension DataRequest { + /// Adds a handler to be called once the request has finished. + /// + /// - parameter queue: The queue on which the completion handler is dispatched. + /// - parameter completionHandler: The code to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func response(queue: DispatchQueue? = nil, completionHandler: @escaping (DefaultDataResponse) -> Void) -> Self { + delegate.queue.addOperation { + (queue ?? DispatchQueue.main).async { + var dataResponse = DefaultDataResponse( + request: self.request, + response: self.response, + data: self.delegate.data, + error: self.delegate.error, + timeline: self.timeline + ) + + dataResponse.add(self.delegate.metrics) + + completionHandler(dataResponse) + } + } + + return self + } + + /// Adds a handler to be called once the request has finished. + /// + /// - parameter queue: The queue on which the completion handler is dispatched. + /// - parameter responseSerializer: The response serializer responsible for serializing the request, response, + /// and data. + /// - parameter completionHandler: The code to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func response( + queue: DispatchQueue? = nil, + responseSerializer: T, + completionHandler: @escaping (DataResponse) -> Void) + -> Self + { + delegate.queue.addOperation { + let result = responseSerializer.serializeResponse( + self.request, + self.response, + self.delegate.data, + self.delegate.error + ) + + var dataResponse = DataResponse( + request: self.request, + response: self.response, + data: self.delegate.data, + result: result, + timeline: self.timeline + ) + + dataResponse.add(self.delegate.metrics) + + (queue ?? DispatchQueue.main).async { completionHandler(dataResponse) } + } + + return self + } +} + +extension DownloadRequest { + /// Adds a handler to be called once the request has finished. + /// + /// - parameter queue: The queue on which the completion handler is dispatched. + /// - parameter completionHandler: The code to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func response( + queue: DispatchQueue? = nil, + completionHandler: @escaping (DefaultDownloadResponse) -> Void) + -> Self + { + delegate.queue.addOperation { + (queue ?? DispatchQueue.main).async { + var downloadResponse = DefaultDownloadResponse( + request: self.request, + response: self.response, + temporaryURL: self.downloadDelegate.temporaryURL, + destinationURL: self.downloadDelegate.destinationURL, + resumeData: self.downloadDelegate.resumeData, + error: self.downloadDelegate.error, + timeline: self.timeline + ) + + downloadResponse.add(self.delegate.metrics) + + completionHandler(downloadResponse) + } + } + + return self + } + + /// Adds a handler to be called once the request has finished. + /// + /// - parameter queue: The queue on which the completion handler is dispatched. + /// - parameter responseSerializer: The response serializer responsible for serializing the request, response, + /// and data contained in the destination url. + /// - parameter completionHandler: The code to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func response( + queue: DispatchQueue? = nil, + responseSerializer: T, + completionHandler: @escaping (DownloadResponse) -> Void) + -> Self + { + delegate.queue.addOperation { + let result = responseSerializer.serializeResponse( + self.request, + self.response, + self.downloadDelegate.fileURL, + self.downloadDelegate.error + ) + + var downloadResponse = DownloadResponse( + request: self.request, + response: self.response, + temporaryURL: self.downloadDelegate.temporaryURL, + destinationURL: self.downloadDelegate.destinationURL, + resumeData: self.downloadDelegate.resumeData, + result: result, + timeline: self.timeline + ) + + downloadResponse.add(self.delegate.metrics) + + (queue ?? DispatchQueue.main).async { completionHandler(downloadResponse) } + } + + return self + } +} + +// MARK: - Data + +extension Request { + /// Returns a result data type that contains the response data as-is. + /// + /// - parameter response: The response from the server. + /// - parameter data: The data returned from the server. + /// - parameter error: The error already encountered if it exists. + /// + /// - returns: The result data type. + public static func serializeResponseData(response: HTTPURLResponse?, data: Data?, error: Error?) -> Result { + guard error == nil else { return .failure(error!) } + + if let response = response, emptyDataStatusCodes.contains(response.statusCode) { return .success(Data()) } + + guard let validData = data else { + return .failure(AFError.responseSerializationFailed(reason: .inputDataNil)) + } + + return .success(validData) + } +} + +extension DataRequest { + /// Creates a response serializer that returns the associated data as-is. + /// + /// - returns: A data response serializer. + public static func dataResponseSerializer() -> DataResponseSerializer { + return DataResponseSerializer { _, response, data, error in + return Request.serializeResponseData(response: response, data: data, error: error) + } + } + + /// Adds a handler to be called once the request has finished. + /// + /// - parameter completionHandler: The code to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func responseData( + queue: DispatchQueue? = nil, + completionHandler: @escaping (DataResponse) -> Void) + -> Self + { + return response( + queue: queue, + responseSerializer: DataRequest.dataResponseSerializer(), + completionHandler: completionHandler + ) + } +} + +extension DownloadRequest { + /// Creates a response serializer that returns the associated data as-is. + /// + /// - returns: A data response serializer. + public static func dataResponseSerializer() -> DownloadResponseSerializer { + return DownloadResponseSerializer { _, response, fileURL, error in + guard error == nil else { return .failure(error!) } + + guard let fileURL = fileURL else { + return .failure(AFError.responseSerializationFailed(reason: .inputFileNil)) + } + + do { + let data = try Data(contentsOf: fileURL) + return Request.serializeResponseData(response: response, data: data, error: error) + } catch { + return .failure(AFError.responseSerializationFailed(reason: .inputFileReadFailed(at: fileURL))) + } + } + } + + /// Adds a handler to be called once the request has finished. + /// + /// - parameter completionHandler: The code to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func responseData( + queue: DispatchQueue? = nil, + completionHandler: @escaping (DownloadResponse) -> Void) + -> Self + { + return response( + queue: queue, + responseSerializer: DownloadRequest.dataResponseSerializer(), + completionHandler: completionHandler + ) + } +} + +// MARK: - String + +extension Request { + /// Returns a result string type initialized from the response data with the specified string encoding. + /// + /// - parameter encoding: The string encoding. If `nil`, the string encoding will be determined from the server + /// response, falling back to the default HTTP default character set, ISO-8859-1. + /// - parameter response: The response from the server. + /// - parameter data: The data returned from the server. + /// - parameter error: The error already encountered if it exists. + /// + /// - returns: The result data type. + public static func serializeResponseString( + encoding: String.Encoding?, + response: HTTPURLResponse?, + data: Data?, + error: Error?) + -> Result + { + guard error == nil else { return .failure(error!) } + + if let response = response, emptyDataStatusCodes.contains(response.statusCode) { return .success("") } + + guard let validData = data else { + return .failure(AFError.responseSerializationFailed(reason: .inputDataNil)) + } + + var convertedEncoding = encoding + + if let encodingName = response?.textEncodingName as CFString?, convertedEncoding == nil { + convertedEncoding = String.Encoding(rawValue: CFStringConvertEncodingToNSStringEncoding( + CFStringConvertIANACharSetNameToEncoding(encodingName)) + ) + } + + let actualEncoding = convertedEncoding ?? .isoLatin1 + + if let string = String(data: validData, encoding: actualEncoding) { + return .success(string) + } else { + return .failure(AFError.responseSerializationFailed(reason: .stringSerializationFailed(encoding: actualEncoding))) + } + } +} + +extension DataRequest { + /// Creates a response serializer that returns a result string type initialized from the response data with + /// the specified string encoding. + /// + /// - parameter encoding: The string encoding. If `nil`, the string encoding will be determined from the server + /// response, falling back to the default HTTP default character set, ISO-8859-1. + /// + /// - returns: A string response serializer. + public static func stringResponseSerializer(encoding: String.Encoding? = nil) -> DataResponseSerializer { + return DataResponseSerializer { _, response, data, error in + return Request.serializeResponseString(encoding: encoding, response: response, data: data, error: error) + } + } + + /// Adds a handler to be called once the request has finished. + /// + /// - parameter encoding: The string encoding. If `nil`, the string encoding will be determined from the + /// server response, falling back to the default HTTP default character set, + /// ISO-8859-1. + /// - parameter completionHandler: A closure to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func responseString( + queue: DispatchQueue? = nil, + encoding: String.Encoding? = nil, + completionHandler: @escaping (DataResponse) -> Void) + -> Self + { + return response( + queue: queue, + responseSerializer: DataRequest.stringResponseSerializer(encoding: encoding), + completionHandler: completionHandler + ) + } +} + +extension DownloadRequest { + /// Creates a response serializer that returns a result string type initialized from the response data with + /// the specified string encoding. + /// + /// - parameter encoding: The string encoding. If `nil`, the string encoding will be determined from the server + /// response, falling back to the default HTTP default character set, ISO-8859-1. + /// + /// - returns: A string response serializer. + public static func stringResponseSerializer(encoding: String.Encoding? = nil) -> DownloadResponseSerializer { + return DownloadResponseSerializer { _, response, fileURL, error in + guard error == nil else { return .failure(error!) } + + guard let fileURL = fileURL else { + return .failure(AFError.responseSerializationFailed(reason: .inputFileNil)) + } + + do { + let data = try Data(contentsOf: fileURL) + return Request.serializeResponseString(encoding: encoding, response: response, data: data, error: error) + } catch { + return .failure(AFError.responseSerializationFailed(reason: .inputFileReadFailed(at: fileURL))) + } + } + } + + /// Adds a handler to be called once the request has finished. + /// + /// - parameter encoding: The string encoding. If `nil`, the string encoding will be determined from the + /// server response, falling back to the default HTTP default character set, + /// ISO-8859-1. + /// - parameter completionHandler: A closure to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func responseString( + queue: DispatchQueue? = nil, + encoding: String.Encoding? = nil, + completionHandler: @escaping (DownloadResponse) -> Void) + -> Self + { + return response( + queue: queue, + responseSerializer: DownloadRequest.stringResponseSerializer(encoding: encoding), + completionHandler: completionHandler + ) + } +} + +// MARK: - JSON + +extension Request { + /// Returns a JSON object contained in a result type constructed from the response data using `JSONSerialization` + /// with the specified reading options. + /// + /// - parameter options: The JSON serialization reading options. Defaults to `.allowFragments`. + /// - parameter response: The response from the server. + /// - parameter data: The data returned from the server. + /// - parameter error: The error already encountered if it exists. + /// + /// - returns: The result data type. + public static func serializeResponseJSON( + options: JSONSerialization.ReadingOptions, + response: HTTPURLResponse?, + data: Data?, + error: Error?) + -> Result + { + guard error == nil else { return .failure(error!) } + + if let response = response, emptyDataStatusCodes.contains(response.statusCode) { return .success(NSNull()) } + + guard let validData = data, validData.count > 0 else { + return .failure(AFError.responseSerializationFailed(reason: .inputDataNilOrZeroLength)) + } + + do { + let json = try JSONSerialization.jsonObject(with: validData, options: options) + return .success(json) + } catch { + return .failure(AFError.responseSerializationFailed(reason: .jsonSerializationFailed(error: error))) + } + } +} + +extension DataRequest { + /// Creates a response serializer that returns a JSON object result type constructed from the response data using + /// `JSONSerialization` with the specified reading options. + /// + /// - parameter options: The JSON serialization reading options. Defaults to `.allowFragments`. + /// + /// - returns: A JSON object response serializer. + public static func jsonResponseSerializer( + options: JSONSerialization.ReadingOptions = .allowFragments) + -> DataResponseSerializer + { + return DataResponseSerializer { _, response, data, error in + return Request.serializeResponseJSON(options: options, response: response, data: data, error: error) + } + } + + /// Adds a handler to be called once the request has finished. + /// + /// - parameter options: The JSON serialization reading options. Defaults to `.allowFragments`. + /// - parameter completionHandler: A closure to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func responseJSON( + queue: DispatchQueue? = nil, + options: JSONSerialization.ReadingOptions = .allowFragments, + completionHandler: @escaping (DataResponse) -> Void) + -> Self + { + return response( + queue: queue, + responseSerializer: DataRequest.jsonResponseSerializer(options: options), + completionHandler: completionHandler + ) + } +} + +extension DownloadRequest { + /// Creates a response serializer that returns a JSON object result type constructed from the response data using + /// `JSONSerialization` with the specified reading options. + /// + /// - parameter options: The JSON serialization reading options. Defaults to `.allowFragments`. + /// + /// - returns: A JSON object response serializer. + public static func jsonResponseSerializer( + options: JSONSerialization.ReadingOptions = .allowFragments) + -> DownloadResponseSerializer + { + return DownloadResponseSerializer { _, response, fileURL, error in + guard error == nil else { return .failure(error!) } + + guard let fileURL = fileURL else { + return .failure(AFError.responseSerializationFailed(reason: .inputFileNil)) + } + + do { + let data = try Data(contentsOf: fileURL) + return Request.serializeResponseJSON(options: options, response: response, data: data, error: error) + } catch { + return .failure(AFError.responseSerializationFailed(reason: .inputFileReadFailed(at: fileURL))) + } + } + } + + /// Adds a handler to be called once the request has finished. + /// + /// - parameter options: The JSON serialization reading options. Defaults to `.allowFragments`. + /// - parameter completionHandler: A closure to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func responseJSON( + queue: DispatchQueue? = nil, + options: JSONSerialization.ReadingOptions = .allowFragments, + completionHandler: @escaping (DownloadResponse) -> Void) + -> Self + { + return response( + queue: queue, + responseSerializer: DownloadRequest.jsonResponseSerializer(options: options), + completionHandler: completionHandler + ) + } +} + +// MARK: - Property List + +extension Request { + /// Returns a plist object contained in a result type constructed from the response data using + /// `PropertyListSerialization` with the specified reading options. + /// + /// - parameter options: The property list reading options. Defaults to `[]`. + /// - parameter response: The response from the server. + /// - parameter data: The data returned from the server. + /// - parameter error: The error already encountered if it exists. + /// + /// - returns: The result data type. + public static func serializeResponsePropertyList( + options: PropertyListSerialization.ReadOptions, + response: HTTPURLResponse?, + data: Data?, + error: Error?) + -> Result + { + guard error == nil else { return .failure(error!) } + + if let response = response, emptyDataStatusCodes.contains(response.statusCode) { return .success(NSNull()) } + + guard let validData = data, validData.count > 0 else { + return .failure(AFError.responseSerializationFailed(reason: .inputDataNilOrZeroLength)) + } + + do { + let plist = try PropertyListSerialization.propertyList(from: validData, options: options, format: nil) + return .success(plist) + } catch { + return .failure(AFError.responseSerializationFailed(reason: .propertyListSerializationFailed(error: error))) + } + } +} + +extension DataRequest { + /// Creates a response serializer that returns an object constructed from the response data using + /// `PropertyListSerialization` with the specified reading options. + /// + /// - parameter options: The property list reading options. Defaults to `[]`. + /// + /// - returns: A property list object response serializer. + public static func propertyListResponseSerializer( + options: PropertyListSerialization.ReadOptions = []) + -> DataResponseSerializer + { + return DataResponseSerializer { _, response, data, error in + return Request.serializeResponsePropertyList(options: options, response: response, data: data, error: error) + } + } + + /// Adds a handler to be called once the request has finished. + /// + /// - parameter options: The property list reading options. Defaults to `[]`. + /// - parameter completionHandler: A closure to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func responsePropertyList( + queue: DispatchQueue? = nil, + options: PropertyListSerialization.ReadOptions = [], + completionHandler: @escaping (DataResponse) -> Void) + -> Self + { + return response( + queue: queue, + responseSerializer: DataRequest.propertyListResponseSerializer(options: options), + completionHandler: completionHandler + ) + } +} + +extension DownloadRequest { + /// Creates a response serializer that returns an object constructed from the response data using + /// `PropertyListSerialization` with the specified reading options. + /// + /// - parameter options: The property list reading options. Defaults to `[]`. + /// + /// - returns: A property list object response serializer. + public static func propertyListResponseSerializer( + options: PropertyListSerialization.ReadOptions = []) + -> DownloadResponseSerializer + { + return DownloadResponseSerializer { _, response, fileURL, error in + guard error == nil else { return .failure(error!) } + + guard let fileURL = fileURL else { + return .failure(AFError.responseSerializationFailed(reason: .inputFileNil)) + } + + do { + let data = try Data(contentsOf: fileURL) + return Request.serializeResponsePropertyList(options: options, response: response, data: data, error: error) + } catch { + return .failure(AFError.responseSerializationFailed(reason: .inputFileReadFailed(at: fileURL))) + } + } + } + + /// Adds a handler to be called once the request has finished. + /// + /// - parameter options: The property list reading options. Defaults to `[]`. + /// - parameter completionHandler: A closure to be executed once the request has finished. + /// + /// - returns: The request. + @discardableResult + public func responsePropertyList( + queue: DispatchQueue? = nil, + options: PropertyListSerialization.ReadOptions = [], + completionHandler: @escaping (DownloadResponse) -> Void) + -> Self + { + return response( + queue: queue, + responseSerializer: DownloadRequest.propertyListResponseSerializer(options: options), + completionHandler: completionHandler + ) + } +} + +/// A set of HTTP response status code that do not contain response data. +private let emptyDataStatusCodes: Set = [204, 205] diff --git a/Santander/Pods/Alamofire/Source/Result.swift b/Santander/Pods/Alamofire/Source/Result.swift new file mode 100644 index 00000000..95aba9bb --- /dev/null +++ b/Santander/Pods/Alamofire/Source/Result.swift @@ -0,0 +1,300 @@ +// +// Result.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// Used to represent whether a request was successful or encountered an error. +/// +/// - success: The request and all post processing operations were successful resulting in the serialization of the +/// provided associated value. +/// +/// - failure: The request encountered an error resulting in a failure. The associated values are the original data +/// provided by the server as well as the error that caused the failure. +public enum Result { + case success(Value) + case failure(Error) + + /// Returns `true` if the result is a success, `false` otherwise. + public var isSuccess: Bool { + switch self { + case .success: + return true + case .failure: + return false + } + } + + /// Returns `true` if the result is a failure, `false` otherwise. + public var isFailure: Bool { + return !isSuccess + } + + /// Returns the associated value if the result is a success, `nil` otherwise. + public var value: Value? { + switch self { + case .success(let value): + return value + case .failure: + return nil + } + } + + /// Returns the associated error value if the result is a failure, `nil` otherwise. + public var error: Error? { + switch self { + case .success: + return nil + case .failure(let error): + return error + } + } +} + +// MARK: - CustomStringConvertible + +extension Result: CustomStringConvertible { + /// The textual representation used when written to an output stream, which includes whether the result was a + /// success or failure. + public var description: String { + switch self { + case .success: + return "SUCCESS" + case .failure: + return "FAILURE" + } + } +} + +// MARK: - CustomDebugStringConvertible + +extension Result: CustomDebugStringConvertible { + /// The debug textual representation used when written to an output stream, which includes whether the result was a + /// success or failure in addition to the value or error. + public var debugDescription: String { + switch self { + case .success(let value): + return "SUCCESS: \(value)" + case .failure(let error): + return "FAILURE: \(error)" + } + } +} + +// MARK: - Functional APIs + +extension Result { + /// Creates a `Result` instance from the result of a closure. + /// + /// A failure result is created when the closure throws, and a success result is created when the closure + /// succeeds without throwing an error. + /// + /// func someString() throws -> String { ... } + /// + /// let result = Result(value: { + /// return try someString() + /// }) + /// + /// // The type of result is Result + /// + /// The trailing closure syntax is also supported: + /// + /// let result = Result { try someString() } + /// + /// - parameter value: The closure to execute and create the result for. + public init(value: () throws -> Value) { + do { + self = try .success(value()) + } catch { + self = .failure(error) + } + } + + /// Returns the success value, or throws the failure error. + /// + /// let possibleString: Result = .success("success") + /// try print(possibleString.unwrap()) + /// // Prints "success" + /// + /// let noString: Result = .failure(error) + /// try print(noString.unwrap()) + /// // Throws error + public func unwrap() throws -> Value { + switch self { + case .success(let value): + return value + case .failure(let error): + throw error + } + } + + /// Evaluates the specified closure when the `Result` is a success, passing the unwrapped value as a parameter. + /// + /// Use the `map` method with a closure that does not throw. For example: + /// + /// let possibleData: Result = .success(Data()) + /// let possibleInt = possibleData.map { $0.count } + /// try print(possibleInt.unwrap()) + /// // Prints "0" + /// + /// let noData: Result = .failure(error) + /// let noInt = noData.map { $0.count } + /// try print(noInt.unwrap()) + /// // Throws error + /// + /// - parameter transform: A closure that takes the success value of the `Result` instance. + /// + /// - returns: A `Result` containing the result of the given closure. If this instance is a failure, returns the + /// same failure. + public func map(_ transform: (Value) -> T) -> Result { + switch self { + case .success(let value): + return .success(transform(value)) + case .failure(let error): + return .failure(error) + } + } + + /// Evaluates the specified closure when the `Result` is a success, passing the unwrapped value as a parameter. + /// + /// Use the `flatMap` method with a closure that may throw an error. For example: + /// + /// let possibleData: Result = .success(Data(...)) + /// let possibleObject = possibleData.flatMap { + /// try JSONSerialization.jsonObject(with: $0) + /// } + /// + /// - parameter transform: A closure that takes the success value of the instance. + /// + /// - returns: A `Result` containing the result of the given closure. If this instance is a failure, returns the + /// same failure. + public func flatMap(_ transform: (Value) throws -> T) -> Result { + switch self { + case .success(let value): + do { + return try .success(transform(value)) + } catch { + return .failure(error) + } + case .failure(let error): + return .failure(error) + } + } + + /// Evaluates the specified closure when the `Result` is a failure, passing the unwrapped error as a parameter. + /// + /// Use the `mapError` function with a closure that does not throw. For example: + /// + /// let possibleData: Result = .failure(someError) + /// let withMyError: Result = possibleData.mapError { MyError.error($0) } + /// + /// - Parameter transform: A closure that takes the error of the instance. + /// - Returns: A `Result` instance containing the result of the transform. If this instance is a success, returns + /// the same instance. + public func mapError(_ transform: (Error) -> T) -> Result { + switch self { + case .failure(let error): + return .failure(transform(error)) + case .success: + return self + } + } + + /// Evaluates the specified closure when the `Result` is a failure, passing the unwrapped error as a parameter. + /// + /// Use the `flatMapError` function with a closure that may throw an error. For example: + /// + /// let possibleData: Result = .success(Data(...)) + /// let possibleObject = possibleData.flatMapError { + /// try someFailableFunction(taking: $0) + /// } + /// + /// - Parameter transform: A throwing closure that takes the error of the instance. + /// + /// - Returns: A `Result` instance containing the result of the transform. If this instance is a success, returns + /// the same instance. + public func flatMapError(_ transform: (Error) throws -> T) -> Result { + switch self { + case .failure(let error): + do { + return try .failure(transform(error)) + } catch { + return .failure(error) + } + case .success: + return self + } + } + + /// Evaluates the specified closure when the `Result` is a success, passing the unwrapped value as a parameter. + /// + /// Use the `withValue` function to evaluate the passed closure without modifying the `Result` instance. + /// + /// - Parameter closure: A closure that takes the success value of this instance. + /// - Returns: This `Result` instance, unmodified. + @discardableResult + public func withValue(_ closure: (Value) throws -> Void) rethrows -> Result { + if case let .success(value) = self { try closure(value) } + + return self + } + + /// Evaluates the specified closure when the `Result` is a failure, passing the unwrapped error as a parameter. + /// + /// Use the `withError` function to evaluate the passed closure without modifying the `Result` instance. + /// + /// - Parameter closure: A closure that takes the success value of this instance. + /// - Returns: This `Result` instance, unmodified. + @discardableResult + public func withError(_ closure: (Error) throws -> Void) rethrows -> Result { + if case let .failure(error) = self { try closure(error) } + + return self + } + + /// Evaluates the specified closure when the `Result` is a success. + /// + /// Use the `ifSuccess` function to evaluate the passed closure without modifying the `Result` instance. + /// + /// - Parameter closure: A `Void` closure. + /// - Returns: This `Result` instance, unmodified. + @discardableResult + public func ifSuccess(_ closure: () throws -> Void) rethrows -> Result { + if isSuccess { try closure() } + + return self + } + + /// Evaluates the specified closure when the `Result` is a failure. + /// + /// Use the `ifFailure` function to evaluate the passed closure without modifying the `Result` instance. + /// + /// - Parameter closure: A `Void` closure. + /// - Returns: This `Result` instance, unmodified. + @discardableResult + public func ifFailure(_ closure: () throws -> Void) rethrows -> Result { + if isFailure { try closure() } + + return self + } +} diff --git a/Santander/Pods/Alamofire/Source/ServerTrustPolicy.swift b/Santander/Pods/Alamofire/Source/ServerTrustPolicy.swift new file mode 100644 index 00000000..7f44c8d2 --- /dev/null +++ b/Santander/Pods/Alamofire/Source/ServerTrustPolicy.swift @@ -0,0 +1,307 @@ +// +// ServerTrustPolicy.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// Responsible for managing the mapping of `ServerTrustPolicy` objects to a given host. +open class ServerTrustPolicyManager { + /// The dictionary of policies mapped to a particular host. + public let policies: [String: ServerTrustPolicy] + + /// Initializes the `ServerTrustPolicyManager` instance with the given policies. + /// + /// Since different servers and web services can have different leaf certificates, intermediate and even root + /// certficates, it is important to have the flexibility to specify evaluation policies on a per host basis. This + /// allows for scenarios such as using default evaluation for host1, certificate pinning for host2, public key + /// pinning for host3 and disabling evaluation for host4. + /// + /// - parameter policies: A dictionary of all policies mapped to a particular host. + /// + /// - returns: The new `ServerTrustPolicyManager` instance. + public init(policies: [String: ServerTrustPolicy]) { + self.policies = policies + } + + /// Returns the `ServerTrustPolicy` for the given host if applicable. + /// + /// By default, this method will return the policy that perfectly matches the given host. Subclasses could override + /// this method and implement more complex mapping implementations such as wildcards. + /// + /// - parameter host: The host to use when searching for a matching policy. + /// + /// - returns: The server trust policy for the given host if found. + open func serverTrustPolicy(forHost host: String) -> ServerTrustPolicy? { + return policies[host] + } +} + +// MARK: - + +extension URLSession { + private struct AssociatedKeys { + static var managerKey = "URLSession.ServerTrustPolicyManager" + } + + var serverTrustPolicyManager: ServerTrustPolicyManager? { + get { + return objc_getAssociatedObject(self, &AssociatedKeys.managerKey) as? ServerTrustPolicyManager + } + set (manager) { + objc_setAssociatedObject(self, &AssociatedKeys.managerKey, manager, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) + } + } +} + +// MARK: - ServerTrustPolicy + +/// The `ServerTrustPolicy` evaluates the server trust generally provided by an `NSURLAuthenticationChallenge` when +/// connecting to a server over a secure HTTPS connection. The policy configuration then evaluates the server trust +/// with a given set of criteria to determine whether the server trust is valid and the connection should be made. +/// +/// Using pinned certificates or public keys for evaluation helps prevent man-in-the-middle (MITM) attacks and other +/// vulnerabilities. Applications dealing with sensitive customer data or financial information are strongly encouraged +/// to route all communication over an HTTPS connection with pinning enabled. +/// +/// - performDefaultEvaluation: Uses the default server trust evaluation while allowing you to control whether to +/// validate the host provided by the challenge. Applications are encouraged to always +/// validate the host in production environments to guarantee the validity of the server's +/// certificate chain. +/// +/// - performRevokedEvaluation: Uses the default and revoked server trust evaluations allowing you to control whether to +/// validate the host provided by the challenge as well as specify the revocation flags for +/// testing for revoked certificates. Apple platforms did not start testing for revoked +/// certificates automatically until iOS 10.1, macOS 10.12 and tvOS 10.1 which is +/// demonstrated in our TLS tests. Applications are encouraged to always validate the host +/// in production environments to guarantee the validity of the server's certificate chain. +/// +/// - pinCertificates: Uses the pinned certificates to validate the server trust. The server trust is +/// considered valid if one of the pinned certificates match one of the server certificates. +/// By validating both the certificate chain and host, certificate pinning provides a very +/// secure form of server trust validation mitigating most, if not all, MITM attacks. +/// Applications are encouraged to always validate the host and require a valid certificate +/// chain in production environments. +/// +/// - pinPublicKeys: Uses the pinned public keys to validate the server trust. The server trust is considered +/// valid if one of the pinned public keys match one of the server certificate public keys. +/// By validating both the certificate chain and host, public key pinning provides a very +/// secure form of server trust validation mitigating most, if not all, MITM attacks. +/// Applications are encouraged to always validate the host and require a valid certificate +/// chain in production environments. +/// +/// - disableEvaluation: Disables all evaluation which in turn will always consider any server trust as valid. +/// +/// - customEvaluation: Uses the associated closure to evaluate the validity of the server trust. +public enum ServerTrustPolicy { + case performDefaultEvaluation(validateHost: Bool) + case performRevokedEvaluation(validateHost: Bool, revocationFlags: CFOptionFlags) + case pinCertificates(certificates: [SecCertificate], validateCertificateChain: Bool, validateHost: Bool) + case pinPublicKeys(publicKeys: [SecKey], validateCertificateChain: Bool, validateHost: Bool) + case disableEvaluation + case customEvaluation((_ serverTrust: SecTrust, _ host: String) -> Bool) + + // MARK: - Bundle Location + + /// Returns all certificates within the given bundle with a `.cer` file extension. + /// + /// - parameter bundle: The bundle to search for all `.cer` files. + /// + /// - returns: All certificates within the given bundle. + public static func certificates(in bundle: Bundle = Bundle.main) -> [SecCertificate] { + var certificates: [SecCertificate] = [] + + let paths = Set([".cer", ".CER", ".crt", ".CRT", ".der", ".DER"].map { fileExtension in + bundle.paths(forResourcesOfType: fileExtension, inDirectory: nil) + }.joined()) + + for path in paths { + if + let certificateData = try? Data(contentsOf: URL(fileURLWithPath: path)) as CFData, + let certificate = SecCertificateCreateWithData(nil, certificateData) + { + certificates.append(certificate) + } + } + + return certificates + } + + /// Returns all public keys within the given bundle with a `.cer` file extension. + /// + /// - parameter bundle: The bundle to search for all `*.cer` files. + /// + /// - returns: All public keys within the given bundle. + public static func publicKeys(in bundle: Bundle = Bundle.main) -> [SecKey] { + var publicKeys: [SecKey] = [] + + for certificate in certificates(in: bundle) { + if let publicKey = publicKey(for: certificate) { + publicKeys.append(publicKey) + } + } + + return publicKeys + } + + // MARK: - Evaluation + + /// Evaluates whether the server trust is valid for the given host. + /// + /// - parameter serverTrust: The server trust to evaluate. + /// - parameter host: The host of the challenge protection space. + /// + /// - returns: Whether the server trust is valid. + public func evaluate(_ serverTrust: SecTrust, forHost host: String) -> Bool { + var serverTrustIsValid = false + + switch self { + case let .performDefaultEvaluation(validateHost): + let policy = SecPolicyCreateSSL(true, validateHost ? host as CFString : nil) + SecTrustSetPolicies(serverTrust, policy) + + serverTrustIsValid = trustIsValid(serverTrust) + case let .performRevokedEvaluation(validateHost, revocationFlags): + let defaultPolicy = SecPolicyCreateSSL(true, validateHost ? host as CFString : nil) + let revokedPolicy = SecPolicyCreateRevocation(revocationFlags) + SecTrustSetPolicies(serverTrust, [defaultPolicy, revokedPolicy] as CFTypeRef) + + serverTrustIsValid = trustIsValid(serverTrust) + case let .pinCertificates(pinnedCertificates, validateCertificateChain, validateHost): + if validateCertificateChain { + let policy = SecPolicyCreateSSL(true, validateHost ? host as CFString : nil) + SecTrustSetPolicies(serverTrust, policy) + + SecTrustSetAnchorCertificates(serverTrust, pinnedCertificates as CFArray) + SecTrustSetAnchorCertificatesOnly(serverTrust, true) + + serverTrustIsValid = trustIsValid(serverTrust) + } else { + let serverCertificatesDataArray = certificateData(for: serverTrust) + let pinnedCertificatesDataArray = certificateData(for: pinnedCertificates) + + outerLoop: for serverCertificateData in serverCertificatesDataArray { + for pinnedCertificateData in pinnedCertificatesDataArray { + if serverCertificateData == pinnedCertificateData { + serverTrustIsValid = true + break outerLoop + } + } + } + } + case let .pinPublicKeys(pinnedPublicKeys, validateCertificateChain, validateHost): + var certificateChainEvaluationPassed = true + + if validateCertificateChain { + let policy = SecPolicyCreateSSL(true, validateHost ? host as CFString : nil) + SecTrustSetPolicies(serverTrust, policy) + + certificateChainEvaluationPassed = trustIsValid(serverTrust) + } + + if certificateChainEvaluationPassed { + outerLoop: for serverPublicKey in ServerTrustPolicy.publicKeys(for: serverTrust) as [AnyObject] { + for pinnedPublicKey in pinnedPublicKeys as [AnyObject] { + if serverPublicKey.isEqual(pinnedPublicKey) { + serverTrustIsValid = true + break outerLoop + } + } + } + } + case .disableEvaluation: + serverTrustIsValid = true + case let .customEvaluation(closure): + serverTrustIsValid = closure(serverTrust, host) + } + + return serverTrustIsValid + } + + // MARK: - Private - Trust Validation + + private func trustIsValid(_ trust: SecTrust) -> Bool { + var isValid = false + + var result = SecTrustResultType.invalid + let status = SecTrustEvaluate(trust, &result) + + if status == errSecSuccess { + let unspecified = SecTrustResultType.unspecified + let proceed = SecTrustResultType.proceed + + + isValid = result == unspecified || result == proceed + } + + return isValid + } + + // MARK: - Private - Certificate Data + + private func certificateData(for trust: SecTrust) -> [Data] { + var certificates: [SecCertificate] = [] + + for index in 0.. [Data] { + return certificates.map { SecCertificateCopyData($0) as Data } + } + + // MARK: - Private - Public Key Extraction + + private static func publicKeys(for trust: SecTrust) -> [SecKey] { + var publicKeys: [SecKey] = [] + + for index in 0.. SecKey? { + var publicKey: SecKey? + + let policy = SecPolicyCreateBasicX509() + var trust: SecTrust? + let trustCreationStatus = SecTrustCreateWithCertificates(certificate, policy, &trust) + + if let trust = trust, trustCreationStatus == errSecSuccess { + publicKey = SecTrustCopyPublicKey(trust) + } + + return publicKey + } +} diff --git a/Santander/Pods/Alamofire/Source/SessionDelegate.swift b/Santander/Pods/Alamofire/Source/SessionDelegate.swift new file mode 100644 index 00000000..03bcb7ce --- /dev/null +++ b/Santander/Pods/Alamofire/Source/SessionDelegate.swift @@ -0,0 +1,725 @@ +// +// SessionDelegate.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// Responsible for handling all delegate callbacks for the underlying session. +open class SessionDelegate: NSObject { + + // MARK: URLSessionDelegate Overrides + + /// Overrides default behavior for URLSessionDelegate method `urlSession(_:didBecomeInvalidWithError:)`. + open var sessionDidBecomeInvalidWithError: ((URLSession, Error?) -> Void)? + + /// Overrides default behavior for URLSessionDelegate method `urlSession(_:didReceive:completionHandler:)`. + open var sessionDidReceiveChallenge: ((URLSession, URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?))? + + /// Overrides all behavior for URLSessionDelegate method `urlSession(_:didReceive:completionHandler:)` and requires the caller to call the `completionHandler`. + open var sessionDidReceiveChallengeWithCompletion: ((URLSession, URLAuthenticationChallenge, @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)? + + /// Overrides default behavior for URLSessionDelegate method `urlSessionDidFinishEvents(forBackgroundURLSession:)`. + open var sessionDidFinishEventsForBackgroundURLSession: ((URLSession) -> Void)? + + // MARK: URLSessionTaskDelegate Overrides + + /// Overrides default behavior for URLSessionTaskDelegate method `urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:)`. + open var taskWillPerformHTTPRedirection: ((URLSession, URLSessionTask, HTTPURLResponse, URLRequest) -> URLRequest?)? + + /// Overrides all behavior for URLSessionTaskDelegate method `urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:)` and + /// requires the caller to call the `completionHandler`. + open var taskWillPerformHTTPRedirectionWithCompletion: ((URLSession, URLSessionTask, HTTPURLResponse, URLRequest, @escaping (URLRequest?) -> Void) -> Void)? + + /// Overrides default behavior for URLSessionTaskDelegate method `urlSession(_:task:didReceive:completionHandler:)`. + open var taskDidReceiveChallenge: ((URLSession, URLSessionTask, URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?))? + + /// Overrides all behavior for URLSessionTaskDelegate method `urlSession(_:task:didReceive:completionHandler:)` and + /// requires the caller to call the `completionHandler`. + open var taskDidReceiveChallengeWithCompletion: ((URLSession, URLSessionTask, URLAuthenticationChallenge, @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)? + + /// Overrides default behavior for URLSessionTaskDelegate method `urlSession(_:task:needNewBodyStream:)`. + open var taskNeedNewBodyStream: ((URLSession, URLSessionTask) -> InputStream?)? + + /// Overrides all behavior for URLSessionTaskDelegate method `urlSession(_:task:needNewBodyStream:)` and + /// requires the caller to call the `completionHandler`. + open var taskNeedNewBodyStreamWithCompletion: ((URLSession, URLSessionTask, @escaping (InputStream?) -> Void) -> Void)? + + /// Overrides default behavior for URLSessionTaskDelegate method `urlSession(_:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:)`. + open var taskDidSendBodyData: ((URLSession, URLSessionTask, Int64, Int64, Int64) -> Void)? + + /// Overrides default behavior for URLSessionTaskDelegate method `urlSession(_:task:didCompleteWithError:)`. + open var taskDidComplete: ((URLSession, URLSessionTask, Error?) -> Void)? + + // MARK: URLSessionDataDelegate Overrides + + /// Overrides default behavior for URLSessionDataDelegate method `urlSession(_:dataTask:didReceive:completionHandler:)`. + open var dataTaskDidReceiveResponse: ((URLSession, URLSessionDataTask, URLResponse) -> URLSession.ResponseDisposition)? + + /// Overrides all behavior for URLSessionDataDelegate method `urlSession(_:dataTask:didReceive:completionHandler:)` and + /// requires caller to call the `completionHandler`. + open var dataTaskDidReceiveResponseWithCompletion: ((URLSession, URLSessionDataTask, URLResponse, @escaping (URLSession.ResponseDisposition) -> Void) -> Void)? + + /// Overrides default behavior for URLSessionDataDelegate method `urlSession(_:dataTask:didBecome:)`. + open var dataTaskDidBecomeDownloadTask: ((URLSession, URLSessionDataTask, URLSessionDownloadTask) -> Void)? + + /// Overrides default behavior for URLSessionDataDelegate method `urlSession(_:dataTask:didReceive:)`. + open var dataTaskDidReceiveData: ((URLSession, URLSessionDataTask, Data) -> Void)? + + /// Overrides default behavior for URLSessionDataDelegate method `urlSession(_:dataTask:willCacheResponse:completionHandler:)`. + open var dataTaskWillCacheResponse: ((URLSession, URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)? + + /// Overrides all behavior for URLSessionDataDelegate method `urlSession(_:dataTask:willCacheResponse:completionHandler:)` and + /// requires caller to call the `completionHandler`. + open var dataTaskWillCacheResponseWithCompletion: ((URLSession, URLSessionDataTask, CachedURLResponse, @escaping (CachedURLResponse?) -> Void) -> Void)? + + // MARK: URLSessionDownloadDelegate Overrides + + /// Overrides default behavior for URLSessionDownloadDelegate method `urlSession(_:downloadTask:didFinishDownloadingTo:)`. + open var downloadTaskDidFinishDownloadingToURL: ((URLSession, URLSessionDownloadTask, URL) -> Void)? + + /// Overrides default behavior for URLSessionDownloadDelegate method `urlSession(_:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:)`. + open var downloadTaskDidWriteData: ((URLSession, URLSessionDownloadTask, Int64, Int64, Int64) -> Void)? + + /// Overrides default behavior for URLSessionDownloadDelegate method `urlSession(_:downloadTask:didResumeAtOffset:expectedTotalBytes:)`. + open var downloadTaskDidResumeAtOffset: ((URLSession, URLSessionDownloadTask, Int64, Int64) -> Void)? + + // MARK: URLSessionStreamDelegate Overrides + +#if !os(watchOS) + + /// Overrides default behavior for URLSessionStreamDelegate method `urlSession(_:readClosedFor:)`. + @available(iOS 9.0, macOS 10.11, tvOS 9.0, *) + open var streamTaskReadClosed: ((URLSession, URLSessionStreamTask) -> Void)? { + get { + return _streamTaskReadClosed as? (URLSession, URLSessionStreamTask) -> Void + } + set { + _streamTaskReadClosed = newValue + } + } + + /// Overrides default behavior for URLSessionStreamDelegate method `urlSession(_:writeClosedFor:)`. + @available(iOS 9.0, macOS 10.11, tvOS 9.0, *) + open var streamTaskWriteClosed: ((URLSession, URLSessionStreamTask) -> Void)? { + get { + return _streamTaskWriteClosed as? (URLSession, URLSessionStreamTask) -> Void + } + set { + _streamTaskWriteClosed = newValue + } + } + + /// Overrides default behavior for URLSessionStreamDelegate method `urlSession(_:betterRouteDiscoveredFor:)`. + @available(iOS 9.0, macOS 10.11, tvOS 9.0, *) + open var streamTaskBetterRouteDiscovered: ((URLSession, URLSessionStreamTask) -> Void)? { + get { + return _streamTaskBetterRouteDiscovered as? (URLSession, URLSessionStreamTask) -> Void + } + set { + _streamTaskBetterRouteDiscovered = newValue + } + } + + /// Overrides default behavior for URLSessionStreamDelegate method `urlSession(_:streamTask:didBecome:outputStream:)`. + @available(iOS 9.0, macOS 10.11, tvOS 9.0, *) + open var streamTaskDidBecomeInputAndOutputStreams: ((URLSession, URLSessionStreamTask, InputStream, OutputStream) -> Void)? { + get { + return _streamTaskDidBecomeInputStream as? (URLSession, URLSessionStreamTask, InputStream, OutputStream) -> Void + } + set { + _streamTaskDidBecomeInputStream = newValue + } + } + + var _streamTaskReadClosed: Any? + var _streamTaskWriteClosed: Any? + var _streamTaskBetterRouteDiscovered: Any? + var _streamTaskDidBecomeInputStream: Any? + +#endif + + // MARK: Properties + + var retrier: RequestRetrier? + weak var sessionManager: SessionManager? + + var requests: [Int: Request] = [:] + private let lock = NSLock() + + /// Access the task delegate for the specified task in a thread-safe manner. + open subscript(task: URLSessionTask) -> Request? { + get { + lock.lock() ; defer { lock.unlock() } + return requests[task.taskIdentifier] + } + set { + lock.lock() ; defer { lock.unlock() } + requests[task.taskIdentifier] = newValue + } + } + + // MARK: Lifecycle + + /// Initializes the `SessionDelegate` instance. + /// + /// - returns: The new `SessionDelegate` instance. + public override init() { + super.init() + } + + // MARK: NSObject Overrides + + /// Returns a `Bool` indicating whether the `SessionDelegate` implements or inherits a method that can respond + /// to a specified message. + /// + /// - parameter selector: A selector that identifies a message. + /// + /// - returns: `true` if the receiver implements or inherits a method that can respond to selector, otherwise `false`. + open override func responds(to selector: Selector) -> Bool { + #if !os(macOS) + if selector == #selector(URLSessionDelegate.urlSessionDidFinishEvents(forBackgroundURLSession:)) { + return sessionDidFinishEventsForBackgroundURLSession != nil + } + #endif + + #if !os(watchOS) + if #available(iOS 9.0, macOS 10.11, tvOS 9.0, *) { + switch selector { + case #selector(URLSessionStreamDelegate.urlSession(_:readClosedFor:)): + return streamTaskReadClosed != nil + case #selector(URLSessionStreamDelegate.urlSession(_:writeClosedFor:)): + return streamTaskWriteClosed != nil + case #selector(URLSessionStreamDelegate.urlSession(_:betterRouteDiscoveredFor:)): + return streamTaskBetterRouteDiscovered != nil + case #selector(URLSessionStreamDelegate.urlSession(_:streamTask:didBecome:outputStream:)): + return streamTaskDidBecomeInputAndOutputStreams != nil + default: + break + } + } + #endif + + switch selector { + case #selector(URLSessionDelegate.urlSession(_:didBecomeInvalidWithError:)): + return sessionDidBecomeInvalidWithError != nil + case #selector(URLSessionDelegate.urlSession(_:didReceive:completionHandler:)): + return (sessionDidReceiveChallenge != nil || sessionDidReceiveChallengeWithCompletion != nil) + case #selector(URLSessionTaskDelegate.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:)): + return (taskWillPerformHTTPRedirection != nil || taskWillPerformHTTPRedirectionWithCompletion != nil) + case #selector(URLSessionDataDelegate.urlSession(_:dataTask:didReceive:completionHandler:)): + return (dataTaskDidReceiveResponse != nil || dataTaskDidReceiveResponseWithCompletion != nil) + default: + return type(of: self).instancesRespond(to: selector) + } + } +} + +// MARK: - URLSessionDelegate + +extension SessionDelegate: URLSessionDelegate { + /// Tells the delegate that the session has been invalidated. + /// + /// - parameter session: The session object that was invalidated. + /// - parameter error: The error that caused invalidation, or nil if the invalidation was explicit. + open func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) { + sessionDidBecomeInvalidWithError?(session, error) + } + + /// Requests credentials from the delegate in response to a session-level authentication request from the + /// remote server. + /// + /// - parameter session: The session containing the task that requested authentication. + /// - parameter challenge: An object that contains the request for authentication. + /// - parameter completionHandler: A handler that your delegate method must call providing the disposition + /// and credential. + open func urlSession( + _ session: URLSession, + didReceive challenge: URLAuthenticationChallenge, + completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) + { + guard sessionDidReceiveChallengeWithCompletion == nil else { + sessionDidReceiveChallengeWithCompletion?(session, challenge, completionHandler) + return + } + + var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling + var credential: URLCredential? + + if let sessionDidReceiveChallenge = sessionDidReceiveChallenge { + (disposition, credential) = sessionDidReceiveChallenge(session, challenge) + } else if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust { + let host = challenge.protectionSpace.host + + if + let serverTrustPolicy = session.serverTrustPolicyManager?.serverTrustPolicy(forHost: host), + let serverTrust = challenge.protectionSpace.serverTrust + { + if serverTrustPolicy.evaluate(serverTrust, forHost: host) { + disposition = .useCredential + credential = URLCredential(trust: serverTrust) + } else { + disposition = .cancelAuthenticationChallenge + } + } + } + + completionHandler(disposition, credential) + } + +#if !os(macOS) + + /// Tells the delegate that all messages enqueued for a session have been delivered. + /// + /// - parameter session: The session that no longer has any outstanding requests. + open func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession) { + sessionDidFinishEventsForBackgroundURLSession?(session) + } + +#endif +} + +// MARK: - URLSessionTaskDelegate + +extension SessionDelegate: URLSessionTaskDelegate { + /// Tells the delegate that the remote server requested an HTTP redirect. + /// + /// - parameter session: The session containing the task whose request resulted in a redirect. + /// - parameter task: The task whose request resulted in a redirect. + /// - parameter response: An object containing the server’s response to the original request. + /// - parameter request: A URL request object filled out with the new location. + /// - parameter completionHandler: A closure that your handler should call with either the value of the request + /// parameter, a modified URL request object, or NULL to refuse the redirect and + /// return the body of the redirect response. + open func urlSession( + _ session: URLSession, + task: URLSessionTask, + willPerformHTTPRedirection response: HTTPURLResponse, + newRequest request: URLRequest, + completionHandler: @escaping (URLRequest?) -> Void) + { + guard taskWillPerformHTTPRedirectionWithCompletion == nil else { + taskWillPerformHTTPRedirectionWithCompletion?(session, task, response, request, completionHandler) + return + } + + var redirectRequest: URLRequest? = request + + if let taskWillPerformHTTPRedirection = taskWillPerformHTTPRedirection { + redirectRequest = taskWillPerformHTTPRedirection(session, task, response, request) + } + + completionHandler(redirectRequest) + } + + /// Requests credentials from the delegate in response to an authentication request from the remote server. + /// + /// - parameter session: The session containing the task whose request requires authentication. + /// - parameter task: The task whose request requires authentication. + /// - parameter challenge: An object that contains the request for authentication. + /// - parameter completionHandler: A handler that your delegate method must call providing the disposition + /// and credential. + open func urlSession( + _ session: URLSession, + task: URLSessionTask, + didReceive challenge: URLAuthenticationChallenge, + completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) + { + guard taskDidReceiveChallengeWithCompletion == nil else { + taskDidReceiveChallengeWithCompletion?(session, task, challenge, completionHandler) + return + } + + if let taskDidReceiveChallenge = taskDidReceiveChallenge { + let result = taskDidReceiveChallenge(session, task, challenge) + completionHandler(result.0, result.1) + } else if let delegate = self[task]?.delegate { + delegate.urlSession( + session, + task: task, + didReceive: challenge, + completionHandler: completionHandler + ) + } else { + urlSession(session, didReceive: challenge, completionHandler: completionHandler) + } + } + + /// Tells the delegate when a task requires a new request body stream to send to the remote server. + /// + /// - parameter session: The session containing the task that needs a new body stream. + /// - parameter task: The task that needs a new body stream. + /// - parameter completionHandler: A completion handler that your delegate method should call with the new body stream. + open func urlSession( + _ session: URLSession, + task: URLSessionTask, + needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) + { + guard taskNeedNewBodyStreamWithCompletion == nil else { + taskNeedNewBodyStreamWithCompletion?(session, task, completionHandler) + return + } + + if let taskNeedNewBodyStream = taskNeedNewBodyStream { + completionHandler(taskNeedNewBodyStream(session, task)) + } else if let delegate = self[task]?.delegate { + delegate.urlSession(session, task: task, needNewBodyStream: completionHandler) + } + } + + /// Periodically informs the delegate of the progress of sending body content to the server. + /// + /// - parameter session: The session containing the data task. + /// - parameter task: The data task. + /// - parameter bytesSent: The number of bytes sent since the last time this delegate method was called. + /// - parameter totalBytesSent: The total number of bytes sent so far. + /// - parameter totalBytesExpectedToSend: The expected length of the body data. + open func urlSession( + _ session: URLSession, + task: URLSessionTask, + didSendBodyData bytesSent: Int64, + totalBytesSent: Int64, + totalBytesExpectedToSend: Int64) + { + if let taskDidSendBodyData = taskDidSendBodyData { + taskDidSendBodyData(session, task, bytesSent, totalBytesSent, totalBytesExpectedToSend) + } else if let delegate = self[task]?.delegate as? UploadTaskDelegate { + delegate.URLSession( + session, + task: task, + didSendBodyData: bytesSent, + totalBytesSent: totalBytesSent, + totalBytesExpectedToSend: totalBytesExpectedToSend + ) + } + } + +#if !os(watchOS) + + /// Tells the delegate that the session finished collecting metrics for the task. + /// + /// - parameter session: The session collecting the metrics. + /// - parameter task: The task whose metrics have been collected. + /// - parameter metrics: The collected metrics. + @available(iOS 10.0, macOS 10.12, tvOS 10.0, *) + @objc(URLSession:task:didFinishCollectingMetrics:) + open func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) { + self[task]?.delegate.metrics = metrics + } + +#endif + + /// Tells the delegate that the task finished transferring data. + /// + /// - parameter session: The session containing the task whose request finished transferring data. + /// - parameter task: The task whose request finished transferring data. + /// - parameter error: If an error occurred, an error object indicating how the transfer failed, otherwise nil. + open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) { + /// Executed after it is determined that the request is not going to be retried + let completeTask: (URLSession, URLSessionTask, Error?) -> Void = { [weak self] session, task, error in + guard let strongSelf = self else { return } + + strongSelf.taskDidComplete?(session, task, error) + + strongSelf[task]?.delegate.urlSession(session, task: task, didCompleteWithError: error) + + var userInfo: [String: Any] = [Notification.Key.Task: task] + + if let data = (strongSelf[task]?.delegate as? DataTaskDelegate)?.data { + userInfo[Notification.Key.ResponseData] = data + } + + NotificationCenter.default.post( + name: Notification.Name.Task.DidComplete, + object: strongSelf, + userInfo: userInfo + ) + + strongSelf[task] = nil + } + + guard let request = self[task], let sessionManager = sessionManager else { + completeTask(session, task, error) + return + } + + // Run all validations on the request before checking if an error occurred + request.validations.forEach { $0() } + + // Determine whether an error has occurred + var error: Error? = error + + if request.delegate.error != nil { + error = request.delegate.error + } + + /// If an error occurred and the retrier is set, asynchronously ask the retrier if the request + /// should be retried. Otherwise, complete the task by notifying the task delegate. + if let retrier = retrier, let error = error { + retrier.should(sessionManager, retry: request, with: error) { [weak self] shouldRetry, timeDelay in + guard shouldRetry else { completeTask(session, task, error) ; return } + + DispatchQueue.utility.after(timeDelay) { [weak self] in + guard let strongSelf = self else { return } + + let retrySucceeded = strongSelf.sessionManager?.retry(request) ?? false + + if retrySucceeded, let task = request.task { + strongSelf[task] = request + return + } else { + completeTask(session, task, error) + } + } + } + } else { + completeTask(session, task, error) + } + } +} + +// MARK: - URLSessionDataDelegate + +extension SessionDelegate: URLSessionDataDelegate { + /// Tells the delegate that the data task received the initial reply (headers) from the server. + /// + /// - parameter session: The session containing the data task that received an initial reply. + /// - parameter dataTask: The data task that received an initial reply. + /// - parameter response: A URL response object populated with headers. + /// - parameter completionHandler: A completion handler that your code calls to continue the transfer, passing a + /// constant to indicate whether the transfer should continue as a data task or + /// should become a download task. + open func urlSession( + _ session: URLSession, + dataTask: URLSessionDataTask, + didReceive response: URLResponse, + completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) + { + guard dataTaskDidReceiveResponseWithCompletion == nil else { + dataTaskDidReceiveResponseWithCompletion?(session, dataTask, response, completionHandler) + return + } + + var disposition: URLSession.ResponseDisposition = .allow + + if let dataTaskDidReceiveResponse = dataTaskDidReceiveResponse { + disposition = dataTaskDidReceiveResponse(session, dataTask, response) + } + + completionHandler(disposition) + } + + /// Tells the delegate that the data task was changed to a download task. + /// + /// - parameter session: The session containing the task that was replaced by a download task. + /// - parameter dataTask: The data task that was replaced by a download task. + /// - parameter downloadTask: The new download task that replaced the data task. + open func urlSession( + _ session: URLSession, + dataTask: URLSessionDataTask, + didBecome downloadTask: URLSessionDownloadTask) + { + if let dataTaskDidBecomeDownloadTask = dataTaskDidBecomeDownloadTask { + dataTaskDidBecomeDownloadTask(session, dataTask, downloadTask) + } else { + self[downloadTask]?.delegate = DownloadTaskDelegate(task: downloadTask) + } + } + + /// Tells the delegate that the data task has received some of the expected data. + /// + /// - parameter session: The session containing the data task that provided data. + /// - parameter dataTask: The data task that provided data. + /// - parameter data: A data object containing the transferred data. + open func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) { + if let dataTaskDidReceiveData = dataTaskDidReceiveData { + dataTaskDidReceiveData(session, dataTask, data) + } else if let delegate = self[dataTask]?.delegate as? DataTaskDelegate { + delegate.urlSession(session, dataTask: dataTask, didReceive: data) + } + } + + /// Asks the delegate whether the data (or upload) task should store the response in the cache. + /// + /// - parameter session: The session containing the data (or upload) task. + /// - parameter dataTask: The data (or upload) task. + /// - parameter proposedResponse: The default caching behavior. This behavior is determined based on the current + /// caching policy and the values of certain received headers, such as the Pragma + /// and Cache-Control headers. + /// - parameter completionHandler: A block that your handler must call, providing either the original proposed + /// response, a modified version of that response, or NULL to prevent caching the + /// response. If your delegate implements this method, it must call this completion + /// handler; otherwise, your app leaks memory. + open func urlSession( + _ session: URLSession, + dataTask: URLSessionDataTask, + willCacheResponse proposedResponse: CachedURLResponse, + completionHandler: @escaping (CachedURLResponse?) -> Void) + { + guard dataTaskWillCacheResponseWithCompletion == nil else { + dataTaskWillCacheResponseWithCompletion?(session, dataTask, proposedResponse, completionHandler) + return + } + + if let dataTaskWillCacheResponse = dataTaskWillCacheResponse { + completionHandler(dataTaskWillCacheResponse(session, dataTask, proposedResponse)) + } else if let delegate = self[dataTask]?.delegate as? DataTaskDelegate { + delegate.urlSession( + session, + dataTask: dataTask, + willCacheResponse: proposedResponse, + completionHandler: completionHandler + ) + } else { + completionHandler(proposedResponse) + } + } +} + +// MARK: - URLSessionDownloadDelegate + +extension SessionDelegate: URLSessionDownloadDelegate { + /// Tells the delegate that a download task has finished downloading. + /// + /// - parameter session: The session containing the download task that finished. + /// - parameter downloadTask: The download task that finished. + /// - parameter location: A file URL for the temporary file. Because the file is temporary, you must either + /// open the file for reading or move it to a permanent location in your app’s sandbox + /// container directory before returning from this delegate method. + open func urlSession( + _ session: URLSession, + downloadTask: URLSessionDownloadTask, + didFinishDownloadingTo location: URL) + { + if let downloadTaskDidFinishDownloadingToURL = downloadTaskDidFinishDownloadingToURL { + downloadTaskDidFinishDownloadingToURL(session, downloadTask, location) + } else if let delegate = self[downloadTask]?.delegate as? DownloadTaskDelegate { + delegate.urlSession(session, downloadTask: downloadTask, didFinishDownloadingTo: location) + } + } + + /// Periodically informs the delegate about the download’s progress. + /// + /// - parameter session: The session containing the download task. + /// - parameter downloadTask: The download task. + /// - parameter bytesWritten: The number of bytes transferred since the last time this delegate + /// method was called. + /// - parameter totalBytesWritten: The total number of bytes transferred so far. + /// - parameter totalBytesExpectedToWrite: The expected length of the file, as provided by the Content-Length + /// header. If this header was not provided, the value is + /// `NSURLSessionTransferSizeUnknown`. + open func urlSession( + _ session: URLSession, + downloadTask: URLSessionDownloadTask, + didWriteData bytesWritten: Int64, + totalBytesWritten: Int64, + totalBytesExpectedToWrite: Int64) + { + if let downloadTaskDidWriteData = downloadTaskDidWriteData { + downloadTaskDidWriteData(session, downloadTask, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite) + } else if let delegate = self[downloadTask]?.delegate as? DownloadTaskDelegate { + delegate.urlSession( + session, + downloadTask: downloadTask, + didWriteData: bytesWritten, + totalBytesWritten: totalBytesWritten, + totalBytesExpectedToWrite: totalBytesExpectedToWrite + ) + } + } + + /// Tells the delegate that the download task has resumed downloading. + /// + /// - parameter session: The session containing the download task that finished. + /// - parameter downloadTask: The download task that resumed. See explanation in the discussion. + /// - parameter fileOffset: If the file's cache policy or last modified date prevents reuse of the + /// existing content, then this value is zero. Otherwise, this value is an + /// integer representing the number of bytes on disk that do not need to be + /// retrieved again. + /// - parameter expectedTotalBytes: The expected length of the file, as provided by the Content-Length header. + /// If this header was not provided, the value is NSURLSessionTransferSizeUnknown. + open func urlSession( + _ session: URLSession, + downloadTask: URLSessionDownloadTask, + didResumeAtOffset fileOffset: Int64, + expectedTotalBytes: Int64) + { + if let downloadTaskDidResumeAtOffset = downloadTaskDidResumeAtOffset { + downloadTaskDidResumeAtOffset(session, downloadTask, fileOffset, expectedTotalBytes) + } else if let delegate = self[downloadTask]?.delegate as? DownloadTaskDelegate { + delegate.urlSession( + session, + downloadTask: downloadTask, + didResumeAtOffset: fileOffset, + expectedTotalBytes: expectedTotalBytes + ) + } + } +} + +// MARK: - URLSessionStreamDelegate + +#if !os(watchOS) + +@available(iOS 9.0, macOS 10.11, tvOS 9.0, *) +extension SessionDelegate: URLSessionStreamDelegate { + /// Tells the delegate that the read side of the connection has been closed. + /// + /// - parameter session: The session. + /// - parameter streamTask: The stream task. + open func urlSession(_ session: URLSession, readClosedFor streamTask: URLSessionStreamTask) { + streamTaskReadClosed?(session, streamTask) + } + + /// Tells the delegate that the write side of the connection has been closed. + /// + /// - parameter session: The session. + /// - parameter streamTask: The stream task. + open func urlSession(_ session: URLSession, writeClosedFor streamTask: URLSessionStreamTask) { + streamTaskWriteClosed?(session, streamTask) + } + + /// Tells the delegate that the system has determined that a better route to the host is available. + /// + /// - parameter session: The session. + /// - parameter streamTask: The stream task. + open func urlSession(_ session: URLSession, betterRouteDiscoveredFor streamTask: URLSessionStreamTask) { + streamTaskBetterRouteDiscovered?(session, streamTask) + } + + /// Tells the delegate that the stream task has been completed and provides the unopened stream objects. + /// + /// - parameter session: The session. + /// - parameter streamTask: The stream task. + /// - parameter inputStream: The new input stream. + /// - parameter outputStream: The new output stream. + open func urlSession( + _ session: URLSession, + streamTask: URLSessionStreamTask, + didBecome inputStream: InputStream, + outputStream: OutputStream) + { + streamTaskDidBecomeInputAndOutputStreams?(session, streamTask, inputStream, outputStream) + } +} + +#endif diff --git a/Santander/Pods/Alamofire/Source/SessionManager.swift b/Santander/Pods/Alamofire/Source/SessionManager.swift new file mode 100644 index 00000000..c9c0e38e --- /dev/null +++ b/Santander/Pods/Alamofire/Source/SessionManager.swift @@ -0,0 +1,899 @@ +// +// SessionManager.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// Responsible for creating and managing `Request` objects, as well as their underlying `NSURLSession`. +open class SessionManager { + + // MARK: - Helper Types + + /// Defines whether the `MultipartFormData` encoding was successful and contains result of the encoding as + /// associated values. + /// + /// - Success: Represents a successful `MultipartFormData` encoding and contains the new `UploadRequest` along with + /// streaming information. + /// - Failure: Used to represent a failure in the `MultipartFormData` encoding and also contains the encoding + /// error. + public enum MultipartFormDataEncodingResult { + case success(request: UploadRequest, streamingFromDisk: Bool, streamFileURL: URL?) + case failure(Error) + } + + // MARK: - Properties + + /// A default instance of `SessionManager`, used by top-level Alamofire request methods, and suitable for use + /// directly for any ad hoc requests. + public static let `default`: SessionManager = { + let configuration = URLSessionConfiguration.default + configuration.httpAdditionalHeaders = SessionManager.defaultHTTPHeaders + + return SessionManager(configuration: configuration) + }() + + /// Creates default values for the "Accept-Encoding", "Accept-Language" and "User-Agent" headers. + public static let defaultHTTPHeaders: HTTPHeaders = { + // Accept-Encoding HTTP Header; see https://tools.ietf.org/html/rfc7230#section-4.2.3 + let acceptEncoding: String = "gzip;q=1.0, compress;q=0.5" + + // Accept-Language HTTP Header; see https://tools.ietf.org/html/rfc7231#section-5.3.5 + let acceptLanguage = Locale.preferredLanguages.prefix(6).enumerated().map { index, languageCode in + let quality = 1.0 - (Double(index) * 0.1) + return "\(languageCode);q=\(quality)" + }.joined(separator: ", ") + + // User-Agent Header; see https://tools.ietf.org/html/rfc7231#section-5.5.3 + // Example: `iOS Example/1.0 (org.alamofire.iOS-Example; build:1; iOS 10.0.0) Alamofire/4.0.0` + let userAgent: String = { + if let info = Bundle.main.infoDictionary { + let executable = info[kCFBundleExecutableKey as String] as? String ?? "Unknown" + let bundle = info[kCFBundleIdentifierKey as String] as? String ?? "Unknown" + let appVersion = info["CFBundleShortVersionString"] as? String ?? "Unknown" + let appBuild = info[kCFBundleVersionKey as String] as? String ?? "Unknown" + + let osNameVersion: String = { + let version = ProcessInfo.processInfo.operatingSystemVersion + let versionString = "\(version.majorVersion).\(version.minorVersion).\(version.patchVersion)" + + let osName: String = { + #if os(iOS) + return "iOS" + #elseif os(watchOS) + return "watchOS" + #elseif os(tvOS) + return "tvOS" + #elseif os(macOS) + return "OS X" + #elseif os(Linux) + return "Linux" + #else + return "Unknown" + #endif + }() + + return "\(osName) \(versionString)" + }() + + let alamofireVersion: String = { + guard + let afInfo = Bundle(for: SessionManager.self).infoDictionary, + let build = afInfo["CFBundleShortVersionString"] + else { return "Unknown" } + + return "Alamofire/\(build)" + }() + + return "\(executable)/\(appVersion) (\(bundle); build:\(appBuild); \(osNameVersion)) \(alamofireVersion)" + } + + return "Alamofire" + }() + + return [ + "Accept-Encoding": acceptEncoding, + "Accept-Language": acceptLanguage, + "User-Agent": userAgent + ] + }() + + /// Default memory threshold used when encoding `MultipartFormData` in bytes. + public static let multipartFormDataEncodingMemoryThreshold: UInt64 = 10_000_000 + + /// The underlying session. + public let session: URLSession + + /// The session delegate handling all the task and session delegate callbacks. + public let delegate: SessionDelegate + + /// Whether to start requests immediately after being constructed. `true` by default. + open var startRequestsImmediately: Bool = true + + /// The request adapter called each time a new request is created. + open var adapter: RequestAdapter? + + /// The request retrier called each time a request encounters an error to determine whether to retry the request. + open var retrier: RequestRetrier? { + get { return delegate.retrier } + set { delegate.retrier = newValue } + } + + /// The background completion handler closure provided by the UIApplicationDelegate + /// `application:handleEventsForBackgroundURLSession:completionHandler:` method. By setting the background + /// completion handler, the SessionDelegate `sessionDidFinishEventsForBackgroundURLSession` closure implementation + /// will automatically call the handler. + /// + /// If you need to handle your own events before the handler is called, then you need to override the + /// SessionDelegate `sessionDidFinishEventsForBackgroundURLSession` and manually call the handler when finished. + /// + /// `nil` by default. + open var backgroundCompletionHandler: (() -> Void)? + + let queue = DispatchQueue(label: "org.alamofire.session-manager." + UUID().uuidString) + + // MARK: - Lifecycle + + /// Creates an instance with the specified `configuration`, `delegate` and `serverTrustPolicyManager`. + /// + /// - parameter configuration: The configuration used to construct the managed session. + /// `URLSessionConfiguration.default` by default. + /// - parameter delegate: The delegate used when initializing the session. `SessionDelegate()` by + /// default. + /// - parameter serverTrustPolicyManager: The server trust policy manager to use for evaluating all server trust + /// challenges. `nil` by default. + /// + /// - returns: The new `SessionManager` instance. + public init( + configuration: URLSessionConfiguration = URLSessionConfiguration.default, + delegate: SessionDelegate = SessionDelegate(), + serverTrustPolicyManager: ServerTrustPolicyManager? = nil) + { + self.delegate = delegate + self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil) + + commonInit(serverTrustPolicyManager: serverTrustPolicyManager) + } + + /// Creates an instance with the specified `session`, `delegate` and `serverTrustPolicyManager`. + /// + /// - parameter session: The URL session. + /// - parameter delegate: The delegate of the URL session. Must equal the URL session's delegate. + /// - parameter serverTrustPolicyManager: The server trust policy manager to use for evaluating all server trust + /// challenges. `nil` by default. + /// + /// - returns: The new `SessionManager` instance if the URL session's delegate matches; `nil` otherwise. + public init?( + session: URLSession, + delegate: SessionDelegate, + serverTrustPolicyManager: ServerTrustPolicyManager? = nil) + { + guard delegate === session.delegate else { return nil } + + self.delegate = delegate + self.session = session + + commonInit(serverTrustPolicyManager: serverTrustPolicyManager) + } + + private func commonInit(serverTrustPolicyManager: ServerTrustPolicyManager?) { + session.serverTrustPolicyManager = serverTrustPolicyManager + + delegate.sessionManager = self + + delegate.sessionDidFinishEventsForBackgroundURLSession = { [weak self] session in + guard let strongSelf = self else { return } + DispatchQueue.main.async { strongSelf.backgroundCompletionHandler?() } + } + } + + deinit { + session.invalidateAndCancel() + } + + // MARK: - Data Request + + /// Creates a `DataRequest` to retrieve the contents of the specified `url`, `method`, `parameters`, `encoding` + /// and `headers`. + /// + /// - parameter url: The URL. + /// - parameter method: The HTTP method. `.get` by default. + /// - parameter parameters: The parameters. `nil` by default. + /// - parameter encoding: The parameter encoding. `URLEncoding.default` by default. + /// - parameter headers: The HTTP headers. `nil` by default. + /// + /// - returns: The created `DataRequest`. + @discardableResult + open func request( + _ url: URLConvertible, + method: HTTPMethod = .get, + parameters: Parameters? = nil, + encoding: ParameterEncoding = URLEncoding.default, + headers: HTTPHeaders? = nil) + -> DataRequest + { + var originalRequest: URLRequest? + + do { + originalRequest = try URLRequest(url: url, method: method, headers: headers) + let encodedURLRequest = try encoding.encode(originalRequest!, with: parameters) + return request(encodedURLRequest) + } catch { + return request(originalRequest, failedWith: error) + } + } + + /// Creates a `DataRequest` to retrieve the contents of a URL based on the specified `urlRequest`. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter urlRequest: The URL request. + /// + /// - returns: The created `DataRequest`. + @discardableResult + open func request(_ urlRequest: URLRequestConvertible) -> DataRequest { + var originalRequest: URLRequest? + + do { + originalRequest = try urlRequest.asURLRequest() + let originalTask = DataRequest.Requestable(urlRequest: originalRequest!) + + let task = try originalTask.task(session: session, adapter: adapter, queue: queue) + let request = DataRequest(session: session, requestTask: .data(originalTask, task)) + + delegate[task] = request + + if startRequestsImmediately { request.resume() } + + return request + } catch { + return request(originalRequest, failedWith: error) + } + } + + // MARK: Private - Request Implementation + + private func request(_ urlRequest: URLRequest?, failedWith error: Error) -> DataRequest { + var requestTask: Request.RequestTask = .data(nil, nil) + + if let urlRequest = urlRequest { + let originalTask = DataRequest.Requestable(urlRequest: urlRequest) + requestTask = .data(originalTask, nil) + } + + let underlyingError = error.underlyingAdaptError ?? error + let request = DataRequest(session: session, requestTask: requestTask, error: underlyingError) + + if let retrier = retrier, error is AdaptError { + allowRetrier(retrier, toRetry: request, with: underlyingError) + } else { + if startRequestsImmediately { request.resume() } + } + + return request + } + + // MARK: - Download Request + + // MARK: URL Request + + /// Creates a `DownloadRequest` to retrieve the contents the specified `url`, `method`, `parameters`, `encoding`, + /// `headers` and save them to the `destination`. + /// + /// If `destination` is not specified, the contents will remain in the temporary location determined by the + /// underlying URL session. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter url: The URL. + /// - parameter method: The HTTP method. `.get` by default. + /// - parameter parameters: The parameters. `nil` by default. + /// - parameter encoding: The parameter encoding. `URLEncoding.default` by default. + /// - parameter headers: The HTTP headers. `nil` by default. + /// - parameter destination: The closure used to determine the destination of the downloaded file. `nil` by default. + /// + /// - returns: The created `DownloadRequest`. + @discardableResult + open func download( + _ url: URLConvertible, + method: HTTPMethod = .get, + parameters: Parameters? = nil, + encoding: ParameterEncoding = URLEncoding.default, + headers: HTTPHeaders? = nil, + to destination: DownloadRequest.DownloadFileDestination? = nil) + -> DownloadRequest + { + do { + let urlRequest = try URLRequest(url: url, method: method, headers: headers) + let encodedURLRequest = try encoding.encode(urlRequest, with: parameters) + return download(encodedURLRequest, to: destination) + } catch { + return download(nil, to: destination, failedWith: error) + } + } + + /// Creates a `DownloadRequest` to retrieve the contents of a URL based on the specified `urlRequest` and save + /// them to the `destination`. + /// + /// If `destination` is not specified, the contents will remain in the temporary location determined by the + /// underlying URL session. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter urlRequest: The URL request + /// - parameter destination: The closure used to determine the destination of the downloaded file. `nil` by default. + /// + /// - returns: The created `DownloadRequest`. + @discardableResult + open func download( + _ urlRequest: URLRequestConvertible, + to destination: DownloadRequest.DownloadFileDestination? = nil) + -> DownloadRequest + { + do { + let urlRequest = try urlRequest.asURLRequest() + return download(.request(urlRequest), to: destination) + } catch { + return download(nil, to: destination, failedWith: error) + } + } + + // MARK: Resume Data + + /// Creates a `DownloadRequest` from the `resumeData` produced from a previous request cancellation to retrieve + /// the contents of the original request and save them to the `destination`. + /// + /// If `destination` is not specified, the contents will remain in the temporary location determined by the + /// underlying URL session. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// On the latest release of all the Apple platforms (iOS 10, macOS 10.12, tvOS 10, watchOS 3), `resumeData` is broken + /// on background URL session configurations. There's an underlying bug in the `resumeData` generation logic where the + /// data is written incorrectly and will always fail to resume the download. For more information about the bug and + /// possible workarounds, please refer to the following Stack Overflow post: + /// + /// - http://stackoverflow.com/a/39347461/1342462 + /// + /// - parameter resumeData: The resume data. This is an opaque data blob produced by `URLSessionDownloadTask` + /// when a task is cancelled. See `URLSession -downloadTask(withResumeData:)` for + /// additional information. + /// - parameter destination: The closure used to determine the destination of the downloaded file. `nil` by default. + /// + /// - returns: The created `DownloadRequest`. + @discardableResult + open func download( + resumingWith resumeData: Data, + to destination: DownloadRequest.DownloadFileDestination? = nil) + -> DownloadRequest + { + return download(.resumeData(resumeData), to: destination) + } + + // MARK: Private - Download Implementation + + private func download( + _ downloadable: DownloadRequest.Downloadable, + to destination: DownloadRequest.DownloadFileDestination?) + -> DownloadRequest + { + do { + let task = try downloadable.task(session: session, adapter: adapter, queue: queue) + let download = DownloadRequest(session: session, requestTask: .download(downloadable, task)) + + download.downloadDelegate.destination = destination + + delegate[task] = download + + if startRequestsImmediately { download.resume() } + + return download + } catch { + return download(downloadable, to: destination, failedWith: error) + } + } + + private func download( + _ downloadable: DownloadRequest.Downloadable?, + to destination: DownloadRequest.DownloadFileDestination?, + failedWith error: Error) + -> DownloadRequest + { + var downloadTask: Request.RequestTask = .download(nil, nil) + + if let downloadable = downloadable { + downloadTask = .download(downloadable, nil) + } + + let underlyingError = error.underlyingAdaptError ?? error + + let download = DownloadRequest(session: session, requestTask: downloadTask, error: underlyingError) + download.downloadDelegate.destination = destination + + if let retrier = retrier, error is AdaptError { + allowRetrier(retrier, toRetry: download, with: underlyingError) + } else { + if startRequestsImmediately { download.resume() } + } + + return download + } + + // MARK: - Upload Request + + // MARK: File + + /// Creates an `UploadRequest` from the specified `url`, `method` and `headers` for uploading the `file`. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter file: The file to upload. + /// - parameter url: The URL. + /// - parameter method: The HTTP method. `.post` by default. + /// - parameter headers: The HTTP headers. `nil` by default. + /// + /// - returns: The created `UploadRequest`. + @discardableResult + open func upload( + _ fileURL: URL, + to url: URLConvertible, + method: HTTPMethod = .post, + headers: HTTPHeaders? = nil) + -> UploadRequest + { + do { + let urlRequest = try URLRequest(url: url, method: method, headers: headers) + return upload(fileURL, with: urlRequest) + } catch { + return upload(nil, failedWith: error) + } + } + + /// Creates a `UploadRequest` from the specified `urlRequest` for uploading the `file`. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter file: The file to upload. + /// - parameter urlRequest: The URL request. + /// + /// - returns: The created `UploadRequest`. + @discardableResult + open func upload(_ fileURL: URL, with urlRequest: URLRequestConvertible) -> UploadRequest { + do { + let urlRequest = try urlRequest.asURLRequest() + return upload(.file(fileURL, urlRequest)) + } catch { + return upload(nil, failedWith: error) + } + } + + // MARK: Data + + /// Creates an `UploadRequest` from the specified `url`, `method` and `headers` for uploading the `data`. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter data: The data to upload. + /// - parameter url: The URL. + /// - parameter method: The HTTP method. `.post` by default. + /// - parameter headers: The HTTP headers. `nil` by default. + /// + /// - returns: The created `UploadRequest`. + @discardableResult + open func upload( + _ data: Data, + to url: URLConvertible, + method: HTTPMethod = .post, + headers: HTTPHeaders? = nil) + -> UploadRequest + { + do { + let urlRequest = try URLRequest(url: url, method: method, headers: headers) + return upload(data, with: urlRequest) + } catch { + return upload(nil, failedWith: error) + } + } + + /// Creates an `UploadRequest` from the specified `urlRequest` for uploading the `data`. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter data: The data to upload. + /// - parameter urlRequest: The URL request. + /// + /// - returns: The created `UploadRequest`. + @discardableResult + open func upload(_ data: Data, with urlRequest: URLRequestConvertible) -> UploadRequest { + do { + let urlRequest = try urlRequest.asURLRequest() + return upload(.data(data, urlRequest)) + } catch { + return upload(nil, failedWith: error) + } + } + + // MARK: InputStream + + /// Creates an `UploadRequest` from the specified `url`, `method` and `headers` for uploading the `stream`. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter stream: The stream to upload. + /// - parameter url: The URL. + /// - parameter method: The HTTP method. `.post` by default. + /// - parameter headers: The HTTP headers. `nil` by default. + /// + /// - returns: The created `UploadRequest`. + @discardableResult + open func upload( + _ stream: InputStream, + to url: URLConvertible, + method: HTTPMethod = .post, + headers: HTTPHeaders? = nil) + -> UploadRequest + { + do { + let urlRequest = try URLRequest(url: url, method: method, headers: headers) + return upload(stream, with: urlRequest) + } catch { + return upload(nil, failedWith: error) + } + } + + /// Creates an `UploadRequest` from the specified `urlRequest` for uploading the `stream`. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter stream: The stream to upload. + /// - parameter urlRequest: The URL request. + /// + /// - returns: The created `UploadRequest`. + @discardableResult + open func upload(_ stream: InputStream, with urlRequest: URLRequestConvertible) -> UploadRequest { + do { + let urlRequest = try urlRequest.asURLRequest() + return upload(.stream(stream, urlRequest)) + } catch { + return upload(nil, failedWith: error) + } + } + + // MARK: MultipartFormData + + /// Encodes `multipartFormData` using `encodingMemoryThreshold` and calls `encodingCompletion` with new + /// `UploadRequest` using the `url`, `method` and `headers`. + /// + /// It is important to understand the memory implications of uploading `MultipartFormData`. If the cummulative + /// payload is small, encoding the data in-memory and directly uploading to a server is the by far the most + /// efficient approach. However, if the payload is too large, encoding the data in-memory could cause your app to + /// be terminated. Larger payloads must first be written to disk using input and output streams to keep the memory + /// footprint low, then the data can be uploaded as a stream from the resulting file. Streaming from disk MUST be + /// used for larger payloads such as video content. + /// + /// The `encodingMemoryThreshold` parameter allows Alamofire to automatically determine whether to encode in-memory + /// or stream from disk. If the content length of the `MultipartFormData` is below the `encodingMemoryThreshold`, + /// encoding takes place in-memory. If the content length exceeds the threshold, the data is streamed to disk + /// during the encoding process. Then the result is uploaded as data or as a stream depending on which encoding + /// technique was used. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter multipartFormData: The closure used to append body parts to the `MultipartFormData`. + /// - parameter encodingMemoryThreshold: The encoding memory threshold in bytes. + /// `multipartFormDataEncodingMemoryThreshold` by default. + /// - parameter url: The URL. + /// - parameter method: The HTTP method. `.post` by default. + /// - parameter headers: The HTTP headers. `nil` by default. + /// - parameter encodingCompletion: The closure called when the `MultipartFormData` encoding is complete. + open func upload( + multipartFormData: @escaping (MultipartFormData) -> Void, + usingThreshold encodingMemoryThreshold: UInt64 = SessionManager.multipartFormDataEncodingMemoryThreshold, + to url: URLConvertible, + method: HTTPMethod = .post, + headers: HTTPHeaders? = nil, + queue: DispatchQueue? = nil, + encodingCompletion: ((MultipartFormDataEncodingResult) -> Void)?) + { + do { + let urlRequest = try URLRequest(url: url, method: method, headers: headers) + + return upload( + multipartFormData: multipartFormData, + usingThreshold: encodingMemoryThreshold, + with: urlRequest, + queue: queue, + encodingCompletion: encodingCompletion + ) + } catch { + (queue ?? DispatchQueue.main).async { encodingCompletion?(.failure(error)) } + } + } + + /// Encodes `multipartFormData` using `encodingMemoryThreshold` and calls `encodingCompletion` with new + /// `UploadRequest` using the `urlRequest`. + /// + /// It is important to understand the memory implications of uploading `MultipartFormData`. If the cummulative + /// payload is small, encoding the data in-memory and directly uploading to a server is the by far the most + /// efficient approach. However, if the payload is too large, encoding the data in-memory could cause your app to + /// be terminated. Larger payloads must first be written to disk using input and output streams to keep the memory + /// footprint low, then the data can be uploaded as a stream from the resulting file. Streaming from disk MUST be + /// used for larger payloads such as video content. + /// + /// The `encodingMemoryThreshold` parameter allows Alamofire to automatically determine whether to encode in-memory + /// or stream from disk. If the content length of the `MultipartFormData` is below the `encodingMemoryThreshold`, + /// encoding takes place in-memory. If the content length exceeds the threshold, the data is streamed to disk + /// during the encoding process. Then the result is uploaded as data or as a stream depending on which encoding + /// technique was used. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter multipartFormData: The closure used to append body parts to the `MultipartFormData`. + /// - parameter encodingMemoryThreshold: The encoding memory threshold in bytes. + /// `multipartFormDataEncodingMemoryThreshold` by default. + /// - parameter urlRequest: The URL request. + /// - parameter encodingCompletion: The closure called when the `MultipartFormData` encoding is complete. + open func upload( + multipartFormData: @escaping (MultipartFormData) -> Void, + usingThreshold encodingMemoryThreshold: UInt64 = SessionManager.multipartFormDataEncodingMemoryThreshold, + with urlRequest: URLRequestConvertible, + queue: DispatchQueue? = nil, + encodingCompletion: ((MultipartFormDataEncodingResult) -> Void)?) + { + DispatchQueue.global(qos: .utility).async { + let formData = MultipartFormData() + multipartFormData(formData) + + var tempFileURL: URL? + + do { + var urlRequestWithContentType = try urlRequest.asURLRequest() + urlRequestWithContentType.setValue(formData.contentType, forHTTPHeaderField: "Content-Type") + + let isBackgroundSession = self.session.configuration.identifier != nil + + if formData.contentLength < encodingMemoryThreshold && !isBackgroundSession { + let data = try formData.encode() + + let encodingResult = MultipartFormDataEncodingResult.success( + request: self.upload(data, with: urlRequestWithContentType), + streamingFromDisk: false, + streamFileURL: nil + ) + + (queue ?? DispatchQueue.main).async { encodingCompletion?(encodingResult) } + } else { + let fileManager = FileManager.default + let tempDirectoryURL = URL(fileURLWithPath: NSTemporaryDirectory()) + let directoryURL = tempDirectoryURL.appendingPathComponent("org.alamofire.manager/multipart.form.data") + let fileName = UUID().uuidString + let fileURL = directoryURL.appendingPathComponent(fileName) + + tempFileURL = fileURL + + var directoryError: Error? + + // Create directory inside serial queue to ensure two threads don't do this in parallel + self.queue.sync { + do { + try fileManager.createDirectory(at: directoryURL, withIntermediateDirectories: true, attributes: nil) + } catch { + directoryError = error + } + } + + if let directoryError = directoryError { throw directoryError } + + try formData.writeEncodedData(to: fileURL) + + let upload = self.upload(fileURL, with: urlRequestWithContentType) + + // Cleanup the temp file once the upload is complete + upload.delegate.queue.addOperation { + do { + try FileManager.default.removeItem(at: fileURL) + } catch { + // No-op + } + } + + (queue ?? DispatchQueue.main).async { + let encodingResult = MultipartFormDataEncodingResult.success( + request: upload, + streamingFromDisk: true, + streamFileURL: fileURL + ) + + encodingCompletion?(encodingResult) + } + } + } catch { + // Cleanup the temp file in the event that the multipart form data encoding failed + if let tempFileURL = tempFileURL { + do { + try FileManager.default.removeItem(at: tempFileURL) + } catch { + // No-op + } + } + + (queue ?? DispatchQueue.main).async { encodingCompletion?(.failure(error)) } + } + } + } + + // MARK: Private - Upload Implementation + + private func upload(_ uploadable: UploadRequest.Uploadable) -> UploadRequest { + do { + let task = try uploadable.task(session: session, adapter: adapter, queue: queue) + let upload = UploadRequest(session: session, requestTask: .upload(uploadable, task)) + + if case let .stream(inputStream, _) = uploadable { + upload.delegate.taskNeedNewBodyStream = { _, _ in inputStream } + } + + delegate[task] = upload + + if startRequestsImmediately { upload.resume() } + + return upload + } catch { + return upload(uploadable, failedWith: error) + } + } + + private func upload(_ uploadable: UploadRequest.Uploadable?, failedWith error: Error) -> UploadRequest { + var uploadTask: Request.RequestTask = .upload(nil, nil) + + if let uploadable = uploadable { + uploadTask = .upload(uploadable, nil) + } + + let underlyingError = error.underlyingAdaptError ?? error + let upload = UploadRequest(session: session, requestTask: uploadTask, error: underlyingError) + + if let retrier = retrier, error is AdaptError { + allowRetrier(retrier, toRetry: upload, with: underlyingError) + } else { + if startRequestsImmediately { upload.resume() } + } + + return upload + } + +#if !os(watchOS) + + // MARK: - Stream Request + + // MARK: Hostname and Port + + /// Creates a `StreamRequest` for bidirectional streaming using the `hostname` and `port`. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter hostName: The hostname of the server to connect to. + /// - parameter port: The port of the server to connect to. + /// + /// - returns: The created `StreamRequest`. + @discardableResult + @available(iOS 9.0, macOS 10.11, tvOS 9.0, *) + open func stream(withHostName hostName: String, port: Int) -> StreamRequest { + return stream(.stream(hostName: hostName, port: port)) + } + + // MARK: NetService + + /// Creates a `StreamRequest` for bidirectional streaming using the `netService`. + /// + /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned. + /// + /// - parameter netService: The net service used to identify the endpoint. + /// + /// - returns: The created `StreamRequest`. + @discardableResult + @available(iOS 9.0, macOS 10.11, tvOS 9.0, *) + open func stream(with netService: NetService) -> StreamRequest { + return stream(.netService(netService)) + } + + // MARK: Private - Stream Implementation + + @available(iOS 9.0, macOS 10.11, tvOS 9.0, *) + private func stream(_ streamable: StreamRequest.Streamable) -> StreamRequest { + do { + let task = try streamable.task(session: session, adapter: adapter, queue: queue) + let request = StreamRequest(session: session, requestTask: .stream(streamable, task)) + + delegate[task] = request + + if startRequestsImmediately { request.resume() } + + return request + } catch { + return stream(failedWith: error) + } + } + + @available(iOS 9.0, macOS 10.11, tvOS 9.0, *) + private func stream(failedWith error: Error) -> StreamRequest { + let stream = StreamRequest(session: session, requestTask: .stream(nil, nil), error: error) + if startRequestsImmediately { stream.resume() } + return stream + } + +#endif + + // MARK: - Internal - Retry Request + + func retry(_ request: Request) -> Bool { + guard let originalTask = request.originalTask else { return false } + + do { + let task = try originalTask.task(session: session, adapter: adapter, queue: queue) + + if let originalTask = request.task { + delegate[originalTask] = nil // removes the old request to avoid endless growth + } + + request.delegate.task = task // resets all task delegate data + + request.retryCount += 1 + request.startTime = CFAbsoluteTimeGetCurrent() + request.endTime = nil + + task.resume() + + return true + } catch { + request.delegate.error = error.underlyingAdaptError ?? error + return false + } + } + + private func allowRetrier(_ retrier: RequestRetrier, toRetry request: Request, with error: Error) { + DispatchQueue.utility.async { [weak self] in + guard let strongSelf = self else { return } + + retrier.should(strongSelf, retry: request, with: error) { shouldRetry, timeDelay in + guard let strongSelf = self else { return } + + guard shouldRetry else { + if strongSelf.startRequestsImmediately { request.resume() } + return + } + + DispatchQueue.utility.after(timeDelay) { + guard let strongSelf = self else { return } + + let retrySucceeded = strongSelf.retry(request) + + if retrySucceeded, let task = request.task { + strongSelf.delegate[task] = request + } else { + if strongSelf.startRequestsImmediately { request.resume() } + } + } + } + } + } +} diff --git a/Santander/Pods/Alamofire/Source/TaskDelegate.swift b/Santander/Pods/Alamofire/Source/TaskDelegate.swift new file mode 100644 index 00000000..8e19888f --- /dev/null +++ b/Santander/Pods/Alamofire/Source/TaskDelegate.swift @@ -0,0 +1,466 @@ +// +// TaskDelegate.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// The task delegate is responsible for handling all delegate callbacks for the underlying task as well as +/// executing all operations attached to the serial operation queue upon task completion. +open class TaskDelegate: NSObject { + + // MARK: Properties + + /// The serial operation queue used to execute all operations after the task completes. + public let queue: OperationQueue + + /// The data returned by the server. + public var data: Data? { return nil } + + /// The error generated throughout the lifecyle of the task. + public var error: Error? + + var task: URLSessionTask? { + set { + taskLock.lock(); defer { taskLock.unlock() } + _task = newValue + } + get { + taskLock.lock(); defer { taskLock.unlock() } + return _task + } + } + + var initialResponseTime: CFAbsoluteTime? + var credential: URLCredential? + var metrics: AnyObject? // URLSessionTaskMetrics + + private var _task: URLSessionTask? { + didSet { reset() } + } + + private let taskLock = NSLock() + + // MARK: Lifecycle + + init(task: URLSessionTask?) { + _task = task + + self.queue = { + let operationQueue = OperationQueue() + + operationQueue.maxConcurrentOperationCount = 1 + operationQueue.isSuspended = true + operationQueue.qualityOfService = .utility + + return operationQueue + }() + } + + func reset() { + error = nil + initialResponseTime = nil + } + + // MARK: URLSessionTaskDelegate + + var taskWillPerformHTTPRedirection: ((URLSession, URLSessionTask, HTTPURLResponse, URLRequest) -> URLRequest?)? + var taskDidReceiveChallenge: ((URLSession, URLSessionTask, URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?))? + var taskNeedNewBodyStream: ((URLSession, URLSessionTask) -> InputStream?)? + var taskDidCompleteWithError: ((URLSession, URLSessionTask, Error?) -> Void)? + + @objc(URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:) + func urlSession( + _ session: URLSession, + task: URLSessionTask, + willPerformHTTPRedirection response: HTTPURLResponse, + newRequest request: URLRequest, + completionHandler: @escaping (URLRequest?) -> Void) + { + var redirectRequest: URLRequest? = request + + if let taskWillPerformHTTPRedirection = taskWillPerformHTTPRedirection { + redirectRequest = taskWillPerformHTTPRedirection(session, task, response, request) + } + + completionHandler(redirectRequest) + } + + @objc(URLSession:task:didReceiveChallenge:completionHandler:) + func urlSession( + _ session: URLSession, + task: URLSessionTask, + didReceive challenge: URLAuthenticationChallenge, + completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) + { + var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling + var credential: URLCredential? + + if let taskDidReceiveChallenge = taskDidReceiveChallenge { + (disposition, credential) = taskDidReceiveChallenge(session, task, challenge) + } else if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust { + let host = challenge.protectionSpace.host + + if + let serverTrustPolicy = session.serverTrustPolicyManager?.serverTrustPolicy(forHost: host), + let serverTrust = challenge.protectionSpace.serverTrust + { + if serverTrustPolicy.evaluate(serverTrust, forHost: host) { + disposition = .useCredential + credential = URLCredential(trust: serverTrust) + } else { + disposition = .cancelAuthenticationChallenge + } + } + } else { + if challenge.previousFailureCount > 0 { + disposition = .rejectProtectionSpace + } else { + credential = self.credential ?? session.configuration.urlCredentialStorage?.defaultCredential(for: challenge.protectionSpace) + + if credential != nil { + disposition = .useCredential + } + } + } + + completionHandler(disposition, credential) + } + + @objc(URLSession:task:needNewBodyStream:) + func urlSession( + _ session: URLSession, + task: URLSessionTask, + needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) + { + var bodyStream: InputStream? + + if let taskNeedNewBodyStream = taskNeedNewBodyStream { + bodyStream = taskNeedNewBodyStream(session, task) + } + + completionHandler(bodyStream) + } + + @objc(URLSession:task:didCompleteWithError:) + func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) { + if let taskDidCompleteWithError = taskDidCompleteWithError { + taskDidCompleteWithError(session, task, error) + } else { + if let error = error { + if self.error == nil { self.error = error } + + if + let downloadDelegate = self as? DownloadTaskDelegate, + let resumeData = (error as NSError).userInfo[NSURLSessionDownloadTaskResumeData] as? Data + { + downloadDelegate.resumeData = resumeData + } + } + + queue.isSuspended = false + } + } +} + +// MARK: - + +class DataTaskDelegate: TaskDelegate, URLSessionDataDelegate { + + // MARK: Properties + + var dataTask: URLSessionDataTask { return task as! URLSessionDataTask } + + override var data: Data? { + if dataStream != nil { + return nil + } else { + return mutableData + } + } + + var progress: Progress + var progressHandler: (closure: Request.ProgressHandler, queue: DispatchQueue)? + + var dataStream: ((_ data: Data) -> Void)? + + private var totalBytesReceived: Int64 = 0 + private var mutableData: Data + + private var expectedContentLength: Int64? + + // MARK: Lifecycle + + override init(task: URLSessionTask?) { + mutableData = Data() + progress = Progress(totalUnitCount: 0) + + super.init(task: task) + } + + override func reset() { + super.reset() + + progress = Progress(totalUnitCount: 0) + totalBytesReceived = 0 + mutableData = Data() + expectedContentLength = nil + } + + // MARK: URLSessionDataDelegate + + var dataTaskDidReceiveResponse: ((URLSession, URLSessionDataTask, URLResponse) -> URLSession.ResponseDisposition)? + var dataTaskDidBecomeDownloadTask: ((URLSession, URLSessionDataTask, URLSessionDownloadTask) -> Void)? + var dataTaskDidReceiveData: ((URLSession, URLSessionDataTask, Data) -> Void)? + var dataTaskWillCacheResponse: ((URLSession, URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)? + + func urlSession( + _ session: URLSession, + dataTask: URLSessionDataTask, + didReceive response: URLResponse, + completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) + { + var disposition: URLSession.ResponseDisposition = .allow + + expectedContentLength = response.expectedContentLength + + if let dataTaskDidReceiveResponse = dataTaskDidReceiveResponse { + disposition = dataTaskDidReceiveResponse(session, dataTask, response) + } + + completionHandler(disposition) + } + + func urlSession( + _ session: URLSession, + dataTask: URLSessionDataTask, + didBecome downloadTask: URLSessionDownloadTask) + { + dataTaskDidBecomeDownloadTask?(session, dataTask, downloadTask) + } + + func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) { + if initialResponseTime == nil { initialResponseTime = CFAbsoluteTimeGetCurrent() } + + if let dataTaskDidReceiveData = dataTaskDidReceiveData { + dataTaskDidReceiveData(session, dataTask, data) + } else { + if let dataStream = dataStream { + dataStream(data) + } else { + mutableData.append(data) + } + + let bytesReceived = Int64(data.count) + totalBytesReceived += bytesReceived + let totalBytesExpected = dataTask.response?.expectedContentLength ?? NSURLSessionTransferSizeUnknown + + progress.totalUnitCount = totalBytesExpected + progress.completedUnitCount = totalBytesReceived + + if let progressHandler = progressHandler { + progressHandler.queue.async { progressHandler.closure(self.progress) } + } + } + } + + func urlSession( + _ session: URLSession, + dataTask: URLSessionDataTask, + willCacheResponse proposedResponse: CachedURLResponse, + completionHandler: @escaping (CachedURLResponse?) -> Void) + { + var cachedResponse: CachedURLResponse? = proposedResponse + + if let dataTaskWillCacheResponse = dataTaskWillCacheResponse { + cachedResponse = dataTaskWillCacheResponse(session, dataTask, proposedResponse) + } + + completionHandler(cachedResponse) + } +} + +// MARK: - + +class DownloadTaskDelegate: TaskDelegate, URLSessionDownloadDelegate { + + // MARK: Properties + + var downloadTask: URLSessionDownloadTask { return task as! URLSessionDownloadTask } + + var progress: Progress + var progressHandler: (closure: Request.ProgressHandler, queue: DispatchQueue)? + + var resumeData: Data? + override var data: Data? { return resumeData } + + var destination: DownloadRequest.DownloadFileDestination? + + var temporaryURL: URL? + var destinationURL: URL? + + var fileURL: URL? { return destination != nil ? destinationURL : temporaryURL } + + // MARK: Lifecycle + + override init(task: URLSessionTask?) { + progress = Progress(totalUnitCount: 0) + super.init(task: task) + } + + override func reset() { + super.reset() + + progress = Progress(totalUnitCount: 0) + resumeData = nil + } + + // MARK: URLSessionDownloadDelegate + + var downloadTaskDidFinishDownloadingToURL: ((URLSession, URLSessionDownloadTask, URL) -> URL)? + var downloadTaskDidWriteData: ((URLSession, URLSessionDownloadTask, Int64, Int64, Int64) -> Void)? + var downloadTaskDidResumeAtOffset: ((URLSession, URLSessionDownloadTask, Int64, Int64) -> Void)? + + func urlSession( + _ session: URLSession, + downloadTask: URLSessionDownloadTask, + didFinishDownloadingTo location: URL) + { + temporaryURL = location + + guard + let destination = destination, + let response = downloadTask.response as? HTTPURLResponse + else { return } + + let result = destination(location, response) + let destinationURL = result.destinationURL + let options = result.options + + self.destinationURL = destinationURL + + do { + if options.contains(.removePreviousFile), FileManager.default.fileExists(atPath: destinationURL.path) { + try FileManager.default.removeItem(at: destinationURL) + } + + if options.contains(.createIntermediateDirectories) { + let directory = destinationURL.deletingLastPathComponent() + try FileManager.default.createDirectory(at: directory, withIntermediateDirectories: true) + } + + try FileManager.default.moveItem(at: location, to: destinationURL) + } catch { + self.error = error + } + } + + func urlSession( + _ session: URLSession, + downloadTask: URLSessionDownloadTask, + didWriteData bytesWritten: Int64, + totalBytesWritten: Int64, + totalBytesExpectedToWrite: Int64) + { + if initialResponseTime == nil { initialResponseTime = CFAbsoluteTimeGetCurrent() } + + if let downloadTaskDidWriteData = downloadTaskDidWriteData { + downloadTaskDidWriteData( + session, + downloadTask, + bytesWritten, + totalBytesWritten, + totalBytesExpectedToWrite + ) + } else { + progress.totalUnitCount = totalBytesExpectedToWrite + progress.completedUnitCount = totalBytesWritten + + if let progressHandler = progressHandler { + progressHandler.queue.async { progressHandler.closure(self.progress) } + } + } + } + + func urlSession( + _ session: URLSession, + downloadTask: URLSessionDownloadTask, + didResumeAtOffset fileOffset: Int64, + expectedTotalBytes: Int64) + { + if let downloadTaskDidResumeAtOffset = downloadTaskDidResumeAtOffset { + downloadTaskDidResumeAtOffset(session, downloadTask, fileOffset, expectedTotalBytes) + } else { + progress.totalUnitCount = expectedTotalBytes + progress.completedUnitCount = fileOffset + } + } +} + +// MARK: - + +class UploadTaskDelegate: DataTaskDelegate { + + // MARK: Properties + + var uploadTask: URLSessionUploadTask { return task as! URLSessionUploadTask } + + var uploadProgress: Progress + var uploadProgressHandler: (closure: Request.ProgressHandler, queue: DispatchQueue)? + + // MARK: Lifecycle + + override init(task: URLSessionTask?) { + uploadProgress = Progress(totalUnitCount: 0) + super.init(task: task) + } + + override func reset() { + super.reset() + uploadProgress = Progress(totalUnitCount: 0) + } + + // MARK: URLSessionTaskDelegate + + var taskDidSendBodyData: ((URLSession, URLSessionTask, Int64, Int64, Int64) -> Void)? + + func URLSession( + _ session: URLSession, + task: URLSessionTask, + didSendBodyData bytesSent: Int64, + totalBytesSent: Int64, + totalBytesExpectedToSend: Int64) + { + if initialResponseTime == nil { initialResponseTime = CFAbsoluteTimeGetCurrent() } + + if let taskDidSendBodyData = taskDidSendBodyData { + taskDidSendBodyData(session, task, bytesSent, totalBytesSent, totalBytesExpectedToSend) + } else { + uploadProgress.totalUnitCount = totalBytesExpectedToSend + uploadProgress.completedUnitCount = totalBytesSent + + if let uploadProgressHandler = uploadProgressHandler { + uploadProgressHandler.queue.async { uploadProgressHandler.closure(self.uploadProgress) } + } + } + } +} diff --git a/Santander/Pods/Alamofire/Source/Timeline.swift b/Santander/Pods/Alamofire/Source/Timeline.swift new file mode 100644 index 00000000..181c9883 --- /dev/null +++ b/Santander/Pods/Alamofire/Source/Timeline.swift @@ -0,0 +1,136 @@ +// +// Timeline.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +/// Responsible for computing the timing metrics for the complete lifecycle of a `Request`. +public struct Timeline { + /// The time the request was initialized. + public let requestStartTime: CFAbsoluteTime + + /// The time the first bytes were received from or sent to the server. + public let initialResponseTime: CFAbsoluteTime + + /// The time when the request was completed. + public let requestCompletedTime: CFAbsoluteTime + + /// The time when the response serialization was completed. + public let serializationCompletedTime: CFAbsoluteTime + + /// The time interval in seconds from the time the request started to the initial response from the server. + public let latency: TimeInterval + + /// The time interval in seconds from the time the request started to the time the request completed. + public let requestDuration: TimeInterval + + /// The time interval in seconds from the time the request completed to the time response serialization completed. + public let serializationDuration: TimeInterval + + /// The time interval in seconds from the time the request started to the time response serialization completed. + public let totalDuration: TimeInterval + + /// Creates a new `Timeline` instance with the specified request times. + /// + /// - parameter requestStartTime: The time the request was initialized. Defaults to `0.0`. + /// - parameter initialResponseTime: The time the first bytes were received from or sent to the server. + /// Defaults to `0.0`. + /// - parameter requestCompletedTime: The time when the request was completed. Defaults to `0.0`. + /// - parameter serializationCompletedTime: The time when the response serialization was completed. Defaults + /// to `0.0`. + /// + /// - returns: The new `Timeline` instance. + public init( + requestStartTime: CFAbsoluteTime = 0.0, + initialResponseTime: CFAbsoluteTime = 0.0, + requestCompletedTime: CFAbsoluteTime = 0.0, + serializationCompletedTime: CFAbsoluteTime = 0.0) + { + self.requestStartTime = requestStartTime + self.initialResponseTime = initialResponseTime + self.requestCompletedTime = requestCompletedTime + self.serializationCompletedTime = serializationCompletedTime + + self.latency = initialResponseTime - requestStartTime + self.requestDuration = requestCompletedTime - requestStartTime + self.serializationDuration = serializationCompletedTime - requestCompletedTime + self.totalDuration = serializationCompletedTime - requestStartTime + } +} + +// MARK: - CustomStringConvertible + +extension Timeline: CustomStringConvertible { + /// The textual representation used when written to an output stream, which includes the latency, the request + /// duration and the total duration. + public var description: String { + let latency = String(format: "%.3f", self.latency) + let requestDuration = String(format: "%.3f", self.requestDuration) + let serializationDuration = String(format: "%.3f", self.serializationDuration) + let totalDuration = String(format: "%.3f", self.totalDuration) + + // NOTE: Had to move to string concatenation due to memory leak filed as rdar://26761490. Once memory leak is + // fixed, we should move back to string interpolation by reverting commit 7d4a43b1. + let timings = [ + "\"Latency\": " + latency + " secs", + "\"Request Duration\": " + requestDuration + " secs", + "\"Serialization Duration\": " + serializationDuration + " secs", + "\"Total Duration\": " + totalDuration + " secs" + ] + + return "Timeline: { " + timings.joined(separator: ", ") + " }" + } +} + +// MARK: - CustomDebugStringConvertible + +extension Timeline: CustomDebugStringConvertible { + /// The textual representation used when written to an output stream, which includes the request start time, the + /// initial response time, the request completed time, the serialization completed time, the latency, the request + /// duration and the total duration. + public var debugDescription: String { + let requestStartTime = String(format: "%.3f", self.requestStartTime) + let initialResponseTime = String(format: "%.3f", self.initialResponseTime) + let requestCompletedTime = String(format: "%.3f", self.requestCompletedTime) + let serializationCompletedTime = String(format: "%.3f", self.serializationCompletedTime) + let latency = String(format: "%.3f", self.latency) + let requestDuration = String(format: "%.3f", self.requestDuration) + let serializationDuration = String(format: "%.3f", self.serializationDuration) + let totalDuration = String(format: "%.3f", self.totalDuration) + + // NOTE: Had to move to string concatenation due to memory leak filed as rdar://26761490. Once memory leak is + // fixed, we should move back to string interpolation by reverting commit 7d4a43b1. + let timings = [ + "\"Request Start Time\": " + requestStartTime, + "\"Initial Response Time\": " + initialResponseTime, + "\"Request Completed Time\": " + requestCompletedTime, + "\"Serialization Completed Time\": " + serializationCompletedTime, + "\"Latency\": " + latency + " secs", + "\"Request Duration\": " + requestDuration + " secs", + "\"Serialization Duration\": " + serializationDuration + " secs", + "\"Total Duration\": " + totalDuration + " secs" + ] + + return "Timeline: { " + timings.joined(separator: ", ") + " }" + } +} diff --git a/Santander/Pods/Alamofire/Source/Validation.swift b/Santander/Pods/Alamofire/Source/Validation.swift new file mode 100644 index 00000000..ec2c5c35 --- /dev/null +++ b/Santander/Pods/Alamofire/Source/Validation.swift @@ -0,0 +1,315 @@ +// +// Validation.swift +// +// Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) +// +// 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. +// + +import Foundation + +extension Request { + + // MARK: Helper Types + + fileprivate typealias ErrorReason = AFError.ResponseValidationFailureReason + + /// Used to represent whether validation was successful or encountered an error resulting in a failure. + /// + /// - success: The validation was successful. + /// - failure: The validation failed encountering the provided error. + public enum ValidationResult { + case success + case failure(Error) + } + + fileprivate struct MIMEType { + let type: String + let subtype: String + + var isWildcard: Bool { return type == "*" && subtype == "*" } + + init?(_ string: String) { + let components: [String] = { + let stripped = string.trimmingCharacters(in: .whitespacesAndNewlines) + + #if swift(>=3.2) + let split = stripped[..<(stripped.range(of: ";")?.lowerBound ?? stripped.endIndex)] + #else + let split = stripped.substring(to: stripped.range(of: ";")?.lowerBound ?? stripped.endIndex) + #endif + + return split.components(separatedBy: "/") + }() + + if let type = components.first, let subtype = components.last { + self.type = type + self.subtype = subtype + } else { + return nil + } + } + + func matches(_ mime: MIMEType) -> Bool { + switch (type, subtype) { + case (mime.type, mime.subtype), (mime.type, "*"), ("*", mime.subtype), ("*", "*"): + return true + default: + return false + } + } + } + + // MARK: Properties + + fileprivate var acceptableStatusCodes: [Int] { return Array(200..<300) } + + fileprivate var acceptableContentTypes: [String] { + if let accept = request?.value(forHTTPHeaderField: "Accept") { + return accept.components(separatedBy: ",") + } + + return ["*/*"] + } + + // MARK: Status Code + + fileprivate func validate( + statusCode acceptableStatusCodes: S, + response: HTTPURLResponse) + -> ValidationResult + where S.Iterator.Element == Int + { + if acceptableStatusCodes.contains(response.statusCode) { + return .success + } else { + let reason: ErrorReason = .unacceptableStatusCode(code: response.statusCode) + return .failure(AFError.responseValidationFailed(reason: reason)) + } + } + + // MARK: Content Type + + fileprivate func validate( + contentType acceptableContentTypes: S, + response: HTTPURLResponse, + data: Data?) + -> ValidationResult + where S.Iterator.Element == String + { + guard let data = data, data.count > 0 else { return .success } + + guard + let responseContentType = response.mimeType, + let responseMIMEType = MIMEType(responseContentType) + else { + for contentType in acceptableContentTypes { + if let mimeType = MIMEType(contentType), mimeType.isWildcard { + return .success + } + } + + let error: AFError = { + let reason: ErrorReason = .missingContentType(acceptableContentTypes: Array(acceptableContentTypes)) + return AFError.responseValidationFailed(reason: reason) + }() + + return .failure(error) + } + + for contentType in acceptableContentTypes { + if let acceptableMIMEType = MIMEType(contentType), acceptableMIMEType.matches(responseMIMEType) { + return .success + } + } + + let error: AFError = { + let reason: ErrorReason = .unacceptableContentType( + acceptableContentTypes: Array(acceptableContentTypes), + responseContentType: responseContentType + ) + + return AFError.responseValidationFailed(reason: reason) + }() + + return .failure(error) + } +} + +// MARK: - + +extension DataRequest { + /// A closure used to validate a request that takes a URL request, a URL response and data, and returns whether the + /// request was valid. + public typealias Validation = (URLRequest?, HTTPURLResponse, Data?) -> ValidationResult + + /// Validates the request, using the specified closure. + /// + /// If validation fails, subsequent calls to response handlers will have an associated error. + /// + /// - parameter validation: A closure to validate the request. + /// + /// - returns: The request. + @discardableResult + public func validate(_ validation: @escaping Validation) -> Self { + let validationExecution: () -> Void = { [unowned self] in + if + let response = self.response, + self.delegate.error == nil, + case let .failure(error) = validation(self.request, response, self.delegate.data) + { + self.delegate.error = error + } + } + + validations.append(validationExecution) + + return self + } + + /// Validates that the response has a status code in the specified sequence. + /// + /// If validation fails, subsequent calls to response handlers will have an associated error. + /// + /// - parameter range: The range of acceptable status codes. + /// + /// - returns: The request. + @discardableResult + public func validate(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int { + return validate { [unowned self] _, response, _ in + return self.validate(statusCode: acceptableStatusCodes, response: response) + } + } + + /// Validates that the response has a content type in the specified sequence. + /// + /// If validation fails, subsequent calls to response handlers will have an associated error. + /// + /// - parameter contentType: The acceptable content types, which may specify wildcard types and/or subtypes. + /// + /// - returns: The request. + @discardableResult + public func validate(contentType acceptableContentTypes: S) -> Self where S.Iterator.Element == String { + return validate { [unowned self] _, response, data in + return self.validate(contentType: acceptableContentTypes, response: response, data: data) + } + } + + /// Validates that the response has a status code in the default acceptable range of 200...299, and that the content + /// type matches any specified in the Accept HTTP header field. + /// + /// If validation fails, subsequent calls to response handlers will have an associated error. + /// + /// - returns: The request. + @discardableResult + public func validate() -> Self { + return validate(statusCode: self.acceptableStatusCodes).validate(contentType: self.acceptableContentTypes) + } +} + +// MARK: - + +extension DownloadRequest { + /// A closure used to validate a request that takes a URL request, a URL response, a temporary URL and a + /// destination URL, and returns whether the request was valid. + public typealias Validation = ( + _ request: URLRequest?, + _ response: HTTPURLResponse, + _ temporaryURL: URL?, + _ destinationURL: URL?) + -> ValidationResult + + /// Validates the request, using the specified closure. + /// + /// If validation fails, subsequent calls to response handlers will have an associated error. + /// + /// - parameter validation: A closure to validate the request. + /// + /// - returns: The request. + @discardableResult + public func validate(_ validation: @escaping Validation) -> Self { + let validationExecution: () -> Void = { [unowned self] in + let request = self.request + let temporaryURL = self.downloadDelegate.temporaryURL + let destinationURL = self.downloadDelegate.destinationURL + + if + let response = self.response, + self.delegate.error == nil, + case let .failure(error) = validation(request, response, temporaryURL, destinationURL) + { + self.delegate.error = error + } + } + + validations.append(validationExecution) + + return self + } + + /// Validates that the response has a status code in the specified sequence. + /// + /// If validation fails, subsequent calls to response handlers will have an associated error. + /// + /// - parameter range: The range of acceptable status codes. + /// + /// - returns: The request. + @discardableResult + public func validate(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int { + return validate { [unowned self] _, response, _, _ in + return self.validate(statusCode: acceptableStatusCodes, response: response) + } + } + + /// Validates that the response has a content type in the specified sequence. + /// + /// If validation fails, subsequent calls to response handlers will have an associated error. + /// + /// - parameter contentType: The acceptable content types, which may specify wildcard types and/or subtypes. + /// + /// - returns: The request. + @discardableResult + public func validate(contentType acceptableContentTypes: S) -> Self where S.Iterator.Element == String { + return validate { [unowned self] _, response, _, _ in + let fileURL = self.downloadDelegate.fileURL + + guard let validFileURL = fileURL else { + return .failure(AFError.responseValidationFailed(reason: .dataFileNil)) + } + + do { + let data = try Data(contentsOf: validFileURL) + return self.validate(contentType: acceptableContentTypes, response: response, data: data) + } catch { + return .failure(AFError.responseValidationFailed(reason: .dataFileReadFailed(at: validFileURL))) + } + } + } + + /// Validates that the response has a status code in the default acceptable range of 200...299, and that the content + /// type matches any specified in the Accept HTTP header field. + /// + /// If validation fails, subsequent calls to response handlers will have an associated error. + /// + /// - returns: The request. + @discardableResult + public func validate() -> Self { + return validate(statusCode: self.acceptableStatusCodes).validate(contentType: self.acceptableContentTypes) + } +} diff --git a/Santander/Pods/Manifest.lock b/Santander/Pods/Manifest.lock new file mode 100644 index 00000000..88336ea4 --- /dev/null +++ b/Santander/Pods/Manifest.lock @@ -0,0 +1,16 @@ +PODS: + - Alamofire (4.8.0) + +DEPENDENCIES: + - Alamofire (~> 4.7) + +SPEC REPOS: + https://github.com/cocoapods/specs.git: + - Alamofire + +SPEC CHECKSUMS: + Alamofire: 3ec537f71edc9804815215393ae2b1a8ea33a844 + +PODFILE CHECKSUM: 6a64a1ba1209b9d92566ec0649257e0039255ee1 + +COCOAPODS: 1.6.0.beta.1 diff --git a/Santander/Pods/Pods.xcodeproj/project.pbxproj b/Santander/Pods/Pods.xcodeproj/project.pbxproj new file mode 100644 index 00000000..156cdb7c --- /dev/null +++ b/Santander/Pods/Pods.xcodeproj/project.pbxproj @@ -0,0 +1,671 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 02230667D68CF5D728A6BFC4A8202802 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; + 1FC3FD39157C2FFFF3869A1300730086 /* SessionDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 195D73DD9EF275A3C56569E2B1CA8026 /* SessionDelegate.swift */; }; + 36FF8853CB34A9297AFAA8F5F7456324 /* TaskDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A01C037B4034EDA3D7955BC5E4E9D9D6 /* TaskDelegate.swift */; }; + 4E1A913EFB404FB11524718FF0298EFE /* Alamofire.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFCB8C44DE758E906C0BCDA455937B85 /* Alamofire.swift */; }; + 500C8EDA60C07B0F127C7FC385E17D38 /* Notifications.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66A46F517F0AF7E85A16D723F6406896 /* Notifications.swift */; }; + 52237C35642089F77DD4D723CEB25737 /* Response.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04F47F5C9CDB035C5AFADEBA5BF44F1C /* Response.swift */; }; + 58A9719584AFA2D108D9E5C585A79329 /* Validation.swift in Sources */ = {isa = PBXBuildFile; fileRef = B029DBC43E49A740F12B5E4D2E6DD452 /* Validation.swift */; }; + 5EE5FED83B90A606A763CF1114D1D6FB /* ResponseSerialization.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2F9510473F6FFD7AA66524DB16C2263 /* ResponseSerialization.swift */; }; + 6BEA14EC335E07C7063CD1383C0C443C /* ServerTrustPolicy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32B030D27CAC730C5EB0F22390645310 /* ServerTrustPolicy.swift */; }; + 7068E8A7DDC1424EE8F24BC77E8746F4 /* SessionManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46CDAC6C1187C5467E576980E1062C8B /* SessionManager.swift */; }; + 796177DE2762F24DAC16A709FD954838 /* ParameterEncoding.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6639346628280A0D0FAD35196BF56108 /* ParameterEncoding.swift */; }; + 8FBA75E6D34ADB2456284E8D8C41C99B /* Pods-Santander-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = DF40F1B38F449B30B1193C47D094FFB0 /* Pods-Santander-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 965DACF3DC02857ECBE66C5CBA3DA5D4 /* Request.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E230A0448B394DE26E688DAC8E6201E /* Request.swift */; }; + B424F524BBBE34E685129945993809A8 /* Timeline.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87882A1F5A92C8138D54545E51D51E6F /* Timeline.swift */; }; + B77705737566AE83ED7E448923D7FA60 /* NetworkReachabilityManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5A8AA5F9EDED0A0BDDE7E830BF4AEE0 /* NetworkReachabilityManager.swift */; }; + BE4BA1EDE444A770F834605F4B65348E /* AFError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AF006B0AD5765D1BFA8253C2DCBB126 /* AFError.swift */; }; + D4C3899574E9D5DF5E5DA52310560BCC /* Alamofire-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E2BC8802B90D6D34BB8A6C74415E2913 /* Alamofire-dummy.m */; }; + D8EC5B74B9B5DC842F4179D19E6DE6D4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; + DBE6E2E4D205545E7988CFA5057C31D6 /* DispatchQueue+Alamofire.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FCBF1EED873F61C6D46CE37FA5C39D3 /* DispatchQueue+Alamofire.swift */; }; + EF1461221681BCA12A4147900A704727 /* Alamofire-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A8AE7E7ED606685A23324D56F03FB9C2 /* Alamofire-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + F2D99EB0353AED27C40520EA3E5FDFCB /* Pods-Santander-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B3970A2588450260812DEB264A17D83C /* Pods-Santander-dummy.m */; }; + F9EA61D484CC15FDDAB0D8C0D26D7949 /* Result.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D60BC9955B4F7FFA62D7440CB385C11 /* Result.swift */; }; + FF9C7BC64DB23D2CED48197DE67F0335 /* MultipartFormData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 155538D91ACEEEDF82069ACF6C1A02E7 /* MultipartFormData.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 6651F76179175492B1B600BED053F984 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = E76458C58C9140B6A16D60547E68E80C; + remoteInfo = Alamofire; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 04F47F5C9CDB035C5AFADEBA5BF44F1C /* Response.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Response.swift; path = Source/Response.swift; sourceTree = ""; }; + 0FCBF1EED873F61C6D46CE37FA5C39D3 /* DispatchQueue+Alamofire.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "DispatchQueue+Alamofire.swift"; path = "Source/DispatchQueue+Alamofire.swift"; sourceTree = ""; }; + 155538D91ACEEEDF82069ACF6C1A02E7 /* MultipartFormData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MultipartFormData.swift; path = Source/MultipartFormData.swift; sourceTree = ""; }; + 195D73DD9EF275A3C56569E2B1CA8026 /* SessionDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SessionDelegate.swift; path = Source/SessionDelegate.swift; sourceTree = ""; }; + 1E230A0448B394DE26E688DAC8E6201E /* Request.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Request.swift; path = Source/Request.swift; sourceTree = ""; }; + 2E524BB44C60193F6500160F157A05CA /* Alamofire.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Alamofire.xcconfig; sourceTree = ""; }; + 32B030D27CAC730C5EB0F22390645310 /* ServerTrustPolicy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ServerTrustPolicy.swift; path = Source/ServerTrustPolicy.swift; sourceTree = ""; }; + 3D60BC9955B4F7FFA62D7440CB385C11 /* Result.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Result.swift; path = Source/Result.swift; sourceTree = ""; }; + 40E54A77F49EBA1FF0EB9F37BFB7316D /* Pods_Santander.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_Santander.framework; path = "Pods-Santander.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 4125B9704297E0D70869B93C39FF887F /* Alamofire-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Alamofire-Info.plist"; sourceTree = ""; }; + 46CDAC6C1187C5467E576980E1062C8B /* SessionManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SessionManager.swift; path = Source/SessionManager.swift; sourceTree = ""; }; + 4AF006B0AD5765D1BFA8253C2DCBB126 /* AFError.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AFError.swift; path = Source/AFError.swift; sourceTree = ""; }; + 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + 5AD5A070B5603BDA71A73D4F61F1F97B /* Alamofire-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Alamofire-prefix.pch"; sourceTree = ""; }; + 6639346628280A0D0FAD35196BF56108 /* ParameterEncoding.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ParameterEncoding.swift; path = Source/ParameterEncoding.swift; sourceTree = ""; }; + 66A46F517F0AF7E85A16D723F6406896 /* Notifications.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Notifications.swift; path = Source/Notifications.swift; sourceTree = ""; }; + 80010C41C0F82F6AFC80FF83EFA8429F /* Pods-Santander-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Santander-Info.plist"; sourceTree = ""; }; + 87882A1F5A92C8138D54545E51D51E6F /* Timeline.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Timeline.swift; path = Source/Timeline.swift; sourceTree = ""; }; + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 965245E333C605E7B620576AFDA5D8FC /* Pods-Santander-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Santander-frameworks.sh"; sourceTree = ""; }; + A01C037B4034EDA3D7955BC5E4E9D9D6 /* TaskDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TaskDelegate.swift; path = Source/TaskDelegate.swift; sourceTree = ""; }; + A69FBBD61FAB598095E9504325F8F98E /* Pods-Santander.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Santander.debug.xcconfig"; sourceTree = ""; }; + A8AE7E7ED606685A23324D56F03FB9C2 /* Alamofire-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Alamofire-umbrella.h"; sourceTree = ""; }; + B029DBC43E49A740F12B5E4D2E6DD452 /* Validation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Validation.swift; path = Source/Validation.swift; sourceTree = ""; }; + B3970A2588450260812DEB264A17D83C /* Pods-Santander-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Santander-dummy.m"; sourceTree = ""; }; + C499773F13C7237F7C937ADB69970EFE /* Pods-Santander.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Santander.release.xcconfig"; sourceTree = ""; }; + C4FA9ACAE219F80A800BFE0E8D6082A0 /* Pods-Santander.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-Santander.modulemap"; sourceTree = ""; }; + C7972F81E28B33A04AE8C6E7161C511E /* Alamofire.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Alamofire.framework; path = Alamofire.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + D129A7FF40E4F54B76F46725E009D774 /* Pods-Santander-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Santander-acknowledgements.plist"; sourceTree = ""; }; + DC78F5D84FB60D48F3E5222FBB748F70 /* Alamofire.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Alamofire.modulemap; sourceTree = ""; }; + DF40F1B38F449B30B1193C47D094FFB0 /* Pods-Santander-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Santander-umbrella.h"; sourceTree = ""; }; + DFCB8C44DE758E906C0BCDA455937B85 /* Alamofire.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Alamofire.swift; path = Source/Alamofire.swift; sourceTree = ""; }; + E2BC8802B90D6D34BB8A6C74415E2913 /* Alamofire-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Alamofire-dummy.m"; sourceTree = ""; }; + E2F9510473F6FFD7AA66524DB16C2263 /* ResponseSerialization.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ResponseSerialization.swift; path = Source/ResponseSerialization.swift; sourceTree = ""; }; + E5A8AA5F9EDED0A0BDDE7E830BF4AEE0 /* NetworkReachabilityManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = NetworkReachabilityManager.swift; path = Source/NetworkReachabilityManager.swift; sourceTree = ""; }; + F1E97AEA65070306B3AE79ED619236D0 /* Pods-Santander-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Santander-acknowledgements.markdown"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 496E0E4DB236254B50CDF387B1C4F039 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 02230667D68CF5D728A6BFC4A8202802 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6E8AF668A2161F7D6F680F721DB65D2D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + D8EC5B74B9B5DC842F4179D19E6DE6D4 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0E84A716D2DE310AB1EDF80E0019092B /* Targets Support Files */ = { + isa = PBXGroup; + children = ( + BD5C0B431AA83303CEA6CFA50BD44BBA /* Pods-Santander */, + ); + name = "Targets Support Files"; + sourceTree = ""; + }; + 200D10EB20F0397D47F022B50CF0433F /* Alamofire */ = { + isa = PBXGroup; + children = ( + 4AF006B0AD5765D1BFA8253C2DCBB126 /* AFError.swift */, + DFCB8C44DE758E906C0BCDA455937B85 /* Alamofire.swift */, + 0FCBF1EED873F61C6D46CE37FA5C39D3 /* DispatchQueue+Alamofire.swift */, + 155538D91ACEEEDF82069ACF6C1A02E7 /* MultipartFormData.swift */, + E5A8AA5F9EDED0A0BDDE7E830BF4AEE0 /* NetworkReachabilityManager.swift */, + 66A46F517F0AF7E85A16D723F6406896 /* Notifications.swift */, + 6639346628280A0D0FAD35196BF56108 /* ParameterEncoding.swift */, + 1E230A0448B394DE26E688DAC8E6201E /* Request.swift */, + 04F47F5C9CDB035C5AFADEBA5BF44F1C /* Response.swift */, + E2F9510473F6FFD7AA66524DB16C2263 /* ResponseSerialization.swift */, + 3D60BC9955B4F7FFA62D7440CB385C11 /* Result.swift */, + 32B030D27CAC730C5EB0F22390645310 /* ServerTrustPolicy.swift */, + 195D73DD9EF275A3C56569E2B1CA8026 /* SessionDelegate.swift */, + 46CDAC6C1187C5467E576980E1062C8B /* SessionManager.swift */, + A01C037B4034EDA3D7955BC5E4E9D9D6 /* TaskDelegate.swift */, + 87882A1F5A92C8138D54545E51D51E6F /* Timeline.swift */, + B029DBC43E49A740F12B5E4D2E6DD452 /* Validation.swift */, + D45B050E207D49F1F0B18F2B76512FB3 /* Support Files */, + ); + name = Alamofire; + path = Alamofire; + sourceTree = ""; + }; + 35F128EB69B6F7FB7DA93BBF6C130FAE /* Pods */ = { + isa = PBXGroup; + children = ( + 200D10EB20F0397D47F022B50CF0433F /* Alamofire */, + ); + name = Pods; + sourceTree = ""; + }; + 5E0D919E635D23B70123790B8308F8EF /* iOS */ = { + isa = PBXGroup; + children = ( + 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */, + ); + name = iOS; + sourceTree = ""; + }; + 7DB346D0F39D3F0E887471402A8071AB = { + isa = PBXGroup; + children = ( + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, + 35F128EB69B6F7FB7DA93BBF6C130FAE /* Pods */, + C5405843B5764787F29C9765B6AEB556 /* Products */, + 0E84A716D2DE310AB1EDF80E0019092B /* Targets Support Files */, + ); + sourceTree = ""; + }; + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { + isa = PBXGroup; + children = ( + 5E0D919E635D23B70123790B8308F8EF /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; + BD5C0B431AA83303CEA6CFA50BD44BBA /* Pods-Santander */ = { + isa = PBXGroup; + children = ( + C4FA9ACAE219F80A800BFE0E8D6082A0 /* Pods-Santander.modulemap */, + F1E97AEA65070306B3AE79ED619236D0 /* Pods-Santander-acknowledgements.markdown */, + D129A7FF40E4F54B76F46725E009D774 /* Pods-Santander-acknowledgements.plist */, + B3970A2588450260812DEB264A17D83C /* Pods-Santander-dummy.m */, + 965245E333C605E7B620576AFDA5D8FC /* Pods-Santander-frameworks.sh */, + 80010C41C0F82F6AFC80FF83EFA8429F /* Pods-Santander-Info.plist */, + DF40F1B38F449B30B1193C47D094FFB0 /* Pods-Santander-umbrella.h */, + A69FBBD61FAB598095E9504325F8F98E /* Pods-Santander.debug.xcconfig */, + C499773F13C7237F7C937ADB69970EFE /* Pods-Santander.release.xcconfig */, + ); + name = "Pods-Santander"; + path = "Target Support Files/Pods-Santander"; + sourceTree = ""; + }; + C5405843B5764787F29C9765B6AEB556 /* Products */ = { + isa = PBXGroup; + children = ( + C7972F81E28B33A04AE8C6E7161C511E /* Alamofire.framework */, + 40E54A77F49EBA1FF0EB9F37BFB7316D /* Pods_Santander.framework */, + ); + name = Products; + sourceTree = ""; + }; + D45B050E207D49F1F0B18F2B76512FB3 /* Support Files */ = { + isa = PBXGroup; + children = ( + DC78F5D84FB60D48F3E5222FBB748F70 /* Alamofire.modulemap */, + 2E524BB44C60193F6500160F157A05CA /* Alamofire.xcconfig */, + E2BC8802B90D6D34BB8A6C74415E2913 /* Alamofire-dummy.m */, + 4125B9704297E0D70869B93C39FF887F /* Alamofire-Info.plist */, + 5AD5A070B5603BDA71A73D4F61F1F97B /* Alamofire-prefix.pch */, + A8AE7E7ED606685A23324D56F03FB9C2 /* Alamofire-umbrella.h */, + ); + name = "Support Files"; + path = "../Target Support Files/Alamofire"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 8B4C83554FAE0AD765F52663813EA2A6 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 8FBA75E6D34ADB2456284E8D8C41C99B /* Pods-Santander-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A6A607506FEAAC7C41268D3E5CF4E5FE /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + EF1461221681BCA12A4147900A704727 /* Alamofire-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + E76458C58C9140B6A16D60547E68E80C /* Alamofire */ = { + isa = PBXNativeTarget; + buildConfigurationList = 427F0F003A1AD80AE00155AFCDEFAC20 /* Build configuration list for PBXNativeTarget "Alamofire" */; + buildPhases = ( + A6A607506FEAAC7C41268D3E5CF4E5FE /* Headers */, + CC399CEC576B42C962CEB290481CAF95 /* Sources */, + 6E8AF668A2161F7D6F680F721DB65D2D /* Frameworks */, + 3DDB7E21141D7764AE4658D5B6AFF8C6 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Alamofire; + productName = Alamofire; + productReference = C7972F81E28B33A04AE8C6E7161C511E /* Alamofire.framework */; + productType = "com.apple.product-type.framework"; + }; + EBB1D8265DCA99962682EA7BD8B2602C /* Pods-Santander */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2F777E625C0B3F8243667E928014AF39 /* Build configuration list for PBXNativeTarget "Pods-Santander" */; + buildPhases = ( + 8B4C83554FAE0AD765F52663813EA2A6 /* Headers */, + 948EBBB99DE2CA3F3B3B352EE221BB66 /* Sources */, + 496E0E4DB236254B50CDF387B1C4F039 /* Frameworks */, + C672AC9EA112CA7C97E5AF6EFA80D0CB /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + A23DD6127A962F37EE483B71F9331E6D /* PBXTargetDependency */, + ); + name = "Pods-Santander"; + productName = "Pods-Santander"; + productReference = 40E54A77F49EBA1FF0EB9F37BFB7316D /* Pods_Santander.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0930; + LastUpgradeCheck = 0930; + }; + buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 7DB346D0F39D3F0E887471402A8071AB; + productRefGroup = C5405843B5764787F29C9765B6AEB556 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + E76458C58C9140B6A16D60547E68E80C /* Alamofire */, + EBB1D8265DCA99962682EA7BD8B2602C /* Pods-Santander */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3DDB7E21141D7764AE4658D5B6AFF8C6 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C672AC9EA112CA7C97E5AF6EFA80D0CB /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 948EBBB99DE2CA3F3B3B352EE221BB66 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F2D99EB0353AED27C40520EA3E5FDFCB /* Pods-Santander-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CC399CEC576B42C962CEB290481CAF95 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BE4BA1EDE444A770F834605F4B65348E /* AFError.swift in Sources */, + D4C3899574E9D5DF5E5DA52310560BCC /* Alamofire-dummy.m in Sources */, + 4E1A913EFB404FB11524718FF0298EFE /* Alamofire.swift in Sources */, + DBE6E2E4D205545E7988CFA5057C31D6 /* DispatchQueue+Alamofire.swift in Sources */, + FF9C7BC64DB23D2CED48197DE67F0335 /* MultipartFormData.swift in Sources */, + B77705737566AE83ED7E448923D7FA60 /* NetworkReachabilityManager.swift in Sources */, + 500C8EDA60C07B0F127C7FC385E17D38 /* Notifications.swift in Sources */, + 796177DE2762F24DAC16A709FD954838 /* ParameterEncoding.swift in Sources */, + 965DACF3DC02857ECBE66C5CBA3DA5D4 /* Request.swift in Sources */, + 52237C35642089F77DD4D723CEB25737 /* Response.swift in Sources */, + 5EE5FED83B90A606A763CF1114D1D6FB /* ResponseSerialization.swift in Sources */, + F9EA61D484CC15FDDAB0D8C0D26D7949 /* Result.swift in Sources */, + 6BEA14EC335E07C7063CD1383C0C443C /* ServerTrustPolicy.swift in Sources */, + 1FC3FD39157C2FFFF3869A1300730086 /* SessionDelegate.swift in Sources */, + 7068E8A7DDC1424EE8F24BC77E8746F4 /* SessionManager.swift in Sources */, + 36FF8853CB34A9297AFAA8F5F7456324 /* TaskDelegate.swift in Sources */, + B424F524BBBE34E685129945993809A8 /* Timeline.swift in Sources */, + 58A9719584AFA2D108D9E5C585A79329 /* Validation.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + A23DD6127A962F37EE483B71F9331E6D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = Alamofire; + target = E76458C58C9140B6A16D60547E68E80C /* Alamofire */; + targetProxy = 6651F76179175492B1B600BED053F984 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 0567FB6448A10E237C2A10E7004764EA /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C499773F13C7237F7C937ADB69970EFE /* Pods-Santander.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-Santander/Pods-Santander-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Santander/Pods-Santander.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 60DAF49CA7A9F362148D49C3C3123B2A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_ALLOWED = NO; + CODE_SIGNING_REQUIRED = NO; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "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 = 9.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + 7A8779EBC3330BBBA0E7F30FE6906E6C /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2E524BB44C60193F6500160F157A05CA /* Alamofire.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREFIX_HEADER = "Target Support Files/Alamofire/Alamofire-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/Alamofire/Alamofire-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/Alamofire/Alamofire.modulemap"; + PRODUCT_MODULE_NAME = Alamofire; + PRODUCT_NAME = Alamofire; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.2; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 88142DAFEAACB5211FEE239EFAEF6239 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A69FBBD61FAB598095E9504325F8F98E /* Pods-Santander.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-Santander/Pods-Santander-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Santander/Pods-Santander.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 9E39D650BE63905F0D23900565F65662 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2E524BB44C60193F6500160F157A05CA /* Alamofire.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREFIX_HEADER = "Target Support Files/Alamofire/Alamofire-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/Alamofire/Alamofire-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/Alamofire/Alamofire.modulemap"; + PRODUCT_MODULE_NAME = Alamofire; + PRODUCT_NAME = Alamofire; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 4.2; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + C4EAA84F44D044E108500A81C635F21E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_ALLOWED = NO; + CODE_SIGNING_REQUIRED = NO; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=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 = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 60DAF49CA7A9F362148D49C3C3123B2A /* Debug */, + C4EAA84F44D044E108500A81C635F21E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2F777E625C0B3F8243667E928014AF39 /* Build configuration list for PBXNativeTarget "Pods-Santander" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 88142DAFEAACB5211FEE239EFAEF6239 /* Debug */, + 0567FB6448A10E237C2A10E7004764EA /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 427F0F003A1AD80AE00155AFCDEFAC20 /* Build configuration list for PBXNativeTarget "Alamofire" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7A8779EBC3330BBBA0E7F30FE6906E6C /* Debug */, + 9E39D650BE63905F0D23900565F65662 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; +} diff --git a/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Alamofire.xcscheme b/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Alamofire.xcscheme new file mode 100644 index 00000000..74811113 --- /dev/null +++ b/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Alamofire.xcscheme @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Pods-Santander.xcscheme b/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Pods-Santander.xcscheme new file mode 100644 index 00000000..1c9a199b --- /dev/null +++ b/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Pods-Santander.xcscheme @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/xcschememanagement.plist b/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 00000000..3fdd07ef --- /dev/null +++ b/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,21 @@ + + + + + SchemeUserState + + Alamofire.xcscheme + + isShown + + + Pods-Santander.xcscheme + + isShown + + + + SuppressBuildableAutocreation + + + diff --git a/Santander/Pods/Target Support Files/Alamofire/Alamofire-Info.plist b/Santander/Pods/Target Support Files/Alamofire/Alamofire-Info.plist new file mode 100644 index 00000000..593ef3e9 --- /dev/null +++ b/Santander/Pods/Target Support Files/Alamofire/Alamofire-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 4.8.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Santander/Pods/Target Support Files/Alamofire/Alamofire-dummy.m b/Santander/Pods/Target Support Files/Alamofire/Alamofire-dummy.m new file mode 100644 index 00000000..a6c45942 --- /dev/null +++ b/Santander/Pods/Target Support Files/Alamofire/Alamofire-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Alamofire : NSObject +@end +@implementation PodsDummy_Alamofire +@end diff --git a/Santander/Pods/Target Support Files/Alamofire/Alamofire-prefix.pch b/Santander/Pods/Target Support Files/Alamofire/Alamofire-prefix.pch new file mode 100644 index 00000000..beb2a244 --- /dev/null +++ b/Santander/Pods/Target Support Files/Alamofire/Alamofire-prefix.pch @@ -0,0 +1,12 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + diff --git a/Santander/Pods/Target Support Files/Alamofire/Alamofire-umbrella.h b/Santander/Pods/Target Support Files/Alamofire/Alamofire-umbrella.h new file mode 100644 index 00000000..00014e3c --- /dev/null +++ b/Santander/Pods/Target Support Files/Alamofire/Alamofire-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double AlamofireVersionNumber; +FOUNDATION_EXPORT const unsigned char AlamofireVersionString[]; + diff --git a/Santander/Pods/Target Support Files/Alamofire/Alamofire.modulemap b/Santander/Pods/Target Support Files/Alamofire/Alamofire.modulemap new file mode 100644 index 00000000..d1f125fa --- /dev/null +++ b/Santander/Pods/Target Support Files/Alamofire/Alamofire.modulemap @@ -0,0 +1,6 @@ +framework module Alamofire { + umbrella header "Alamofire-umbrella.h" + + export * + module * { export * } +} diff --git a/Santander/Pods/Target Support Files/Alamofire/Alamofire.xcconfig b/Santander/Pods/Target Support Files/Alamofire/Alamofire.xcconfig new file mode 100644 index 00000000..12a14508 --- /dev/null +++ b/Santander/Pods/Target Support Files/Alamofire/Alamofire.xcconfig @@ -0,0 +1,9 @@ +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Alamofire +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT} +PODS_TARGET_SRCROOT = ${PODS_ROOT}/Alamofire +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES diff --git a/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-Info.plist b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-Info.plist new file mode 100644 index 00000000..2243fe6e --- /dev/null +++ b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-acknowledgements.markdown b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-acknowledgements.markdown new file mode 100644 index 00000000..ae80cfd3 --- /dev/null +++ b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-acknowledgements.markdown @@ -0,0 +1,26 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## Alamofire + +Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) + +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. + +Generated by CocoaPods - https://cocoapods.org diff --git a/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-acknowledgements.plist b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-acknowledgements.plist new file mode 100644 index 00000000..7c82be47 --- /dev/null +++ b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-acknowledgements.plist @@ -0,0 +1,5 @@ + + + + + diff --git a/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-dummy.m b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-dummy.m new file mode 100644 index 00000000..d39719b3 --- /dev/null +++ b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_Santander : NSObject +@end +@implementation PodsDummy_Pods_Santander +@end diff --git a/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-frameworks.sh b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-frameworks.sh new file mode 100755 index 00000000..e2641682 --- /dev/null +++ b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-frameworks.sh @@ -0,0 +1,158 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then + # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy + # frameworks to, so exit 0 (signalling the script phase was successful). + exit 0 +fi + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +# Used as a return value for each invocation of `strip_invalid_archs` function. +STRIP_BINARY_RETVAL=0 + +# This protects against multiple targets copying the same framework dependency at the same time. The solution +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") + +# Copies and strips a vendored framework +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 don't throw errors. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --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}" + elif [ -L "${binary}" ]; then + echo "Destination binary is symlinked..." + dirname="$(dirname "${binary}")" + binary="${dirname}/$(readlink "${binary}")" + 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 +} + +# Copies and strips a vendored dSYM +install_dsym() { + local source="$1" + if [ -r "$source" ]; then + # Copy the dSYM into a the targets temp dir. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" + + local basename + basename="$(basename -s .framework.dSYM "$source")" + binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then + strip_invalid_archs "$binary" + fi + + if [[ $STRIP_BINARY_RETVAL == 1 ]]; then + # Move the stripped file into its final destination. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" + else + # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. + touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" + fi + 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_identity + 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 target binary + binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" + # Intersect them with the architectures we are building for + intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" + # If there are no archs supported by this binary then warn the user + if [[ -z "$intersected_archs" ]]; then + echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." + STRIP_BINARY_RETVAL=0 + return + fi + stripped="" + for arch in $binary_archs; do + if ! [[ "${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 + STRIP_BINARY_RETVAL=1 +} + + +if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework" +fi +if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework" +fi +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + wait +fi diff --git a/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-umbrella.h b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-umbrella.h new file mode 100644 index 00000000..0dbd58cc --- /dev/null +++ b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double Pods_SantanderVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_SantanderVersionString[]; + diff --git a/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.debug.xcconfig b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.debug.xcconfig new file mode 100644 index 00000000..d6529f4d --- /dev/null +++ b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.debug.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Alamofire" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Alamofire/Alamofire.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "Alamofire" +OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.modulemap b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.modulemap new file mode 100644 index 00000000..7ec9e267 --- /dev/null +++ b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.modulemap @@ -0,0 +1,6 @@ +framework module Pods_Santander { + umbrella header "Pods-Santander-umbrella.h" + + export * + module * { export * } +} diff --git a/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.release.xcconfig b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.release.xcconfig new file mode 100644 index 00000000..d6529f4d --- /dev/null +++ b/Santander/Pods/Target Support Files/Pods-Santander/Pods-Santander.release.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Alamofire" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Alamofire/Alamofire.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "Alamofire" +OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Santander/Santander.xcodeproj/project.pbxproj b/Santander/Santander.xcodeproj/project.pbxproj new file mode 100644 index 00000000..8dbc27e3 --- /dev/null +++ b/Santander/Santander.xcodeproj/project.pbxproj @@ -0,0 +1,485 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 350FB2A251B02CBF7A3EC587 /* Pods_Santander.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A6E92033EEBD6D1A4E174BBC /* Pods_Santander.framework */; }; + 7415214421E12BC500DD000F /* RequestBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7415214221E12BC500DD000F /* RequestBase.swift */; }; + 7415214521E12BC500DD000F /* RequestService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7415214321E12BC500DD000F /* RequestService.swift */; }; + 7415214721E12D9A00DD000F /* Endpoint.plist in Resources */ = {isa = PBXBuildFile; fileRef = 7415214621E12D9A00DD000F /* Endpoint.plist */; }; + 7473871E21E00368005C4A49 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473871D21E00368005C4A49 /* AppDelegate.swift */; }; + 7473872021E00368005C4A49 /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473871F21E00368005C4A49 /* MainViewController.swift */; }; + 7473872521E0036C005C4A49 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7473872421E0036C005C4A49 /* Assets.xcassets */; }; + 7473872821E0036C005C4A49 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7473872621E0036C005C4A49 /* LaunchScreen.storyboard */; }; + 7473873421E03CB2005C4A49 /* ContactViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473873321E03CB2005C4A49 /* ContactViewController.swift */; }; + 7473873621E03CC5005C4A49 /* ProductViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473873521E03CC5005C4A49 /* ProductViewController.swift */; }; + 7473873A21E03DFF005C4A49 /* ContactView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473873921E03DFF005C4A49 /* ContactView.swift */; }; + 7473873C21E03E15005C4A49 /* ProductView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473873B21E03E15005C4A49 /* ProductView.swift */; }; + 74E715C021E062D40079A3AE /* ContactPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74E715BF21E062D40079A3AE /* ContactPresenter.swift */; }; + 74E715C221E065940079A3AE /* FormItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74E715C121E065940079A3AE /* FormItem.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 675F3ECE90A89FC4D74117E2 /* Pods-Santander.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Santander.debug.xcconfig"; path = "Target Support Files/Pods-Santander/Pods-Santander.debug.xcconfig"; sourceTree = ""; }; + 7415214221E12BC500DD000F /* RequestBase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RequestBase.swift; sourceTree = ""; }; + 7415214321E12BC500DD000F /* RequestService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RequestService.swift; sourceTree = ""; }; + 7415214621E12D9A00DD000F /* Endpoint.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Endpoint.plist; sourceTree = ""; }; + 7473871A21E00368005C4A49 /* Santander.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Santander.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 7473871D21E00368005C4A49 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7473871F21E00368005C4A49 /* MainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = ""; }; + 7473872421E0036C005C4A49 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 7473872721E0036C005C4A49 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 7473872921E0036C005C4A49 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7473873321E03CB2005C4A49 /* ContactViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactViewController.swift; sourceTree = ""; }; + 7473873521E03CC5005C4A49 /* ProductViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductViewController.swift; sourceTree = ""; }; + 7473873921E03DFF005C4A49 /* ContactView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactView.swift; sourceTree = ""; }; + 7473873B21E03E15005C4A49 /* ProductView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductView.swift; sourceTree = ""; }; + 74E715BF21E062D40079A3AE /* ContactPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactPresenter.swift; sourceTree = ""; }; + 74E715C121E065940079A3AE /* FormItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FormItem.swift; sourceTree = ""; }; + 934B47DDAC95ECA559529A0D /* Pods-Santander.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Santander.release.xcconfig"; path = "Target Support Files/Pods-Santander/Pods-Santander.release.xcconfig"; sourceTree = ""; }; + A6E92033EEBD6D1A4E174BBC /* Pods_Santander.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Santander.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 7473871721E00368005C4A49 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 350FB2A251B02CBF7A3EC587 /* Pods_Santander.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0AFB33E49E924A9DE4E18D31 /* Pods */ = { + isa = PBXGroup; + children = ( + 675F3ECE90A89FC4D74117E2 /* Pods-Santander.debug.xcconfig */, + 934B47DDAC95ECA559529A0D /* Pods-Santander.release.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; + 3D5A074CF5DBE28945DB9B74 /* Frameworks */ = { + isa = PBXGroup; + children = ( + A6E92033EEBD6D1A4E174BBC /* Pods_Santander.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 7473871121E00368005C4A49 = { + isa = PBXGroup; + children = ( + 7473871C21E00368005C4A49 /* Santander */, + 7473871B21E00368005C4A49 /* Products */, + 0AFB33E49E924A9DE4E18D31 /* Pods */, + 3D5A074CF5DBE28945DB9B74 /* Frameworks */, + ); + sourceTree = ""; + }; + 7473871B21E00368005C4A49 /* Products */ = { + isa = PBXGroup; + children = ( + 7473871A21E00368005C4A49 /* Santander.app */, + ); + name = Products; + sourceTree = ""; + }; + 7473871C21E00368005C4A49 /* Santander */ = { + isa = PBXGroup; + children = ( + 7473873821E03D64005C4A49 /* ViewController */, + 7473873721E03D4D005C4A49 /* Request */, + 7473872F21E003D8005C4A49 /* Model */, + 7473873021E003E2005C4A49 /* View */, + 7473873121E003EB005C4A49 /* Presenter */, + 7473872921E0036C005C4A49 /* Info.plist */, + 7415214621E12D9A00DD000F /* Endpoint.plist */, + 7473871D21E00368005C4A49 /* AppDelegate.swift */, + 7473872421E0036C005C4A49 /* Assets.xcassets */, + 7473872621E0036C005C4A49 /* LaunchScreen.storyboard */, + ); + path = Santander; + sourceTree = ""; + }; + 7473872F21E003D8005C4A49 /* Model */ = { + isa = PBXGroup; + children = ( + 74E715C121E065940079A3AE /* FormItem.swift */, + ); + path = Model; + sourceTree = ""; + }; + 7473873021E003E2005C4A49 /* View */ = { + isa = PBXGroup; + children = ( + 7473873921E03DFF005C4A49 /* ContactView.swift */, + 7473873B21E03E15005C4A49 /* ProductView.swift */, + ); + path = View; + sourceTree = ""; + }; + 7473873121E003EB005C4A49 /* Presenter */ = { + isa = PBXGroup; + children = ( + 74E715BF21E062D40079A3AE /* ContactPresenter.swift */, + ); + path = Presenter; + sourceTree = ""; + }; + 7473873721E03D4D005C4A49 /* Request */ = { + isa = PBXGroup; + children = ( + 7415214221E12BC500DD000F /* RequestBase.swift */, + 7415214321E12BC500DD000F /* RequestService.swift */, + ); + path = Request; + sourceTree = ""; + }; + 7473873821E03D64005C4A49 /* ViewController */ = { + isa = PBXGroup; + children = ( + 7473871F21E00368005C4A49 /* MainViewController.swift */, + 7473873321E03CB2005C4A49 /* ContactViewController.swift */, + 7473873521E03CC5005C4A49 /* ProductViewController.swift */, + ); + path = ViewController; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 7473871921E00368005C4A49 /* Santander */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7473872C21E0036C005C4A49 /* Build configuration list for PBXNativeTarget "Santander" */; + buildPhases = ( + 52CBC6E28BD2AB8DFFC0527B /* [CP] Check Pods Manifest.lock */, + 7473871621E00368005C4A49 /* Sources */, + 7473871721E00368005C4A49 /* Frameworks */, + 7473871821E00368005C4A49 /* Resources */, + A1F29A3BE60F5DB49F429AAA /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Santander; + productName = Santander; + productReference = 7473871A21E00368005C4A49 /* Santander.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 7473871221E00368005C4A49 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1010; + LastUpgradeCheck = 1010; + ORGANIZATIONNAME = Surrey; + TargetAttributes = { + 7473871921E00368005C4A49 = { + CreatedOnToolsVersion = 10.1; + }; + }; + }; + buildConfigurationList = 7473871521E00368005C4A49 /* Build configuration list for PBXProject "Santander" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 7473871121E00368005C4A49; + productRefGroup = 7473871B21E00368005C4A49 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 7473871921E00368005C4A49 /* Santander */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 7473871821E00368005C4A49 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7473872821E0036C005C4A49 /* LaunchScreen.storyboard in Resources */, + 7473872521E0036C005C4A49 /* Assets.xcassets in Resources */, + 7415214721E12D9A00DD000F /* Endpoint.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 52CBC6E28BD2AB8DFFC0527B /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Santander-checkManifestLockResult.txt", + ); + 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# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + A1F29A3BE60F5DB49F429AAA /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Santander/Pods-Santander-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + ); + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Alamofire.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Santander/Pods-Santander-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 7473871621E00368005C4A49 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7473872021E00368005C4A49 /* MainViewController.swift in Sources */, + 7415214521E12BC500DD000F /* RequestService.swift in Sources */, + 7473871E21E00368005C4A49 /* AppDelegate.swift in Sources */, + 7473873621E03CC5005C4A49 /* ProductViewController.swift in Sources */, + 74E715C021E062D40079A3AE /* ContactPresenter.swift in Sources */, + 74E715C221E065940079A3AE /* FormItem.swift in Sources */, + 7473873A21E03DFF005C4A49 /* ContactView.swift in Sources */, + 7415214421E12BC500DD000F /* RequestBase.swift in Sources */, + 7473873C21E03E15005C4A49 /* ProductView.swift in Sources */, + 7473873421E03CB2005C4A49 /* ContactViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 7473872621E0036C005C4A49 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 7473872721E0036C005C4A49 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 7473872A21E0036C005C4A49 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.1; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 7473872B21E0036C005C4A49 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.1; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 7473872D21E0036C005C4A49 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 675F3ECE90A89FC4D74117E2 /* Pods-Santander.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + BASE_URL = "https://floating-mountain-50292.herokuapp.com/"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = NA36627892; + INFOPLIST_FILE = Santander/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.surrey.Santander; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + TARGETED_DEVICE_FAMILY = 1; + }; + name = Debug; + }; + 7473872E21E0036C005C4A49 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 934B47DDAC95ECA559529A0D /* Pods-Santander.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + BASE_URL = "https://floating-mountain-50292.herokuapp.com/"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = NA36627892; + INFOPLIST_FILE = Santander/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.surrey.Santander; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + TARGETED_DEVICE_FAMILY = 1; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 7473871521E00368005C4A49 /* Build configuration list for PBXProject "Santander" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7473872A21E0036C005C4A49 /* Debug */, + 7473872B21E0036C005C4A49 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7473872C21E0036C005C4A49 /* Build configuration list for PBXNativeTarget "Santander" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7473872D21E0036C005C4A49 /* Debug */, + 7473872E21E0036C005C4A49 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 7473871221E00368005C4A49 /* Project object */; +} diff --git a/Santander/Santander.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Santander/Santander.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..6be278bb --- /dev/null +++ b/Santander/Santander.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Santander/Santander.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Santander/Santander.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/Santander/Santander.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Santander/Santander.xcodeproj/project.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcodeproj/project.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000000000000000000000000000000000000..e8ffc960c3302d2b816b43a85160d3b8277497fc GIT binary patch literal 60909 zcmd3P2Y3@l)9{u%Nv8s)cQDwL1Z->r1_J?POU43QGLmdCO)<7G3dV9InV#e}z4uAk$^?M->p^Uv<-R9wIzAO92l$jEmyv$M0aGqW>$w=0?(L(y1X-pdFh zf+&)Zj10EtY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#`kg%5;}g-?ZVh2Mlfhaf}ChM+^RAkkOFIkm-=w5Oc_L zC}=2jC}JpjXx-4Jq12&_p{${tp}Zm1(4L`dLtjKnqU9nLk*Y{bL=deM>5Gg+M3Je; zOhggUM6Mz)k&nn<6e0=}MT(+DsiF)~v8YN^D{2rmiCRQmq8?G7Xh6gh2}DOlkHo5C zlGsvgBc_W1v5VMO>@N-!2a7|+;o>B5ia1T2Db5w=iwnd>;(BqrxL?c_3&cZWiFi`H zTf9&FyZDg!i1>y?Nn$K8v_IB+3*bk|)6ed-ZBBV&E7U)3HmzqdPQZp%4Y9(DOrAs}e zq0)8I1Zk3VlQdPDE8QY3lom_3O3S3Z(qqzx2}k5k93 z#vRAq#y!Tp#{jMtB|#@og_#=FLQ#{0(ikKdO4CexR# zkx^t+nU%~|<|gx$`N;fbL9!58m@HA2EK8MT$Z}+PvI1F=tX{TV)+Ota^~<<2flMfy zk{yzrlU$!n80 zC+|$&pL{s^cJj;Q_bG)br774Hd`e>qIi)paJC!!oImMY8nwpyWed^HE(Ww(t=cZ<- z7N#ytElpjXx;gc1>d&e7Q=g{3PD7@bO+%+)(`wV`X`N}q={3`oY3j7~G;`X1+G*N# z+I>1;I($0*+^chM&i$BCol&3BoY9)W%wT5-Go%@_8OjV5^y{phq0ay_@iR3u(wQqW zcW0i?yq)2Z>~%H8E&a$mW>JVG8VkCn&CljSM$GGkPA-?v&#s+ynRT1>nDw4LIy*Z% zKf5@4an51Rcg}wMs(1nLQw&Rp751eBsyqzyDq|{Wm?ZkedJi literal 0 HcmV?d00001 diff --git a/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - PROD.xcscheme b/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - PROD.xcscheme new file mode 100644 index 00000000..5f2bb511 --- /dev/null +++ b/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - PROD.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - STAG.xcscheme b/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - STAG.xcscheme new file mode 100644 index 00000000..5ec4fa11 --- /dev/null +++ b/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - STAG.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander.xcscheme b/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander.xcscheme new file mode 100644 index 00000000..fdc70f7f --- /dev/null +++ b/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Santander/Santander.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/xcschememanagement.plist b/Santander/Santander.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 00000000..7d44c2b0 --- /dev/null +++ b/Santander/Santander.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,32 @@ + + + + + SchemeUserState + + Santander - PROD.xcscheme_^#shared#^_ + + orderHint + 0 + + Santander - STAG.xcscheme_^#shared#^_ + + orderHint + 2 + + Santander.xcscheme_^#shared#^_ + + orderHint + 1 + + + SuppressBuildableAutocreation + + 7473871921E00368005C4A49 + + primary + + + + + diff --git a/Santander/Santander.xcworkspace/contents.xcworkspacedata b/Santander/Santander.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..e0210ca6 --- /dev/null +++ b/Santander/Santander.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Santander/Santander/AppDelegate.swift b/Santander/Santander/AppDelegate.swift new file mode 100644 index 00000000..d6f6a84b --- /dev/null +++ b/Santander/Santander/AppDelegate.swift @@ -0,0 +1,50 @@ +// +// AppDelegate.swift +// Santander +// +// Created by Jonathan Martins on 04/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + + window = UIWindow() + window?.rootViewController = MainViewController() + window?.makeKeyAndVisible() + + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // 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 invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // 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. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // 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. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/Santander/Santander/Assets.xcassets/AppIcon.appiconset/Contents.json b/Santander/Santander/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..d8db8d65 --- /dev/null +++ b/Santander/Santander/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Santander/Santander/Assets.xcassets/Contents.json b/Santander/Santander/Assets.xcassets/Contents.json new file mode 100644 index 00000000..da4a164c --- /dev/null +++ b/Santander/Santander/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Santander/Santander/Base.lproj/LaunchScreen.storyboard b/Santander/Santander/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 00000000..bfa36129 --- /dev/null +++ b/Santander/Santander/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Santander/Santander/Endpoint.plist b/Santander/Santander/Endpoint.plist new file mode 100644 index 00000000..06b8ac56 --- /dev/null +++ b/Santander/Santander/Endpoint.plist @@ -0,0 +1,10 @@ + + + + + product + fund.json + form + cells.json + + diff --git a/Santander/Santander/Info.plist b/Santander/Santander/Info.plist new file mode 100644 index 00000000..4f2c528d --- /dev/null +++ b/Santander/Santander/Info.plist @@ -0,0 +1,70 @@ + + + + + BASE_URL + $(BASE_URL) + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + NSExceptionDomains + + floating-mountain-50292.herokuapp.com + + NSExceptionAllowsInsecureHTTPLoads + + NSExceptionMinimumTLSVersion + TLSv1.2 + NSExceptionRequiresForwardSecrecy + + NSIncludesSubdomains + + NSRequiresCertificateTransparency + + NSThirdPartyExceptionAllowsInsecureHTTPLoads + + NSThirdPartyExceptionMinimumTLSVersion + TLSv1.2 + NSThirdPartyExceptionRequiresForwardSecrecy + + + + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Santander/Santander/Model/FormItem.swift b/Santander/Santander/Model/FormItem.swift new file mode 100644 index 00000000..91a18e13 --- /dev/null +++ b/Santander/Santander/Model/FormItem.swift @@ -0,0 +1,11 @@ +// +// FormItem.swift +// Santander +// +// Created by Jonathan Martins on 05/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +struct FormItem { + +} diff --git a/Santander/Santander/Presenter/ContactPresenter.swift b/Santander/Santander/Presenter/ContactPresenter.swift new file mode 100644 index 00000000..d6f3339f --- /dev/null +++ b/Santander/Santander/Presenter/ContactPresenter.swift @@ -0,0 +1,48 @@ +// +// ContactPresenter.swift +// Santander +// +// Created by Jonathan Martins on 05/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +class ContactPresenter{ + + private var view:ContactViewDelegate? + + /// + init(bindTo view:ContactViewDelegate) { + self.view = view + } + + /// + func destroy(){ + view = nil + } + + /// + func sendContact(){ + + } + + /// + func requestForm(){ + + } + + /// + func isNameValid(name:String?){ + + } + + /// + func isEmailValid(email:String?){ + + } + + /// + func isPhoneValid(phone:String?){ + + } + +} diff --git a/Santander/Santander/Request/RequestBase.swift b/Santander/Santander/Request/RequestBase.swift new file mode 100644 index 00000000..5edb9256 --- /dev/null +++ b/Santander/Santander/Request/RequestBase.swift @@ -0,0 +1,75 @@ +// +// RequestBase.swift +// Santander +// +// Created by Jonathan Martins on 04/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import Foundation +import Alamofire + +// Class responsible for all the requests performed inside the app +class RequestBase { + + /// Holds any parameters that the requests may need + var parameters:[String:Any] = [:] + + private static let session: SessionManager = { + let configuration = URLSessionConfiguration.default + configuration.urlCache = nil + configuration.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData + configuration.httpCookieStorage = HTTPCookieStorage.shared + return SessionManager(configuration: configuration) + }() + + /// The name of the Endpoint + private var endpointName = "" + + /// Returns the Base URL, according to the development environment (Debug or Release) + private var BASE_URL:String { + return Bundle.main.infoDictionary?["BASE_URL"] as? String ?? "" + } + + /// The request URL + private var defaultURL:String{ + get{ + if let path = Bundle.main.path(forResource: "Endpoint", ofType: "plist") { + if let plist = NSDictionary(contentsOfFile: path), let endpoint = plist[endpointName] as? String { + return BASE_URL + endpoint + } + else{ + fatalError("The endpoint named ''\(endpointName)'' does not exist") + } + } + else{ + fatalError("The file ''endpoints'' could not be located") + } + } + } + + init() { + + } + + func get(endpoint:Endpoint, parameters: Parameters?=nil) -> DataRequest { + endpointName = endpoint.rawValue + printAccess(parameters) + return RequestBase.session.request(defaultURL, method: .get, parameters: parameters, headers:nil) + } + + // Request logs + private func printAccess(_ parameters: Parameters?){ + let param: Any = parameters ?? "--" + print("\n ======== URL SENDO ACESSADA ======== \n\n - URL:\n \(defaultURL) \n\n - PARAMETROS:\n \(param)\n ==================================== \n") + } +} + +enum Endpoint:String { + + /// Endpoint for the form items + case form + + /// Endpoint for the details of the product + case product +} diff --git a/Santander/Santander/Request/RequestService.swift b/Santander/Santander/Request/RequestService.swift new file mode 100644 index 00000000..108c2e31 --- /dev/null +++ b/Santander/Santander/Request/RequestService.swift @@ -0,0 +1,24 @@ +// +// RequestService.swift +// Santander +// +// Created by Jonathan Martins on 04/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import Foundation +import Alamofire + +class RequestService: RequestBase { + + /// Requests a list of items for the contact form + func formList() -> DataRequest{ + return get(endpoint: .form) + } + + /// Requests the details of the product + func productDetail() -> DataRequest{ + return get(endpoint: .product) + } + +} diff --git a/Santander/Santander/View/ContactView.swift b/Santander/Santander/View/ContactView.swift new file mode 100644 index 00000000..dd439878 --- /dev/null +++ b/Santander/Santander/View/ContactView.swift @@ -0,0 +1,130 @@ +// +// ContactView.swift +// Santander +// +// Created by Jonathan Martins on 04/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +protocol ContactViewDelegate { + func updateContactName(name:String?) + func updateContactEmail(email:String?) + func updateContactPhone(phone:String?) + func userCheckedToReceiveEmail() + func userUncheckedToReceiveEmail() + func updateTableViewItems(items:[FormItem]) + func showSuccessPage() + func hideSuccessPage() +} + +class ContactView: UIView { + + /// The list of items for the form + let tableView:UITableView = { + let tableView = UITableView() + tableView.separatorStyle = .none + tableView.tableFooterView = UIView() + tableView.backgroundColor = .white + //tableView.register(FavoriteCell.self, forCellReuseIdentifier: FavoriteCell.identifier) + tableView.translatesAutoresizingMaskIntoConstraints = false + return tableView + }() + + /// The UIlabel with the text "Obrigado" + private let staticLabel1:UILabel = { + let label = UILabel() + label.text = "Obrigado" + label.font = UIFont.systemFont(ofSize: 12, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + /// The UIlabel with the text "Mensagem enviada com sucesso :)" + private let staticLabel2:UILabel = { + let label = UILabel() + label.text = "Mensagem enviada\ncom sucesso :)" + label.font = UIFont.systemFont(ofSize: 18, weight: .bold) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + /// The button to send another message + let buttonNewMessage:UIButton = { + let button = UIButton() + button.backgroundColor = .clear + button.setTitle("Enviar nova mensagem", for: .normal) + button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 14) + button.translatesAutoresizingMaskIntoConstraints = false + return button + }() + + /// Sets up the constraints for the views + private func setupConstraints(){ + self.addSubview(buttonNewMessage) + self.addSubview(staticLabel1) + self.addSubview(staticLabel2) + self.addSubview(tableView) + + NSLayoutConstraint.activate([ + tableView.topAnchor .constraint(equalTo: self.topAnchor), + tableView.bottomAnchor .constraint(equalTo: self.bottomAnchor), + tableView.leadingAnchor .constraint(equalTo: self.leadingAnchor), + tableView.trailingAnchor.constraint(equalTo: self.trailingAnchor), + + staticLabel1.centerXAnchor.constraint(equalTo: staticLabel2.centerXAnchor), + staticLabel1.bottomAnchor.constraint(equalTo: staticLabel2.topAnchor, constant: 14), + + staticLabel2.centerXAnchor.constraint(equalTo: self.centerXAnchor), + staticLabel2.centerYAnchor.constraint(equalTo: self.centerYAnchor), + + buttonNewMessage.centerXAnchor.constraint(equalTo: self.centerXAnchor), + buttonNewMessage.bottomAnchor.constraint(equalTo: self.bottomAnchor, constant: 20), + ]) + } + + override init(frame: CGRect) { + super.init(frame: frame) + setupConstraints() + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } +} + +extension ContactView: ContactViewDelegate{ + + func userCheckedToReceiveEmail() { + <#code#> + } + + func userUncheckedToReceiveEmail() { + <#code#> + } + + func updateTableViewItems(items: [FormItem]) { + <#code#> + } + + func showSuccessPage() { + <#code#> + } + + func hideSuccessPage() { + <#code#> + } + + func updateContactName(name: String?) { + <#code#> + } + + func updateContactEmail(email: String?) { + <#code#> + } + + func updateContactPhone(phone: String?) { + <#code#> + } +} diff --git a/Santander/Santander/View/ProductView.swift b/Santander/Santander/View/ProductView.swift new file mode 100644 index 00000000..4ddc19a5 --- /dev/null +++ b/Santander/Santander/View/ProductView.swift @@ -0,0 +1,56 @@ +// +// ProductView.swift +// Santander +// +// Created by Jonathan Martins on 04/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +protocol ProductViewDelegate { + +} + +class ProductView: UIView { + + /// The list of favorited movies + let tableView:UITableView = { + let tableView = UITableView() + tableView.separatorStyle = .none + tableView.tableFooterView = UIView() + //tableView.register(FavoriteCell.self, forCellReuseIdentifier: FavoriteCell.identifier) + tableView.translatesAutoresizingMaskIntoConstraints = false + return tableView + }() + + /// Sets up the constraints for the views + private func setupConstraints(){ + self.addSubview(tableView) + + if #available(iOS 11.0, *) { + NSLayoutConstraint.activate([ + tableView.topAnchor .constraint(equalTo: self.safeAreaLayoutGuide.topAnchor), + tableView.bottomAnchor .constraint(equalTo: self.safeAreaLayoutGuide.bottomAnchor), + tableView.leadingAnchor .constraint(equalTo: self.safeAreaLayoutGuide.leadingAnchor), + tableView.trailingAnchor.constraint(equalTo: self.safeAreaLayoutGuide.trailingAnchor), + ]) + } else { + NSLayoutConstraint.activate([ + tableView.topAnchor .constraint(equalTo: self.topAnchor), + tableView.bottomAnchor .constraint(equalTo: self.bottomAnchor), + tableView.leadingAnchor .constraint(equalTo: self.leadingAnchor), + tableView.trailingAnchor.constraint(equalTo: self.trailingAnchor), + ]) + } + } + + override init(frame: CGRect) { + super.init(frame: frame) + setupConstraints() + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } +} diff --git a/Santander/Santander/View/ProductViewController.swift b/Santander/Santander/View/ProductViewController.swift new file mode 100644 index 00000000..519cbca1 --- /dev/null +++ b/Santander/Santander/View/ProductViewController.swift @@ -0,0 +1,17 @@ +// +// ProductViewController.swift +// Santander +// +// Created by Jonathan Martins on 04/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class ProductViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + } + +} diff --git a/Santander/Santander/ViewController/ContactViewController.swift b/Santander/Santander/ViewController/ContactViewController.swift new file mode 100644 index 00000000..ba914b02 --- /dev/null +++ b/Santander/Santander/ViewController/ContactViewController.swift @@ -0,0 +1,42 @@ +// +// ContactViewController.swift +// Santander +// +// Created by Jonathan Martins on 04/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class ContactViewController: UIViewController { + + private unowned var _view:ContactView { return self.view as! ContactView } + + private var formItems:[FormItem] = [] + private var presenter:ContactPresenter! + + override func loadView() { + self.view = ContactView() + } + + override func viewDidLoad() { + super.viewDidLoad() + presenter = ContactPresenter(bindTo: _view) + } + + override func viewDidDisappear(_ animated: Bool) { + super.viewDidDisappear(animated) + presenter.destroy() + } +} + +extension ContactViewController: UITableViewDelegate, UITableViewDataSource { + + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return formItems.count + } + + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + return UITableViewCell() + } +} diff --git a/Santander/Santander/ViewController/MainViewController.swift b/Santander/Santander/ViewController/MainViewController.swift new file mode 100644 index 00000000..e0126c11 --- /dev/null +++ b/Santander/Santander/ViewController/MainViewController.swift @@ -0,0 +1,40 @@ +// +// MainViewController.swift +// Santander +// +// Created by Jonathan Martins on 04/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class MainViewController: UITabBarController { + + override func viewDidLoad() { + super.viewDidLoad() + setupTabBarController() + } + + /// Creates the main view of the app with it`s respective tabs + private func setupTabBarController(){ + + /// Sets the selected colour for the icons and the +// self.tabBar.tintColor = .appColor + self.tabBar.backgroundColor = .white + self.hidesBottomBarWhenPushed = true + + /// Creates instances of the View Controllers + let contactController = ContactViewController() + let productController = ProductViewController() + + /// Sets the names for the tabs, the images and their index + contactController.tabBarItem = UITabBarItem(title: "Contato" , image: nil, tag: 0) + productController.tabBarItem = UITabBarItem(title: "Investimento" , image: nil, tag: 1) + + /// Adds the ViewControllers to the TabBarController + self.viewControllers = [contactController, productController].map { + UINavigationController(rootViewController: $0) + } + } +} + diff --git a/Santander/Santander/ViewController/ProductViewController.swift b/Santander/Santander/ViewController/ProductViewController.swift new file mode 100644 index 00000000..519cbca1 --- /dev/null +++ b/Santander/Santander/ViewController/ProductViewController.swift @@ -0,0 +1,17 @@ +// +// ProductViewController.swift +// Santander +// +// Created by Jonathan Martins on 04/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class ProductViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + } + +} From 46f15db3154c1c22d28acc806f01e2753aa3d6b4 Mon Sep 17 00:00:00 2001 From: - Jonathan Martins Date: Mon, 7 Jan 2019 17:05:29 -0200 Subject: [PATCH 02/11] - Create some extensions - Added te implementation of the requests - Displaying the ContactView --- .../xcschemes/xcschememanagement.plist | 19 +++++ Santander/Santander.xcodeproj/project.pbxproj | 49 ++++++++++++- .../xcschemes/xcschememanagement.plist | 24 +++++++ .../xcshareddata/IDEWorkspaceChecks.plist | 8 +++ .../UserInterfaceState.xcuserstate | Bin 0 -> 29763 bytes .../xcdebugger/Breakpoints_v2.xcbkptlist | 5 ++ Santander/Santander/Cell/BaseCell.swift | 26 +++++++ Santander/Santander/Cell/UIButtonCell.swift | 52 ++++++++++++++ Santander/Santander/Cell/UICheckBoxCell.swift | 66 +++++++++++++++++ Santander/Santander/Cell/UILabelCell.swift | 52 ++++++++++++++ .../Santander/Cell/UITextFieldCell.swift | 67 ++++++++++++++++++ .../Extension/UITableView+Utils.swift | 31 ++++++++ .../Santander/Extension/UIView+Utils.swift | 40 +++++++++++ Santander/Santander/Model/FormItem.swift | 67 +++++++++++++++++- .../Presenter/ContactPresenter.swift | 10 ++- .../Santander/Request/RequestService.swift | 1 - Santander/Santander/View/ContactView.swift | 32 ++++++--- Santander/Santander/View/ProductView.swift | 22 ++---- .../ViewController/BaseViewController.swift | 24 +++++++ .../ContactViewController.swift | 43 +++++++++-- .../ViewController/MainViewController.swift | 18 +++-- .../ProductViewController.swift | 3 +- 22 files changed, 619 insertions(+), 40 deletions(-) create mode 100644 Santander/Pods/Pods.xcodeproj/xcuserdata/jussi.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 Santander/Santander.xcodeproj/xcuserdata/jussi.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 Santander/Santander.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate create mode 100644 Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist create mode 100644 Santander/Santander/Cell/BaseCell.swift create mode 100644 Santander/Santander/Cell/UIButtonCell.swift create mode 100644 Santander/Santander/Cell/UICheckBoxCell.swift create mode 100644 Santander/Santander/Cell/UILabelCell.swift create mode 100644 Santander/Santander/Cell/UITextFieldCell.swift create mode 100644 Santander/Santander/Extension/UITableView+Utils.swift create mode 100644 Santander/Santander/Extension/UIView+Utils.swift create mode 100644 Santander/Santander/ViewController/BaseViewController.swift diff --git a/Santander/Pods/Pods.xcodeproj/xcuserdata/jussi.xcuserdatad/xcschemes/xcschememanagement.plist b/Santander/Pods/Pods.xcodeproj/xcuserdata/jussi.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 00000000..b29bf3c2 --- /dev/null +++ b/Santander/Pods/Pods.xcodeproj/xcuserdata/jussi.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,19 @@ + + + + + SchemeUserState + + Alamofire.xcscheme_^#shared#^_ + + orderHint + 3 + + Pods-Santander.xcscheme_^#shared#^_ + + orderHint + 4 + + + + diff --git a/Santander/Santander.xcodeproj/project.pbxproj b/Santander/Santander.xcodeproj/project.pbxproj index 8dbc27e3..c5001ca4 100644 --- a/Santander/Santander.xcodeproj/project.pbxproj +++ b/Santander/Santander.xcodeproj/project.pbxproj @@ -8,6 +8,14 @@ /* Begin PBXBuildFile section */ 350FB2A251B02CBF7A3EC587 /* Pods_Santander.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A6E92033EEBD6D1A4E174BBC /* Pods_Santander.framework */; }; + 4AA0BE0F21E3825F005D41B9 /* UITextFieldCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE0E21E3825F005D41B9 /* UITextFieldCell.swift */; }; + 4AA0BE1121E382BA005D41B9 /* UICheckBoxCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE1021E382BA005D41B9 /* UICheckBoxCell.swift */; }; + 4AA0BE1321E382C6005D41B9 /* UIButtonCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE1221E382C6005D41B9 /* UIButtonCell.swift */; }; + 4AA0BE1521E38362005D41B9 /* BaseCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE1421E38362005D41B9 /* BaseCell.swift */; }; + 4AA0BE1821E383E4005D41B9 /* UITableView+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE1721E383E4005D41B9 /* UITableView+Utils.swift */; }; + 4AA0BE1A21E38581005D41B9 /* UIView+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE1921E38581005D41B9 /* UIView+Utils.swift */; }; + 4AA0BE1C21E39FA3005D41B9 /* BaseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE1B21E39FA3005D41B9 /* BaseViewController.swift */; }; + 4AA0BE1E21E3D7A9005D41B9 /* UILabelCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE1D21E3D7A9005D41B9 /* UILabelCell.swift */; }; 7415214421E12BC500DD000F /* RequestBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7415214221E12BC500DD000F /* RequestBase.swift */; }; 7415214521E12BC500DD000F /* RequestService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7415214321E12BC500DD000F /* RequestService.swift */; }; 7415214721E12D9A00DD000F /* Endpoint.plist in Resources */ = {isa = PBXBuildFile; fileRef = 7415214621E12D9A00DD000F /* Endpoint.plist */; }; @@ -24,6 +32,14 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ + 4AA0BE0E21E3825F005D41B9 /* UITextFieldCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UITextFieldCell.swift; sourceTree = ""; }; + 4AA0BE1021E382BA005D41B9 /* UICheckBoxCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UICheckBoxCell.swift; sourceTree = ""; }; + 4AA0BE1221E382C6005D41B9 /* UIButtonCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIButtonCell.swift; sourceTree = ""; }; + 4AA0BE1421E38362005D41B9 /* BaseCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseCell.swift; sourceTree = ""; }; + 4AA0BE1721E383E4005D41B9 /* UITableView+Utils.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UITableView+Utils.swift"; sourceTree = ""; }; + 4AA0BE1921E38581005D41B9 /* UIView+Utils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+Utils.swift"; sourceTree = ""; }; + 4AA0BE1B21E39FA3005D41B9 /* BaseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseViewController.swift; sourceTree = ""; }; + 4AA0BE1D21E3D7A9005D41B9 /* UILabelCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UILabelCell.swift; sourceTree = ""; }; 675F3ECE90A89FC4D74117E2 /* Pods-Santander.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Santander.debug.xcconfig"; path = "Target Support Files/Pods-Santander/Pods-Santander.debug.xcconfig"; sourceTree = ""; }; 7415214221E12BC500DD000F /* RequestBase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RequestBase.swift; sourceTree = ""; }; 7415214321E12BC500DD000F /* RequestService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RequestService.swift; sourceTree = ""; }; @@ -62,7 +78,6 @@ 675F3ECE90A89FC4D74117E2 /* Pods-Santander.debug.xcconfig */, 934B47DDAC95ECA559529A0D /* Pods-Santander.release.xcconfig */, ); - name = Pods; path = Pods; sourceTree = ""; }; @@ -74,6 +89,27 @@ name = Frameworks; sourceTree = ""; }; + 4AA0BE0D21E3822A005D41B9 /* Cell */ = { + isa = PBXGroup; + children = ( + 4AA0BE1421E38362005D41B9 /* BaseCell.swift */, + 4AA0BE1D21E3D7A9005D41B9 /* UILabelCell.swift */, + 4AA0BE1221E382C6005D41B9 /* UIButtonCell.swift */, + 4AA0BE0E21E3825F005D41B9 /* UITextFieldCell.swift */, + 4AA0BE1021E382BA005D41B9 /* UICheckBoxCell.swift */, + ); + path = Cell; + sourceTree = ""; + }; + 4AA0BE1621E383D0005D41B9 /* Extension */ = { + isa = PBXGroup; + children = ( + 4AA0BE1721E383E4005D41B9 /* UITableView+Utils.swift */, + 4AA0BE1921E38581005D41B9 /* UIView+Utils.swift */, + ); + path = Extension; + sourceTree = ""; + }; 7473871121E00368005C4A49 = { isa = PBXGroup; children = ( @@ -95,6 +131,8 @@ 7473871C21E00368005C4A49 /* Santander */ = { isa = PBXGroup; children = ( + 4AA0BE1621E383D0005D41B9 /* Extension */, + 4AA0BE0D21E3822A005D41B9 /* Cell */, 7473873821E03D64005C4A49 /* ViewController */, 7473873721E03D4D005C4A49 /* Request */, 7473872F21E003D8005C4A49 /* Model */, @@ -147,6 +185,7 @@ isa = PBXGroup; children = ( 7473871F21E00368005C4A49 /* MainViewController.swift */, + 4AA0BE1B21E39FA3005D41B9 /* BaseViewController.swift */, 7473873321E03CB2005C4A49 /* ContactViewController.swift */, 7473873521E03CC5005C4A49 /* ProductViewController.swift */, ); @@ -273,15 +312,23 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 4AA0BE1321E382C6005D41B9 /* UIButtonCell.swift in Sources */, 7473872021E00368005C4A49 /* MainViewController.swift in Sources */, + 4AA0BE1A21E38581005D41B9 /* UIView+Utils.swift in Sources */, 7415214521E12BC500DD000F /* RequestService.swift in Sources */, 7473871E21E00368005C4A49 /* AppDelegate.swift in Sources */, + 4AA0BE1521E38362005D41B9 /* BaseCell.swift in Sources */, 7473873621E03CC5005C4A49 /* ProductViewController.swift in Sources */, + 4AA0BE1C21E39FA3005D41B9 /* BaseViewController.swift in Sources */, + 4AA0BE1121E382BA005D41B9 /* UICheckBoxCell.swift in Sources */, 74E715C021E062D40079A3AE /* ContactPresenter.swift in Sources */, 74E715C221E065940079A3AE /* FormItem.swift in Sources */, 7473873A21E03DFF005C4A49 /* ContactView.swift in Sources */, + 4AA0BE1E21E3D7A9005D41B9 /* UILabelCell.swift in Sources */, + 4AA0BE0F21E3825F005D41B9 /* UITextFieldCell.swift in Sources */, 7415214421E12BC500DD000F /* RequestBase.swift in Sources */, 7473873C21E03E15005C4A49 /* ProductView.swift in Sources */, + 4AA0BE1821E383E4005D41B9 /* UITableView+Utils.swift in Sources */, 7473873421E03CB2005C4A49 /* ContactViewController.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/Santander/Santander.xcodeproj/xcuserdata/jussi.xcuserdatad/xcschemes/xcschememanagement.plist b/Santander/Santander.xcodeproj/xcuserdata/jussi.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 00000000..4bb91af3 --- /dev/null +++ b/Santander/Santander.xcodeproj/xcuserdata/jussi.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,24 @@ + + + + + SchemeUserState + + Santander - PROD.xcscheme_^#shared#^_ + + orderHint + 1 + + Santander - STAG.xcscheme_^#shared#^_ + + orderHint + 2 + + Santander.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/Santander/Santander.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Santander/Santander.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/Santander/Santander.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000000000000000000000000000000000000..9ee4b56dfd24761ef63d763c4534cde4c178b974 GIT binary patch literal 29763 zcmd6QcYG98_xIeXX(XH8lT9|gkp@YqX&VSByUC`v&1SPC3u$f=dYJ(M1(c46C?tfA zAR-`07ey3Bil9;i0R=?_1q4BS&z;SNM0k9jkH7a136q_j+rRhRbI;sUQq@$aZ*GZ< zJVhXaBq)L=7=q<4ao-mCjnWyK^^FZhevMTlblR5YVn2;RTdRl1d44U8O?CvDzGAa2 zsUSGQjIbvh2uC862qVIY2%h&Eysv6@&f zg=V9d(938JT7Z_K*U(DTfmWd{=xwwWy@R%)ooGKgfDWSf(I@CA`V@VIzD8%!IdmRf zLf6oB^aJ_@{fh381c^wJq)3`HBW*|tX-nFXZlpWuK?ae*WC$5bhLMqE92rk0kV#}R znL;W^C7DC!k}9&0tRU57C0R@A$r0ozax^)H97~QPCy~?0>Ez4g9C9wXjC`GZgIrFo zAUntnrO)t8E+;;95`AeBnVsVpj+Qc$H-8C6bIP-;p` zji5$SbyN%0N{ynXP*bVrscF=7Y9=+0noljD7E;To*QqzC_0$GxBlRY=iF%vbN$sKz zQtwlTsE?`7sAJSw>Kt{RxS-(+lWV=-22C^hWwkdK0~wev5vG-a)@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o^0>R5H0x}SQWda!z^I#*q;ZdFfF&r-jvo~K@@enq`P zy;8kOy;i+my;1$K`uj?YN?B!OWlUw?%7n`Pl>;ktDk~~AmDQCsl_M(aDqAbZRZgtr zE2mb@t$d|&Y31vcD=OE3`_IP8&6Qg!cU2y){H*eL<*CXul@}^6RbHs;sKwstHvuRL!h< zscLT3f~vJu8>%){ZK-;vYJ1hbs*kEZsrszyc-5(@(^Z$NzN@-kb))J*)uXCEwWQWY zYo~S4I&1y3f!bhgn6@uCFUhq-wZpVp?Qm_acBHmmJ4!oNJ3%{1J43rgyIp%xd%fDG d+M&8%b!K%=H4gCr|47pK$z3&mntoRo|3Bkhi#GrO literal 0 HcmV?d00001 diff --git a/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 00000000..ed9a9b4d --- /dev/null +++ b/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,5 @@ + + + diff --git a/Santander/Santander/Cell/BaseCell.swift b/Santander/Santander/Cell/BaseCell.swift new file mode 100644 index 00000000..d41cf378 --- /dev/null +++ b/Santander/Santander/Cell/BaseCell.swift @@ -0,0 +1,26 @@ +// +// BaseCell.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class BaseCell: UITableViewCell { + + var topSpacing:NSLayoutConstraint? + + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { + super.init(style: style, reuseIdentifier: reuseIdentifier) + + self.selectionStyle = .none + self.contentView.backgroundColor = .white + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } +} + diff --git a/Santander/Santander/Cell/UIButtonCell.swift b/Santander/Santander/Cell/UIButtonCell.swift new file mode 100644 index 00000000..e2644c6b --- /dev/null +++ b/Santander/Santander/Cell/UIButtonCell.swift @@ -0,0 +1,52 @@ +// +// UIButtonCell.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class UIButtonCell: BaseCell { + + /// The Button + let button: UIButton = { + let button = UIButton() + button.setTitle("Enviar", for: .normal) + button.setTitleColor(.white, for: .normal) + button.cornerRadius = 15 + button.backgroundColor = .red + button.titleLabel?.font = UIFont.systemFont(ofSize: 14, weight: .semibold) + button.translatesAutoresizingMaskIntoConstraints = false + return button + }() + + /// Adds the constraints to the views in this cell + private func setupConstraints(){ + self.contentView.addSubview(button) + + topSpacing = button.topAnchor.constraint(equalTo: self.contentView.topAnchor) + NSLayoutConstraint.activate([ + button.heightAnchor .constraint(equalToConstant: 35), + button.centerXAnchor.constraint(equalTo: self.contentView.centerXAnchor), + button.widthAnchor .constraint(equalTo: self.contentView.widthAnchor, multiplier: 1/1.2), + topSpacing! + //button.topAnchor.constraint(equalTo: self.contentView.topAnchor, constant:15), + ]) + } + + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { + super.init(style: style, reuseIdentifier: reuseIdentifier) + setupConstraints() + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + /// + func setupCell(item:FormItem){ + topSpacing?.constant = CGFloat(item.topSpacing ?? 0) + } +} diff --git a/Santander/Santander/Cell/UICheckBoxCell.swift b/Santander/Santander/Cell/UICheckBoxCell.swift new file mode 100644 index 00000000..c694c846 --- /dev/null +++ b/Santander/Santander/Cell/UICheckBoxCell.swift @@ -0,0 +1,66 @@ +// +// UICheckBoxCell.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class UICheckBoxCell: BaseCell { + + //// Indicates if the user wants to register his/her email + let switchEmail: UISwitch = { + let switchEmail = UISwitch() + switchEmail.isOn = false + switchEmail.onTintColor = .red + switchEmail.translatesAutoresizingMaskIntoConstraints = false + return switchEmail + }() + + /// Label to display the text for the switch + let switchLabel: UILabel = { + let label = UILabel() + label.text = "Desejo cadastrar meu email" + label.numberOfLines = 0 + label.textColor = .darkGray + label.font = UIFont.systemFont(ofSize: 11, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + + return label + }() + + /// Adds the constraints to the views in this cell + private func setupConstraints(){ + self.contentView.addSubview(switchLabel) + self.contentView.addSubview(switchEmail) + + topSpacing = switchEmail.topAnchor.constraint(equalTo: self.contentView.topAnchor) + NSLayoutConstraint.activate([ + switchEmail.widthAnchor .constraint(equalToConstant: 50), + topSpacing!, + //switchEmail.topAnchor.constraint(equalTo: self.contentView.topAnchor, constant:15), + switchEmail.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant: 30), + + switchLabel.centerYAnchor .constraint(equalTo: switchEmail.centerYAnchor), + switchLabel.leadingAnchor .constraint(equalTo: switchEmail.trailingAnchor, constant: 5), + switchLabel.trailingAnchor.constraint(equalTo: self.contentView.trailingAnchor, constant: -30), + switchLabel.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor), + ]) + } + + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { + super.init(style: style, reuseIdentifier: reuseIdentifier) + setupConstraints() + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + /// + func setupCell(item:FormItem){ + topSpacing?.constant = CGFloat(item.topSpacing ?? 0) + } +} diff --git a/Santander/Santander/Cell/UILabelCell.swift b/Santander/Santander/Cell/UILabelCell.swift new file mode 100644 index 00000000..09484d4e --- /dev/null +++ b/Santander/Santander/Cell/UILabelCell.swift @@ -0,0 +1,52 @@ +// +// UILabelCell.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class UILabelCell: BaseCell { + + /// The UiLabel + private let label: UILabel = { + let label = UILabel() + label.numberOfLines = 0 + label.textColor = .darkGray + label.font = UIFont.systemFont(ofSize: 14, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + + return label + }() + + /// Adds the constraints to the views in this cell + private func setupConstraints(){ + self.contentView.addSubview(label) + + topSpacing = label.topAnchor.constraint(equalTo: self.contentView.topAnchor) + NSLayoutConstraint.activate([ + topSpacing!, + label.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor), + label.centerXAnchor.constraint(equalTo: self.contentView.centerXAnchor), + label.widthAnchor .constraint(equalTo: self.contentView.widthAnchor, multiplier: 1/1.2), + ]) + } + + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { + super.init(style: style, reuseIdentifier: reuseIdentifier) + setupConstraints() + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + func setupCell(item:FormItem){ + topSpacing?.constant = CGFloat(item.topSpacing ?? 0) + label.text = item.message + } + +} + diff --git a/Santander/Santander/Cell/UITextFieldCell.swift b/Santander/Santander/Cell/UITextFieldCell.swift new file mode 100644 index 00000000..578cbeb3 --- /dev/null +++ b/Santander/Santander/Cell/UITextFieldCell.swift @@ -0,0 +1,67 @@ +// +// UITextFieldCell.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class UITextFieldCell: BaseCell { + + /// The UiLabel + private let label: UILabel = { + let label = UILabel() + label.text = "-" + label.numberOfLines = 1 + label.textColor = .darkGray + label.font = UIFont.systemFont(ofSize: 14, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + + return label + }() + + /// The UITextField + private let textField: UITextField = { + let textfield = UITextField() + textfield.font = UIFont.systemFont(ofSize: 14, weight: .regular) + textfield.borderStyle = .none + textfield.clearButtonMode = .whileEditing + textfield.translatesAutoresizingMaskIntoConstraints = false + return textfield + }() + + /// Adds the constraints to the views in this cell + private func setupConstraints(){ + self.contentView.addSubview(label) + self.contentView.addSubview(textField) + + + topSpacing = label.topAnchor.constraint(equalTo: self.contentView.topAnchor) + NSLayoutConstraint.activate([ + textField.heightAnchor .constraint(equalToConstant: 35), + textField.topAnchor .constraint(equalTo: label.bottomAnchor, constant: 5), + textField.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor), + textField.centerXAnchor.constraint(equalTo: self.contentView.centerXAnchor), + textField.widthAnchor .constraint(equalTo: self.contentView.widthAnchor, multiplier: 1/1.2), + + topSpacing!, + label.leadingAnchor.constraint(equalTo: textField.leadingAnchor), + ]) + } + + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { + super.init(style: style, reuseIdentifier: reuseIdentifier) + setupConstraints() + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + func setupCell(item:FormItem){ + topSpacing?.constant = CGFloat(item.topSpacing ?? 0) + } + +} diff --git a/Santander/Santander/Extension/UITableView+Utils.swift b/Santander/Santander/Extension/UITableView+Utils.swift new file mode 100644 index 00000000..4c4aa2e6 --- /dev/null +++ b/Santander/Santander/Extension/UITableView+Utils.swift @@ -0,0 +1,31 @@ +// +// UITableView+Utils.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import Foundation +import UIKit + +extension UITableView{ + + /// Returns a UITableView for a given Class Type + func getCell(_ indexPath: IndexPath, _ type:T.Type) -> T?{ + return self.dequeueReusableCell(withIdentifier: String(describing: T.self), for: indexPath) as? T + } + + /// Register a Cell in the TableView, given an UITableViewCell Type + func registerCell(_ cell:T.Type){ + self.register(T.self, forCellReuseIdentifier: String(describing: T.self)) + } +} + +//extension UITableViewCell{ +// +// /// Removes the separator from the cell +// func removeSeparator(){ +// self.separatorInset = UIEdgeInsets(top: 0, left: 10000, bottom: 0, right: 0) +// } +//} diff --git a/Santander/Santander/Extension/UIView+Utils.swift b/Santander/Santander/Extension/UIView+Utils.swift new file mode 100644 index 00000000..6c6bf67f --- /dev/null +++ b/Santander/Santander/Extension/UIView+Utils.swift @@ -0,0 +1,40 @@ +// +// UIView+Utils.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// +import UIKit + +extension UIView { + + var cornerRadius: CGFloat { + get { + return layer.cornerRadius + } + set { + layer.cornerRadius = newValue + layer.masksToBounds = newValue > 0 + } + } + + var borderWidth: CGFloat{ + get { + return layer.borderWidth + } + set{ + layer.borderWidth = newValue + layer.masksToBounds = newValue > 0 + } + } + + var borderColor: UIColor?{ + get { + return UIColor(cgColor: layer.borderColor!) + } + set{ + layer.borderColor = newValue?.cgColor + } + } +} diff --git a/Santander/Santander/Model/FormItem.swift b/Santander/Santander/Model/FormItem.swift index 91a18e13..eb86ad36 100644 --- a/Santander/Santander/Model/FormItem.swift +++ b/Santander/Santander/Model/FormItem.swift @@ -6,6 +6,71 @@ // Copyright © 2019 Surrey. All rights reserved. // -struct FormItem { +import Foundation + +enum Type:Int,Decodable { + case unknown = 0 + case field = 1 + case text = 2 + case image = 3 + case checkbox = 4 + case send = 5 +} + +enum TypeField:Int,Decodable { + case unknown = 0 + case text = 1 + case telNumber = 2 + case email = 3 +} + +struct Root:Decodable { + + var cells:[FormItem]? + + private enum CodingKeys: String, CodingKey { + case cells = "cells" + } } + +class FormItem: Decodable { + + var id:Int? + var type:Type = .unknown + var message:String? + var typefield:TypeField = .unknown + var hidden:Bool = false + var topSpacing:Int? + var show:Int? + var required:Bool = false + + private enum CodingKeys: String, CodingKey { + case id = "id" + case type = "type" + case message = "message" + case typefield = "typefield" + case hidden = "hidden" + case topSpacing = "topSpacing" + case show = "show" + case required = "required" + } + + required init(from decoder:Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + self.id = try container.decodeIfPresent(Int.self , forKey: .id) + self.type = try container.decodeIfPresent(Type.self , forKey: .type) ?? .unknown + self.message = try container.decodeIfPresent(String.self , forKey: .message) + if let value = try? container.decode(TypeField.self, forKey: .typefield) { + self.typefield = TypeField(rawValue: value.rawValue) ?? .unknown + } + else{ + self.typefield = .unknown + } + self.hidden = try container.decodeIfPresent(Bool.self , forKey: .hidden) ?? false + self.topSpacing = try container.decodeIfPresent(Int.self , forKey: .topSpacing) + self.show = try container.decodeIfPresent(Int.self , forKey: .show) + self.required = try container.decodeIfPresent(Bool.self , forKey: .required) ?? false + } +} diff --git a/Santander/Santander/Presenter/ContactPresenter.swift b/Santander/Santander/Presenter/ContactPresenter.swift index d6f3339f..9bb64b35 100644 --- a/Santander/Santander/Presenter/ContactPresenter.swift +++ b/Santander/Santander/Presenter/ContactPresenter.swift @@ -6,6 +6,8 @@ // Copyright © 2019 Surrey. All rights reserved. // +import Foundation + class ContactPresenter{ private var view:ContactViewDelegate? @@ -27,7 +29,13 @@ class ContactPresenter{ /// func requestForm(){ - + RequestService().formList().responseJSON { [weak self] response in + if let data = response.data{ + if let root = try? JSONDecoder().decode(Root.self, from: data), let items = root.cells{ + self?.view?.updateTableViewItems(items: items) + } + } + } } /// diff --git a/Santander/Santander/Request/RequestService.swift b/Santander/Santander/Request/RequestService.swift index 108c2e31..7be2d0ff 100644 --- a/Santander/Santander/Request/RequestService.swift +++ b/Santander/Santander/Request/RequestService.swift @@ -20,5 +20,4 @@ class RequestService: RequestBase { func productDetail() -> DataRequest{ return get(endpoint: .product) } - } diff --git a/Santander/Santander/View/ContactView.swift b/Santander/Santander/View/ContactView.swift index dd439878..88cf1785 100644 --- a/Santander/Santander/View/ContactView.swift +++ b/Santander/Santander/View/ContactView.swift @@ -21,13 +21,20 @@ protocol ContactViewDelegate { class ContactView: UIView { + var formItems:[FormItem] = [] + /// The list of items for the form let tableView:UITableView = { let tableView = UITableView() tableView.separatorStyle = .none - tableView.tableFooterView = UIView() tableView.backgroundColor = .white - //tableView.register(FavoriteCell.self, forCellReuseIdentifier: FavoriteCell.identifier) + tableView.tableFooterView = UIView() + tableView.registerCell(UILabelCell.self) + tableView.registerCell(UIButtonCell.self) + tableView.registerCell(UICheckBoxCell.self) + tableView.registerCell(UITextFieldCell.self) + tableView.estimatedRowHeight = 100 + tableView.rowHeight = UITableView.automaticDimension tableView.translatesAutoresizingMaskIntoConstraints = false return tableView }() @@ -62,13 +69,15 @@ class ContactView: UIView { /// Sets up the constraints for the views private func setupConstraints(){ + self.addSubview(buttonNewMessage) self.addSubview(staticLabel1) self.addSubview(staticLabel2) self.addSubview(tableView) + self.backgroundColor = .white NSLayoutConstraint.activate([ - tableView.topAnchor .constraint(equalTo: self.topAnchor), + tableView.topAnchor .constraint(equalTo: self.topAnchor, constant:30), tableView.bottomAnchor .constraint(equalTo: self.bottomAnchor), tableView.leadingAnchor .constraint(equalTo: self.leadingAnchor), tableView.trailingAnchor.constraint(equalTo: self.trailingAnchor), @@ -97,34 +106,35 @@ class ContactView: UIView { extension ContactView: ContactViewDelegate{ func userCheckedToReceiveEmail() { - <#code#> + } func userUncheckedToReceiveEmail() { - <#code#> + } func updateTableViewItems(items: [FormItem]) { - <#code#> + formItems = items + tableView.reloadData() } func showSuccessPage() { - <#code#> + } func hideSuccessPage() { - <#code#> + } func updateContactName(name: String?) { - <#code#> + } func updateContactEmail(email: String?) { - <#code#> + } func updateContactPhone(phone: String?) { - <#code#> + } } diff --git a/Santander/Santander/View/ProductView.swift b/Santander/Santander/View/ProductView.swift index 4ddc19a5..f904b252 100644 --- a/Santander/Santander/View/ProductView.swift +++ b/Santander/Santander/View/ProductView.swift @@ -28,21 +28,13 @@ class ProductView: UIView { private func setupConstraints(){ self.addSubview(tableView) - if #available(iOS 11.0, *) { - NSLayoutConstraint.activate([ - tableView.topAnchor .constraint(equalTo: self.safeAreaLayoutGuide.topAnchor), - tableView.bottomAnchor .constraint(equalTo: self.safeAreaLayoutGuide.bottomAnchor), - tableView.leadingAnchor .constraint(equalTo: self.safeAreaLayoutGuide.leadingAnchor), - tableView.trailingAnchor.constraint(equalTo: self.safeAreaLayoutGuide.trailingAnchor), - ]) - } else { - NSLayoutConstraint.activate([ - tableView.topAnchor .constraint(equalTo: self.topAnchor), - tableView.bottomAnchor .constraint(equalTo: self.bottomAnchor), - tableView.leadingAnchor .constraint(equalTo: self.leadingAnchor), - tableView.trailingAnchor.constraint(equalTo: self.trailingAnchor), - ]) - } + self.backgroundColor = .white + NSLayoutConstraint.activate([ + tableView.topAnchor .constraint(equalTo: self.topAnchor, constant: 100), + tableView.bottomAnchor .constraint(equalTo: self.bottomAnchor), + tableView.leadingAnchor .constraint(equalTo: self.leadingAnchor), + tableView.trailingAnchor.constraint(equalTo: self.trailingAnchor), + ]) } override init(frame: CGRect) { diff --git a/Santander/Santander/ViewController/BaseViewController.swift b/Santander/Santander/ViewController/BaseViewController.swift new file mode 100644 index 00000000..a3d866a5 --- /dev/null +++ b/Santander/Santander/ViewController/BaseViewController.swift @@ -0,0 +1,24 @@ +// +// BaseViewController.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class BaseViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + setNavigationBarColour() + } + + /// Changes the navigation bar colour + private func setNavigationBarColour(){ + self.navigationController?.navigationBar.isTranslucent = true + self.navigationController?.navigationBar.barTintColor = .red + self.navigationController?.navigationBar.backgroundColor = .red + } +} diff --git a/Santander/Santander/ViewController/ContactViewController.swift b/Santander/Santander/ViewController/ContactViewController.swift index ba914b02..8eeaab81 100644 --- a/Santander/Santander/ViewController/ContactViewController.swift +++ b/Santander/Santander/ViewController/ContactViewController.swift @@ -8,11 +8,10 @@ import UIKit -class ContactViewController: UIViewController { +class ContactViewController: BaseViewController { private unowned var _view:ContactView { return self.view as! ContactView } - private var formItems:[FormItem] = [] private var presenter:ContactPresenter! override func loadView() { @@ -21,7 +20,13 @@ class ContactViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() + self.navigationItem.title = "Contato" + + _view.tableView.delegate = self + _view.tableView.dataSource = self presenter = ContactPresenter(bindTo: _view) + + presenter.requestForm() } override func viewDidDisappear(_ animated: Bool) { @@ -33,10 +38,40 @@ class ContactViewController: UIViewController { extension ContactViewController: UITableViewDelegate, UITableViewDataSource { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return formItems.count + return _view.formItems.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - return UITableViewCell() + return getInfoCellFor(indexPath) ?? UITableViewCell() } + + private func getInfoCellFor(_ indexPath: IndexPath) -> UITableViewCell?{ + + let item = _view.formItems[indexPath.row] + switch item.type { + case .field: + let cell = _view.tableView.getCell(indexPath, UITextFieldCell.self) + cell?.setupCell(item: item) + return cell + case .text: + let cell = _view.tableView.getCell(indexPath, UILabelCell.self) + cell?.setupCell(item: item) + return cell + case .checkbox: + let cell = _view.tableView.getCell(indexPath, UICheckBoxCell.self) + cell?.setupCell(item: item) + return cell + case .send: + let cell = _view.tableView.getCell(indexPath, UIButtonCell.self) + cell?.setupCell(item: item) + return cell + default: + return nil + } + } +} + +/// Manage the TextField delegates and Keyboard actions +extension ContactViewController: UITextFieldDelegate { + } diff --git a/Santander/Santander/ViewController/MainViewController.swift b/Santander/Santander/ViewController/MainViewController.swift index e0126c11..38f32e25 100644 --- a/Santander/Santander/ViewController/MainViewController.swift +++ b/Santander/Santander/ViewController/MainViewController.swift @@ -19,20 +19,28 @@ class MainViewController: UITabBarController { private func setupTabBarController(){ /// Sets the selected colour for the icons and the -// self.tabBar.tintColor = .appColor - self.tabBar.backgroundColor = .white + self.tabBar.barTintColor = .red self.hidesBottomBarWhenPushed = true + UITabBarItem.appearance().setTitleTextAttributes([ + NSAttributedString.Key.font: UIFont(name: "Avenir-Black", size:12)!, + NSAttributedString.Key.foregroundColor: UIColor.white, + ], for: .normal) + + UITabBarItem.appearance().titlePositionAdjustment = UIOffset(horizontal: 0, vertical: -14) + + + /// Creates instances of the View Controllers let contactController = ContactViewController() let productController = ProductViewController() /// Sets the names for the tabs, the images and their index - contactController.tabBarItem = UITabBarItem(title: "Contato" , image: nil, tag: 0) - productController.tabBarItem = UITabBarItem(title: "Investimento" , image: nil, tag: 1) + productController.tabBarItem = UITabBarItem(title: "Investimento" , image: UIImage(), tag: 0) + contactController.tabBarItem = UITabBarItem(title: "Contato" , image: UIImage(), tag: 1) /// Adds the ViewControllers to the TabBarController - self.viewControllers = [contactController, productController].map { + self.viewControllers = [productController, contactController].map { UINavigationController(rootViewController: $0) } } diff --git a/Santander/Santander/ViewController/ProductViewController.swift b/Santander/Santander/ViewController/ProductViewController.swift index 519cbca1..6a78faac 100644 --- a/Santander/Santander/ViewController/ProductViewController.swift +++ b/Santander/Santander/ViewController/ProductViewController.swift @@ -8,10 +8,11 @@ import UIKit -class ProductViewController: UIViewController { +class ProductViewController: BaseViewController { override func viewDidLoad() { super.viewDidLoad() + self.navigationItem.title = "Investimento" } } From 686741bc3b41907f7ae0d63b468050799f46d3e5 Mon Sep 17 00:00:00 2001 From: Jonathan Martins Date: Mon, 7 Jan 2019 20:51:34 -0200 Subject: [PATCH 03/11] Implementing logic to the ContactView - Validating Name field - Validating Email field - Validating phone field - Validating switch action --- .../xcschemes/Pods-Santander.xcscheme | 31 +++-- .../UserInterfaceState.xcuserstate | Bin 60909 -> 61919 bytes .../UserInterfaceState.xcuserstate | Bin 0 -> 24371 bytes .../xcdebugger/Breakpoints_v2.xcbkptlist | 5 + Santander/Santander/Cell/BaseCell.swift | 6 + Santander/Santander/Cell/UIButtonCell.swift | 15 ++- Santander/Santander/Cell/UICheckBoxCell.swift | 20 +++- Santander/Santander/Cell/UILabelCell.swift | 2 +- .../Santander/Cell/UITextFieldCell.swift | 107 +++++++++++++++++- Santander/Santander/Model/FormItem.swift | 6 +- .../Presenter/ContactPresenter.swift | 13 ++- Santander/Santander/View/ContactView.swift | 9 +- .../ContactViewController.swift | 25 ++-- 13 files changed, 202 insertions(+), 37 deletions(-) create mode 100644 Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate create mode 100644 Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist diff --git a/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Pods-Santander.xcscheme b/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Pods-Santander.xcscheme index 1c9a199b..eee07e50 100644 --- a/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Pods-Santander.xcscheme +++ b/Santander/Pods/Pods.xcodeproj/xcuserdata/jonathanmartins.xcuserdatad/xcschemes/Pods-Santander.xcscheme @@ -7,30 +7,33 @@ buildImplicitDependencies = "YES"> + buildForArchiving = "YES" + buildForAnalyzing = "YES"> + ReferencedContainer = "container:Pods.xcodeproj"> + shouldUseLaunchSchemeArgsEnv = "YES"> + + + + + + + debugDocumentVersioning = "YES"> diff --git a/Santander/Santander.xcodeproj/project.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcodeproj/project.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate index e8ffc960c3302d2b816b43a85160d3b8277497fc..31d6b51654bbefdebb56ec13be1688b61a21e990 100644 GIT binary patch delta 30255 zcmbSz2YeL8`}fYw-tF$)?dH-GaybI2Knj8M-Y9{Pge0_3LP$agBqSt9FSkQiIx7NF z0|5jKLtdO%O;1-+pU z^o4DpAGAP!7ytud2n>bsFaajQB$y0SU@FXpIj|S(4U1t390{x8C|CnW!!fWHHo{48 z2AmC_g-hXc@CCRAu7@pf2Ydw{fCu4m_$GV{egMzF58(xP8Qy_Ez`J&M5B>=6!=K>K z@E7a$Q3}dHnW!7;j(VZqr~nnB64Vb3LZxUJDnk{h5{*JNs1A)qji?Dt zM3c}oG#z0y6U{~Q&;qm&Ek(=F3iLdB0j)tB&_>jPwxI232YMOpMsJ|Q=m@eOMaR(F z=oC7QK0s&Chv+i8f<8uHqi@hn^ewuD?x3I1FX&hF8~PnRVHp;%A}g^jteJIXJy{DI z#0Ik=Y!|jG8^gx3acmNs$!4+HY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HZR`Fi(Nok|BQ`##Xl&h5Mlp6r$H%cd^v(iQBs{Bbw zRt78C$}nZ5GDexKOjBkmvz2+u0wqs*P&uW13){kT;rZ|acsaZt-UK_sPVhF^1$Kqq z;oUGEroc3q0kdEZ91cgqX>cZ72G_xja0}c9bKyRC5EjB>7=mT+arl91foi*IhYI*X zwMXTx3Qz^A7%HYJM8#HxsuESHs&rMBDqmHoDpr-MnpNE@kqT7FR7w@1GO2!19a8I_?H+nTTBMe! zwQ8fj#sA0b$-%w!y z47G*^L$iTr=rZ&efIh>ZL1;K^xQ%{+I-=j9?x-i~h5Dcbl#J3)1{#dAP!5`arl4tP zCYpy9pv7n@+Ke7R`_MsDgo3CHRiI|{D0%_Cj^0A=qSNR@^fCGreU82`+8OPQ4#tJX zFO5r$D~zj+UmMpMos1qviZR|;WISM$0>)wEglU=SYtuI-7t?Oj&nABp-b6AnOu;6$ zDa;gMYB#~AF<*7U(V$82kMFfTHHWnOAtZuT*!n|sX? zv(juf|7JdFK5jl`zF;0PkDD)Vu+Xx?vf8r6 z@}0%q;%V7w`N{IL#ovOr5G_HLP)po}XBVDd_-I{VU2I)qU2a`v{o1w2 zcUpH@_gKBHan=T_-g?b?*ZRmhYkg(?gw4ekV2;=p%nkFvc3?X(e+-WiF$xxlF|aT! z5{t%Su@o#7O9!w5tOYxObznTK3+u%OFd-(vq?iJOF$;DOJA@5m=dcSHhK-Hv8VML7 zjF3jCBgaQZM#e@aMlO%;9St01j50@Aqf?^~M<0zo8GSaEG?q73Fjh2HIzDH7(fF6+ qOU9RvH;s3V_l)_)>U;lrdaQPp%!vi7! diff --git a/Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000000000000000000000000000000000000..92773b0572d56c30f263e66e771350ef847a2c4f GIT binary patch literal 24371 zcmd742Ut|c8aF<33T0`#z|w?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DUbiW`fk z7jG;+Ui^(-saNTv^zr%xeP4aHez1P5e!SkOuhmc1*Xf(VQZ+{}=;!Mf>X+$P>L1mw z(Qnaj)wk;R=#T1;>0i;mra!HJQ~!?soc@CTef@{}8~WS&pW5|6M*4R0=%xlD{V)Fq DE7JBe literal 0 HcmV?d00001 diff --git a/Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 00000000..ed9a9b4d --- /dev/null +++ b/Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,5 @@ + + + diff --git a/Santander/Santander/Cell/BaseCell.swift b/Santander/Santander/Cell/BaseCell.swift index d41cf378..a217da32 100644 --- a/Santander/Santander/Cell/BaseCell.swift +++ b/Santander/Santander/Cell/BaseCell.swift @@ -10,6 +10,7 @@ import UIKit class BaseCell: UITableViewCell { + var item:FormItem? var topSpacing:NSLayoutConstraint? override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { @@ -22,5 +23,10 @@ class BaseCell: UITableViewCell { required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } + + /// + func setupTopSpace(_ item:FormItem){ + topSpacing?.constant = CGFloat(item.topSpacing ?? 0) + } } diff --git a/Santander/Santander/Cell/UIButtonCell.swift b/Santander/Santander/Cell/UIButtonCell.swift index e2644c6b..b363bdb2 100644 --- a/Santander/Santander/Cell/UIButtonCell.swift +++ b/Santander/Santander/Cell/UIButtonCell.swift @@ -32,7 +32,6 @@ class UIButtonCell: BaseCell { button.centerXAnchor.constraint(equalTo: self.contentView.centerXAnchor), button.widthAnchor .constraint(equalTo: self.contentView.widthAnchor, multiplier: 1/1.2), topSpacing! - //button.topAnchor.constraint(equalTo: self.contentView.topAnchor, constant:15), ]) } @@ -46,7 +45,17 @@ class UIButtonCell: BaseCell { } /// - func setupCell(item:FormItem){ - topSpacing?.constant = CGFloat(item.topSpacing ?? 0) + func setupCell(_ item:FormItem, callback:(()->Void)? = nil){ + setupTopSpace(item) + self.item = item + self.callback = callback + + button.addTarget(self, action: #selector(buttonClicked), for: UIControl.Event.touchUpInside) + } + + /// + private var callback:(()->Void)? + @objc private func buttonClicked(myButton: UIButton) { + callback?() } } diff --git a/Santander/Santander/Cell/UICheckBoxCell.swift b/Santander/Santander/Cell/UICheckBoxCell.swift index c694c846..90b8eeb1 100644 --- a/Santander/Santander/Cell/UICheckBoxCell.swift +++ b/Santander/Santander/Cell/UICheckBoxCell.swift @@ -38,9 +38,8 @@ class UICheckBoxCell: BaseCell { topSpacing = switchEmail.topAnchor.constraint(equalTo: self.contentView.topAnchor) NSLayoutConstraint.activate([ - switchEmail.widthAnchor .constraint(equalToConstant: 50), topSpacing!, - //switchEmail.topAnchor.constraint(equalTo: self.contentView.topAnchor, constant:15), + switchEmail.widthAnchor .constraint(equalToConstant: 50), switchEmail.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant: 30), switchLabel.centerYAnchor .constraint(equalTo: switchEmail.centerYAnchor), @@ -60,7 +59,20 @@ class UICheckBoxCell: BaseCell { } /// - func setupCell(item:FormItem){ - topSpacing?.constant = CGFloat(item.topSpacing ?? 0) + func setupCell(_ item:FormItem, callback:(()->Void)? = nil){ + setupTopSpace(item) + + self.item = item + self.callback = callback + + switchLabel.text = item.message + switchEmail.addTarget(self, action: #selector(switchChanged), for: UIControl.Event.valueChanged) + } + + /// + private var callback:(()->Void)? + @objc private func switchChanged(mySwitch: UISwitch) { + item?.hidden = mySwitch.isOn + callback?() } } diff --git a/Santander/Santander/Cell/UILabelCell.swift b/Santander/Santander/Cell/UILabelCell.swift index 09484d4e..51afa283 100644 --- a/Santander/Santander/Cell/UILabelCell.swift +++ b/Santander/Santander/Cell/UILabelCell.swift @@ -43,7 +43,7 @@ class UILabelCell: BaseCell { fatalError("init(coder:) has not been implemented") } - func setupCell(item:FormItem){ + func setupCell(_ item:FormItem){ topSpacing?.constant = CGFloat(item.topSpacing ?? 0) label.text = item.message } diff --git a/Santander/Santander/Cell/UITextFieldCell.swift b/Santander/Santander/Cell/UITextFieldCell.swift index 578cbeb3..1ff02fa8 100644 --- a/Santander/Santander/Cell/UITextFieldCell.swift +++ b/Santander/Santander/Cell/UITextFieldCell.swift @@ -32,36 +32,135 @@ class UITextFieldCell: BaseCell { return textfield }() + /// The Divider + private let divider: UIView = { + let view = UIView() + view.backgroundColor = .gray + view.translatesAutoresizingMaskIntoConstraints = false + return view + }() + /// Adds the constraints to the views in this cell private func setupConstraints(){ self.contentView.addSubview(label) self.contentView.addSubview(textField) + self.contentView.addSubview(divider) topSpacing = label.topAnchor.constraint(equalTo: self.contentView.topAnchor) NSLayoutConstraint.activate([ + topSpacing!, + label.leadingAnchor.constraint(equalTo: textField.leadingAnchor), + textField.heightAnchor .constraint(equalToConstant: 35), textField.topAnchor .constraint(equalTo: label.bottomAnchor, constant: 5), textField.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor), textField.centerXAnchor.constraint(equalTo: self.contentView.centerXAnchor), textField.widthAnchor .constraint(equalTo: self.contentView.widthAnchor, multiplier: 1/1.2), - topSpacing!, - label.leadingAnchor.constraint(equalTo: textField.leadingAnchor), + divider.heightAnchor .constraint(equalToConstant: 1), + divider.leadingAnchor .constraint(equalTo: textField.leadingAnchor), + divider.trailingAnchor.constraint(equalTo: textField.trailingAnchor), + divider.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor), ]) } override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) setupConstraints() + textField.delegate = self } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } - func setupCell(item:FormItem){ - topSpacing?.constant = CGFloat(item.topSpacing ?? 0) + /// + func setupCell(_ item:FormItem){ + setupTopSpace(item) + self.item = item + + switch item.typefield { + case .email: + label.text = "Email" + textField.keyboardType = .emailAddress + case .telNumber: + label.text = "Telefone" + textField.keyboardType = .numberPad + case .text: + label.text = "Nome completo" + textField.keyboardType = .default + default: + label.text = "" + } + textField.text = item.dataText + textField.placeholder = item.message } } + +/// Manage the TextField delegates +extension UITextFieldCell: UITextFieldDelegate { + + func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { + guard let _item = item else { return true} + _item.dataText = string + + switch _item.typefield { + case .text: + validateName(item?.dataText ?? "") + case .email: + validateEmail(item?.dataText ?? "") + case .telNumber: + validatePhone(item?.dataText ?? "") + default: + return true + } + return true + } + + /// + private func validateEmail(_ email:String){ + if(isEmailValid(email)){ + item?.isSuccess = true + divider.backgroundColor = .green + } + else{ + item?.isSuccess = false + divider.backgroundColor = .red + } + } + + /// + private func isEmailValid(_ email:String)->Bool{ + let emailRegEx = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}" + let emailTest = NSPredicate(format:"SELF MATCHES %@", emailRegEx) + + return emailTest.evaluate(with: email) + } + + /// + private func validatePhone(_ phone:String){ + if(phone.count == 10) || phone.count == 11{ + item?.isSuccess = true + divider.backgroundColor = .green + } + else{ + item?.isSuccess = false + divider.backgroundColor = .red + } + } + + /// + private func validateName(_ name:String){ + + if(name.count < 1){ + item?.isSuccess = false + divider.backgroundColor = .red + } + else{ + item?.isSuccess = true + divider.backgroundColor = .green + } + } +} diff --git a/Santander/Santander/Model/FormItem.swift b/Santander/Santander/Model/FormItem.swift index eb86ad36..5c9e816e 100644 --- a/Santander/Santander/Model/FormItem.swift +++ b/Santander/Santander/Model/FormItem.swift @@ -44,6 +44,8 @@ class FormItem: Decodable { var topSpacing:Int? var show:Int? var required:Bool = false + var dataText:String? + var isSuccess:Bool = false private enum CodingKeys: String, CodingKey { case id = "id" @@ -63,10 +65,10 @@ class FormItem: Decodable { self.type = try container.decodeIfPresent(Type.self , forKey: .type) ?? .unknown self.message = try container.decodeIfPresent(String.self , forKey: .message) if let value = try? container.decode(TypeField.self, forKey: .typefield) { - self.typefield = TypeField(rawValue: value.rawValue) ?? .unknown + self.typefield = TypeField(rawValue: value.rawValue) ?? .telNumber } else{ - self.typefield = .unknown + self.typefield = .telNumber } self.hidden = try container.decodeIfPresent(Bool.self , forKey: .hidden) ?? false self.topSpacing = try container.decodeIfPresent(Int.self , forKey: .topSpacing) diff --git a/Santander/Santander/Presenter/ContactPresenter.swift b/Santander/Santander/Presenter/ContactPresenter.swift index 9bb64b35..ca58babc 100644 --- a/Santander/Santander/Presenter/ContactPresenter.swift +++ b/Santander/Santander/Presenter/ContactPresenter.swift @@ -11,6 +11,7 @@ import Foundation class ContactPresenter{ private var view:ContactViewDelegate? + private var items:[FormItem] = [] /// init(bindTo view:ContactViewDelegate) { @@ -24,7 +25,12 @@ class ContactPresenter{ /// func sendContact(){ - + view?.showSuccessPage() + } + + /// + func returnToContactForm(){ + view?.hideSuccessPage() } /// @@ -32,6 +38,7 @@ class ContactPresenter{ RequestService().formList().responseJSON { [weak self] response in if let data = response.data{ if let root = try? JSONDecoder().decode(Root.self, from: data), let items = root.cells{ + self?.items = items self?.view?.updateTableViewItems(items: items) } } @@ -53,4 +60,8 @@ class ContactPresenter{ } + /// + func checkSwitch(){ + self.view?.updateTableViewItems() + } } diff --git a/Santander/Santander/View/ContactView.swift b/Santander/Santander/View/ContactView.swift index 88cf1785..463a065e 100644 --- a/Santander/Santander/View/ContactView.swift +++ b/Santander/Santander/View/ContactView.swift @@ -15,6 +15,7 @@ protocol ContactViewDelegate { func userCheckedToReceiveEmail() func userUncheckedToReceiveEmail() func updateTableViewItems(items:[FormItem]) + func updateTableViewItems() func showSuccessPage() func hideSuccessPage() } @@ -118,12 +119,16 @@ extension ContactView: ContactViewDelegate{ tableView.reloadData() } + func updateTableViewItems() { + tableView.reloadData() + } + func showSuccessPage() { - + tableView.isHidden = true } func hideSuccessPage() { - + tableView.isHidden = false } func updateContactName(name: String?) { diff --git a/Santander/Santander/ViewController/ContactViewController.swift b/Santander/Santander/ViewController/ContactViewController.swift index 8eeaab81..63b8e097 100644 --- a/Santander/Santander/ViewController/ContactViewController.swift +++ b/Santander/Santander/ViewController/ContactViewController.swift @@ -24,8 +24,9 @@ class ContactViewController: BaseViewController { _view.tableView.delegate = self _view.tableView.dataSource = self - presenter = ContactPresenter(bindTo: _view) + _view.buttonNewMessage.addTarget(self, action: #selector(hideSuccessPage), for: UIControl.Event.touchUpInside) + presenter = ContactPresenter(bindTo: _view) presenter.requestForm() } @@ -33,6 +34,11 @@ class ContactViewController: BaseViewController { super.viewDidDisappear(animated) presenter.destroy() } + + /// + @objc private func hideSuccessPage(){ + presenter.returnToContactForm() + } } extension ContactViewController: UITableViewDelegate, UITableViewDataSource { @@ -51,27 +57,26 @@ extension ContactViewController: UITableViewDelegate, UITableViewDataSource { switch item.type { case .field: let cell = _view.tableView.getCell(indexPath, UITextFieldCell.self) - cell?.setupCell(item: item) + cell?.setupCell(item) return cell case .text: let cell = _view.tableView.getCell(indexPath, UILabelCell.self) - cell?.setupCell(item: item) + cell?.setupCell(item) return cell case .checkbox: let cell = _view.tableView.getCell(indexPath, UICheckBoxCell.self) - cell?.setupCell(item: item) + cell?.setupCell(item, callback: { [weak self] in + self?.presenter.checkSwitch() + }) return cell case .send: let cell = _view.tableView.getCell(indexPath, UIButtonCell.self) - cell?.setupCell(item: item) + cell?.setupCell(item, callback: { [unowned self] in + self.presenter.sendContact() + }) return cell default: return nil } } } - -/// Manage the TextField delegates and Keyboard actions -extension ContactViewController: UITextFieldDelegate { - -} From 0dfec51681ac88fa5e7bd35dc3602521c216ed10 Mon Sep 17 00:00:00 2001 From: Jonathan Martins Date: Mon, 7 Jan 2019 21:58:12 -0200 Subject: [PATCH 04/11] Implementing ProductView - Created productView - Created procductViewPresenter - Created the cells for the the ProductView Screen --- Santander/Santander.xcodeproj/project.pbxproj | 52 ++++++++++++++++-- .../UserInterfaceState.xcuserstate | Bin 24371 -> 32005 bytes .../Cell/{ => ContactView}/UIButtonCell.swift | 0 .../{ => ContactView}/UICheckBoxCell.swift | 0 .../Cell/{ => ContactView}/UILabelCell.swift | 0 .../{ => ContactView}/UITextFieldCell.swift | 0 .../Cell/ProductView/DescriptionCell.swift | 13 +++++ .../Cell/ProductView/DownloadCell.swift | 13 +++++ .../Cell/ProductView/HeaderCell.swift | 13 +++++ .../Cell/ProductView/MoreInfoDoubleCell.swift | 13 +++++ .../Cell/ProductView/MoreInfoSingleCell.swift | 13 +++++ .../Santander/Cell/ProductView/RiskCell.swift | 13 +++++ .../Presenter/ProductPresenter.swift | 47 ++++++++++++++++ Santander/Santander/View/ProductView.swift | 23 ++++++-- .../ViewController/BaseViewController.swift | 4 +- .../ProductViewController.swift | 35 +++++++++++- 16 files changed, 228 insertions(+), 11 deletions(-) rename Santander/Santander/Cell/{ => ContactView}/UIButtonCell.swift (100%) rename Santander/Santander/Cell/{ => ContactView}/UICheckBoxCell.swift (100%) rename Santander/Santander/Cell/{ => ContactView}/UILabelCell.swift (100%) rename Santander/Santander/Cell/{ => ContactView}/UITextFieldCell.swift (100%) create mode 100644 Santander/Santander/Cell/ProductView/DescriptionCell.swift create mode 100644 Santander/Santander/Cell/ProductView/DownloadCell.swift create mode 100644 Santander/Santander/Cell/ProductView/HeaderCell.swift create mode 100644 Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift create mode 100644 Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift create mode 100644 Santander/Santander/Cell/ProductView/RiskCell.swift create mode 100644 Santander/Santander/Presenter/ProductPresenter.swift diff --git a/Santander/Santander.xcodeproj/project.pbxproj b/Santander/Santander.xcodeproj/project.pbxproj index c5001ca4..de1d96e6 100644 --- a/Santander/Santander.xcodeproj/project.pbxproj +++ b/Santander/Santander.xcodeproj/project.pbxproj @@ -19,6 +19,13 @@ 7415214421E12BC500DD000F /* RequestBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7415214221E12BC500DD000F /* RequestBase.swift */; }; 7415214521E12BC500DD000F /* RequestService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7415214321E12BC500DD000F /* RequestService.swift */; }; 7415214721E12D9A00DD000F /* Endpoint.plist in Resources */ = {isa = PBXBuildFile; fileRef = 7415214621E12D9A00DD000F /* Endpoint.plist */; }; + 742F0E3821E419870079A7F5 /* HeaderCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3721E419870079A7F5 /* HeaderCell.swift */; }; + 742F0E3A21E419F40079A7F5 /* DescriptionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3921E419F40079A7F5 /* DescriptionCell.swift */; }; + 742F0E3C21E41A2E0079A7F5 /* RiskCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3B21E41A2E0079A7F5 /* RiskCell.swift */; }; + 742F0E3E21E41A960079A7F5 /* MoreInfoDoubleCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3D21E41A960079A7F5 /* MoreInfoDoubleCell.swift */; }; + 742F0E4021E41AB70079A7F5 /* MoreInfoSingleCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3F21E41AB70079A7F5 /* MoreInfoSingleCell.swift */; }; + 742F0E4221E41AD90079A7F5 /* DownloadCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E4121E41AD90079A7F5 /* DownloadCell.swift */; }; + 742F0E4421E41D4E0079A7F5 /* ProductPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E4321E41D4E0079A7F5 /* ProductPresenter.swift */; }; 7473871E21E00368005C4A49 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473871D21E00368005C4A49 /* AppDelegate.swift */; }; 7473872021E00368005C4A49 /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473871F21E00368005C4A49 /* MainViewController.swift */; }; 7473872521E0036C005C4A49 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7473872421E0036C005C4A49 /* Assets.xcassets */; }; @@ -44,6 +51,13 @@ 7415214221E12BC500DD000F /* RequestBase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RequestBase.swift; sourceTree = ""; }; 7415214321E12BC500DD000F /* RequestService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RequestService.swift; sourceTree = ""; }; 7415214621E12D9A00DD000F /* Endpoint.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Endpoint.plist; sourceTree = ""; }; + 742F0E3721E419870079A7F5 /* HeaderCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HeaderCell.swift; sourceTree = ""; }; + 742F0E3921E419F40079A7F5 /* DescriptionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DescriptionCell.swift; sourceTree = ""; }; + 742F0E3B21E41A2E0079A7F5 /* RiskCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RiskCell.swift; sourceTree = ""; }; + 742F0E3D21E41A960079A7F5 /* MoreInfoDoubleCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreInfoDoubleCell.swift; sourceTree = ""; }; + 742F0E3F21E41AB70079A7F5 /* MoreInfoSingleCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreInfoSingleCell.swift; sourceTree = ""; }; + 742F0E4121E41AD90079A7F5 /* DownloadCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DownloadCell.swift; sourceTree = ""; }; + 742F0E4321E41D4E0079A7F5 /* ProductPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductPresenter.swift; sourceTree = ""; }; 7473871A21E00368005C4A49 /* Santander.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Santander.app; sourceTree = BUILT_PRODUCTS_DIR; }; 7473871D21E00368005C4A49 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7473871F21E00368005C4A49 /* MainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = ""; }; @@ -93,10 +107,8 @@ isa = PBXGroup; children = ( 4AA0BE1421E38362005D41B9 /* BaseCell.swift */, - 4AA0BE1D21E3D7A9005D41B9 /* UILabelCell.swift */, - 4AA0BE1221E382C6005D41B9 /* UIButtonCell.swift */, - 4AA0BE0E21E3825F005D41B9 /* UITextFieldCell.swift */, - 4AA0BE1021E382BA005D41B9 /* UICheckBoxCell.swift */, + 742F0E3621E419610079A7F5 /* ProductView */, + 742F0E3521E4194E0079A7F5 /* ContactView */, ); path = Cell; sourceTree = ""; @@ -110,6 +122,30 @@ path = Extension; sourceTree = ""; }; + 742F0E3521E4194E0079A7F5 /* ContactView */ = { + isa = PBXGroup; + children = ( + 4AA0BE1D21E3D7A9005D41B9 /* UILabelCell.swift */, + 4AA0BE1221E382C6005D41B9 /* UIButtonCell.swift */, + 4AA0BE0E21E3825F005D41B9 /* UITextFieldCell.swift */, + 4AA0BE1021E382BA005D41B9 /* UICheckBoxCell.swift */, + ); + path = ContactView; + sourceTree = ""; + }; + 742F0E3621E419610079A7F5 /* ProductView */ = { + isa = PBXGroup; + children = ( + 742F0E3721E419870079A7F5 /* HeaderCell.swift */, + 742F0E4121E41AD90079A7F5 /* DownloadCell.swift */, + 742F0E3921E419F40079A7F5 /* DescriptionCell.swift */, + 742F0E3B21E41A2E0079A7F5 /* RiskCell.swift */, + 742F0E3D21E41A960079A7F5 /* MoreInfoDoubleCell.swift */, + 742F0E3F21E41AB70079A7F5 /* MoreInfoSingleCell.swift */, + ); + path = ProductView; + sourceTree = ""; + }; 7473871121E00368005C4A49 = { isa = PBXGroup; children = ( @@ -168,6 +204,7 @@ isa = PBXGroup; children = ( 74E715BF21E062D40079A3AE /* ContactPresenter.swift */, + 742F0E4321E41D4E0079A7F5 /* ProductPresenter.swift */, ); path = Presenter; sourceTree = ""; @@ -316,18 +353,25 @@ 7473872021E00368005C4A49 /* MainViewController.swift in Sources */, 4AA0BE1A21E38581005D41B9 /* UIView+Utils.swift in Sources */, 7415214521E12BC500DD000F /* RequestService.swift in Sources */, + 742F0E3A21E419F40079A7F5 /* DescriptionCell.swift in Sources */, + 742F0E4221E41AD90079A7F5 /* DownloadCell.swift in Sources */, 7473871E21E00368005C4A49 /* AppDelegate.swift in Sources */, + 742F0E4021E41AB70079A7F5 /* MoreInfoSingleCell.swift in Sources */, 4AA0BE1521E38362005D41B9 /* BaseCell.swift in Sources */, 7473873621E03CC5005C4A49 /* ProductViewController.swift in Sources */, 4AA0BE1C21E39FA3005D41B9 /* BaseViewController.swift in Sources */, 4AA0BE1121E382BA005D41B9 /* UICheckBoxCell.swift in Sources */, + 742F0E3821E419870079A7F5 /* HeaderCell.swift in Sources */, 74E715C021E062D40079A3AE /* ContactPresenter.swift in Sources */, 74E715C221E065940079A3AE /* FormItem.swift in Sources */, 7473873A21E03DFF005C4A49 /* ContactView.swift in Sources */, 4AA0BE1E21E3D7A9005D41B9 /* UILabelCell.swift in Sources */, 4AA0BE0F21E3825F005D41B9 /* UITextFieldCell.swift in Sources */, 7415214421E12BC500DD000F /* RequestBase.swift in Sources */, + 742F0E4421E41D4E0079A7F5 /* ProductPresenter.swift in Sources */, + 742F0E3E21E41A960079A7F5 /* MoreInfoDoubleCell.swift in Sources */, 7473873C21E03E15005C4A49 /* ProductView.swift in Sources */, + 742F0E3C21E41A2E0079A7F5 /* RiskCell.swift in Sources */, 4AA0BE1821E383E4005D41B9 /* UITableView+Utils.swift in Sources */, 7473873421E03CB2005C4A49 /* ContactViewController.swift in Sources */, ); diff --git a/Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuser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lb%mJ ipL@=D&UwD{T=d-aJoNk$xU(V@_!|@!_}lpOJo$fR$n4hu diff --git a/Santander/Santander/Cell/UIButtonCell.swift b/Santander/Santander/Cell/ContactView/UIButtonCell.swift similarity index 100% rename from Santander/Santander/Cell/UIButtonCell.swift rename to Santander/Santander/Cell/ContactView/UIButtonCell.swift diff --git a/Santander/Santander/Cell/UICheckBoxCell.swift b/Santander/Santander/Cell/ContactView/UICheckBoxCell.swift similarity index 100% rename from Santander/Santander/Cell/UICheckBoxCell.swift rename to Santander/Santander/Cell/ContactView/UICheckBoxCell.swift diff --git a/Santander/Santander/Cell/UILabelCell.swift b/Santander/Santander/Cell/ContactView/UILabelCell.swift similarity index 100% rename from Santander/Santander/Cell/UILabelCell.swift rename to Santander/Santander/Cell/ContactView/UILabelCell.swift diff --git a/Santander/Santander/Cell/UITextFieldCell.swift b/Santander/Santander/Cell/ContactView/UITextFieldCell.swift similarity index 100% rename from Santander/Santander/Cell/UITextFieldCell.swift rename to Santander/Santander/Cell/ContactView/UITextFieldCell.swift diff --git a/Santander/Santander/Cell/ProductView/DescriptionCell.swift b/Santander/Santander/Cell/ProductView/DescriptionCell.swift new file mode 100644 index 00000000..4132210e --- /dev/null +++ b/Santander/Santander/Cell/ProductView/DescriptionCell.swift @@ -0,0 +1,13 @@ +// +// DescriptionCell.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class DescriptionCell: BaseCell { + +} diff --git a/Santander/Santander/Cell/ProductView/DownloadCell.swift b/Santander/Santander/Cell/ProductView/DownloadCell.swift new file mode 100644 index 00000000..6ec6981c --- /dev/null +++ b/Santander/Santander/Cell/ProductView/DownloadCell.swift @@ -0,0 +1,13 @@ +// +// DownloadCell.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class DownloadCell: BaseCell { + +} diff --git a/Santander/Santander/Cell/ProductView/HeaderCell.swift b/Santander/Santander/Cell/ProductView/HeaderCell.swift new file mode 100644 index 00000000..2f390d22 --- /dev/null +++ b/Santander/Santander/Cell/ProductView/HeaderCell.swift @@ -0,0 +1,13 @@ +// +// HeaderCell.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class HeaderCell: BaseCell { + +} diff --git a/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift b/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift new file mode 100644 index 00000000..e0a7464f --- /dev/null +++ b/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift @@ -0,0 +1,13 @@ +// +// MoreInfoDoubleCell.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class MoreInfoDoubleCell: BaseCell { + +} diff --git a/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift b/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift new file mode 100644 index 00000000..66a61b5c --- /dev/null +++ b/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift @@ -0,0 +1,13 @@ +// +// MoreInfoSingleCell.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class MoreInfoSingleCell: BaseCell { + +} diff --git a/Santander/Santander/Cell/ProductView/RiskCell.swift b/Santander/Santander/Cell/ProductView/RiskCell.swift new file mode 100644 index 00000000..43f0f09a --- /dev/null +++ b/Santander/Santander/Cell/ProductView/RiskCell.swift @@ -0,0 +1,13 @@ +// +// RiskCell.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import UIKit + +class RiskCell: BaseCell { + +} diff --git a/Santander/Santander/Presenter/ProductPresenter.swift b/Santander/Santander/Presenter/ProductPresenter.swift new file mode 100644 index 00000000..d23310ad --- /dev/null +++ b/Santander/Santander/Presenter/ProductPresenter.swift @@ -0,0 +1,47 @@ +// +// ProductPresenter.swift +// Santander +// +// Created by Jonathan Martins on 07/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import Foundation + +class ProductPresenter{ + + private var view:ProductViewDelegate? + + /// + init(bindTo view:ProductViewDelegate) { + self.view = view + } + + /// + func destroy(){ + view = nil + } + + /// + func requestInfo(){ + RequestService().productDetail().responseJSON { [weak self] response in + if let data = response.data{ + if let root = try? JSONDecoder().decode(Root.self, from: data), let items = root.cells{ + self?.view?.updateTableViewItems(items: items) + } + } + } + } + + func share(){ + + } + + func download(){ + + } + + func invest(){ + + } +} diff --git a/Santander/Santander/View/ProductView.swift b/Santander/Santander/View/ProductView.swift index f904b252..c65e2223 100644 --- a/Santander/Santander/View/ProductView.swift +++ b/Santander/Santander/View/ProductView.swift @@ -9,17 +9,26 @@ import UIKit protocol ProductViewDelegate { - + func updateTableViewItems(_ items:[FormItem]) } class ProductView: UIView { - /// The list of favorited movies + /// The list to hold the information let tableView:UITableView = { let tableView = UITableView() tableView.separatorStyle = .none + tableView.backgroundColor = .white tableView.tableFooterView = UIView() - //tableView.register(FavoriteCell.self, forCellReuseIdentifier: FavoriteCell.identifier) + tableView.registerCell(RiskCell.self) + tableView.registerCell(HeaderCell.self) + tableView.registerCell(UIButtonCell.self) + tableView.registerCell(DownloadCell.self) + tableView.registerCell(DescriptionCell.self) + tableView.registerCell(MoreInfoDoubleCell.self) + tableView.registerCell(MoreInfoSingleCell.self) + tableView.estimatedRowHeight = 100 + tableView.rowHeight = UITableView.automaticDimension tableView.translatesAutoresizingMaskIntoConstraints = false return tableView }() @@ -30,7 +39,7 @@ class ProductView: UIView { self.backgroundColor = .white NSLayoutConstraint.activate([ - tableView.topAnchor .constraint(equalTo: self.topAnchor, constant: 100), + tableView.topAnchor .constraint(equalTo: self.topAnchor, constant: 30), tableView.bottomAnchor .constraint(equalTo: self.bottomAnchor), tableView.leadingAnchor .constraint(equalTo: self.leadingAnchor), tableView.trailingAnchor.constraint(equalTo: self.trailingAnchor), @@ -46,3 +55,9 @@ class ProductView: UIView { fatalError("init(coder:) has not been implemented") } } + +extension ProductView: ProductViewDelegate{ + func updateTableViewItems(_ items: [FormItem]) { + <#code#> + } +} diff --git a/Santander/Santander/ViewController/BaseViewController.swift b/Santander/Santander/ViewController/BaseViewController.swift index a3d866a5..921a207e 100644 --- a/Santander/Santander/ViewController/BaseViewController.swift +++ b/Santander/Santander/ViewController/BaseViewController.swift @@ -18,7 +18,7 @@ class BaseViewController: UIViewController { /// Changes the navigation bar colour private func setNavigationBarColour(){ self.navigationController?.navigationBar.isTranslucent = true - self.navigationController?.navigationBar.barTintColor = .red - self.navigationController?.navigationBar.backgroundColor = .red + self.navigationController?.navigationBar.barTintColor = .white + self.navigationController?.navigationBar.backgroundColor = .white } } diff --git a/Santander/Santander/ViewController/ProductViewController.swift b/Santander/Santander/ViewController/ProductViewController.swift index 6a78faac..2095dfe6 100644 --- a/Santander/Santander/ViewController/ProductViewController.swift +++ b/Santander/Santander/ViewController/ProductViewController.swift @@ -10,9 +10,42 @@ import UIKit class ProductViewController: BaseViewController { + private unowned var _view:ProductView { return self.view as! ProductView } + + private var presenter:ProductPresenter! + + override func loadView() { + self.view = ProductView() + } + override func viewDidLoad() { super.viewDidLoad() - self.navigationItem.title = "Investimento" + self.navigationItem.title = "Investimentos" + + _view.tableView.delegate = self + _view.tableView.dataSource = self + + presenter = ProductPresenter(bindTo: _view) + presenter.requestInfo() + } + + override func viewDidDisappear(_ animated: Bool) { + super.viewDidDisappear(animated) + presenter.destroy() + } +} + +extension ProductViewController: UITableViewDelegate, UITableViewDataSource { + + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return 0 } + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + return getInfoCellFor(indexPath) ?? UITableViewCell() + } + + private func getInfoCellFor(_ indexPath: IndexPath) -> UITableViewCell?{ + return nil + } } From 3273f1026c44febea28b8b5ac67737f699b025b7 Mon Sep 17 00:00:00 2001 From: Jonathan Martins Date: Tue, 8 Jan 2019 00:49:03 -0200 Subject: [PATCH 05/11] Preseter fixes - Fixing ContactPresenter --- Santander/Santander.xcodeproj/project.pbxproj | 4 ++ .../UserInterfaceState.xcuserstate | Bin 32005 -> 27989 bytes .../Cell/ContactView/UICheckBoxCell.swift | 8 ++-- .../Santander/Presenter/BasePresenter.swift | 22 +++++++++++ .../Presenter/ContactPresenter.swift | 29 +++++---------- .../Presenter/ProductPresenter.swift | 17 +++++---- Santander/Santander/View/ContactView.swift | 35 +----------------- .../ContactViewController.swift | 8 ++-- .../ProductViewController.swift | 2 +- 9 files changed, 56 insertions(+), 69 deletions(-) create mode 100644 Santander/Santander/Presenter/BasePresenter.swift diff --git a/Santander/Santander.xcodeproj/project.pbxproj b/Santander/Santander.xcodeproj/project.pbxproj index de1d96e6..d41485d8 100644 --- a/Santander/Santander.xcodeproj/project.pbxproj +++ b/Santander/Santander.xcodeproj/project.pbxproj @@ -26,6 +26,7 @@ 742F0E4021E41AB70079A7F5 /* MoreInfoSingleCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3F21E41AB70079A7F5 /* MoreInfoSingleCell.swift */; }; 742F0E4221E41AD90079A7F5 /* DownloadCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E4121E41AD90079A7F5 /* DownloadCell.swift */; }; 742F0E4421E41D4E0079A7F5 /* ProductPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E4321E41D4E0079A7F5 /* ProductPresenter.swift */; }; + 742F0E4621E4417A0079A7F5 /* BasePresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E4521E4417A0079A7F5 /* BasePresenter.swift */; }; 7473871E21E00368005C4A49 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473871D21E00368005C4A49 /* AppDelegate.swift */; }; 7473872021E00368005C4A49 /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473871F21E00368005C4A49 /* MainViewController.swift */; }; 7473872521E0036C005C4A49 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7473872421E0036C005C4A49 /* Assets.xcassets */; }; @@ -58,6 +59,7 @@ 742F0E3F21E41AB70079A7F5 /* MoreInfoSingleCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreInfoSingleCell.swift; sourceTree = ""; }; 742F0E4121E41AD90079A7F5 /* DownloadCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DownloadCell.swift; sourceTree = ""; }; 742F0E4321E41D4E0079A7F5 /* ProductPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductPresenter.swift; sourceTree = ""; }; + 742F0E4521E4417A0079A7F5 /* BasePresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BasePresenter.swift; sourceTree = ""; }; 7473871A21E00368005C4A49 /* Santander.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Santander.app; sourceTree = BUILT_PRODUCTS_DIR; }; 7473871D21E00368005C4A49 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7473871F21E00368005C4A49 /* MainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = ""; }; @@ -203,6 +205,7 @@ 7473873121E003EB005C4A49 /* Presenter */ = { isa = PBXGroup; children = ( + 742F0E4521E4417A0079A7F5 /* BasePresenter.swift */, 74E715BF21E062D40079A3AE /* ContactPresenter.swift */, 742F0E4321E41D4E0079A7F5 /* ProductPresenter.swift */, ); @@ -370,6 +373,7 @@ 7415214421E12BC500DD000F /* RequestBase.swift in Sources */, 742F0E4421E41D4E0079A7F5 /* ProductPresenter.swift in Sources */, 742F0E3E21E41A960079A7F5 /* MoreInfoDoubleCell.swift in Sources */, + 742F0E4621E4417A0079A7F5 /* BasePresenter.swift in Sources */, 7473873C21E03E15005C4A49 /* ProductView.swift in Sources */, 742F0E3C21E41A2E0079A7F5 /* RiskCell.swift in Sources */, 4AA0BE1821E383E4005D41B9 /* UITableView+Utils.swift in Sources */, diff --git a/Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate index 5118a40cf7a96cd2fe7543d5d0f96d0e727b0254..4f2ca42ae968721e2aba89e1c58a25c12c29b022 100644 GIT binary patch literal 27989 zcmd6QcYIVu_xGK-HJi36q?b)XNg<8&-ZyM(;C%&-i{@Qfh6A-!2Qe7ezOZtd)-8{Ro_sBg~V`)65R$ zMP?WC67xEBR7%f3d z(d}p@x&y66o6rMjGkOp`gdRt`&`anw^cLEOcA&S>0rW09ijJX=(3j{0`U;&!-=QDS zALvi?7iKWR7~5fc?0`M6C-%Y`9DoyWB2L1|I0dKTG@Onza3cjDFfE_^>;k2m0cya_*oAH`4MXYqEt z6TgIC#joKv@m{>ew~ri6_IY+E`vUtSyNi8^eVyII{=p#*a{?!FwwxWO=A5`;oEzuGd2{}p zh8xa};6k`iE`p2XVz^i?kxSyzxO6U?%i;350A9wR&sZ6Yq@*5b=*VT!`vg>qugWMR&G1@9JiZ$ znR|tMhdaO>=lNay>---69sU4+kpGzf zg#VO3&VR=E7&-W1*z4h!!IM}+rT^HYVj`desR6HL3~VnTzo>@ zB5oD8i95v?#23X~;vVr0@lEkP@rd}ocvL(lek^_|o)*6oe-(cdFN(j5e@IA@Bpb;| za+X{qe@P<+NP$w2G)jt);-v&BQA(FGq)e$ws+MY`TB%N|ml~u-X{H&$-6O4&?vw79)=T};!_wo@R_R6QW$6`Z zPxbJQp0>6_j18k=Y#BSok#Vlo=_95Yd(92-cR<$G3~z2Tn9Y5RJ>wu_neAiLjFZd} zWGlxusfS19M8_va#pH#@#YStxW8<~i;o0$Ha>8@6W8#v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2qOS6tTS2PW?jtsCF@Ssy{zA|9%cQlL`q6&qm(JVlzo(e z$`EC^GD?}OOjTwmvy?f?JY|h?o^reLl=2(pcgjo3AC$i+A1EIx|5W~+jk2k1NwzH8 zA=^3IBil3EC)+nWB0D-eJv%?UD7z%PfA*m4^6biNZFXIDWA@1GSF*Qff0_MT4v|CU zFgfBJX^wM_TaG-(JI6Q2FULP8EGIc9Jts3KJEtJ0D5oT+UydfHI;T13r5rwIYR-(D zSvd=G7Ue9>S&{Q*PD{?doF8(n!6x(QEprArra&L+j8H{-Ie=c?#HU=JLX8xS~SM%rRFUxPsUz5K+e^dUJ z{I~P><$sj_N&cbyBl*YjPv)P_znp(7|6%^4{Ko}k0bO8KAT6*fa42vta4m=_C@Yv! z&|0vuU~|FS1@9E>Dfpz|P{HQ~M+%M=oG3U|aIxS@!A}K07yMdqyWn2IgF?DcTqrAa zEOaS!FZ3+*E(|G*E6ge!SU9AxtZ+o3rm(uOwy**0%aaSI70xJ}SvaTg)xy^b7Zxrq zTw2&xxVi9P;kSi%i^N6pqL`wBqIpG&i&hq`D|)wRPtgZO2Z}x^I$U(D=w#8EqI1RO z#XXA?i!+Ohi%W|K6b~*QR;(^AFK#LxT|BOMVlh`dqj*;F+~QY@=NIoTzN)fQxv2c$ z#eboy2vxKyNtL2XS7oWPRk^BSuxwYVw5mE)qiU3DtZIVlB^9TdqMD~#tXigeL$yk^ z7A)UyskW-Nsoql^s41!`sZrN7)Qqe#)QqkfS2MAOtC?FfujaLyg*8iRmes7NSy}T@ z&DC0)+W6Y^+PvC+wF7HM)M{%RYWdn(wR3AsB)E=xoUVEkXr`n%uf2qAyd$;yM?ZetfVBaR|M0NIcE_I$AHY-y2FIIOmSrK*K F{|C9WXnz0z diff --git a/Santander/Santander/Cell/ContactView/UICheckBoxCell.swift b/Santander/Santander/Cell/ContactView/UICheckBoxCell.swift index 90b8eeb1..9f4e017b 100644 --- a/Santander/Santander/Cell/ContactView/UICheckBoxCell.swift +++ b/Santander/Santander/Cell/ContactView/UICheckBoxCell.swift @@ -59,7 +59,7 @@ class UICheckBoxCell: BaseCell { } /// - func setupCell(_ item:FormItem, callback:(()->Void)? = nil){ + func setupCell(_ item:FormItem, callback:((_ isSelected: Bool, _ item:FormItem)->())? = nil){ setupTopSpace(item) self.item = item @@ -70,9 +70,9 @@ class UICheckBoxCell: BaseCell { } /// - private var callback:(()->Void)? + private var callback:((_ isSelected: Bool, _ item:FormItem)->())? @objc private func switchChanged(mySwitch: UISwitch) { - item?.hidden = mySwitch.isOn - callback?() + guard let item = item else { return } + callback?(mySwitch.isOn, item) } } diff --git a/Santander/Santander/Presenter/BasePresenter.swift b/Santander/Santander/Presenter/BasePresenter.swift new file mode 100644 index 00000000..5a791778 --- /dev/null +++ b/Santander/Santander/Presenter/BasePresenter.swift @@ -0,0 +1,22 @@ +// +// BasePresenter.swift +// Santander +// +// Created by Jonathan Martins on 08/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +class BasePresenter{ + + var view:T? + + /// + init(bindTo view:T) { + self.view = view + } + + /// + func destroy(){ + view = nil + } +} diff --git a/Santander/Santander/Presenter/ContactPresenter.swift b/Santander/Santander/Presenter/ContactPresenter.swift index ca58babc..78bf5d77 100644 --- a/Santander/Santander/Presenter/ContactPresenter.swift +++ b/Santander/Santander/Presenter/ContactPresenter.swift @@ -8,19 +8,20 @@ import Foundation -class ContactPresenter{ +class ContactPresenter:BasePresenter{ - private var view:ContactViewDelegate? private var items:[FormItem] = [] /// - init(bindTo view:ContactViewDelegate) { - self.view = view + var numberOfItems:Int { + get{ + return items.count + } } /// - func destroy(){ - view = nil + override init(bindTo view: ContactViewDelegate) { + super.init(bindTo: view) } /// @@ -46,22 +47,12 @@ class ContactPresenter{ } /// - func isNameValid(name:String?){ - + func itemForRow(_ row:Int)->FormItem{ + return items[row] } /// - func isEmailValid(email:String?){ + func onSwitchSelected(_ isSelected:Bool, _ item:FormItem){ } - - /// - func isPhoneValid(phone:String?){ - - } - - /// - func checkSwitch(){ - self.view?.updateTableViewItems() - } } diff --git a/Santander/Santander/Presenter/ProductPresenter.swift b/Santander/Santander/Presenter/ProductPresenter.swift index d23310ad..9c5c66bb 100644 --- a/Santander/Santander/Presenter/ProductPresenter.swift +++ b/Santander/Santander/Presenter/ProductPresenter.swift @@ -8,18 +8,20 @@ import Foundation -class ProductPresenter{ +class ProductPresenter:BasePresenter{ - private var view:ProductViewDelegate? + private var items:[FormItem] = [] /// - init(bindTo view:ProductViewDelegate) { - self.view = view + var numberOfItems:Int { + get{ + return items.count + } } /// - func destroy(){ - view = nil + override init(bindTo view: ProductViewDelegate) { + super.init(bindTo: view) } /// @@ -27,7 +29,8 @@ class ProductPresenter{ RequestService().productDetail().responseJSON { [weak self] response in if let data = response.data{ if let root = try? JSONDecoder().decode(Root.self, from: data), let items = root.cells{ - self?.view?.updateTableViewItems(items: items) + self?.items = items + self?.view?.updateTableViewItems(items) } } } diff --git a/Santander/Santander/View/ContactView.swift b/Santander/Santander/View/ContactView.swift index 463a065e..12b7b7c7 100644 --- a/Santander/Santander/View/ContactView.swift +++ b/Santander/Santander/View/ContactView.swift @@ -9,21 +9,13 @@ import UIKit protocol ContactViewDelegate { - func updateContactName(name:String?) - func updateContactEmail(email:String?) - func updateContactPhone(phone:String?) - func userCheckedToReceiveEmail() - func userUncheckedToReceiveEmail() func updateTableViewItems(items:[FormItem]) - func updateTableViewItems() func showSuccessPage() func hideSuccessPage() } class ContactView: UIView { - - var formItems:[FormItem] = [] - + /// The list of items for the form let tableView:UITableView = { let tableView = UITableView() @@ -106,20 +98,7 @@ class ContactView: UIView { extension ContactView: ContactViewDelegate{ - func userCheckedToReceiveEmail() { - - } - - func userUncheckedToReceiveEmail() { - - } - func updateTableViewItems(items: [FormItem]) { - formItems = items - tableView.reloadData() - } - - func updateTableViewItems() { tableView.reloadData() } @@ -130,16 +109,4 @@ extension ContactView: ContactViewDelegate{ func hideSuccessPage() { tableView.isHidden = false } - - func updateContactName(name: String?) { - - } - - func updateContactEmail(email: String?) { - - } - - func updateContactPhone(phone: String?) { - - } } diff --git a/Santander/Santander/ViewController/ContactViewController.swift b/Santander/Santander/ViewController/ContactViewController.swift index 63b8e097..2ae40702 100644 --- a/Santander/Santander/ViewController/ContactViewController.swift +++ b/Santander/Santander/ViewController/ContactViewController.swift @@ -44,7 +44,7 @@ class ContactViewController: BaseViewController { extension ContactViewController: UITableViewDelegate, UITableViewDataSource { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return _view.formItems.count + return presenter.numberOfItems } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { @@ -53,7 +53,7 @@ extension ContactViewController: UITableViewDelegate, UITableViewDataSource { private func getInfoCellFor(_ indexPath: IndexPath) -> UITableViewCell?{ - let item = _view.formItems[indexPath.row] + let item = presenter.itemForRow(indexPath.row) switch item.type { case .field: let cell = _view.tableView.getCell(indexPath, UITextFieldCell.self) @@ -65,8 +65,8 @@ extension ContactViewController: UITableViewDelegate, UITableViewDataSource { return cell case .checkbox: let cell = _view.tableView.getCell(indexPath, UICheckBoxCell.self) - cell?.setupCell(item, callback: { [weak self] in - self?.presenter.checkSwitch() + cell?.setupCell(item, callback: { [unowned self] (isSelected, item) in + self.presenter.onSwitchSelected(isSelected, item) }) return cell case .send: diff --git a/Santander/Santander/ViewController/ProductViewController.swift b/Santander/Santander/ViewController/ProductViewController.swift index 2095dfe6..fa5e6021 100644 --- a/Santander/Santander/ViewController/ProductViewController.swift +++ b/Santander/Santander/ViewController/ProductViewController.swift @@ -38,7 +38,7 @@ class ProductViewController: BaseViewController { extension ProductViewController: UITableViewDelegate, UITableViewDataSource { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return 0 + return presenter.numberOfItems } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { From 39584e2b9b9fea4e4929e65950e901342adf39e8 Mon Sep 17 00:00:00 2001 From: - Jonathan Martins Date: Tue, 8 Jan 2019 16:27:04 -0200 Subject: [PATCH 06/11] - Implemneting ProductView --- Santander/Santander.xcodeproj/project.pbxproj | 22 +- .../UserInterfaceState.xcuserstate | Bin 29763 -> 38223 bytes .../xcdebugger/Breakpoints_v2.xcbkptlist | 18 ++ .../Cell/ContactView/UILabelCell.swift | 2 +- .../Cell/ContactView/UITextFieldCell.swift | 34 ++- .../Cell/ProductView/DescriptionCell.swift | 13 -- .../Cell/ProductView/DownloadCell.swift | 72 ++++++ .../Cell/ProductView/HeaderCell.swift | 213 ++++++++++++++++++ .../Cell/ProductView/MoreInfoDoubleCell.swift | 88 ++++++++ .../Cell/ProductView/MoreInfoSingleCell.swift | 52 +++++ .../Santander/Cell/ProductView/RiskCell.swift | 13 -- .../Santander/Extension/UIColor+Utils.swift | 33 +++ .../Extension/UITableView+Utils.swift | 8 - Santander/Santander/Model/FormItem.swift | 1 - Santander/Santander/Model/Screen.swift | 88 ++++++++ .../Santander/Presenter/BasePresenter.swift | 22 -- .../Presenter/ContactPresenter.swift | 14 +- .../Presenter/ProductPresenter.swift | 61 ++++- Santander/Santander/View/ContactView.swift | 27 +-- Santander/Santander/View/ProductView.swift | 13 +- .../ContactViewController.swift | 24 +- .../ProductViewController.swift | 57 ++++- 22 files changed, 744 insertions(+), 131 deletions(-) delete mode 100644 Santander/Santander/Cell/ProductView/DescriptionCell.swift delete mode 100644 Santander/Santander/Cell/ProductView/RiskCell.swift create mode 100644 Santander/Santander/Extension/UIColor+Utils.swift create mode 100644 Santander/Santander/Model/Screen.swift delete mode 100644 Santander/Santander/Presenter/BasePresenter.swift diff --git a/Santander/Santander.xcodeproj/project.pbxproj b/Santander/Santander.xcodeproj/project.pbxproj index d41485d8..d51f86e9 100644 --- a/Santander/Santander.xcodeproj/project.pbxproj +++ b/Santander/Santander.xcodeproj/project.pbxproj @@ -16,17 +16,16 @@ 4AA0BE1A21E38581005D41B9 /* UIView+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE1921E38581005D41B9 /* UIView+Utils.swift */; }; 4AA0BE1C21E39FA3005D41B9 /* BaseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE1B21E39FA3005D41B9 /* BaseViewController.swift */; }; 4AA0BE1E21E3D7A9005D41B9 /* UILabelCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE1D21E3D7A9005D41B9 /* UILabelCell.swift */; }; + 4AA0BE2021E4D5F1005D41B9 /* Screen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE1F21E4D5F1005D41B9 /* Screen.swift */; }; + 4AA0BE2221E51CE3005D41B9 /* UIColor+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA0BE2121E51CE3005D41B9 /* UIColor+Utils.swift */; }; 7415214421E12BC500DD000F /* RequestBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7415214221E12BC500DD000F /* RequestBase.swift */; }; 7415214521E12BC500DD000F /* RequestService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7415214321E12BC500DD000F /* RequestService.swift */; }; 7415214721E12D9A00DD000F /* Endpoint.plist in Resources */ = {isa = PBXBuildFile; fileRef = 7415214621E12D9A00DD000F /* Endpoint.plist */; }; 742F0E3821E419870079A7F5 /* HeaderCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3721E419870079A7F5 /* HeaderCell.swift */; }; - 742F0E3A21E419F40079A7F5 /* DescriptionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3921E419F40079A7F5 /* DescriptionCell.swift */; }; - 742F0E3C21E41A2E0079A7F5 /* RiskCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3B21E41A2E0079A7F5 /* RiskCell.swift */; }; 742F0E3E21E41A960079A7F5 /* MoreInfoDoubleCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3D21E41A960079A7F5 /* MoreInfoDoubleCell.swift */; }; 742F0E4021E41AB70079A7F5 /* MoreInfoSingleCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3F21E41AB70079A7F5 /* MoreInfoSingleCell.swift */; }; 742F0E4221E41AD90079A7F5 /* DownloadCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E4121E41AD90079A7F5 /* DownloadCell.swift */; }; 742F0E4421E41D4E0079A7F5 /* ProductPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E4321E41D4E0079A7F5 /* ProductPresenter.swift */; }; - 742F0E4621E4417A0079A7F5 /* BasePresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E4521E4417A0079A7F5 /* BasePresenter.swift */; }; 7473871E21E00368005C4A49 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473871D21E00368005C4A49 /* AppDelegate.swift */; }; 7473872021E00368005C4A49 /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473871F21E00368005C4A49 /* MainViewController.swift */; }; 7473872521E0036C005C4A49 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7473872421E0036C005C4A49 /* Assets.xcassets */; }; @@ -48,18 +47,17 @@ 4AA0BE1921E38581005D41B9 /* UIView+Utils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+Utils.swift"; sourceTree = ""; }; 4AA0BE1B21E39FA3005D41B9 /* BaseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseViewController.swift; sourceTree = ""; }; 4AA0BE1D21E3D7A9005D41B9 /* UILabelCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UILabelCell.swift; sourceTree = ""; }; + 4AA0BE1F21E4D5F1005D41B9 /* Screen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Screen.swift; sourceTree = ""; }; + 4AA0BE2121E51CE3005D41B9 /* UIColor+Utils.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIColor+Utils.swift"; sourceTree = ""; }; 675F3ECE90A89FC4D74117E2 /* Pods-Santander.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Santander.debug.xcconfig"; path = "Target Support Files/Pods-Santander/Pods-Santander.debug.xcconfig"; sourceTree = ""; }; 7415214221E12BC500DD000F /* RequestBase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RequestBase.swift; sourceTree = ""; }; 7415214321E12BC500DD000F /* RequestService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RequestService.swift; sourceTree = ""; }; 7415214621E12D9A00DD000F /* Endpoint.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Endpoint.plist; sourceTree = ""; }; 742F0E3721E419870079A7F5 /* HeaderCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HeaderCell.swift; sourceTree = ""; }; - 742F0E3921E419F40079A7F5 /* DescriptionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DescriptionCell.swift; sourceTree = ""; }; - 742F0E3B21E41A2E0079A7F5 /* RiskCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RiskCell.swift; sourceTree = ""; }; 742F0E3D21E41A960079A7F5 /* MoreInfoDoubleCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreInfoDoubleCell.swift; sourceTree = ""; }; 742F0E3F21E41AB70079A7F5 /* MoreInfoSingleCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreInfoSingleCell.swift; sourceTree = ""; }; 742F0E4121E41AD90079A7F5 /* DownloadCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DownloadCell.swift; sourceTree = ""; }; 742F0E4321E41D4E0079A7F5 /* ProductPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductPresenter.swift; sourceTree = ""; }; - 742F0E4521E4417A0079A7F5 /* BasePresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BasePresenter.swift; sourceTree = ""; }; 7473871A21E00368005C4A49 /* Santander.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Santander.app; sourceTree = BUILT_PRODUCTS_DIR; }; 7473871D21E00368005C4A49 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7473871F21E00368005C4A49 /* MainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = ""; }; @@ -118,6 +116,7 @@ 4AA0BE1621E383D0005D41B9 /* Extension */ = { isa = PBXGroup; children = ( + 4AA0BE2121E51CE3005D41B9 /* UIColor+Utils.swift */, 4AA0BE1721E383E4005D41B9 /* UITableView+Utils.swift */, 4AA0BE1921E38581005D41B9 /* UIView+Utils.swift */, ); @@ -140,10 +139,8 @@ children = ( 742F0E3721E419870079A7F5 /* HeaderCell.swift */, 742F0E4121E41AD90079A7F5 /* DownloadCell.swift */, - 742F0E3921E419F40079A7F5 /* DescriptionCell.swift */, - 742F0E3B21E41A2E0079A7F5 /* RiskCell.swift */, - 742F0E3D21E41A960079A7F5 /* MoreInfoDoubleCell.swift */, 742F0E3F21E41AB70079A7F5 /* MoreInfoSingleCell.swift */, + 742F0E3D21E41A960079A7F5 /* MoreInfoDoubleCell.swift */, ); path = ProductView; sourceTree = ""; @@ -189,6 +186,7 @@ isa = PBXGroup; children = ( 74E715C121E065940079A3AE /* FormItem.swift */, + 4AA0BE1F21E4D5F1005D41B9 /* Screen.swift */, ); path = Model; sourceTree = ""; @@ -205,7 +203,6 @@ 7473873121E003EB005C4A49 /* Presenter */ = { isa = PBXGroup; children = ( - 742F0E4521E4417A0079A7F5 /* BasePresenter.swift */, 74E715BF21E062D40079A3AE /* ContactPresenter.swift */, 742F0E4321E41D4E0079A7F5 /* ProductPresenter.swift */, ); @@ -356,12 +353,13 @@ 7473872021E00368005C4A49 /* MainViewController.swift in Sources */, 4AA0BE1A21E38581005D41B9 /* UIView+Utils.swift in Sources */, 7415214521E12BC500DD000F /* RequestService.swift in Sources */, - 742F0E3A21E419F40079A7F5 /* DescriptionCell.swift in Sources */, + 4AA0BE2021E4D5F1005D41B9 /* Screen.swift in Sources */, 742F0E4221E41AD90079A7F5 /* DownloadCell.swift in Sources */, 7473871E21E00368005C4A49 /* AppDelegate.swift in Sources */, 742F0E4021E41AB70079A7F5 /* MoreInfoSingleCell.swift in Sources */, 4AA0BE1521E38362005D41B9 /* BaseCell.swift in Sources */, 7473873621E03CC5005C4A49 /* ProductViewController.swift in Sources */, + 4AA0BE2221E51CE3005D41B9 /* UIColor+Utils.swift in Sources */, 4AA0BE1C21E39FA3005D41B9 /* BaseViewController.swift in Sources */, 4AA0BE1121E382BA005D41B9 /* UICheckBoxCell.swift in Sources */, 742F0E3821E419870079A7F5 /* HeaderCell.swift in Sources */, @@ -373,9 +371,7 @@ 7415214421E12BC500DD000F /* RequestBase.swift in Sources */, 742F0E4421E41D4E0079A7F5 /* ProductPresenter.swift in Sources */, 742F0E3E21E41A960079A7F5 /* MoreInfoDoubleCell.swift in Sources */, - 742F0E4621E4417A0079A7F5 /* BasePresenter.swift in Sources */, 7473873C21E03E15005C4A49 /* ProductView.swift in Sources */, - 742F0E3C21E41A2E0079A7F5 /* RiskCell.swift in Sources */, 4AA0BE1821E383E4005D41B9 /* UITableView+Utils.swift in Sources */, 7473873421E03CB2005C4A49 /* ContactViewController.swift in Sources */, ); diff --git a/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate index 9ee4b56dfd24761ef63d763c4534cde4c178b974..f282e5d8e62234dda29b69fd42a85c2f45adc98d 100644 GIT binary patch delta 19995 zcma)^2YgdEwD7NVx3e5)hl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=cVQK z%^Q?AByV`$$h?Vp^Ya$wEzVn-SC_XuZ&lvfyj^*F^A6-4$~%&GJny@_@AH1hyP9_| zALT3ZTjr@(T(J`V|Z)s45s-Frr{o!I%QRU`9cG!HR;_1?vhn7JOB3yWnBL zi-K1LZwvk|goUV3TqrB_DO43|3nL2~7seEJDvT}cR;VjXE6gm+F3c?~DI8chx^P0_ zq{69%(+lSpt}Fbi@Mz)H!aIfc3at+cADLK_)Z}LhGzFVNP2r|yrk18QruL>zrY@$Q zrZiK5X|QRmX^LsOX_je@X})Qxsm`>_w9>TNwAOUo^sCv;tTD%!TbNs$+nGC zg=UMn#N5Z+*IaHMY#w1AZRXA6%rnjN%?r(o%}dQI%&X07%^S>{%sZ{-Bj)eTr_JZg z7tGhpH_f-qcg%OqPt5Pke_JREw0K!07H^Bf;%o7@gju32O)SkUEiGLwJuQir6iceb zXvwn_Sj?6pOSxsRWvpeAWvXR{WwzyW%OcB{mKsZ)WvgYc<&@>N6oeEd7cRM995 + + + + + + diff --git a/Santander/Santander/Cell/ContactView/UILabelCell.swift b/Santander/Santander/Cell/ContactView/UILabelCell.swift index 51afa283..3b4e71ba 100644 --- a/Santander/Santander/Cell/ContactView/UILabelCell.swift +++ b/Santander/Santander/Cell/ContactView/UILabelCell.swift @@ -10,7 +10,7 @@ import UIKit class UILabelCell: BaseCell { - /// The UiLabel + /// The UILabel private let label: UILabel = { let label = UILabel() label.numberOfLines = 0 diff --git a/Santander/Santander/Cell/ContactView/UITextFieldCell.swift b/Santander/Santander/Cell/ContactView/UITextFieldCell.swift index 1ff02fa8..cec66d7c 100644 --- a/Santander/Santander/Cell/ContactView/UITextFieldCell.swift +++ b/Santander/Santander/Cell/ContactView/UITextFieldCell.swift @@ -68,7 +68,7 @@ class UITextFieldCell: BaseCell { override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) setupConstraints() - textField.delegate = self + textField.addTarget(self, action: #selector(textFieldDidChange(_:)), for: .editingChanged) } required init?(coder aDecoder: NSCoder) { @@ -100,11 +100,11 @@ class UITextFieldCell: BaseCell { } /// Manage the TextField delegates -extension UITextFieldCell: UITextFieldDelegate { +extension UITextFieldCell { - func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { - guard let _item = item else { return true} - _item.dataText = string + @objc func textFieldDidChange(_ textField: UITextField) { + guard let _item = item else { return } + _item.dataText = textField.text switch _item.typefield { case .text: @@ -112,13 +112,29 @@ extension UITextFieldCell: UITextFieldDelegate { case .email: validateEmail(item?.dataText ?? "") case .telNumber: - validatePhone(item?.dataText ?? "") + validatePhone(item?.dataText ?? "") default: - return true - } - return true + return + } } +// func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { +// guard let _item = item else { return true} +// _item.dataText = string +// +// switch _item.typefield { +// case .text: +// validateName(item?.dataText ?? "") +// case .email: +// validateEmail(item?.dataText ?? "") +// case .telNumber: +// validatePhone(item?.dataText ?? "") +// default: +// return true +// } +// return true +// } + /// private func validateEmail(_ email:String){ if(isEmailValid(email)){ diff --git a/Santander/Santander/Cell/ProductView/DescriptionCell.swift b/Santander/Santander/Cell/ProductView/DescriptionCell.swift deleted file mode 100644 index 4132210e..00000000 --- a/Santander/Santander/Cell/ProductView/DescriptionCell.swift +++ /dev/null @@ -1,13 +0,0 @@ -// -// DescriptionCell.swift -// Santander -// -// Created by Jonathan Martins on 07/01/19. -// Copyright © 2019 Surrey. All rights reserved. -// - -import UIKit - -class DescriptionCell: BaseCell { - -} diff --git a/Santander/Santander/Cell/ProductView/DownloadCell.swift b/Santander/Santander/Cell/ProductView/DownloadCell.swift index 6ec6981c..e1b44f46 100644 --- a/Santander/Santander/Cell/ProductView/DownloadCell.swift +++ b/Santander/Santander/Cell/ProductView/DownloadCell.swift @@ -10,4 +10,76 @@ import UIKit class DownloadCell: BaseCell { + /// The left information of the cell + private let labelLeft: UILabel = { + let label = UILabel() + label.numberOfLines = 0 + label.textColor = .lightGray + label.textAlignment = .left + label.font = UIFont.systemFont(ofSize: 12, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + /// The right information of the cell + private let icon: UIImageView = { + let icon = UIImageView() + icon.translatesAutoresizingMaskIntoConstraints = false + return icon + }() + + /// The button to download + private let button: UIButton = { + let button = UIButton() + button.setTitle("Baixar", for: .normal) + button.setTitleColor(.red, for: .normal) + button.backgroundColor = .clear + button.titleLabel?.font = UIFont.systemFont(ofSize: 12, weight: .regular) + button.translatesAutoresizingMaskIntoConstraints = false + return button + }() + + /// Adds the constraints to the views in this cell + private func setupConstraints(){ + self.contentView.addSubview(icon) + self.contentView.addSubview(button) + self.contentView.addSubview(labelLeft) + + NSLayoutConstraint.activate([ + labelLeft.topAnchor .constraint(equalTo: self.contentView.topAnchor , constant:5), + labelLeft.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor , constant:-5), + labelLeft.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant:15), + + button.widthAnchor .constraint(equalToConstant: 70), + button.heightAnchor.constraint(equalToConstant: 30), + button.centerYAnchor.constraint(equalTo: labelLeft.centerYAnchor), + button.trailingAnchor.constraint(equalTo: self.contentView.trailingAnchor), + + icon.widthAnchor .constraint(equalToConstant: 20), + icon.heightAnchor.constraint(equalToConstant: 20), + icon.centerYAnchor.constraint(equalTo: button.centerYAnchor), + icon.trailingAnchor.constraint(equalTo: button.leadingAnchor), + ]) + } + + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { + super.init(style: style, reuseIdentifier: reuseIdentifier) + setupConstraints() + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + func setupCell(for info:Info?, callback:(()->Void)?=nil){ + self.callback = callback + labelLeft.text = info?.name + button.addTarget(self, action: #selector(buttonClicked), for: UIControl.Event.touchUpInside) + } + + /// + private var callback:(()->Void)? + @objc private func buttonClicked(myButton: UIButton) { + callback?() + } } diff --git a/Santander/Santander/Cell/ProductView/HeaderCell.swift b/Santander/Santander/Cell/ProductView/HeaderCell.swift index 2f390d22..a5c6e213 100644 --- a/Santander/Santander/Cell/ProductView/HeaderCell.swift +++ b/Santander/Santander/Cell/ProductView/HeaderCell.swift @@ -10,4 +10,217 @@ import UIKit class HeaderCell: BaseCell { + /// The + private let title:UILabel = { + let label = UILabel() + label.textColor = .lightGray + label.numberOfLines = 0 + label.textAlignment = .center + label.font = UIFont.systemFont(ofSize: 12, weight: .bold) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + /// The + private let fundName:UILabel = { + let label = UILabel() + label.textColor = .black + label.numberOfLines = 0 + label.textAlignment = .center + label.font = UIFont.systemFont(ofSize: 24, weight: .bold) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + /// The top divider + private let divider:UIView = { + let divider = UIView() + divider.backgroundColor = .lightGray + divider.translatesAutoresizingMaskIntoConstraints = false + return divider + }() + + /// The + private let whatIs:UILabel = { + let label = UILabel() + label.textColor = .lightGray + label.numberOfLines = 0 + label.textAlignment = .center + label.font = UIFont.systemFont(ofSize: 12, weight: .bold) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + /// + private let definition:UILabel = { + let label = UILabel() + label.textColor = .lightGray + label.numberOfLines = 0 + label.textAlignment = .center + label.font = UIFont.systemFont(ofSize: 12, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + /// + private let riskTitle:UILabel = { + let label = UILabel() + label.textColor = .lightGray + label.numberOfLines = 0 + label.textAlignment = .center + label.font = UIFont.systemFont(ofSize: 12, weight: .bold) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + /// + private let indicator:UIView = { + let view = UIView() + view.backgroundColor = .red + view.translatesAutoresizingMaskIntoConstraints = false + return view + }() + + /// The colours that a risk can have + private let colours = ["#70DC5A", "#44C268", "#FFC100", "#FF7418", "#FF332A"] + private lazy var stackView: UIStackView = { + let stackView = UIStackView() + stackView.axis = .horizontal + stackView.distribution = .fillProportionally + stackView.alignment = .leading + stackView.spacing = 1.0 + stackView.translatesAutoresizingMaskIntoConstraints = false + + /// Adds the beer's colours to the stackview + for colour in colours{ + let view = UIView() + view.backgroundColor = UIColor.init(hexString: colour) + view.heightAnchor.constraint(equalToConstant: 5).isActive = true + stackView.addArrangedSubview(view) + } + return stackView + }() + + /// + private let infoTitle:UILabel = { + let label = UILabel() + label.textAlignment = .center + label.numberOfLines = 0 + label.textColor = .lightGray + label.font = UIFont.systemFont(ofSize: 12, weight: .bold) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + /// + private let staticLabelFund:UILabel = { + let label = UILabel() + label.text = "Fundo" + label.textColor = .lightGray + label.numberOfLines = 1 + label.textAlignment = .right + label.font = UIFont.systemFont(ofSize: 12, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + /// + private let staticLabelCDI:UILabel = { + let label = UILabel() + label.text = "CDI" + label.textColor = .lightGray + label.numberOfLines = 1 + label.textAlignment = .right + label.font = UIFont.systemFont(ofSize: 12, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { + super.init(style: style, reuseIdentifier: reuseIdentifier) + + self.contentView.addSubview(title) + self.contentView.addSubview(fundName) + self.contentView.addSubview(divider) + self.contentView.addSubview(whatIs) + self.contentView.addSubview(definition) + self.contentView.addSubview(riskTitle) + self.contentView.addSubview(indicator) + self.contentView.addSubview(stackView) + self.contentView.addSubview(infoTitle) + self.contentView.addSubview(staticLabelCDI) + self.contentView.addSubview(staticLabelFund) + + NSLayoutConstraint.activate([ + title.leadingAnchor .constraint(equalTo: self.contentView.leadingAnchor, constant:10), + title.trailingAnchor .constraint(equalTo: self.contentView.trailingAnchor, constant:-15), + title.topAnchor .constraint(equalTo: self.contentView.topAnchor, constant:15), + + fundName.leadingAnchor .constraint(equalTo: title.leadingAnchor), + fundName.trailingAnchor .constraint(equalTo: title.trailingAnchor), + fundName.topAnchor .constraint(equalTo: title.bottomAnchor, constant:10), + + divider.heightAnchor .constraint(equalToConstant: 1), + divider.leadingAnchor .constraint(equalTo: fundName.leadingAnchor), + divider.trailingAnchor .constraint(equalTo: fundName.trailingAnchor), + divider.topAnchor .constraint(equalTo: fundName.bottomAnchor, constant:15), + + whatIs.leadingAnchor .constraint(equalTo: divider.leadingAnchor), + whatIs.trailingAnchor .constraint(equalTo: divider.trailingAnchor), + whatIs.topAnchor .constraint(equalTo: divider.bottomAnchor, constant:15), + + definition.leadingAnchor .constraint(equalTo: whatIs.leadingAnchor), + definition.trailingAnchor .constraint(equalTo: whatIs.trailingAnchor), + definition.topAnchor .constraint(equalTo: whatIs.bottomAnchor, constant:5), + + riskTitle.leadingAnchor .constraint(equalTo: definition.leadingAnchor), + riskTitle.trailingAnchor .constraint(equalTo: definition.trailingAnchor), + riskTitle.topAnchor .constraint(equalTo: definition.bottomAnchor, constant:30), + + indicator.heightAnchor.constraint(equalToConstant: 7), + indicator.widthAnchor.constraint(equalToConstant: 7), + indicator.bottomAnchor.constraint(equalTo: stackView.topAnchor, constant:-5), + + stackView.topAnchor .constraint(equalTo: riskTitle.bottomAnchor, constant:20), + stackView.leadingAnchor .constraint(equalTo: riskTitle.leadingAnchor), + stackView.trailingAnchor .constraint(equalTo: riskTitle.trailingAnchor), + + infoTitle.leadingAnchor .constraint(equalTo: stackView.leadingAnchor), + infoTitle.trailingAnchor .constraint(equalTo: stackView.trailingAnchor), + infoTitle.topAnchor .constraint(equalTo: stackView.bottomAnchor, constant:30), + + staticLabelFund.widthAnchor .constraint(equalTo: staticLabelCDI.widthAnchor), + staticLabelFund.trailingAnchor.constraint(equalTo: staticLabelCDI.leadingAnchor), + staticLabelFund.centerYAnchor .constraint(equalTo: staticLabelCDI.centerYAnchor), + + staticLabelCDI.widthAnchor .constraint(equalToConstant: 70), + staticLabelCDI.trailingAnchor .constraint(equalTo: infoTitle.trailingAnchor), + staticLabelCDI.topAnchor .constraint(equalTo: infoTitle.bottomAnchor, constant:20), + staticLabelCDI.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor, constant:-10), + ]) + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + /// + func setupHeader(for screen:Screen?){ + title.text = screen?.title + fundName.text = screen?.fundName + whatIs.text = screen?.whatIs + definition.text = screen?.definition + riskTitle.text = screen?.riskTitle + infoTitle.text = screen?.infoTitle + + if let risk = screen?.risk{ + let stackViewWidth = (UIScreen.main.bounds.width - 30) + let stackViewItemWidth = stackViewWidth/5 + + let x = (stackViewItemWidth * CGFloat(risk)) - (stackViewItemWidth/2) + NSLayoutConstraint.activate([ + indicator.leadingAnchor.constraint(equalTo: stackView.leadingAnchor, constant: x), + ]) + } + } } diff --git a/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift b/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift index e0a7464f..9cb4da6a 100644 --- a/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift +++ b/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift @@ -10,4 +10,92 @@ import UIKit class MoreInfoDoubleCell: BaseCell { + /// The left information of the cell + private let labelLeft: UILabel = { + let label = UILabel() + label.numberOfLines = 0 + label.textColor = .lightGray + label.textAlignment = .left + label.font = UIFont.systemFont(ofSize: 12, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + + return label + }() + + /// The right information of the cell + private let labelRight1: UILabel = { + let label = UILabel() + label.numberOfLines = 0 + label.textColor = .darkGray + label.textAlignment = .right + label.font = UIFont.systemFont(ofSize: 12, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + + return label + }() + + /// The right information of the cell + private let labelRight2: UILabel = { + let label = UILabel() + label.numberOfLines = 0 + label.textColor = .darkGray + label.textAlignment = .right + label.font = UIFont.systemFont(ofSize: 12, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + + return label + }() + + /// Adds the constraints to the views in this cell + private func setupConstraints(){ + self.contentView.addSubview(labelLeft) + self.contentView.addSubview(labelRight1) + self.contentView.addSubview(labelRight2) + + NSLayoutConstraint.activate([ + labelLeft.topAnchor .constraint(equalTo: self.contentView.topAnchor , constant:5), + labelLeft.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor , constant:-5), + labelLeft.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant:15), + + labelRight1.widthAnchor.constraint(equalToConstant: 70), + labelRight1.centerYAnchor.constraint(equalTo: labelLeft.centerYAnchor), + labelRight1.trailingAnchor.constraint(equalTo: self.contentView.trailingAnchor, constant:-15), + + labelRight2.widthAnchor.constraint(equalToConstant: 70), + labelRight2.centerYAnchor.constraint(equalTo: labelRight1.centerYAnchor), + labelRight2.trailingAnchor.constraint(equalTo: labelRight1.leadingAnchor), + ]) + } + + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { + super.init(style: style, reuseIdentifier: reuseIdentifier) + setupConstraints() + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + /// + func setupCell(for index:Int, profitability:Profitability?){ + + switch index { + case 0: + labelLeft.text = "No mês" + case 1: + labelLeft.text = "No Ano" + case 2: + labelLeft.text = "12 mêses" + default: + return + } + + if let cdi = profitability?.cdi{ + labelRight1.text = "\(cdi)" + } + + if let fund = profitability?.fund{ + labelRight2.text = "\(fund)" + } + } } diff --git a/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift b/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift index 66a61b5c..9d21c4a1 100644 --- a/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift +++ b/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift @@ -10,4 +10,56 @@ import UIKit class MoreInfoSingleCell: BaseCell { + /// The left information of the cell + private let labelLeft: UILabel = { + let label = UILabel() + label.numberOfLines = 0 + label.textColor = .lightGray + label.textAlignment = .left + label.font = UIFont.systemFont(ofSize: 12, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + + return label + }() + + /// The right information of the cell + private let labelRight: UILabel = { + let label = UILabel() + label.numberOfLines = 0 + label.textColor = .darkGray + label.textAlignment = .right + label.font = UIFont.systemFont(ofSize: 12, weight: .regular) + label.translatesAutoresizingMaskIntoConstraints = false + + return label + }() + + /// Adds the constraints to the views in this cell + private func setupConstraints(){ + self.contentView.addSubview(labelLeft) + self.contentView.addSubview(labelRight) + + NSLayoutConstraint.activate([ + labelLeft.topAnchor .constraint(equalTo: self.contentView.topAnchor , constant:5), + labelLeft.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor , constant:-5), + labelLeft.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant:15), + + labelRight.centerYAnchor.constraint(equalTo: labelLeft.centerYAnchor), + labelRight.trailingAnchor.constraint(equalTo: self.contentView.trailingAnchor, constant:-15), + ]) + } + + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { + super.init(style: style, reuseIdentifier: reuseIdentifier) + setupConstraints() + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + func setupCell(for info:Info?){ + labelLeft .text = info?.name + labelRight.text = info?.data + } } diff --git a/Santander/Santander/Cell/ProductView/RiskCell.swift b/Santander/Santander/Cell/ProductView/RiskCell.swift deleted file mode 100644 index 43f0f09a..00000000 --- a/Santander/Santander/Cell/ProductView/RiskCell.swift +++ /dev/null @@ -1,13 +0,0 @@ -// -// RiskCell.swift -// Santander -// -// Created by Jonathan Martins on 07/01/19. -// Copyright © 2019 Surrey. All rights reserved. -// - -import UIKit - -class RiskCell: BaseCell { - -} diff --git a/Santander/Santander/Extension/UIColor+Utils.swift b/Santander/Santander/Extension/UIColor+Utils.swift new file mode 100644 index 00000000..afd063cc --- /dev/null +++ b/Santander/Santander/Extension/UIColor+Utils.swift @@ -0,0 +1,33 @@ +// +// UIColor+Utils.swift +// Santander +// +// Created by Jonathan Martins on 08/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import Foundation +import UIKit + +extension UIColor { + + /// Takes an Hexadecimal String value and converts to UIColor + convenience init(hexString: String) { + let hex = hexString.trimmingCharacters(in: CharacterSet.alphanumerics.inverted) + var int = UInt32() + Scanner(string: hex).scanHexInt32(&int) + let a, r, g, b: UInt32 + + switch hex.count { + case 3: // RGB (12-bit) + (a, r, g, b) = (255, (int >> 8) * 17, (int >> 4 & 0xF) * 17, (int & 0xF) * 17) + case 6: // RGB (24-bit) + (a, r, g, b) = (255, int >> 16, int >> 8 & 0xFF, int & 0xFF) + case 8: // ARGB (32-bit) + (a, r, g, b) = (int >> 24, int >> 16 & 0xFF, int >> 8 & 0xFF, int & 0xFF) + default: + (a, r, g, b) = (255, 0, 0, 0) + } + self.init(red: CGFloat(r) / 255, green: CGFloat(g) / 255, blue: CGFloat(b) / 255, alpha: CGFloat(a) / 255) + } +} diff --git a/Santander/Santander/Extension/UITableView+Utils.swift b/Santander/Santander/Extension/UITableView+Utils.swift index 4c4aa2e6..fcb51c1e 100644 --- a/Santander/Santander/Extension/UITableView+Utils.swift +++ b/Santander/Santander/Extension/UITableView+Utils.swift @@ -21,11 +21,3 @@ extension UITableView{ self.register(T.self, forCellReuseIdentifier: String(describing: T.self)) } } - -//extension UITableViewCell{ -// -// /// Removes the separator from the cell -// func removeSeparator(){ -// self.separatorInset = UIEdgeInsets(top: 0, left: 10000, bottom: 0, right: 0) -// } -//} diff --git a/Santander/Santander/Model/FormItem.swift b/Santander/Santander/Model/FormItem.swift index 5c9e816e..8665db79 100644 --- a/Santander/Santander/Model/FormItem.swift +++ b/Santander/Santander/Model/FormItem.swift @@ -31,7 +31,6 @@ struct Root:Decodable { private enum CodingKeys: String, CodingKey { case cells = "cells" } - } class FormItem: Decodable { diff --git a/Santander/Santander/Model/Screen.swift b/Santander/Santander/Model/Screen.swift new file mode 100644 index 00000000..d55b73cd --- /dev/null +++ b/Santander/Santander/Model/Screen.swift @@ -0,0 +1,88 @@ +// +// Screen.swift +// Santander +// +// Created by Jonathan Martins on 08/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import Foundation + +struct RootScreen: Decodable { + + let screen: Screen? + + enum CodingKeys: String, CodingKey { + case screen = "screen" + } +} + +class Screen: Decodable { + + let title: String? + let fundName: String? + let whatIs: String? + let definition: String? + let riskTitle: String? + let risk: Int? + let infoTitle: String? + private let moreInfo: MoreInfo? + let info: [Info]? + let downInfo: [Info]? + var profitabilities:[Profitability] = [] + + enum CodingKeys: String, CodingKey { + case title = "title" + case fundName = "fundName" + case whatIs = "whatIs" + case definition = "definition" + case riskTitle = "riskTitle" + case risk = "risk" + case infoTitle = "infoTitle" + case moreInfo = "moreInfo" + case info = "info" + case downInfo = "downInfo" + } + + /// + func profitabilityToArray(){ + profitabilities.append(moreInfo?.month ?? Profitability()) + profitabilities.append(moreInfo?.year ?? Profitability()) + profitabilities.append(moreInfo?.twelveMonths ?? Profitability()) + } +} + +struct Info: Decodable { + + let name: String? + let data: String? + + enum CodingKeys: String, CodingKey { + case name = "name" + case data = "data" + } +} + +struct MoreInfo: Decodable { + + let month: Profitability? + let year: Profitability? + let twelveMonths: Profitability? + + enum CodingKeys: String, CodingKey { + case month = "month" + case year = "year" + case twelveMonths = "12months" + } +} + +struct Profitability: Decodable { + + var fund: Double? + var cdi: Double? + + enum CodingKeys: String, CodingKey { + case fund = "fund" + case cdi = "CDI" + } +} diff --git a/Santander/Santander/Presenter/BasePresenter.swift b/Santander/Santander/Presenter/BasePresenter.swift deleted file mode 100644 index 5a791778..00000000 --- a/Santander/Santander/Presenter/BasePresenter.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// BasePresenter.swift -// Santander -// -// Created by Jonathan Martins on 08/01/19. -// Copyright © 2019 Surrey. All rights reserved. -// - -class BasePresenter{ - - var view:T? - - /// - init(bindTo view:T) { - self.view = view - } - - /// - func destroy(){ - view = nil - } -} diff --git a/Santander/Santander/Presenter/ContactPresenter.swift b/Santander/Santander/Presenter/ContactPresenter.swift index 78bf5d77..6d3e7226 100644 --- a/Santander/Santander/Presenter/ContactPresenter.swift +++ b/Santander/Santander/Presenter/ContactPresenter.swift @@ -8,7 +8,10 @@ import Foundation -class ContactPresenter:BasePresenter{ +class ContactPresenter{ + + /// + private weak var view:ContactViewDelegate? private var items:[FormItem] = [] @@ -20,8 +23,13 @@ class ContactPresenter:BasePresenter{ } /// - override init(bindTo view: ContactViewDelegate) { - super.init(bindTo: view) + func bindTo(view: ContactViewDelegate) { + self.view = view + } + + /// + func destroy() { + self.view = nil } /// diff --git a/Santander/Santander/Presenter/ProductPresenter.swift b/Santander/Santander/Presenter/ProductPresenter.swift index 9c5c66bb..f26a4a2a 100644 --- a/Santander/Santander/Presenter/ProductPresenter.swift +++ b/Santander/Santander/Presenter/ProductPresenter.swift @@ -8,40 +8,81 @@ import Foundation -class ProductPresenter:BasePresenter{ +class ProductPresenter{ - private var items:[FormItem] = [] + /// + private weak var view:ProductViewDelegate? + + /// + var screen:Screen? + + /// + func numberOfItems(in section:Int)->Int{ + if(section == 0){ + return 1 + } + else if(section == 1){ + return screen?.profitabilities.count ?? 0 + } + else if(section == 2){ + return screen?.info?.count ?? 0 + } + else{ + return screen?.downInfo?.count ?? 0 + } + } /// - var numberOfItems:Int { + var numberOfSections:Int{ get{ - return items.count + return 3 } } /// - override init(bindTo view: ProductViewDelegate) { - super.init(bindTo: view) + func bindTo(view: ProductViewDelegate) { + self.view = view + } + + /// + func destroy() { + self.view = nil } /// func requestInfo(){ RequestService().productDetail().responseJSON { [weak self] response in if let data = response.data{ - if let root = try? JSONDecoder().decode(Root.self, from: data), let items = root.cells{ - self?.items = items - self?.view?.updateTableViewItems(items) + if let root = try? JSONDecoder().decode(RootScreen.self, from: data), let screen = root.screen{ + screen.profitabilityToArray() + self?.screen = screen + self?.view?.updateTableViewItems() } } } } + /// + func infoForRow(_ row:Int)->Info?{ + return screen?.info?[row] + } + + /// + func downInfoForRow(_ row:Int)->Info?{ + return screen?.downInfo?[row] + } + + /// + func profitabilityForRow(_ row:Int)->Profitability?{ + return screen?.profitabilities[row] + } + func share(){ } func download(){ - + view?.openWebView(site: "www.google.com") } func invest(){ diff --git a/Santander/Santander/View/ContactView.swift b/Santander/Santander/View/ContactView.swift index 12b7b7c7..b4e9361d 100644 --- a/Santander/Santander/View/ContactView.swift +++ b/Santander/Santander/View/ContactView.swift @@ -8,7 +8,8 @@ import UIKit -protocol ContactViewDelegate { +protocol ContactViewDelegate:NSObjectProtocol{ + func updateTableViewItems(items:[FormItem]) func showSuccessPage() func hideSuccessPage() @@ -45,6 +46,8 @@ class ContactView: UIView { private let staticLabel2:UILabel = { let label = UILabel() label.text = "Mensagem enviada\ncom sucesso :)" + label.numberOfLines = 0 + label.textAlignment = .center label.font = UIFont.systemFont(ofSize: 18, weight: .bold) label.translatesAutoresizingMaskIntoConstraints = false return label @@ -56,6 +59,7 @@ class ContactView: UIView { button.backgroundColor = .clear button.setTitle("Enviar nova mensagem", for: .normal) button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 14) + button.setTitleColor(.red, for: .normal) button.translatesAutoresizingMaskIntoConstraints = false return button }() @@ -76,13 +80,15 @@ class ContactView: UIView { tableView.trailingAnchor.constraint(equalTo: self.trailingAnchor), staticLabel1.centerXAnchor.constraint(equalTo: staticLabel2.centerXAnchor), - staticLabel1.bottomAnchor.constraint(equalTo: staticLabel2.topAnchor, constant: 14), + staticLabel1.bottomAnchor.constraint(equalTo: staticLabel2.topAnchor, constant: -14), staticLabel2.centerXAnchor.constraint(equalTo: self.centerXAnchor), staticLabel2.centerYAnchor.constraint(equalTo: self.centerYAnchor), + buttonNewMessage.widthAnchor.constraint(equalToConstant: 200), + buttonNewMessage.heightAnchor.constraint(equalToConstant: 45), buttonNewMessage.centerXAnchor.constraint(equalTo: self.centerXAnchor), - buttonNewMessage.bottomAnchor.constraint(equalTo: self.bottomAnchor, constant: 20), + buttonNewMessage.bottomAnchor.constraint(equalTo: self.bottomAnchor, constant: -100), ]) } @@ -95,18 +101,3 @@ class ContactView: UIView { fatalError("init(coder:) has not been implemented") } } - -extension ContactView: ContactViewDelegate{ - - func updateTableViewItems(items: [FormItem]) { - tableView.reloadData() - } - - func showSuccessPage() { - tableView.isHidden = true - } - - func hideSuccessPage() { - tableView.isHidden = false - } -} diff --git a/Santander/Santander/View/ProductView.swift b/Santander/Santander/View/ProductView.swift index c65e2223..fcf719d8 100644 --- a/Santander/Santander/View/ProductView.swift +++ b/Santander/Santander/View/ProductView.swift @@ -8,8 +8,9 @@ import UIKit -protocol ProductViewDelegate { - func updateTableViewItems(_ items:[FormItem]) +protocol ProductViewDelegate:NSObjectProtocol { + func updateTableViewItems() + func openWebView(site:String) } class ProductView: UIView { @@ -20,11 +21,9 @@ class ProductView: UIView { tableView.separatorStyle = .none tableView.backgroundColor = .white tableView.tableFooterView = UIView() - tableView.registerCell(RiskCell.self) tableView.registerCell(HeaderCell.self) tableView.registerCell(UIButtonCell.self) tableView.registerCell(DownloadCell.self) - tableView.registerCell(DescriptionCell.self) tableView.registerCell(MoreInfoDoubleCell.self) tableView.registerCell(MoreInfoSingleCell.self) tableView.estimatedRowHeight = 100 @@ -55,9 +54,3 @@ class ProductView: UIView { fatalError("init(coder:) has not been implemented") } } - -extension ProductView: ProductViewDelegate{ - func updateTableViewItems(_ items: [FormItem]) { - <#code#> - } -} diff --git a/Santander/Santander/ViewController/ContactViewController.swift b/Santander/Santander/ViewController/ContactViewController.swift index 2ae40702..9868aa65 100644 --- a/Santander/Santander/ViewController/ContactViewController.swift +++ b/Santander/Santander/ViewController/ContactViewController.swift @@ -11,8 +11,7 @@ import UIKit class ContactViewController: BaseViewController { private unowned var _view:ContactView { return self.view as! ContactView } - - private var presenter:ContactPresenter! + private var presenter:ContactPresenter = ContactPresenter() override func loadView() { self.view = ContactView() @@ -24,9 +23,9 @@ class ContactViewController: BaseViewController { _view.tableView.delegate = self _view.tableView.dataSource = self - _view.buttonNewMessage.addTarget(self, action: #selector(hideSuccessPage), for: UIControl.Event.touchUpInside) + _view.buttonNewMessage.addTarget(self, action: #selector(returnToContactFormAction), for: UIControl.Event.touchUpInside) - presenter = ContactPresenter(bindTo: _view) + presenter.bindTo(view: self) presenter.requestForm() } @@ -36,7 +35,7 @@ class ContactViewController: BaseViewController { } /// - @objc private func hideSuccessPage(){ + @objc func returnToContactFormAction(){ presenter.returnToContactForm() } } @@ -80,3 +79,18 @@ extension ContactViewController: UITableViewDelegate, UITableViewDataSource { } } } + +extension ContactViewController: ContactViewDelegate { + + func updateTableViewItems(items: [FormItem]) { + _view.tableView.reloadData() + } + + func showSuccessPage() { + _view.tableView.isHidden = true + } + + func hideSuccessPage() { + _view.tableView.isHidden = false + } +} diff --git a/Santander/Santander/ViewController/ProductViewController.swift b/Santander/Santander/ViewController/ProductViewController.swift index fa5e6021..8a08187c 100644 --- a/Santander/Santander/ViewController/ProductViewController.swift +++ b/Santander/Santander/ViewController/ProductViewController.swift @@ -7,12 +7,12 @@ // import UIKit +import SafariServices class ProductViewController: BaseViewController { private unowned var _view:ProductView { return self.view as! ProductView } - - private var presenter:ProductPresenter! + private var presenter:ProductPresenter = ProductPresenter() override func loadView() { self.view = ProductView() @@ -25,7 +25,7 @@ class ProductViewController: BaseViewController { _view.tableView.delegate = self _view.tableView.dataSource = self - presenter = ProductPresenter(bindTo: _view) + presenter.bindTo(view: self) presenter.requestInfo() } @@ -37,8 +37,12 @@ class ProductViewController: BaseViewController { extension ProductViewController: UITableViewDelegate, UITableViewDataSource { + func numberOfSections(in tableView: UITableView) -> Int { + return presenter.numberOfSections + } + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return presenter.numberOfItems + return presenter.numberOfItems(in: section) } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { @@ -46,6 +50,49 @@ extension ProductViewController: UITableViewDelegate, UITableViewDataSource { } private func getInfoCellFor(_ indexPath: IndexPath) -> UITableViewCell?{ - return nil + switch indexPath.section { + case 0: + let cell = _view.tableView.getCell(indexPath, HeaderCell.self) + cell?.setupHeader(for: presenter.screen) + return cell + case 1: + let item = presenter.profitabilityForRow(indexPath.row) + let cell = _view.tableView.getCell(indexPath, MoreInfoDoubleCell.self) + cell?.setupCell(for: indexPath.row, profitability: item) + return cell + case 2: + let item = presenter.infoForRow(indexPath.row) + let cell = _view.tableView.getCell(indexPath, MoreInfoSingleCell.self) + cell?.setupCell(for: item) + return cell + case 3: + let item = presenter.downInfoForRow(indexPath.row) + let cell = _view.tableView.getCell(indexPath, DownloadCell.self) + cell?.setupCell(for: item, callback: { [unowned self] in + self.presenter.download() + }) + return cell + default: + return nil + } + } +} + +extension ProductViewController: ProductViewDelegate, SFSafariViewControllerDelegate { + + func openWebView(site: String) { + if let url = URL(string: site) { + let vc = SFSafariViewController(url: url, entersReaderIfAvailable: true) + vc.delegate = self + present(vc, animated: true) + } + } + + func safariViewControllerDidFinish(_ controller: SFSafariViewController) { + dismiss(animated: true) + } + + func updateTableViewItems() { + _view.tableView.reloadData() } } From 5ca373748a1f5b0fba979071b46322d58960d925 Mon Sep 17 00:00:00 2001 From: Jonathan Martins Date: Tue, 8 Jan 2019 22:59:38 -0200 Subject: [PATCH 07/11] Finishing ProductView - fixing layout issues - Animating risk table --- .../UserInterfaceState.xcuserstate | Bin 27989 -> 35915 bytes .../Cell/ContactView/UIButtonCell.swift | 14 ++++++- .../Cell/ProductView/DownloadCell.swift | 2 +- .../Cell/ProductView/HeaderCell.swift | 35 ++++++++++-------- .../Cell/ProductView/MoreInfoDoubleCell.swift | 2 +- .../Cell/ProductView/MoreInfoSingleCell.swift | 2 +- .../Presenter/ProductPresenter.swift | 19 ++++++---- Santander/Santander/View/ProductView.swift | 2 + .../ViewController/BaseViewController.swift | 8 ++++ .../ContactViewController.swift | 8 ++-- .../ProductViewController.swift | 15 +++++++- 11 files changed, 73 insertions(+), 34 deletions(-) diff --git a/Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcworkspace/xcuserdata/jonathanmartins.xcuserdatad/UserInterfaceState.xcuserstate index 4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U+mE~*8`^z_%KV1G;`Iho0%bzZP zp?q)oJLLz<50@V+|FHa%^5f-a%fB!Gt3s-Et!DvK+1l@*m$l{J;-$~BcQRDM)>qVi%H{;`T+fKeTY6xAEA%ZXXs1x)%rSpqaLnX*H6{A>$~(OeUE;IewBWQ{uBKl zRYH|bm0guXm3x(@DyV8?RY=w7s)(wnsP@-&4J=dVO_Y^_J=#)qARsR)1LiN%d#dUsiuzeX9Dq z>T@-yhN}^3q#D~AhZ?6E*BZAPkD9=m@EUE+xEfQ<;+p$ww%6>hb*y!(^{pLM8(W)F zn_in$n_F94tE;W3t*Wi5U0T~;`$FyOwQtq#uRU0MsP=g6*R`i=zpFi0d!hEX+CS=; zI$Rf4S6{cV?v}c>br05UtJ_}peBFz6yX#)9+f#SA?)|!BbsyDzTK8Gq7j-Ae8Zzpj3L{X_Lz>bKRuS^rl3@%nG-PuHKRKUe=p1Ji&T_y(y#)!@?L*5J|L z)d2VIG>mMBY{+fUHWW6LG?X<|HdHs%H8eJiZ!k18H*__a8oC>1G@NR<(C}-+#fCo{ c=QOTpyt8qwvipd!@>kk7u)#g>r*Yl?11ZL2rvLx| diff --git a/Santander/Santander/Cell/ContactView/UIButtonCell.swift b/Santander/Santander/Cell/ContactView/UIButtonCell.swift index b363bdb2..c3f40376 100644 --- a/Santander/Santander/Cell/ContactView/UIButtonCell.swift +++ b/Santander/Santander/Cell/ContactView/UIButtonCell.swift @@ -13,7 +13,6 @@ class UIButtonCell: BaseCell { /// The Button let button: UIButton = { let button = UIButton() - button.setTitle("Enviar", for: .normal) button.setTitleColor(.white, for: .normal) button.cornerRadius = 15 button.backgroundColor = .red @@ -29,8 +28,9 @@ class UIButtonCell: BaseCell { topSpacing = button.topAnchor.constraint(equalTo: self.contentView.topAnchor) NSLayoutConstraint.activate([ button.heightAnchor .constraint(equalToConstant: 35), + button.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor, constant: -30), button.centerXAnchor.constraint(equalTo: self.contentView.centerXAnchor), - button.widthAnchor .constraint(equalTo: self.contentView.widthAnchor, multiplier: 1/1.2), + button.widthAnchor .constraint(equalTo: self.contentView.widthAnchor, multiplier: 1/1.3), topSpacing! ]) } @@ -50,6 +50,16 @@ class UIButtonCell: BaseCell { self.item = item self.callback = callback + button.setTitle("Enviar", for: .normal) + button.addTarget(self, action: #selector(buttonClicked), for: UIControl.Event.touchUpInside) + } + + /// + func setCallback(_ callback:@escaping (()->Void)){ + self.callback = callback + + topSpacing?.constant = 20 + button.setTitle("Investir", for: .normal) button.addTarget(self, action: #selector(buttonClicked), for: UIControl.Event.touchUpInside) } diff --git a/Santander/Santander/Cell/ProductView/DownloadCell.swift b/Santander/Santander/Cell/ProductView/DownloadCell.swift index e1b44f46..6331b742 100644 --- a/Santander/Santander/Cell/ProductView/DownloadCell.swift +++ b/Santander/Santander/Cell/ProductView/DownloadCell.swift @@ -47,7 +47,7 @@ class DownloadCell: BaseCell { NSLayoutConstraint.activate([ labelLeft.topAnchor .constraint(equalTo: self.contentView.topAnchor , constant:5), - labelLeft.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor , constant:-5), + labelLeft.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor , constant:-10), labelLeft.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant:15), button.widthAnchor .constraint(equalToConstant: 70), diff --git a/Santander/Santander/Cell/ProductView/HeaderCell.swift b/Santander/Santander/Cell/ProductView/HeaderCell.swift index a5c6e213..d5fba305 100644 --- a/Santander/Santander/Cell/ProductView/HeaderCell.swift +++ b/Santander/Santander/Cell/ProductView/HeaderCell.swift @@ -35,7 +35,7 @@ class HeaderCell: BaseCell { /// The top divider private let divider:UIView = { let divider = UIView() - divider.backgroundColor = .lightGray + divider.backgroundColor = UIColor.init(hexString: "#20C0C0C0") divider.translatesAutoresizingMaskIntoConstraints = false return divider }() @@ -76,7 +76,7 @@ class HeaderCell: BaseCell { /// private let indicator:UIView = { let view = UIView() - view.backgroundColor = .red + view.backgroundColor = .darkGray view.translatesAutoresizingMaskIntoConstraints = false return view }() @@ -152,9 +152,9 @@ class HeaderCell: BaseCell { self.contentView.addSubview(staticLabelFund) NSLayoutConstraint.activate([ - title.leadingAnchor .constraint(equalTo: self.contentView.leadingAnchor, constant:10), - title.trailingAnchor .constraint(equalTo: self.contentView.trailingAnchor, constant:-15), - title.topAnchor .constraint(equalTo: self.contentView.topAnchor, constant:15), + title.widthAnchor .constraint(equalTo: self.contentView.widthAnchor, multiplier: 1/1.3), + title.centerXAnchor.constraint(equalTo: self.contentView.centerXAnchor), + title.topAnchor .constraint(equalTo: self.contentView.topAnchor, constant:30), fundName.leadingAnchor .constraint(equalTo: title.leadingAnchor), fundName.trailingAnchor .constraint(equalTo: title.trailingAnchor), @@ -177,11 +177,11 @@ class HeaderCell: BaseCell { riskTitle.trailingAnchor .constraint(equalTo: definition.trailingAnchor), riskTitle.topAnchor .constraint(equalTo: definition.bottomAnchor, constant:30), - indicator.heightAnchor.constraint(equalToConstant: 7), - indicator.widthAnchor.constraint(equalToConstant: 7), + indicator.widthAnchor.constraint(equalToConstant: 5), + indicator.heightAnchor.constraint(equalToConstant: 5), indicator.bottomAnchor.constraint(equalTo: stackView.topAnchor, constant:-5), - stackView.topAnchor .constraint(equalTo: riskTitle.bottomAnchor, constant:20), + stackView.topAnchor .constraint(equalTo: riskTitle.bottomAnchor, constant:20), stackView.leadingAnchor .constraint(equalTo: riskTitle.leadingAnchor), stackView.trailingAnchor .constraint(equalTo: riskTitle.trailingAnchor), @@ -189,14 +189,14 @@ class HeaderCell: BaseCell { infoTitle.trailingAnchor .constraint(equalTo: stackView.trailingAnchor), infoTitle.topAnchor .constraint(equalTo: stackView.bottomAnchor, constant:30), - staticLabelFund.widthAnchor .constraint(equalTo: staticLabelCDI.widthAnchor), - staticLabelFund.trailingAnchor.constraint(equalTo: staticLabelCDI.leadingAnchor), - staticLabelFund.centerYAnchor .constraint(equalTo: staticLabelCDI.centerYAnchor), - staticLabelCDI.widthAnchor .constraint(equalToConstant: 70), - staticLabelCDI.trailingAnchor .constraint(equalTo: infoTitle.trailingAnchor), + staticLabelCDI.trailingAnchor .constraint(equalTo: self.contentView.trailingAnchor, constant:-15), staticLabelCDI.topAnchor .constraint(equalTo: infoTitle.bottomAnchor, constant:20), staticLabelCDI.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor, constant:-10), + + staticLabelFund.widthAnchor .constraint(equalTo: staticLabelCDI.widthAnchor), + staticLabelFund.trailingAnchor.constraint(equalTo: staticLabelCDI.leadingAnchor), + staticLabelFund.centerYAnchor .constraint(equalTo: staticLabelCDI.centerYAnchor), ]) } @@ -214,13 +214,18 @@ class HeaderCell: BaseCell { infoTitle.text = screen?.infoTitle if let risk = screen?.risk{ - let stackViewWidth = (UIScreen.main.bounds.width - 30) + let stackViewWidth = (UIScreen.main.bounds.width/(1.3)) let stackViewItemWidth = stackViewWidth/5 let x = (stackViewItemWidth * CGFloat(risk)) - (stackViewItemWidth/2) + let leading = indicator.leadingAnchor.constraint(equalTo: stackView.leadingAnchor) NSLayoutConstraint.activate([ - indicator.leadingAnchor.constraint(equalTo: stackView.leadingAnchor, constant: x), + leading, ]) + leading.constant = x + UIView.animate(withDuration: 1.0, delay: 1.0, options: .curveEaseIn, animations: { + self.contentView.layoutIfNeeded() + }, completion: nil) } } } diff --git a/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift b/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift index 9cb4da6a..bc2a8ff7 100644 --- a/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift +++ b/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift @@ -54,7 +54,7 @@ class MoreInfoDoubleCell: BaseCell { NSLayoutConstraint.activate([ labelLeft.topAnchor .constraint(equalTo: self.contentView.topAnchor , constant:5), - labelLeft.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor , constant:-5), + labelLeft.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor , constant:-15), labelLeft.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant:15), labelRight1.widthAnchor.constraint(equalToConstant: 70), diff --git a/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift b/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift index 9d21c4a1..f4f87111 100644 --- a/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift +++ b/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift @@ -41,7 +41,7 @@ class MoreInfoSingleCell: BaseCell { NSLayoutConstraint.activate([ labelLeft.topAnchor .constraint(equalTo: self.contentView.topAnchor , constant:5), - labelLeft.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor , constant:-5), + labelLeft.bottomAnchor .constraint(equalTo: self.contentView.bottomAnchor , constant:-10), labelLeft.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant:15), labelRight.centerYAnchor.constraint(equalTo: labelLeft.centerYAnchor), diff --git a/Santander/Santander/Presenter/ProductPresenter.swift b/Santander/Santander/Presenter/ProductPresenter.swift index f26a4a2a..57c56e01 100644 --- a/Santander/Santander/Presenter/ProductPresenter.swift +++ b/Santander/Santander/Presenter/ProductPresenter.swift @@ -18,24 +18,24 @@ class ProductPresenter{ /// func numberOfItems(in section:Int)->Int{ - if(section == 0){ - return 1 - } - else if(section == 1){ + if(section == 1){ return screen?.profitabilities.count ?? 0 } else if(section == 2){ return screen?.info?.count ?? 0 } + else if(section == 3){ + return screen?.downInfo?.count ?? 0 + } else{ - return screen?.downInfo?.count ?? 0 + return 1 } } /// var numberOfSections:Int{ get{ - return 3 + return 5 } } @@ -77,15 +77,18 @@ class ProductPresenter{ return screen?.profitabilities[row] } + /// func share(){ } + /// func download(){ - view?.openWebView(site: "www.google.com") + view?.openWebView(site: "https://www.google.com") } + /// func invest(){ - + print("Investidor") } } diff --git a/Santander/Santander/View/ProductView.swift b/Santander/Santander/View/ProductView.swift index fcf719d8..d2d79080 100644 --- a/Santander/Santander/View/ProductView.swift +++ b/Santander/Santander/View/ProductView.swift @@ -11,6 +11,7 @@ import UIKit protocol ProductViewDelegate:NSObjectProtocol { func updateTableViewItems() func openWebView(site:String) + func displayPopup(title:String, message:String) } class ProductView: UIView { @@ -21,6 +22,7 @@ class ProductView: UIView { tableView.separatorStyle = .none tableView.backgroundColor = .white tableView.tableFooterView = UIView() + tableView.isHidden = true tableView.registerCell(HeaderCell.self) tableView.registerCell(UIButtonCell.self) tableView.registerCell(DownloadCell.self) diff --git a/Santander/Santander/ViewController/BaseViewController.swift b/Santander/Santander/ViewController/BaseViewController.swift index 921a207e..ed02bff7 100644 --- a/Santander/Santander/ViewController/BaseViewController.swift +++ b/Santander/Santander/ViewController/BaseViewController.swift @@ -21,4 +21,12 @@ class BaseViewController: UIViewController { self.navigationController?.navigationBar.barTintColor = .white self.navigationController?.navigationBar.backgroundColor = .white } + + /// + func showAlert(title: String, message: String) { + let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) + alert.addAction(UIAlertAction(title: "Entendi", style: .default, handler: nil)) + self.present(alert, animated: true) + } + } diff --git a/Santander/Santander/ViewController/ContactViewController.swift b/Santander/Santander/ViewController/ContactViewController.swift index 9868aa65..8c3e5c43 100644 --- a/Santander/Santander/ViewController/ContactViewController.swift +++ b/Santander/Santander/ViewController/ContactViewController.swift @@ -64,14 +64,14 @@ extension ContactViewController: UITableViewDelegate, UITableViewDataSource { return cell case .checkbox: let cell = _view.tableView.getCell(indexPath, UICheckBoxCell.self) - cell?.setupCell(item, callback: { [unowned self] (isSelected, item) in - self.presenter.onSwitchSelected(isSelected, item) + cell?.setupCell(item, callback: { [weak self] (isSelected, item) in + self?.presenter.onSwitchSelected(isSelected, item) }) return cell case .send: let cell = _view.tableView.getCell(indexPath, UIButtonCell.self) - cell?.setupCell(item, callback: { [unowned self] in - self.presenter.sendContact() + cell?.setupCell(item, callback: { [weak self] in + self?.presenter.sendContact() }) return cell default: diff --git a/Santander/Santander/ViewController/ProductViewController.swift b/Santander/Santander/ViewController/ProductViewController.swift index 8a08187c..7f2c956a 100644 --- a/Santander/Santander/ViewController/ProductViewController.swift +++ b/Santander/Santander/ViewController/ProductViewController.swift @@ -68,8 +68,14 @@ extension ProductViewController: UITableViewDelegate, UITableViewDataSource { case 3: let item = presenter.downInfoForRow(indexPath.row) let cell = _view.tableView.getCell(indexPath, DownloadCell.self) - cell?.setupCell(for: item, callback: { [unowned self] in - self.presenter.download() + cell?.setupCell(for: item, callback: { [weak self] in + self?.presenter.download() + }) + return cell + case 4: + let cell = _view.tableView.getCell(indexPath, UIButtonCell.self) + cell?.setCallback({ [weak self] in + self?.presenter.invest() }) return cell default: @@ -80,6 +86,10 @@ extension ProductViewController: UITableViewDelegate, UITableViewDataSource { extension ProductViewController: ProductViewDelegate, SFSafariViewControllerDelegate { + func displayPopup(title: String, message: String) { + showAlert(title: title, message: message) + } + func openWebView(site: String) { if let url = URL(string: site) { let vc = SFSafariViewController(url: url, entersReaderIfAvailable: true) @@ -94,5 +104,6 @@ extension ProductViewController: ProductViewDelegate, SFSafariViewControllerDele func updateTableViewItems() { _view.tableView.reloadData() + _view.tableView.isHidden = false } } From 394295a0ac5bc3fc282d1bd3d8626f06393bcf48 Mon Sep 17 00:00:00 2001 From: - Jonathan Martins Date: Wed, 9 Jan 2019 13:27:03 -0200 Subject: [PATCH 08/11] - Fixing some layout details on ProductView - Commenting the code --- .../UserInterfaceState.xcuserstate | Bin 38223 -> 40055 bytes .../xcdebugger/Breakpoints_v2.xcbkptlist | 18 ------- .../arrow.imageset/Contents.json | 23 ++++++++ .../Assets.xcassets/arrow.imageset/arrow.png | Bin 0 -> 156 bytes .../arrow.imageset/arrow@2x.png | Bin 0 -> 276 bytes .../arrow.imageset/arrow@3x.png | Bin 0 -> 425 bytes Santander/Santander/Cell/BaseCell.swift | 2 +- .../Cell/ContactView/UIButtonCell.swift | 6 +-- .../Cell/ContactView/UICheckBoxCell.swift | 4 +- .../Cell/ContactView/UILabelCell.swift | 1 + .../Cell/ContactView/UITextFieldCell.swift | 30 +++-------- .../Cell/ProductView/DownloadCell.swift | 3 +- .../Cell/ProductView/HeaderCell.swift | 51 +++++++++--------- .../Cell/ProductView/MoreInfoDoubleCell.swift | 3 +- .../Cell/ProductView/MoreInfoSingleCell.swift | 1 + Santander/Santander/Model/Screen.swift | 2 +- .../Presenter/ContactPresenter.swift | 40 +++++++++----- .../Presenter/ProductPresenter.swift | 31 +++++------ Santander/Santander/Request/RequestBase.swift | 1 + Santander/Santander/View/ContactView.swift | 8 +++ Santander/Santander/View/ProductView.swift | 6 +++ .../ViewController/BaseViewController.swift | 2 +- .../ContactViewController.swift | 12 ++--- .../ProductViewController.swift | 6 +-- 24 files changed, 128 insertions(+), 122 deletions(-) create mode 100644 Santander/Santander/Assets.xcassets/arrow.imageset/Contents.json create mode 100644 Santander/Santander/Assets.xcassets/arrow.imageset/arrow.png create mode 100644 Santander/Santander/Assets.xcassets/arrow.imageset/arrow@2x.png create mode 100644 Santander/Santander/Assets.xcassets/arrow.imageset/arrow@3x.png diff --git a/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate index f282e5d8e62234dda29b69fd42a85c2f45adc98d..6a6662da3c17f727a2bc18665cda5bb80aaafba8 100644 GIT binary patch delta 21170 zcmaK!2S60Z_xN{b_qI{)r~*(WtS2SQBH7 zy?0~pQDclTn%HY%i}5#m$0g=#{(o>5Z)axbGjHC!X>afJYVdL^m|;a4$&6gJfIy&;(mA#uJpyj@NhgDkHHi0L_7sg#WV3Nyf5AlABYdahvCEVQFtD% z!VB@S_&8iW^L?adKYjo|h#$fa@CzM1a5k*83NklTCNg;BG{=@)cATfv-MvNx%i2_1Jj3-J7HPJ{k z5zRykp&=#^Q;4aAmY7X^PIM5R#8RS*SVpWO))DK8ZNzqB2XTZrN*p7;BaRcNiA%&~ z;(Ou>ag+F&xJ5iBo)AxoXT)>jCGi*Wo}@{JWJ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%`{r}a7n(0NUv9qIe6RUI^P}d!n&0Ss^nv<5`l0$U h`ic7W`aSyn`ojd#Uf3^((70<(h&P%3o3Hw#{}1g<4v_!= diff --git a/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index d0f89761..ed9a9b4d 100644 --- a/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -2,22 +2,4 @@ - - - - - - diff --git a/Santander/Santander/Assets.xcassets/arrow.imageset/Contents.json b/Santander/Santander/Assets.xcassets/arrow.imageset/Contents.json new file mode 100644 index 00000000..5305751f --- /dev/null +++ b/Santander/Santander/Assets.xcassets/arrow.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "arrow.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "arrow@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "arrow@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Santander/Santander/Assets.xcassets/arrow.imageset/arrow.png b/Santander/Santander/Assets.xcassets/arrow.imageset/arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..9a8a980409927a3574dce490addeb203b434bf22 GIT binary patch literal 156 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$1|-8uW1a)4WKS2z5RKry7teCJ28ggeIDf_A zjEL&dBfssN-_4zIQo4dq(@Xu-%o~UA#$~Uc@A5=t;`e>5Q#3ZP7#Ww$_*Sd2(zWX+ z!&3=^c`D^{Qg7C1SN&NhKi}v2iVyt3f6SJK%er~rVzAi8&iiFk>~f%W44$rjF6*2U FngHw-I)nfK literal 0 HcmV?d00001 diff --git a/Santander/Santander/Assets.xcassets/arrow.imageset/arrow@2x.png b/Santander/Santander/Assets.xcassets/arrow.imageset/arrow@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..e0a65e4e1b1e50303eb1765aed7da31efe38f244 GIT binary patch literal 276 zcmV+v0qg#WP)41;M1<6~Da8}mSlFbo@d{o-gb?qM#>PU>LI@THa)n$WU|}H$LQY^27FJw> z?u?3suv>rs`_6p-Y{`wk(vA5FL9pSXqKhl);uF6?!XePWBfhgUr*=@m0PomFNSdf& z{6Cwwz*Vv{3j;Th9onb0druKb1()<*y@sA6{N03ks#_kdSSu*!hic)~od!Wcm^ zpXB=Zz!IGlx(MwjRRX+$xt#BGZ2fX9ZH5` z24eBp4h>-(d$@=dD-eHxDSW~AcIRV2eOSOSw(+At(@sZ1tz}%{EzYX|g`8eI#ba#X zR|Tj5vyMZ&?*tR-#th}XdoYg?Y~gnasD3QrEHl$JwJ1<-Y8In-jgtaU16akk%*Jix5r2s<$=&GE8^^4yU3EPKLl zaNJaM5Nr5~54ipxKzWZbJjZ7CO9(LGCBDN!S(v{WS@WeQF_%Ft;xj&#u~Ns#TKnZt z``H5D+%{0?{|Kk33{%(0s>*1aSM`Void)? = nil){ setupTopSpace(item) self.item = item @@ -54,7 +54,7 @@ class UIButtonCell: BaseCell { button.addTarget(self, action: #selector(buttonClicked), for: UIControl.Event.touchUpInside) } - /// + /// Sets the callback to notify the controller func setCallback(_ callback:@escaping (()->Void)){ self.callback = callback @@ -63,7 +63,7 @@ class UIButtonCell: BaseCell { button.addTarget(self, action: #selector(buttonClicked), for: UIControl.Event.touchUpInside) } - /// + /// Callback to notify the Controller when the button is clicked private var callback:(()->Void)? @objc private func buttonClicked(myButton: UIButton) { callback?() diff --git a/Santander/Santander/Cell/ContactView/UICheckBoxCell.swift b/Santander/Santander/Cell/ContactView/UICheckBoxCell.swift index 9f4e017b..3c24c67e 100644 --- a/Santander/Santander/Cell/ContactView/UICheckBoxCell.swift +++ b/Santander/Santander/Cell/ContactView/UICheckBoxCell.swift @@ -58,7 +58,7 @@ class UICheckBoxCell: BaseCell { fatalError("init(coder:) has not been implemented") } - /// + /// Sets up the cell func setupCell(_ item:FormItem, callback:((_ isSelected: Bool, _ item:FormItem)->())? = nil){ setupTopSpace(item) @@ -69,7 +69,7 @@ class UICheckBoxCell: BaseCell { switchEmail.addTarget(self, action: #selector(switchChanged), for: UIControl.Event.valueChanged) } - /// + /// Callback to notify the Controller when the switch activated private var callback:((_ isSelected: Bool, _ item:FormItem)->())? @objc private func switchChanged(mySwitch: UISwitch) { guard let item = item else { return } diff --git a/Santander/Santander/Cell/ContactView/UILabelCell.swift b/Santander/Santander/Cell/ContactView/UILabelCell.swift index 3b4e71ba..c7722292 100644 --- a/Santander/Santander/Cell/ContactView/UILabelCell.swift +++ b/Santander/Santander/Cell/ContactView/UILabelCell.swift @@ -43,6 +43,7 @@ class UILabelCell: BaseCell { fatalError("init(coder:) has not been implemented") } + /// Sets up the cell information func setupCell(_ item:FormItem){ topSpacing?.constant = CGFloat(item.topSpacing ?? 0) label.text = item.message diff --git a/Santander/Santander/Cell/ContactView/UITextFieldCell.swift b/Santander/Santander/Cell/ContactView/UITextFieldCell.swift index cec66d7c..e3c96dbf 100644 --- a/Santander/Santander/Cell/ContactView/UITextFieldCell.swift +++ b/Santander/Santander/Cell/ContactView/UITextFieldCell.swift @@ -10,7 +10,7 @@ import UIKit class UITextFieldCell: BaseCell { - /// The UiLabel + /// The UILabel private let label: UILabel = { let label = UILabel() label.text = "-" @@ -46,7 +46,6 @@ class UITextFieldCell: BaseCell { self.contentView.addSubview(textField) self.contentView.addSubview(divider) - topSpacing = label.topAnchor.constraint(equalTo: self.contentView.topAnchor) NSLayoutConstraint.activate([ topSpacing!, @@ -75,7 +74,7 @@ class UITextFieldCell: BaseCell { fatalError("init(coder:) has not been implemented") } - /// + /// Sets up the cell according to the type of the field func setupCell(_ item:FormItem){ setupTopSpace(item) self.item = item @@ -118,24 +117,7 @@ extension UITextFieldCell { } } -// func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { -// guard let _item = item else { return true} -// _item.dataText = string -// -// switch _item.typefield { -// case .text: -// validateName(item?.dataText ?? "") -// case .email: -// validateEmail(item?.dataText ?? "") -// case .telNumber: -// validatePhone(item?.dataText ?? "") -// default: -// return true -// } -// return true -// } - - /// + /// Validates if the text typed is an email private func validateEmail(_ email:String){ if(isEmailValid(email)){ item?.isSuccess = true @@ -147,7 +129,7 @@ extension UITextFieldCell { } } - /// + /// Regex function to allow only email private func isEmailValid(_ email:String)->Bool{ let emailRegEx = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}" let emailTest = NSPredicate(format:"SELF MATCHES %@", emailRegEx) @@ -155,7 +137,7 @@ extension UITextFieldCell { return emailTest.evaluate(with: email) } - /// + /// Checks if the text typed has 10 or 11 digits private func validatePhone(_ phone:String){ if(phone.count == 10) || phone.count == 11{ item?.isSuccess = true @@ -167,7 +149,7 @@ extension UITextFieldCell { } } - /// + /// Checks if the text is not empty private func validateName(_ name:String){ if(name.count < 1){ diff --git a/Santander/Santander/Cell/ProductView/DownloadCell.swift b/Santander/Santander/Cell/ProductView/DownloadCell.swift index 6331b742..bbc7b940 100644 --- a/Santander/Santander/Cell/ProductView/DownloadCell.swift +++ b/Santander/Santander/Cell/ProductView/DownloadCell.swift @@ -71,13 +71,14 @@ class DownloadCell: BaseCell { fatalError("init(coder:) has not been implemented") } + /// Sets up the cell information func setupCell(for info:Info?, callback:(()->Void)?=nil){ self.callback = callback labelLeft.text = info?.name button.addTarget(self, action: #selector(buttonClicked), for: UIControl.Event.touchUpInside) } - /// + /// Callback to notify the Controller when the button is clicked private var callback:(()->Void)? @objc private func buttonClicked(myButton: UIButton) { callback?() diff --git a/Santander/Santander/Cell/ProductView/HeaderCell.swift b/Santander/Santander/Cell/ProductView/HeaderCell.swift index d5fba305..f75b16b1 100644 --- a/Santander/Santander/Cell/ProductView/HeaderCell.swift +++ b/Santander/Santander/Cell/ProductView/HeaderCell.swift @@ -10,7 +10,7 @@ import UIKit class HeaderCell: BaseCell { - /// The + /// The title of the page private let title:UILabel = { let label = UILabel() label.textColor = .lightGray @@ -21,7 +21,7 @@ class HeaderCell: BaseCell { return label }() - /// The + /// The name of the fund private let fundName:UILabel = { let label = UILabel() label.textColor = .black @@ -40,7 +40,7 @@ class HeaderCell: BaseCell { return divider }() - /// The + /// Label "O que é" private let whatIs:UILabel = { let label = UILabel() label.textColor = .lightGray @@ -51,7 +51,7 @@ class HeaderCell: BaseCell { return label }() - /// + /// The description of he fund private let definition:UILabel = { let label = UILabel() label.textColor = .lightGray @@ -62,7 +62,7 @@ class HeaderCell: BaseCell { return label }() - /// + /// Label "Grau de investimento" private let riskTitle:UILabel = { let label = UILabel() label.textColor = .lightGray @@ -73,10 +73,11 @@ class HeaderCell: BaseCell { return label }() - /// - private let indicator:UIView = { - let view = UIView() - view.backgroundColor = .darkGray + /// INdicates the risk of the investment + private let indicator:UIImageView = { + let view = UIImageView() + view.image = UIImage(named: "arrow") + view.contentMode = .scaleAspectFit view.translatesAutoresizingMaskIntoConstraints = false return view }() @@ -101,7 +102,7 @@ class HeaderCell: BaseCell { return stackView }() - /// + /// Label "Mais informações" private let infoTitle:UILabel = { let label = UILabel() label.textAlignment = .center @@ -112,7 +113,7 @@ class HeaderCell: BaseCell { return label }() - /// + /// Label FUNDO private let staticLabelFund:UILabel = { let label = UILabel() label.text = "Fundo" @@ -124,7 +125,7 @@ class HeaderCell: BaseCell { return label }() - /// + /// Label CDI private let staticLabelCDI:UILabel = { let label = UILabel() label.text = "CDI" @@ -177,9 +178,9 @@ class HeaderCell: BaseCell { riskTitle.trailingAnchor .constraint(equalTo: definition.trailingAnchor), riskTitle.topAnchor .constraint(equalTo: definition.bottomAnchor, constant:30), - indicator.widthAnchor.constraint(equalToConstant: 5), - indicator.heightAnchor.constraint(equalToConstant: 5), - indicator.bottomAnchor.constraint(equalTo: stackView.topAnchor, constant:-5), + indicator.widthAnchor.constraint(equalToConstant: 15), + indicator.heightAnchor.constraint(equalToConstant: 15), + indicator.bottomAnchor.constraint(equalTo: stackView.topAnchor), stackView.topAnchor .constraint(equalTo: riskTitle.bottomAnchor, constant:20), stackView.leadingAnchor .constraint(equalTo: riskTitle.leadingAnchor), @@ -204,28 +205,24 @@ class HeaderCell: BaseCell { fatalError("init(coder:) has not been implemented") } - /// + /// Sets the information of the header func setupHeader(for screen:Screen?){ - title.text = screen?.title - fundName.text = screen?.fundName - whatIs.text = screen?.whatIs + title.text = screen?.title + fundName.text = screen?.fundName + whatIs.text = screen?.whatIs definition.text = screen?.definition - riskTitle.text = screen?.riskTitle - infoTitle.text = screen?.infoTitle + riskTitle.text = screen?.riskTitle + infoTitle.text = screen?.infoTitle + /// Calculates where the risk indicator should be placed according to the risk level (1 to 5) if let risk = screen?.risk{ let stackViewWidth = (UIScreen.main.bounds.width/(1.3)) let stackViewItemWidth = stackViewWidth/5 let x = (stackViewItemWidth * CGFloat(risk)) - (stackViewItemWidth/2) - let leading = indicator.leadingAnchor.constraint(equalTo: stackView.leadingAnchor) NSLayoutConstraint.activate([ - leading, + indicator.centerXAnchor.constraint(equalTo: stackView.leadingAnchor, constant: x) ]) - leading.constant = x - UIView.animate(withDuration: 1.0, delay: 1.0, options: .curveEaseIn, animations: { - self.contentView.layoutIfNeeded() - }, completion: nil) } } } diff --git a/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift b/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift index bc2a8ff7..036e9637 100644 --- a/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift +++ b/Santander/Santander/Cell/ProductView/MoreInfoDoubleCell.swift @@ -76,9 +76,8 @@ class MoreInfoDoubleCell: BaseCell { fatalError("init(coder:) has not been implemented") } - /// + /// Sets up the cell information func setupCell(for index:Int, profitability:Profitability?){ - switch index { case 0: labelLeft.text = "No mês" diff --git a/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift b/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift index f4f87111..9f357536 100644 --- a/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift +++ b/Santander/Santander/Cell/ProductView/MoreInfoSingleCell.swift @@ -58,6 +58,7 @@ class MoreInfoSingleCell: BaseCell { fatalError("init(coder:) has not been implemented") } + /// Sets up the cell information func setupCell(for info:Info?){ labelLeft .text = info?.name labelRight.text = info?.data diff --git a/Santander/Santander/Model/Screen.swift b/Santander/Santander/Model/Screen.swift index d55b73cd..70a9511e 100644 --- a/Santander/Santander/Model/Screen.swift +++ b/Santander/Santander/Model/Screen.swift @@ -44,7 +44,7 @@ class Screen: Decodable { case downInfo = "downInfo" } - /// + /// Converts the "moreInfo" attribute to an array func profitabilityToArray(){ profitabilities.append(moreInfo?.month ?? Profitability()) profitabilities.append(moreInfo?.year ?? Profitability()) diff --git a/Santander/Santander/Presenter/ContactPresenter.swift b/Santander/Santander/Presenter/ContactPresenter.swift index 6d3e7226..72b60d43 100644 --- a/Santander/Santander/Presenter/ContactPresenter.swift +++ b/Santander/Santander/Presenter/ContactPresenter.swift @@ -10,39 +10,53 @@ import Foundation class ContactPresenter{ - /// + /// Instance of the ViewCOntrollers'view private weak var view:ContactViewDelegate? + /// Controller's datasource private var items:[FormItem] = [] - /// + /// The number of items that the Controllers'list will have var numberOfItems:Int { get{ return items.count } } - /// + /// Binds the Presenter to the View func bindTo(view: ContactViewDelegate) { self.view = view } - /// - func destroy() { - self.view = nil + /// Notifies the view to display the succes page if the form is completed filled + func sendContact(){ + if(isFormCompleted()){ + view?.showSuccessPage() + } + else{ + view?.displayPopup(title: "Desculpe", message: "Por favor, preencha todas as informações para continuar.") + } } - /// - func sendContact(){ - view?.showSuccessPage() + /// Validates if the form is fully filled + private func isFormCompleted() -> Bool{ + var isSuccess = 0 + for item in items{ + if(item.typefield == .email || item.typefield == .telNumber || item.typefield == .text){ + if(item.isSuccess){ + isSuccess = isSuccess + 1 + } + } + } + return (isSuccess == 3) } - /// + /// Notifies the view to hide the success page func returnToContactForm(){ view?.hideSuccessPage() } - /// + /// Requests the form information func requestForm(){ RequestService().formList().responseJSON { [weak self] response in if let data = response.data{ @@ -54,12 +68,12 @@ class ContactPresenter{ } } - /// + /// Returns an item for a given index func itemForRow(_ row:Int)->FormItem{ return items[row] } - /// + /// Notifies the view that the switch was clicked func onSwitchSelected(_ isSelected:Bool, _ item:FormItem){ } diff --git a/Santander/Santander/Presenter/ProductPresenter.swift b/Santander/Santander/Presenter/ProductPresenter.swift index 57c56e01..22fd323b 100644 --- a/Santander/Santander/Presenter/ProductPresenter.swift +++ b/Santander/Santander/Presenter/ProductPresenter.swift @@ -10,13 +10,13 @@ import Foundation class ProductPresenter{ - /// + /// Instance of the Controller's view private weak var view:ProductViewDelegate? - /// + /// The Screen model var screen:Screen? - /// + /// Returns the number of items that each section of the Controller's list will have func numberOfItems(in section:Int)->Int{ if(section == 1){ return screen?.profitabilities.count ?? 0 @@ -32,24 +32,19 @@ class ProductPresenter{ } } - /// + /// Returns the numbers of section that the Controller's list will have var numberOfSections:Int{ get{ return 5 } } - /// + /// Binds the Presenter to the view func bindTo(view: ProductViewDelegate) { self.view = view } - /// - func destroy() { - self.view = nil - } - - /// + /// Requests the screen information func requestInfo(){ RequestService().productDetail().responseJSON { [weak self] response in if let data = response.data{ @@ -62,33 +57,33 @@ class ProductPresenter{ } } - /// + /// Returns an Info object for a given index func infoForRow(_ row:Int)->Info?{ return screen?.info?[row] } - /// + /// Returns a downInfo object for a given index func downInfoForRow(_ row:Int)->Info?{ return screen?.downInfo?[row] } - /// + /// Returns a Profitability object for a given index func profitabilityForRow(_ row:Int)->Profitability?{ return screen?.profitabilities[row] } - /// + /// Notifies the view that the share action was clicked func share(){ } - /// + /// Notifies the view that the action "Baixar" was clicked func download(){ view?.openWebView(site: "https://www.google.com") } - /// + /// Notifies the view that the button "Invest" was clicked func invest(){ - print("Investidor") + view?.displayPopup(title: screen?.fundName ?? "Investimento", message: "Investimento realizado") } } diff --git a/Santander/Santander/Request/RequestBase.swift b/Santander/Santander/Request/RequestBase.swift index 5edb9256..4db4c7fc 100644 --- a/Santander/Santander/Request/RequestBase.swift +++ b/Santander/Santander/Request/RequestBase.swift @@ -15,6 +15,7 @@ class RequestBase { /// Holds any parameters that the requests may need var parameters:[String:Any] = [:] + /// Controls the session configuration private static let session: SessionManager = { let configuration = URLSessionConfiguration.default configuration.urlCache = nil diff --git a/Santander/Santander/View/ContactView.swift b/Santander/Santander/View/ContactView.swift index b4e9361d..ae33e180 100644 --- a/Santander/Santander/View/ContactView.swift +++ b/Santander/Santander/View/ContactView.swift @@ -10,9 +10,17 @@ import UIKit protocol ContactViewDelegate:NSObjectProtocol{ + /// Notifies to update the datasource of [FormItem] func updateTableViewItems(items:[FormItem]) + + /// Notifies toDisplays the success page func showSuccessPage() + + /// Notifies to Hides the success page func hideSuccessPage() + + /// Notifies to display a title and a message + func displayPopup(title:String, message:String) } class ContactView: UIView { diff --git a/Santander/Santander/View/ProductView.swift b/Santander/Santander/View/ProductView.swift index d2d79080..07e6a23c 100644 --- a/Santander/Santander/View/ProductView.swift +++ b/Santander/Santander/View/ProductView.swift @@ -9,8 +9,14 @@ import UIKit protocol ProductViewDelegate:NSObjectProtocol { + + /// Notifies to update the datasource func updateTableViewItems() + + /// Notifies to open a webview with a given URL func openWebView(site:String) + + /// Notifies to display a title and a message func displayPopup(title:String, message:String) } diff --git a/Santander/Santander/ViewController/BaseViewController.swift b/Santander/Santander/ViewController/BaseViewController.swift index ed02bff7..cbcf8ae0 100644 --- a/Santander/Santander/ViewController/BaseViewController.swift +++ b/Santander/Santander/ViewController/BaseViewController.swift @@ -22,7 +22,7 @@ class BaseViewController: UIViewController { self.navigationController?.navigationBar.backgroundColor = .white } - /// + /// Displays an alert func showAlert(title: String, message: String) { let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) alert.addAction(UIAlertAction(title: "Entendi", style: .default, handler: nil)) diff --git a/Santander/Santander/ViewController/ContactViewController.swift b/Santander/Santander/ViewController/ContactViewController.swift index 8c3e5c43..e444efb4 100644 --- a/Santander/Santander/ViewController/ContactViewController.swift +++ b/Santander/Santander/ViewController/ContactViewController.swift @@ -29,12 +29,7 @@ class ContactViewController: BaseViewController { presenter.requestForm() } - override func viewDidDisappear(_ animated: Bool) { - super.viewDidDisappear(animated) - presenter.destroy() - } - - /// + /// Action to display the contact form @objc func returnToContactFormAction(){ presenter.returnToContactForm() } @@ -50,6 +45,7 @@ extension ContactViewController: UITableViewDelegate, UITableViewDataSource { return getInfoCellFor(indexPath) ?? UITableViewCell() } + /// Returns an UITableViewCell according to the model type private func getInfoCellFor(_ indexPath: IndexPath) -> UITableViewCell?{ let item = presenter.itemForRow(indexPath.row) @@ -81,6 +77,10 @@ extension ContactViewController: UITableViewDelegate, UITableViewDataSource { } extension ContactViewController: ContactViewDelegate { + + func displayPopup(title: String, message: String) { + showAlert(title: title, message: message) + } func updateTableViewItems(items: [FormItem]) { _view.tableView.reloadData() diff --git a/Santander/Santander/ViewController/ProductViewController.swift b/Santander/Santander/ViewController/ProductViewController.swift index 7f2c956a..efa978ab 100644 --- a/Santander/Santander/ViewController/ProductViewController.swift +++ b/Santander/Santander/ViewController/ProductViewController.swift @@ -28,11 +28,6 @@ class ProductViewController: BaseViewController { presenter.bindTo(view: self) presenter.requestInfo() } - - override func viewDidDisappear(_ animated: Bool) { - super.viewDidDisappear(animated) - presenter.destroy() - } } extension ProductViewController: UITableViewDelegate, UITableViewDataSource { @@ -49,6 +44,7 @@ extension ProductViewController: UITableViewDelegate, UITableViewDataSource { return getInfoCellFor(indexPath) ?? UITableViewCell() } + /// Returns an UITableViewCell according to the section of the UITableView private func getInfoCellFor(_ indexPath: IndexPath) -> UITableViewCell?{ switch indexPath.section { case 0: From 2e3b37de682c727aa850397872cc3d99b59f3653 Mon Sep 17 00:00:00 2001 From: - Jonathan Martins Date: Wed, 9 Jan 2019 14:11:04 -0200 Subject: [PATCH 09/11] - Dismiss the keyboard on ContactView --- Santander/Santander.xcodeproj/project.pbxproj | 8 ++++++-- .../UserInterfaceState.xcuserstate | Bin 40055 -> 40663 bytes .../Presenter/ContactPresenter.swift | 4 ++++ .../ContactViewController.swift | 13 +++++++++++++ 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/Santander/Santander.xcodeproj/project.pbxproj b/Santander/Santander.xcodeproj/project.pbxproj index d51f86e9..9af97930 100644 --- a/Santander/Santander.xcodeproj/project.pbxproj +++ b/Santander/Santander.xcodeproj/project.pbxproj @@ -513,8 +513,9 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; BASE_URL = "https://floating-mountain-50292.herokuapp.com/"; + CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = NA36627892; + DEVELOPMENT_TEAM = EJMPW958AV; INFOPLIST_FILE = Santander/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -523,6 +524,7 @@ ); PRODUCT_BUNDLE_IDENTIFIER = com.surrey.Santander; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = 1; }; @@ -534,8 +536,9 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; BASE_URL = "https://floating-mountain-50292.herokuapp.com/"; + CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = NA36627892; + DEVELOPMENT_TEAM = EJMPW958AV; INFOPLIST_FILE = Santander/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -544,6 +547,7 @@ ); PRODUCT_BUNDLE_IDENTIFIER = com.surrey.Santander; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = 1; }; diff --git a/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate index 6a6662da3c17f727a2bc18665cda5bb80aaafba8..6dcbb3cbb136e53e2bacf991bf076d6126094ddc 100644 GIT binary patch delta 20520 zcmaK!2VfM%_xN{a`(DZ=xr9{Gd+)vXUg$Lh2#^9Hz2|mPML^0?L=*@_K&mL9A|SmZ z0@9HxUAhQ}z<>5Gr})L+Uz`ouX`gvB^XARWTb_Rl&uoJ;O~@iyvC1dgnKU3r&x*HI zCKD+{Dv?H{6B$G%kwx?;h7!Yw0%ANdfhZ+vh$ccLI*1R5X~b+|9x>>6N`-uI-0pcKWh&W6fBYq-&CMt>3#6{u?ah147{6^d-9uNJ)THTVX63$}u7U?{BAa2lKk7rt6^Fdinr6qpJJz=3cO91MrR5pXOlgyZ0NH~~(E<*)*_;G#u{U@Po|)8R*O z2Al~$h6~`Q@H6-YTm@IdHE=E5poHJT9dIYy1%HIc;7{;4JONL`U*IKp8Qy}o;T`x4 z{sEuE7w{!~O;RLH>XLe-K50Q(l2&A2(wej<-AF&up9~;l$XGItj3*Pw6f&F4A#=$* zvL88&98QiPi^yWKge)Z|lI3I_Sx+{Qjbt0yPAWUdS>$X|Mb07Tk_*TsWH-5#Tt%)X z*O1?m-;rC$@5!y?4st(vfILVZCr^+k$;;#w@+x_ayiVRCACM2pN8}6gCHW`CP%On! zJS9+ilrd#R^`)#ScglnEq`W9^%AX3O!l?)YF^4z+~prj}C6s2*x1wVwKt+CY6pZK1xWwo(VE zgVZ7FFm;6bi8@1_rOr`TscY1A>LK-rdQ3f`o>I@LH`H62r8%0XjcF6Q4{b`D(N?qr z?MN$~XlL4+_Mv_0NIHs+reo+>I+4zxGwCckn;t|Driajl^f-DvJ%KKwC(>1PHC;p3 z(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zZ(7*Y*3{9oylGX_H%;F*t#8`cbh7C|Gu>>`?AjdJ+^ada88y#u-q5_Gd1v$P=EKcL znvXUA*nGA5=jI#Dzct@(5n8&mn6+56bZbd$$!bvzXc^oxtYu_NZcBbkK?`bG(z32) zW6S22Z7n-ncDEdEIoWci<$TMfmdh=-TOPDLZh6-7vgLg%(F$AXR<_l$)uGj=HMljb zHL^9PHK{eVHNCY*Yp>Sq*3qpMt@W*{)~43h*3Vm~wa#dr)jGR%W$T94J+0rj9&A0* g`a|pS*1OKFe@*}s@R42VAB5UZJs0h#?mB`0Kj-dTB>(^b diff --git a/Santander/Santander/Presenter/ContactPresenter.swift b/Santander/Santander/Presenter/ContactPresenter.swift index 72b60d43..afe8fa5e 100644 --- a/Santander/Santander/Presenter/ContactPresenter.swift +++ b/Santander/Santander/Presenter/ContactPresenter.swift @@ -68,6 +68,10 @@ class ContactPresenter{ } } + func dismissKeyboard(){ + + } + /// Returns an item for a given index func itemForRow(_ row:Int)->FormItem{ return items[row] diff --git a/Santander/Santander/ViewController/ContactViewController.swift b/Santander/Santander/ViewController/ContactViewController.swift index e444efb4..cee7acfb 100644 --- a/Santander/Santander/ViewController/ContactViewController.swift +++ b/Santander/Santander/ViewController/ContactViewController.swift @@ -20,6 +20,7 @@ class ContactViewController: BaseViewController { override func viewDidLoad() { super.viewDidLoad() self.navigationItem.title = "Contato" + dismissKeyboard() _view.tableView.delegate = self _view.tableView.dataSource = self @@ -29,6 +30,18 @@ class ContactViewController: BaseViewController { presenter.requestForm() } + /// Configures the view to dismiss the keyboard on click + func dismissKeyboard() { + let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(dismissKeyboardAction)) + tap.cancelsTouchesInView = false + _view.addGestureRecognizer(tap) + } + + /// Dismiss the keyboard + @objc private func dismissKeyboardAction(){ + _view.endEditing(true) + } + /// Action to display the contact form @objc func returnToContactFormAction(){ presenter.returnToContactForm() From 7aef96bebdd8843dd2da6c6f2a5f032f20b2fa3f Mon Sep 17 00:00:00 2001 From: Jonathan Martins Date: Thu, 10 Jan 2019 00:35:35 -0200 Subject: [PATCH 10/11] Added Unit Test - Added Mock classes for ProductView - Added Mock classes for ProductPresenter - Addes UnitTest for Product view and presenter --- Santander/Santander.xcodeproj/project.pbxproj | 141 +++++++++++++++++- .../xcschemes/Santander - PROD.xcscheme | 10 ++ .../xcschemes/Santander - STAG.xcscheme | 10 ++ .../xcshareddata/xcschemes/Santander.xcscheme | 10 ++ .../UserInterfaceState.xcuserstate | Bin 35915 -> 42060 bytes .../Presenter/ProductPresenter.swift | 13 +- Santander/SantanderTests/ContactTests.swift | 49 ++++++ Santander/SantanderTests/Info.plist | 22 +++ Santander/SantanderTests/ProductTests.swift | 125 ++++++++++++++++ .../SantanderTests-Bridging-Header.h | 4 + 10 files changed, 382 insertions(+), 2 deletions(-) create mode 100644 Santander/SantanderTests/ContactTests.swift create mode 100644 Santander/SantanderTests/Info.plist create mode 100644 Santander/SantanderTests/ProductTests.swift create mode 100644 Santander/SantanderTests/SantanderTests-Bridging-Header.h diff --git a/Santander/Santander.xcodeproj/project.pbxproj b/Santander/Santander.xcodeproj/project.pbxproj index 9af97930..be44e617 100644 --- a/Santander/Santander.xcodeproj/project.pbxproj +++ b/Santander/Santander.xcodeproj/project.pbxproj @@ -26,6 +26,8 @@ 742F0E4021E41AB70079A7F5 /* MoreInfoSingleCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E3F21E41AB70079A7F5 /* MoreInfoSingleCell.swift */; }; 742F0E4221E41AD90079A7F5 /* DownloadCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E4121E41AD90079A7F5 /* DownloadCell.swift */; }; 742F0E4421E41D4E0079A7F5 /* ProductPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 742F0E4321E41D4E0079A7F5 /* ProductPresenter.swift */; }; + 744C1A3621E6C992007998DA /* ContactTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 744C1A3521E6C992007998DA /* ContactTests.swift */; }; + 744C1A3821E6C9A9007998DA /* ProductTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 744C1A3721E6C9A9007998DA /* ProductTests.swift */; }; 7473871E21E00368005C4A49 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473871D21E00368005C4A49 /* AppDelegate.swift */; }; 7473872021E00368005C4A49 /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7473871F21E00368005C4A49 /* MainViewController.swift */; }; 7473872521E0036C005C4A49 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7473872421E0036C005C4A49 /* Assets.xcassets */; }; @@ -38,6 +40,16 @@ 74E715C221E065940079A3AE /* FormItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74E715C121E065940079A3AE /* FormItem.swift */; }; /* End PBXBuildFile section */ +/* Begin PBXContainerItemProxy section */ + 744C1A2F21E6C91B007998DA /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 7473871221E00368005C4A49 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7473871921E00368005C4A49; + remoteInfo = Santander; + }; +/* End PBXContainerItemProxy section */ + /* Begin PBXFileReference section */ 4AA0BE0E21E3825F005D41B9 /* UITextFieldCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UITextFieldCell.swift; sourceTree = ""; }; 4AA0BE1021E382BA005D41B9 /* UICheckBoxCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UICheckBoxCell.swift; sourceTree = ""; }; @@ -58,6 +70,11 @@ 742F0E3F21E41AB70079A7F5 /* MoreInfoSingleCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreInfoSingleCell.swift; sourceTree = ""; }; 742F0E4121E41AD90079A7F5 /* DownloadCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DownloadCell.swift; sourceTree = ""; }; 742F0E4321E41D4E0079A7F5 /* ProductPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductPresenter.swift; sourceTree = ""; }; + 744C1A2A21E6C91B007998DA /* SantanderTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SantanderTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 744C1A2E21E6C91B007998DA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 744C1A3521E6C992007998DA /* ContactTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactTests.swift; sourceTree = ""; }; + 744C1A3721E6C9A9007998DA /* ProductTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductTests.swift; sourceTree = ""; }; + 744C1A3921E6D671007998DA /* SantanderTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SantanderTests-Bridging-Header.h"; sourceTree = ""; }; 7473871A21E00368005C4A49 /* Santander.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Santander.app; sourceTree = BUILT_PRODUCTS_DIR; }; 7473871D21E00368005C4A49 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7473871F21E00368005C4A49 /* MainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = ""; }; @@ -75,6 +92,13 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 744C1A2721E6C91B007998DA /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 7473871721E00368005C4A49 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -145,10 +169,22 @@ path = ProductView; sourceTree = ""; }; + 744C1A2B21E6C91B007998DA /* SantanderTests */ = { + isa = PBXGroup; + children = ( + 744C1A2E21E6C91B007998DA /* Info.plist */, + 744C1A3521E6C992007998DA /* ContactTests.swift */, + 744C1A3721E6C9A9007998DA /* ProductTests.swift */, + 744C1A3921E6D671007998DA /* SantanderTests-Bridging-Header.h */, + ); + path = SantanderTests; + sourceTree = ""; + }; 7473871121E00368005C4A49 = { isa = PBXGroup; children = ( 7473871C21E00368005C4A49 /* Santander */, + 744C1A2B21E6C91B007998DA /* SantanderTests */, 7473871B21E00368005C4A49 /* Products */, 0AFB33E49E924A9DE4E18D31 /* Pods */, 3D5A074CF5DBE28945DB9B74 /* Frameworks */, @@ -159,6 +195,7 @@ isa = PBXGroup; children = ( 7473871A21E00368005C4A49 /* Santander.app */, + 744C1A2A21E6C91B007998DA /* SantanderTests.xctest */, ); name = Products; sourceTree = ""; @@ -175,8 +212,8 @@ 7473873121E003EB005C4A49 /* Presenter */, 7473872921E0036C005C4A49 /* Info.plist */, 7415214621E12D9A00DD000F /* Endpoint.plist */, - 7473871D21E00368005C4A49 /* AppDelegate.swift */, 7473872421E0036C005C4A49 /* Assets.xcassets */, + 7473871D21E00368005C4A49 /* AppDelegate.swift */, 7473872621E0036C005C4A49 /* LaunchScreen.storyboard */, ); path = Santander; @@ -232,6 +269,24 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ + 744C1A2921E6C91B007998DA /* SantanderTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 744C1A3321E6C91B007998DA /* Build configuration list for PBXNativeTarget "SantanderTests" */; + buildPhases = ( + 744C1A2621E6C91B007998DA /* Sources */, + 744C1A2721E6C91B007998DA /* Frameworks */, + 744C1A2821E6C91B007998DA /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 744C1A3021E6C91B007998DA /* PBXTargetDependency */, + ); + name = SantanderTests; + productName = SantanderTests; + productReference = 744C1A2A21E6C91B007998DA /* SantanderTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; 7473871921E00368005C4A49 /* Santander */ = { isa = PBXNativeTarget; buildConfigurationList = 7473872C21E0036C005C4A49 /* Build configuration list for PBXNativeTarget "Santander" */; @@ -261,6 +316,11 @@ LastUpgradeCheck = 1010; ORGANIZATIONNAME = Surrey; TargetAttributes = { + 744C1A2921E6C91B007998DA = { + CreatedOnToolsVersion = 10.1; + LastSwiftMigration = 1010; + TestTargetID = 7473871921E00368005C4A49; + }; 7473871921E00368005C4A49 = { CreatedOnToolsVersion = 10.1; }; @@ -280,11 +340,19 @@ projectRoot = ""; targets = ( 7473871921E00368005C4A49 /* Santander */, + 744C1A2921E6C91B007998DA /* SantanderTests */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 744C1A2821E6C91B007998DA /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 7473871821E00368005C4A49 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -345,6 +413,15 @@ /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 744C1A2621E6C91B007998DA /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 744C1A3621E6C992007998DA /* ContactTests.swift in Sources */, + 744C1A3821E6C9A9007998DA /* ProductTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 7473871621E00368005C4A49 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -379,6 +456,14 @@ }; /* End PBXSourcesBuildPhase section */ +/* Begin PBXTargetDependency section */ + 744C1A3021E6C91B007998DA /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7473871921E00368005C4A49 /* Santander */; + targetProxy = 744C1A2F21E6C91B007998DA /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + /* Begin PBXVariantGroup section */ 7473872621E0036C005C4A49 /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; @@ -391,6 +476,51 @@ /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ + 744C1A3121E6C91B007998DA /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = NA36627892; + INFOPLIST_FILE = SantanderTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.surrey.SantanderTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "SantanderTests/SantanderTests-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.2; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Santander.app/Santander"; + }; + name = Debug; + }; + 744C1A3221E6C91B007998DA /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = NA36627892; + INFOPLIST_FILE = SantanderTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.surrey.SantanderTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "SantanderTests/SantanderTests-Bridging-Header.h"; + SWIFT_VERSION = 4.2; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Santander.app/Santander"; + }; + name = Release; + }; 7473872A21E0036C005C4A49 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -556,6 +686,15 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 744C1A3321E6C91B007998DA /* Build configuration list for PBXNativeTarget "SantanderTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 744C1A3121E6C91B007998DA /* Debug */, + 744C1A3221E6C91B007998DA /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 7473871521E00368005C4A49 /* Build configuration list for PBXProject "Santander" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - PROD.xcscheme b/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - PROD.xcscheme index 5f2bb511..531fdcdc 100644 --- a/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - PROD.xcscheme +++ b/Santander/Santander.xcodeproj/xcshareddata/xcschemes/Santander - PROD.xcscheme @@ -28,6 +28,16 @@ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> + + + + + + + + + + + + k(flhO-v=)h<0K&@jkJL zSWGM-J|R{RtB4K6CSo(Oh1fytCXNtCi64n$#Bt&Tagw+|TqG_Lmx*h{P2v`Do45lQ zzyc2NKmaDd6qo^XU;$*n64(M~E${-pK_B1^`hor+2tEoj>;`+l zUhoyz2fha1g73hO;28J?oCD{<1#ksC2HGd!DR>5+gFnCv@F(~Sa*&4tG=Zj22JN8( zbcD{(1-imM&>Q+dKj;rbVHg|?hr!`64vvC}Fcqf39GD9WVF@gSWw097LKSR;li*}H z1!|!PTVWe)hqK}PPzOJT3*b_?9DWKn!q4DNE!+jagkQt`@LPBSo`k31MR*BbhS%Wl z@EQD@BuSPuAuUK5X+t`auB0c~hx8`>$bMuT8BdNNN0Ot+1adSvhD;=r$O5vEEFz0Z zIaxwhk~L&4sUgRbza_sTkCP|JljJG#XYvAhmHdsoNj@Q;lF!KJT0yO()>7-Jjnrpa zYAdyk+ClB4_E3AN{nP>KTk1RN2z8V?L7k+|P-m(0)CKAa^(%F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?P4Q)APzrh`qt7@drsMqguqF~~T;s5ZtL^NaInfo? + func downInfoForRow(_ row:Int)->Info? + func profitabilityForRow(_ row:Int)->Profitability? + func share() + func download() + func invest() +} + +class ProductPresenter: ProductPresenterDelegate{ /// Instance of the Controller's view private weak var view:ProductViewDelegate? diff --git a/Santander/SantanderTests/ContactTests.swift b/Santander/SantanderTests/ContactTests.swift new file mode 100644 index 00000000..3113514a --- /dev/null +++ b/Santander/SantanderTests/ContactTests.swift @@ -0,0 +1,49 @@ +// +// ContactTests.swift +// SantanderTests +// +// Created by Jonathan Martins on 09/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import XCTest +@testable import Santander + +class ContactViewMock:NSObject, ContactViewDelegate{ + + var popupTitle = "" + var popupMessage = "" + var showPageWasCalled = false + var hidePageWasCalled = false + var updateTableViewWasCalled = false + + func displayPopup(title: String, message: String) { + popupTitle = title + popupMessage = message + } + + func updateTableViewItems(items: [FormItem]) { + updateTableViewWasCalled = true + } + + func showSuccessPage() { + showPageWasCalled = true + } + + func hideSuccessPage() { + hidePageWasCalled = true + } +} + +class ContactTests: XCTestCase { + + override func setUp() { + + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + +} diff --git a/Santander/SantanderTests/Info.plist b/Santander/SantanderTests/Info.plist new file mode 100644 index 00000000..6c40a6cd --- /dev/null +++ b/Santander/SantanderTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/Santander/SantanderTests/ProductTests.swift b/Santander/SantanderTests/ProductTests.swift new file mode 100644 index 00000000..eac71fd3 --- /dev/null +++ b/Santander/SantanderTests/ProductTests.swift @@ -0,0 +1,125 @@ +// +// ProductTests.swift +// SantanderTests +// +// Created by Jonathan Martins on 09/01/19. +// Copyright © 2019 Surrey. All rights reserved. +// + +import XCTest +@testable import Santander + +/// Mocked ProductView for test +class ProductViewMock:NSObject, ProductViewDelegate{ + + var urlToOpen = "" + var popupTitle = "" + var popupMessage = "" + var updateTableViewWasCalled = false + + func updateTableViewItems(){ + updateTableViewWasCalled = true + } + + func openWebView(site:String){ + urlToOpen = site + } + + func displayPopup(title: String, message: String) { + popupTitle = title + popupMessage = message + } +} + +/// Mocked ProductPresenter for test +class ProductPresenterMock:NSObject, ProductPresenterDelegate{ + + var productView:ProductViewDelegate? = nil + var requestInfoWasCalled = false + var infoForRowWasCalled = false + var downInfoForRowWasCalled = false + var profitabilityForRowWasCalled = false + var shareWasCalled = false + var downloadWasCalled = false + var investWasCalled = false + + func bindTo(view: ProductViewDelegate) { + productView = view + } + + func requestInfo() { + requestInfoWasCalled = true + } + + func infoForRow(_ row: Int) -> Info? { + infoForRowWasCalled = true + return nil + } + + func downInfoForRow(_ row: Int) -> Info? { + downInfoForRowWasCalled = true + return nil + } + + func profitabilityForRow(_ row: Int) -> Profitability? { + profitabilityForRowWasCalled = true + return nil + } + + func share() { + shareWasCalled = true + } + + func download() { + downloadWasCalled = true + } + + func invest() { + investWasCalled = true + } +} + +class ProductTests: XCTestCase { + + override func setUp() { + + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testUpdateTableViewItems(){ + let productView = ProductViewMock() + + productView.updateTableViewItems() + XCTAssertTrue(productView.updateTableViewWasCalled) + + } + + func testOpenWebView(){ + let url = "www.google.com" + let productView = ProductViewMock() + + productView.openWebView(site: url) + XCTAssertEqual(productView.urlToOpen, url) + } + + func testDisplayPopup(){ + let title = "title" + let message = "message" + let productView = ProductViewMock() + + productView.displayPopup(title: title, message: message) + XCTAssertEqual(productView.popupTitle , title) + XCTAssertEqual(productView.popupMessage, message) + } + + func testBindTo(){ + let productView = ProductViewMock() + let productPresenter = ProductPresenterMock() + + productPresenter.bindTo(view: productView) + XCTAssertNotNil(productPresenter.productView) + } +} diff --git a/Santander/SantanderTests/SantanderTests-Bridging-Header.h b/Santander/SantanderTests/SantanderTests-Bridging-Header.h new file mode 100644 index 00000000..1b2cb5d6 --- /dev/null +++ b/Santander/SantanderTests/SantanderTests-Bridging-Header.h @@ -0,0 +1,4 @@ +// +// Use this file to import your target's public headers that you would like to expose to Swift. +// + From 67b0ecfeb37f9af11bf9415c013831881d467403 Mon Sep 17 00:00:00 2001 From: - Jonathan Martins Date: Thu, 10 Jan 2019 13:23:42 -0200 Subject: [PATCH 11/11] - Finishing unit test for ProductView --- Santander/Santander.xcodeproj/project.pbxproj | 4 ++-- .../UserInterfaceState.xcuserstate | Bin 0 -> 22480 bytes .../UserInterfaceState.xcuserstate | Bin 40663 -> 43687 bytes .../Presenter/ProductPresenter.swift | 6 ------ .../View/ProductViewController.swift | 17 ----------------- Santander/SantanderTests/ProductTests.swift | 14 +++++++------- 6 files changed, 9 insertions(+), 32 deletions(-) create mode 100644 Santander/Santander.xcodeproj/project.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate delete mode 100644 Santander/Santander/View/ProductViewController.swift diff --git a/Santander/Santander.xcodeproj/project.pbxproj b/Santander/Santander.xcodeproj/project.pbxproj index be44e617..6d40293a 100644 --- a/Santander/Santander.xcodeproj/project.pbxproj +++ b/Santander/Santander.xcodeproj/project.pbxproj @@ -482,7 +482,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = NA36627892; + DEVELOPMENT_TEAM = EJMPW958AV; INFOPLIST_FILE = SantanderTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -505,7 +505,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = NA36627892; + DEVELOPMENT_TEAM = EJMPW958AV; INFOPLIST_FILE = SantanderTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", diff --git a/Santander/Santander.xcodeproj/project.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcodeproj/project.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000000000000000000000000000000000000..39897d5a76cb509856962fcd66a5e70e83390f1d GIT binary patch literal 22480 zcmd6P33yXQ_xH@bH{F-CO}Dg#l(IwjHcgu@*-M}sP0Lc2656y4T~d-1DC-0f6;K2f z5m0Q4ETX80BFZj`3nDu%h$tfBiVLW?@SVB0=>q8g{od#Mp6A~@Y39y)=FFKhXJ&rq zPHk?mI-E&Krw~RAViAW#$U~$MWsd7V!(w+>ZB66)+on#lR5=~v`+iHR z2P3@r$>)ObJ;)Pzp%5fNp=cNyj^a@QN<>L08Kt09l!nrg7U_^48BjhNfr?NWDn}EL z8BIkss2R;bv(W;y5G_W_(1U0NT8q}9$I%n04LyZ6qpj#U^gMbQy^3B#htXT;ZS)R$ z7ad0@&{^~u`W#(EU!Y6qOY{}`3H^+ILD$gl=q5(k2m4|_?2iL*AP&KCxIZ3%2jW3^ zFdl+4aSm2v9nQxiaUm|jCOig@#}jcSo{BBliW`svH)1=Uf#+g^UHE?d0A7wC#4GSh zyc$1-*Wjn|R{RWp7H`AP;pg!ScsqU>@5Ha6M!W~Vjo-sZ@dzzk#tF{w-%lg`MQ3`WUl7%ih?3YbEs zh^b&EFcX)R-mDMn%LcNcY$O}a4rGV2!`K`)m(62UteVxZT2{x7VaKxL*zs%yJAs|ZPGW1> zI@ZcgV;8Y^vy0h#*n8Rg*d^>zb{Ts=`vAL~UCBPoKEgi6u4gx~o7pYw)9iNkMRo_f zn|+f#%)Z6G&A!7PWj|)mv7fP@vuD|h>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w(`CR7q%pI98XYR^; zE%S8d7nwJ+!U2(`&l;cAnB~fP9FSSBW$n(|m-SZGds$y(eV27L>*uU%S$``+mtUTcPL*|?o}R89#X!kd{_CY@*Cxk${WhRvQajZJuF+3JvO^O zdw%wc?2Xy4X79;1Ilt!I$oVVhW-iXNKp-g|k+@=oTR$@?(x!xy{hA?k5rdcH&lPAk(yO|sJ+#G>Ogg{I#fMaJrs6giRxr^s#>nj zRA;O6)M|LYN~3y?dZqet^^58=>aW$;G>k^1@zVHe0yJWcLZjD=(2UX)X+~>InsFM7 zra@x^L|uz!u4aM8rCFp|tl6%4NAtPn8_oBcA2mN~krrziEvNO@inSryP;G)%snu!o zwIj8K+7j(}?L=**)~v18)@W_oR_!9~I_(zicI`{rSG2Eb_i7Jo-`2jXeNX$o_PF*3 zou4jIH$qpg8>gF~o2;9no2r|kyGyrNcb{&VZnmF1A-vFLf_}2ztgq5H>u2g)^>g&|^o#WO=qb z4d)E!4VMjH8@@CAVE8S+U;d!{(fJkmB>(RGt@(%Y-zy9+j4T{hm{ch5G+Y_sR|LL2 JJ^u<7{|EIxoRI(k literal 0 HcmV?d00001 diff --git a/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate b/Santander/Santander.xcworkspace/xcuserdata/jussi.xcuserdatad/UserInterfaceState.xcuserstate index 6dcbb3cbb136e53e2bacf991bf076d6126094ddc..1a2a4facce88c9d4979f8958c3a0c284ae47fed8 100644 GIT binary patch delta 22077 zcmbuH1$Y!!^yo)-Y(q9ml(@UQySrcw0YV582jV+7?!rPTP9QiGinLgvv``#MvEoi~ zE0p5z&Mph|Pv8H0-}eYJ*_~^@d(OS*+L@gB5nFx=>(wH}QQ~OXn^Y@Y4PV?B<|55R zMj#`RF-Sf#9w|hMkTRqeX+T<#PNWBsA+wP=$b4i8vK(1~Y(h38-y=UDTac~DF61X< zH*y^L9XWxVL{1^6ku%62$XVnfatXPHR3SHzyU0W25%Lmwg}g@Ipa_biB9u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~CH*3~x+OHfA>FH1=xj+c=wE6tlDoBKA8XdcyE)LhzJ)?D7)-u!j5s(E(v+~#@BE1K6e z|Jb~#`RC?en)fvCYd+X~xcPMR<>q_MPnw@MzifWf{7C^6q=Htk3L}NB!a?Dra8E6k`=NibjP(0Tr!^X^J_DZxsuaibaa$ij|7higk+h zifxL0ic^XUipz?tiW`c1iie8Fil>U_N>Zt-G*>z(os_Oh52d#aD(QpPG1lu61W z#J422iDhWT*t+Z%N>7qyzV4B#hrSc2A$GQ zi%#oK+fIj0$4>vwh|bi`oX%dIeLDwq4(lAzS=c$Iv$(Ulv!hehIlFUi=lsrvor^km bcAo4!+j&{NMUMfX`LB4a=D*r!=kNaq_UGAX diff --git a/Santander/Santander/Presenter/ProductPresenter.swift b/Santander/Santander/Presenter/ProductPresenter.swift index d1b684db..5a715b40 100644 --- a/Santander/Santander/Presenter/ProductPresenter.swift +++ b/Santander/Santander/Presenter/ProductPresenter.swift @@ -14,7 +14,6 @@ protocol ProductPresenterDelegate { func infoForRow(_ row:Int)->Info? func downInfoForRow(_ row:Int)->Info? func profitabilityForRow(_ row:Int)->Profitability? - func share() func download() func invest() } @@ -83,11 +82,6 @@ class ProductPresenter: ProductPresenterDelegate{ return screen?.profitabilities[row] } - /// Notifies the view that the share action was clicked - func share(){ - - } - /// Notifies the view that the action "Baixar" was clicked func download(){ view?.openWebView(site: "https://www.google.com") diff --git a/Santander/Santander/View/ProductViewController.swift b/Santander/Santander/View/ProductViewController.swift deleted file mode 100644 index 519cbca1..00000000 --- a/Santander/Santander/View/ProductViewController.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// ProductViewController.swift -// Santander -// -// Created by Jonathan Martins on 04/01/19. -// Copyright © 2019 Surrey. All rights reserved. -// - -import UIKit - -class ProductViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - } - -} diff --git a/Santander/SantanderTests/ProductTests.swift b/Santander/SantanderTests/ProductTests.swift index eac71fd3..24e3f4a5 100644 --- a/Santander/SantanderTests/ProductTests.swift +++ b/Santander/SantanderTests/ProductTests.swift @@ -34,12 +34,11 @@ class ProductViewMock:NSObject, ProductViewDelegate{ /// Mocked ProductPresenter for test class ProductPresenterMock:NSObject, ProductPresenterDelegate{ - var productView:ProductViewDelegate? = nil + var productView:ProductViewDelegate? var requestInfoWasCalled = false var infoForRowWasCalled = false var downInfoForRowWasCalled = false var profitabilityForRowWasCalled = false - var shareWasCalled = false var downloadWasCalled = false var investWasCalled = false @@ -66,10 +65,6 @@ class ProductPresenterMock:NSObject, ProductPresenterDelegate{ return nil } - func share() { - shareWasCalled = true - } - func download() { downloadWasCalled = true } @@ -115,11 +110,16 @@ class ProductTests: XCTestCase { XCTAssertEqual(productView.popupMessage, message) } - func testBindTo(){ + func testViewBound(){ let productView = ProductViewMock() let productPresenter = ProductPresenterMock() productPresenter.bindTo(view: productView) XCTAssertNotNil(productPresenter.productView) } + + func testNotBound(){ + let productPresenter = ProductPresenterMock() + XCTAssertNil(productPresenter.productView) + } }