From 5cc280f8f76a9f30b40d472ec0bbcc3ce8421949 Mon Sep 17 00:00:00 2001 From: Pol Quintana Date: Sun, 30 Oct 2016 23:03:40 +0100 Subject: [PATCH] Remove TwicketLoader dependency --- Cartfile | 1 - Cartfile.resolved | 1 - Carthage/Checkouts/TwicketLoader/.gitignore | 35 -- .../TwicketLoader/TwicketLoader/Info.plist | 26 - .../TwicketLoader/TwicketLoader.h | 19 - .../TwicketLoader/TwicketLoader.swift | 210 -------- .../TwicketLoader/UIViewFrameExtension.swift | 99 ---- .../project.pbxproj | 477 ------------------ .../contents.xcworkspacedata | 7 - .../xcschemes/TwicketLoader.xcscheme | 80 --- .../TwicketLoaderDemo/AppDelegate.swift | 46 -- .../AppIcon.appiconset/Contents.json | 68 --- .../Base.lproj/LaunchScreen.storyboard | 27 - .../Base.lproj/Main.storyboard | 25 - .../TwicketLoaderDemo/Info.plist | 47 -- .../TwicketLoaderDemo/ViewController.swift | 25 - TwitterAuth/Source/TwitterAuth.swift | 4 - TwitterAuthDemo.xcodeproj/project.pbxproj | 8 - 18 files changed, 1205 deletions(-) delete mode 100644 Cartfile delete mode 100644 Cartfile.resolved delete mode 100644 Carthage/Checkouts/TwicketLoader/.gitignore delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoader/Info.plist delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoader/TwicketLoader.h delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoader/TwicketLoader.swift delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoader/UIViewFrameExtension.swift delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/project.pbxproj delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/xcshareddata/xcschemes/TwicketLoader.xcscheme delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/AppDelegate.swift delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Base.lproj/LaunchScreen.storyboard delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Base.lproj/Main.storyboard delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Info.plist delete mode 100644 Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/ViewController.swift diff --git a/Cartfile b/Cartfile deleted file mode 100644 index 33b7c02..0000000 --- a/Cartfile +++ /dev/null @@ -1 +0,0 @@ -github "poolqf/TwicketLoader" "swift-3" diff --git a/Cartfile.resolved b/Cartfile.resolved deleted file mode 100644 index 0006db4..0000000 --- a/Cartfile.resolved +++ /dev/null @@ -1 +0,0 @@ -github "poolqf/TwicketLoader" "d4cca3587426b55cfa2259e06727e29f31c2b3fe" diff --git a/Carthage/Checkouts/TwicketLoader/.gitignore b/Carthage/Checkouts/TwicketLoader/.gitignore deleted file mode 100644 index cbf3e07..0000000 --- a/Carthage/Checkouts/TwicketLoader/.gitignore +++ /dev/null @@ -1,35 +0,0 @@ -.DS_Store - -# Xcode -# -build/ -*.pbxuser -!default.pbxuser -*.mode1v3 -!default.mode1v3 -*.mode2v3 -!default.mode2v3 -*.perspectivev3 -!default.perspectivev3 -xcuserdata -*.xccheckout -*.moved-aside -DerivedData -*.hmap -*.ipa -*.xcuserstate - -# CocoaPods -# -# We recommend against adding the Pods directory to your .gitignore. However -# you should judge for yourself, the pros and cons are mentioned at: -# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control -# -# Pods/ - -# Carthage -# -# Add this line if you want to avoid checking in source code from Carthage dependencies. -# Carthage/Checkouts - -Carthage/Build diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoader/Info.plist b/Carthage/Checkouts/TwicketLoader/TwicketLoader/Info.plist deleted file mode 100644 index d3de8ee..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoader/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - NSPrincipalClass - - - diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoader/TwicketLoader.h b/Carthage/Checkouts/TwicketLoader/TwicketLoader/TwicketLoader.h deleted file mode 100644 index 51e9c0d..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoader/TwicketLoader.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// TwicketLoader.h -// TwicketLoader -// -// Created by Pol Quintana on 11/03/16. -// Copyright © 2016 Pol Quintana. All rights reserved. -// - -#import - -//! Project version number for TwicketLoader. -FOUNDATION_EXPORT double TwicketLoaderVersionNumber; - -//! Project version string for TwicketLoader. -FOUNDATION_EXPORT const unsigned char TwicketLoaderVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoader/TwicketLoader.swift b/Carthage/Checkouts/TwicketLoader/TwicketLoader/TwicketLoader.swift deleted file mode 100644 index abc0a7f..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoader/TwicketLoader.swift +++ /dev/null @@ -1,210 +0,0 @@ -// -// TwicketLoader.swift -// Twicket -// -// Created by Pol Quintana on 7/11/15. -// Copyright © 2015 Pol Quintana. All rights reserved. -// - -import UIKit - -public class TwicketLoader: UIView, CAAnimationDelegate { - - enum AnimationKeys: String { - case arc1 - case arc2 - case arc3 - } - - private var animate: Bool = false - private static let size: CGFloat = 50 - private let lineWidth: CGFloat = 3 - private var radiusDiff: CGFloat { return self.frameHeight/5 } - private var rotateDuration1: TimeInterval = 1.25 - private var rotateDuration2: TimeInterval = 1.0 - private var rotateDuration3: TimeInterval = 1.15 - private var arc1: CAShapeLayer = CAShapeLayer() - private var arc2: CAShapeLayer = CAShapeLayer() - private var arc3: CAShapeLayer = CAShapeLayer() - - private init(empty: Bool = false, size: CGFloat) { - let viewFrame = CGRect(x: 0, y: 0, width: size, height: size) - super.init(frame: viewFrame) - configure(withSize: size, empty: empty) - } - - required public init?(coder aDecoder: NSCoder) { - super.init(coder: aDecoder) - configure(withSize: frameHeight, empty: false) - } - - private func configure(withSize size: CGFloat, empty: Bool) { - let viewFrame = CGRect(x: 0, y: 0, width: size, height: size) - let angleWidth = empty ? 0 : CGFloat(M_PI_2) - let center = CGPoint(x: size/2, y: size/2) - arc1 = TwicketLoader.arcLayer(radius: size/2 - 0*radiusDiff, angleWidth: angleWidth, center: center, lineWidth: lineWidth, color: UIColor.red) - arc2 = TwicketLoader.arcLayer(radius: size/2 - 1*radiusDiff, angleWidth: angleWidth, center: center, lineWidth: lineWidth, color: UIColor.blue) - arc3 = TwicketLoader.arcLayer(radius: size/2 - 2*radiusDiff, angleWidth: angleWidth, center: center, lineWidth: lineWidth, color: UIColor.yellow) - - [arc1, arc2, arc3].forEach { - $0.frame = viewFrame - layer.addSublayer($0) - } - } - - public static func createEmptyLoader(in view: UIView, size: CGFloat = size) -> TwicketLoader { - let loader = TwicketLoader(empty: true, size: size) - loader.center(in: view) - view.addSubview(loader) - return loader - } - - public static func createLoader(in view: UIView, size: CGFloat = size) -> TwicketLoader { - let loader = TwicketLoader(size: size) - loader.isHidden = true - loader.alpha = 0.0 - loader.center(in: view) - view.addSubview(loader) - return loader - } - - public func showLoader(_ animated: Bool = true) { - if animate { return } - animate = true - let animations = { self.alpha = 1.0 } - if animated { - UIView.animate(withDuration: 0.5, animations: animations) - } - else { - animations() - } - isHidden = false - rotateArc1() - rotateArc2() - rotateArc3() - } - - public func hideLoader(_ animated: Bool = true, completion: (() -> ())? = nil) { - let animations = { self.alpha = 0.0 } - let removeLoader: (Bool) -> () = { completed in - self.isHidden = true - self.cancelAnimations() - completion?() - } - - if !animated { - animations() - removeLoader(true) - return - } - UIView.animate(withDuration: 0.5, animations: animations, completion: removeLoader) - } - - public func removeLoader(animated: Bool = true) { - hideLoader(animated) { - self.removeFromSuperview() - } - } - - public func advance(to progress: CGFloat) { - let maxValue = CGFloat(2*M_PI) - let angleWidth = maxValue*progress - if angleWidth > maxValue { return } - UIView.animate(withDuration: 0.5) { - self.arc1.path = TwicketLoader.arcPath(radius: self.frameHeight/2 - 0*self.radiusDiff, - angleWidth: angleWidth, - center: CGPoint(x: self.frameWidth/2, y: self.frameHeight/2)) - self.arc2.path = TwicketLoader.arcPath(radius: self.frameHeight/2 - 1*self.radiusDiff, - angleWidth: angleWidth, - center: CGPoint(x: self.frameWidth/2, y: self.frameHeight/2), - inverse: true) - self.arc3.path = TwicketLoader.arcPath(radius: self.frameHeight/2 - 2*self.radiusDiff, - angleWidth: angleWidth, - center: CGPoint(x: self.frameWidth/2, y: self.frameHeight/2)) - } - } - - private func cancelAnimations() { - animate = false - arc1.removeAllAnimations() - arc2.removeAllAnimations() - arc3.removeAllAnimations() - } - - - //MARK: Rotation - - private func rotateArc1() { - rotate(arc1, withDuration: rotateDuration1, animation: AnimationKeys.arc1) - } - - private func rotateArc2() { - rotate(arc2, withDuration: rotateDuration2, animation: AnimationKeys.arc2) - } - - private func rotateArc3() { - rotate(arc3, withDuration: rotateDuration3, animation: AnimationKeys.arc3) - } - - private func rotate(_ shape: CAShapeLayer, withDuration duration: TimeInterval, animation: AnimationKeys) { - if !animate { return } - let rotate = CAKeyframeAnimation(keyPath: "transform.rotation.z") - if animation != .arc2 { - rotate.values = [0, M_PI, 2*M_PI-0.0001] - } - else { - rotate.values = [0, -M_PI, -2*M_PI-0.0001] - } - rotate.duration = duration - rotate.delegate = self - rotate.setValue(animation.rawValue, forKey: "identifier") - shape.add(rotate, forKey: "rotation") - } - - private func randomAngle() -> CGFloat { - return randomBetween(CGFloat(M_PI_2), and: CGFloat(M_PI_2)/3) - } - - private func randomBetween(_ firstNum: CGFloat, and secondNum: CGFloat) -> CGFloat { - return CGFloat(arc4random()) / CGFloat(UINT32_MAX) * abs(firstNum - secondNum) + min(firstNum, secondNum) - } - - - //MARK: Animation delegate - - public func animationDidStop(_ anim: CAAnimation, finished flag: Bool) { - guard animate, let identifier = anim.value(forKey: "identifier") as? String else { return } - if identifier == AnimationKeys.arc1.rawValue { - rotateArc1() - } - else if identifier == AnimationKeys.arc2.rawValue { - rotateArc2() - } - else if identifier == AnimationKeys.arc3.rawValue { - rotateArc3() - } - } - - - //MARK: Arc helper - - private static func arcLayer(radius: CGFloat, angleWidth: CGFloat, center: CGPoint, lineWidth: CGFloat, color: UIColor) -> CAShapeLayer { - let progressRingLayer = CAShapeLayer() - progressRingLayer.path = arcPath(radius: radius, angleWidth: angleWidth, center: center) - progressRingLayer.lineWidth = lineWidth - progressRingLayer.strokeColor = color.cgColor - progressRingLayer.lineCap = kCALineCapRound - progressRingLayer.fillColor = UIColor.clear.cgColor - return progressRingLayer - } - - private static func arcPath(radius: CGFloat, angleWidth: CGFloat, center: CGPoint, inverse: Bool = false) -> CGPath { - let initialAngle = CGFloat(-M_PI_2) - return UIBezierPath(arcCenter: center, - radius: radius, - startAngle: initialAngle, - endAngle: inverse ? -angleWidth + initialAngle : angleWidth + initialAngle, - clockwise: !inverse).cgPath - } - -} diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoader/UIViewFrameExtension.swift b/Carthage/Checkouts/TwicketLoader/TwicketLoader/UIViewFrameExtension.swift deleted file mode 100644 index d9fa225..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoader/UIViewFrameExtension.swift +++ /dev/null @@ -1,99 +0,0 @@ -// -// UIViewControllerNavButtonsExtension.swift -// Twicket -// -// Created by Pol Quintana on 07/09/15. -// Copyright © 2015 Pol Quintana. All rights reserved. -// - -import UIKit - -extension UIView { - var frameSize: CGSize { - get { - return frame.size - } - set { - frame = CGRect(x: frameLeft, y: frameTop, width: newValue.width, height: newValue.height) - } - } - var frameWidth: CGFloat { - get { - return frame.size.width - } - set { - frame = CGRect(x: frameLeft, y: frameTop, width: newValue, height: frameHeight) - } - } - var frameHeight: CGFloat { - get { - return frame.size.height - } - set { - frame = CGRect(x: frameLeft, y: frameTop, width: frameWidth, height: newValue) - } - } - var frameOrigin: CGPoint { - get { - return frame.origin - } - set { - frame = CGRect(x: newValue.x, y: newValue.y, width: frameWidth, height: frameHeight) - } - } - var frameBottom: CGFloat { - get { - return frameTop + frameHeight - } - set { - frame = CGRect(x: frameLeft, y: newValue - frameHeight, width: frameWidth, height: frameHeight) - } - } - var frameTop: CGFloat { - get { - return frame.origin.y - } - set { - frame = CGRect(x: frameLeft, y: newValue, width: frameWidth, height: frameHeight) - } - } - var frameRight: CGFloat { - get { - return frameLeft + frameWidth - } - set { - frame = CGRect(x: newValue - frameWidth, y: frameTop, width: frameWidth, height: frameHeight) - } - } - var frameLeft: CGFloat { - get { - return frame.origin.x - } - set { - frame = CGRect(x: newValue, y: frameTop, width: frameWidth, height: frameHeight) - } - } - - //CENTER - var centerX: CGFloat { - get { - return center.x - } - set { - center = CGPoint(x: newValue, y: center.y) - } - } - var centerY: CGFloat { - get { - return center.y - } - set { - center = CGPoint(x: center.x, y: newValue) - } - } - - func center(in view: UIView) { - centerX = view.frameWidth/2 - centerY = view.frameHeight/2 - } -} diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/project.pbxproj b/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/project.pbxproj deleted file mode 100644 index 3497730..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/project.pbxproj +++ /dev/null @@ -1,477 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - C1BDA57E1C935CBB00A5232C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1BDA57D1C935CBB00A5232C /* AppDelegate.swift */; }; - C1BDA5801C935CBB00A5232C /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1BDA57F1C935CBB00A5232C /* ViewController.swift */; }; - C1BDA5831C935CBB00A5232C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C1BDA5811C935CBB00A5232C /* Main.storyboard */; }; - C1BDA5851C935CBB00A5232C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C1BDA5841C935CBB00A5232C /* Assets.xcassets */; }; - C1BDA5881C935CBB00A5232C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C1BDA5861C935CBB00A5232C /* LaunchScreen.storyboard */; }; - C1BDA5971C935D1100A5232C /* TwicketLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = C1BDA5961C935D1100A5232C /* TwicketLoader.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C1BDA59B1C935D1100A5232C /* TwicketLoader.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C1BDA5941C935D1100A5232C /* TwicketLoader.framework */; }; - C1BDA59C1C935D1100A5232C /* TwicketLoader.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C1BDA5941C935D1100A5232C /* TwicketLoader.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - C1BDA5A21C935D2300A5232C /* TwicketLoader.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1BDA5A11C935D2300A5232C /* TwicketLoader.swift */; }; - C1BDA5A41C935DB500A5232C /* UIViewFrameExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1BDA5A31C935DB500A5232C /* UIViewFrameExtension.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - C1BDA5991C935D1100A5232C /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = C1BDA5721C935CBB00A5232C /* Project object */; - proxyType = 1; - remoteGlobalIDString = C1BDA5931C935D1100A5232C; - remoteInfo = TwicketLoader; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - C1BDA5A01C935D1100A5232C /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - C1BDA59C1C935D1100A5232C /* TwicketLoader.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - C1BDA57A1C935CBB00A5232C /* TwicketLoaderDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TwicketLoaderDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; - C1BDA57D1C935CBB00A5232C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - C1BDA57F1C935CBB00A5232C /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - C1BDA5821C935CBB00A5232C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - C1BDA5841C935CBB00A5232C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - C1BDA5871C935CBB00A5232C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - C1BDA5891C935CBB00A5232C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - C1BDA5941C935D1100A5232C /* TwicketLoader.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = TwicketLoader.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - C1BDA5961C935D1100A5232C /* TwicketLoader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TwicketLoader.h; sourceTree = ""; }; - C1BDA5981C935D1100A5232C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - C1BDA5A11C935D2300A5232C /* TwicketLoader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TwicketLoader.swift; sourceTree = ""; }; - C1BDA5A31C935DB500A5232C /* UIViewFrameExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIViewFrameExtension.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - C1BDA5771C935CBB00A5232C /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - C1BDA59B1C935D1100A5232C /* TwicketLoader.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C1BDA5901C935D1100A5232C /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - C1BDA5711C935CBB00A5232C = { - isa = PBXGroup; - children = ( - C1BDA57C1C935CBB00A5232C /* TwicketLoaderDemo */, - C1BDA5951C935D1100A5232C /* TwicketLoader */, - C1BDA57B1C935CBB00A5232C /* Products */, - ); - sourceTree = ""; - }; - C1BDA57B1C935CBB00A5232C /* Products */ = { - isa = PBXGroup; - children = ( - C1BDA57A1C935CBB00A5232C /* TwicketLoaderDemo.app */, - C1BDA5941C935D1100A5232C /* TwicketLoader.framework */, - ); - name = Products; - sourceTree = ""; - }; - C1BDA57C1C935CBB00A5232C /* TwicketLoaderDemo */ = { - isa = PBXGroup; - children = ( - C1BDA57D1C935CBB00A5232C /* AppDelegate.swift */, - C1BDA57F1C935CBB00A5232C /* ViewController.swift */, - C1BDA5811C935CBB00A5232C /* Main.storyboard */, - C1BDA5841C935CBB00A5232C /* Assets.xcassets */, - C1BDA5861C935CBB00A5232C /* LaunchScreen.storyboard */, - C1BDA5891C935CBB00A5232C /* Info.plist */, - ); - path = TwicketLoaderDemo; - sourceTree = ""; - }; - C1BDA5951C935D1100A5232C /* TwicketLoader */ = { - isa = PBXGroup; - children = ( - C1BDA5A11C935D2300A5232C /* TwicketLoader.swift */, - C1BDA5A31C935DB500A5232C /* UIViewFrameExtension.swift */, - C1BDA5961C935D1100A5232C /* TwicketLoader.h */, - C1BDA5981C935D1100A5232C /* Info.plist */, - ); - path = TwicketLoader; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - C1BDA5911C935D1100A5232C /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - C1BDA5971C935D1100A5232C /* TwicketLoader.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - C1BDA5791C935CBB00A5232C /* TwicketLoaderDemo */ = { - isa = PBXNativeTarget; - buildConfigurationList = C1BDA58C1C935CBB00A5232C /* Build configuration list for PBXNativeTarget "TwicketLoaderDemo" */; - buildPhases = ( - C1BDA5761C935CBB00A5232C /* Sources */, - C1BDA5771C935CBB00A5232C /* Frameworks */, - C1BDA5781C935CBB00A5232C /* Resources */, - C1BDA5A01C935D1100A5232C /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - C1BDA59A1C935D1100A5232C /* PBXTargetDependency */, - ); - name = TwicketLoaderDemo; - productName = TwicketLoaderDemo; - productReference = C1BDA57A1C935CBB00A5232C /* TwicketLoaderDemo.app */; - productType = "com.apple.product-type.application"; - }; - C1BDA5931C935D1100A5232C /* TwicketLoader */ = { - isa = PBXNativeTarget; - buildConfigurationList = C1BDA59F1C935D1100A5232C /* Build configuration list for PBXNativeTarget "TwicketLoader" */; - buildPhases = ( - C1BDA58F1C935D1100A5232C /* Sources */, - C1BDA5901C935D1100A5232C /* Frameworks */, - C1BDA5911C935D1100A5232C /* Headers */, - C1BDA5921C935D1100A5232C /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = TwicketLoader; - productName = TwicketLoader; - productReference = C1BDA5941C935D1100A5232C /* TwicketLoader.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - C1BDA5721C935CBB00A5232C /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0720; - LastUpgradeCheck = 0800; - ORGANIZATIONNAME = "Pol Quintana"; - TargetAttributes = { - C1BDA5791C935CBB00A5232C = { - CreatedOnToolsVersion = 7.2.1; - LastSwiftMigration = 0800; - }; - C1BDA5931C935D1100A5232C = { - CreatedOnToolsVersion = 7.2.1; - LastSwiftMigration = 0800; - }; - }; - }; - buildConfigurationList = C1BDA5751C935CBB00A5232C /* Build configuration list for PBXProject "TwicketLoaderDemo" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = C1BDA5711C935CBB00A5232C; - productRefGroup = C1BDA57B1C935CBB00A5232C /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - C1BDA5791C935CBB00A5232C /* TwicketLoaderDemo */, - C1BDA5931C935D1100A5232C /* TwicketLoader */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - C1BDA5781C935CBB00A5232C /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - C1BDA5881C935CBB00A5232C /* LaunchScreen.storyboard in Resources */, - C1BDA5851C935CBB00A5232C /* Assets.xcassets in Resources */, - C1BDA5831C935CBB00A5232C /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C1BDA5921C935D1100A5232C /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - C1BDA5761C935CBB00A5232C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - C1BDA5801C935CBB00A5232C /* ViewController.swift in Sources */, - C1BDA57E1C935CBB00A5232C /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C1BDA58F1C935D1100A5232C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - C1BDA5A41C935DB500A5232C /* UIViewFrameExtension.swift in Sources */, - C1BDA5A21C935D2300A5232C /* TwicketLoader.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - C1BDA59A1C935D1100A5232C /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = C1BDA5931C935D1100A5232C /* TwicketLoader */; - targetProxy = C1BDA5991C935D1100A5232C /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - C1BDA5811C935CBB00A5232C /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - C1BDA5821C935CBB00A5232C /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - C1BDA5861C935CBB00A5232C /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - C1BDA5871C935CBB00A5232C /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - C1BDA58A1C935CBB00A5232C /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.2; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - C1BDA58B1C935CBB00A5232C /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.2; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - C1BDA58D1C935CBB00A5232C /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = TwicketLoaderDemo/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = Twicket.TwicketLoaderDemo; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; - }; - name = Debug; - }; - C1BDA58E1C935CBB00A5232C /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = TwicketLoaderDemo/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = Twicket.TwicketLoaderDemo; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; - }; - name = Release; - }; - C1BDA59D1C935D1100A5232C /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = TwicketLoader/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = Twicket.TwicketLoader; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - C1BDA59E1C935D1100A5232C /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = TwicketLoader/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = Twicket.TwicketLoader; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - SWIFT_VERSION = 3.0; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - C1BDA5751C935CBB00A5232C /* Build configuration list for PBXProject "TwicketLoaderDemo" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C1BDA58A1C935CBB00A5232C /* Debug */, - C1BDA58B1C935CBB00A5232C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - C1BDA58C1C935CBB00A5232C /* Build configuration list for PBXNativeTarget "TwicketLoaderDemo" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C1BDA58D1C935CBB00A5232C /* Debug */, - C1BDA58E1C935CBB00A5232C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - C1BDA59F1C935D1100A5232C /* Build configuration list for PBXNativeTarget "TwicketLoader" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C1BDA59D1C935D1100A5232C /* Debug */, - C1BDA59E1C935D1100A5232C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = C1BDA5721C935CBB00A5232C /* Project object */; -} diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 3fadf17..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/xcshareddata/xcschemes/TwicketLoader.xcscheme b/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/xcshareddata/xcschemes/TwicketLoader.xcscheme deleted file mode 100644 index 44e9a4c..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo.xcodeproj/xcshareddata/xcschemes/TwicketLoader.xcscheme +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/AppDelegate.swift b/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/AppDelegate.swift deleted file mode 100644 index b36134d..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/AppDelegate.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// TwicketLoaderDemo -// -// Created by Pol Quintana on 11/03/16. -// Copyright © 2016 Pol Quintana. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - private func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { - // Override point for customization after application launch. - 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 throttle down OpenGL ES frame rates. 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 inactive 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/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Assets.xcassets/AppIcon.appiconset/Contents.json b/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 36d2c80..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "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" : "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Base.lproj/LaunchScreen.storyboard b/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 2e721e1..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Base.lproj/Main.storyboard b/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Base.lproj/Main.storyboard deleted file mode 100644 index 3a2a49b..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Base.lproj/Main.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Info.plist b/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Info.plist deleted file mode 100644 index 40c6215..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/Info.plist +++ /dev/null @@ -1,47 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/ViewController.swift b/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/ViewController.swift deleted file mode 100644 index e09c086..0000000 --- a/Carthage/Checkouts/TwicketLoader/TwicketLoaderDemo/ViewController.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// ViewController.swift -// TwicketLoaderDemo -// -// Created by Pol Quintana on 11/03/16. -// Copyright © 2016 Pol Quintana. All rights reserved. -// - -import UIKit -import TwicketLoader - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view, typically from a nib. - let loader = TwicketLoader.createLoader(in: view) - loader.showLoader() - } - - override func didReceiveMemoryWarning() { - super.didReceiveMemoryWarning() - // Dispose of any resources that can be recreated. - } -} diff --git a/TwitterAuth/Source/TwitterAuth.swift b/TwitterAuth/Source/TwitterAuth.swift index 6f46e68..2210a72 100644 --- a/TwitterAuth/Source/TwitterAuth.swift +++ b/TwitterAuth/Source/TwitterAuth.swift @@ -9,7 +9,6 @@ import Foundation import Accounts import UIKit -import TwicketLoader public typealias TwitterAuthCompletion = (_ result: TwitterAuthResult?, _ error: TwitterAuthError?) -> () public typealias TwitterAuthErrorCompletion = (_ error: TwitterAuthError?) -> () @@ -72,11 +71,8 @@ public class TwitterAuth { } public func presentWebLogin(fromViewController viewController: UIViewController) { - let loader = TwicketLoader.createLoader(in: viewController.view) - loader.showLoader() apiManager.obtainRequestToken(callback: callbackStringURL) { token, error in Threading.executeOnMainThread { - loader.removeLoader() guard let token = token else { self.notifyWebLoginError(error ?? .unknown) return diff --git a/TwitterAuthDemo.xcodeproj/project.pbxproj b/TwitterAuthDemo.xcodeproj/project.pbxproj index 9c86fc7..d9e44f0 100644 --- a/TwitterAuthDemo.xcodeproj/project.pbxproj +++ b/TwitterAuthDemo.xcodeproj/project.pbxproj @@ -27,9 +27,6 @@ C1129BE71C8F89B5007CE8D7 /* SignedRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1129BDA1C8F89B5007CE8D7 /* SignedRequest.swift */; }; C1129BE81C8F89B5007CE8D7 /* Threading.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1129BDB1C8F89B5007CE8D7 /* Threading.swift */; }; C1129BEB1C8F8D5B007CE8D7 /* WebManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1129BEA1C8F8D5B007CE8D7 /* WebManager.swift */; }; - C1C617D11C95D4640084FF33 /* TwicketLoader.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C1BDA5A51C935F7200A5232C /* TwicketLoader.framework */; }; - C1C617D31C95D4880084FF33 /* TwicketLoader.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C1BDA5A51C935F7200A5232C /* TwicketLoader.framework */; }; - C1C617D41C95D4880084FF33 /* TwicketLoader.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C1BDA5A51C935F7200A5232C /* TwicketLoader.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; C1E4047B1C90DB9200D50166 /* TwitterAuthStructs.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1E4047A1C90DB9200D50166 /* TwitterAuthStructs.swift */; }; /* End PBXBuildFile section */ @@ -65,7 +62,6 @@ dstSubfolderSpec = 10; files = ( C1129BC51C8F88B8007CE8D7 /* TwitterAuth.framework in Embed Frameworks */, - C1C617D41C95D4880084FF33 /* TwicketLoader.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -98,7 +94,6 @@ C1129BDA1C8F89B5007CE8D7 /* SignedRequest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SignedRequest.swift; sourceTree = ""; }; C1129BDB1C8F89B5007CE8D7 /* Threading.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Threading.swift; sourceTree = ""; }; C1129BEA1C8F8D5B007CE8D7 /* WebManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WebManager.swift; sourceTree = ""; }; - C1BDA5A51C935F7200A5232C /* TwicketLoader.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = TwicketLoader.framework; path = Carthage/Build/iOS/TwicketLoader.framework; sourceTree = ""; }; C1E4047A1C90DB9200D50166 /* TwitterAuthStructs.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TwitterAuthStructs.swift; sourceTree = ""; }; /* End PBXFileReference section */ @@ -108,7 +103,6 @@ buildActionMask = 2147483647; files = ( C1129BC41C8F88B8007CE8D7 /* TwitterAuth.framework in Frameworks */, - C1C617D31C95D4880084FF33 /* TwicketLoader.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -116,7 +110,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - C1C617D11C95D4640084FF33 /* TwicketLoader.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -134,7 +127,6 @@ C1129B8C1C8F8885007CE8D7 = { isa = PBXGroup; children = ( - C1BDA5A51C935F7200A5232C /* TwicketLoader.framework */, C1129B971C8F8885007CE8D7 /* TwitterAuthDemo */, C1129BB01C8F88B8007CE8D7 /* TwitterAuth */, C1129BBE1C8F88B8007CE8D7 /* TwitterAuthTests */,