From 165d02e7553ab187d58d0bb3c5e478ee77d3cc58 Mon Sep 17 00:00:00 2001 From: Ross Butler Date: Mon, 17 Jul 2017 18:09:58 +0100 Subject: [PATCH] Release 0.0.1. --- .gitignore | 33 + .travis.yml | 14 + Connectivity.png | Bin 0 -> 12363 bytes Connectivity.podspec | 42 + Connectivity/Assets/.gitkeep | 0 Connectivity/Classes/.gitkeep | 0 Connectivity/Classes/Connectivity.swift | 209 +++++ Connectivity/Classes/Reachability/LICENSE.txt | 42 + .../Classes/Reachability/Reachability.h | 64 ++ .../Classes/Reachability/Reachability.m | 242 ++++++ .../Connectivity.xcodeproj/project.pbxproj | 591 ++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcschemes/Connectivity-Example.xcscheme | 115 +++ .../contents.xcworkspacedata | 10 + Example/Connectivity/AppDelegate.swift | 46 ++ .../Connectivity/Base.lproj/LaunchScreen.xib | 41 + .../Connectivity/Base.lproj/Main.storyboard | 25 + .../AppIcon.appiconset/Contents.json | 38 + Example/Connectivity/Info.plist | 39 + Example/Connectivity/ViewController.swift | 24 + Example/Podfile | 11 + Example/Podfile.lock | 16 + .../Local Podspecs/Connectivity.podspec.json | 22 + Example/Pods/Manifest.lock | 16 + Example/Pods/Pods.xcodeproj/project.pbxproj | 748 ++++++++++++++++++ .../Connectivity/Connectivity-dummy.m | 5 + .../Connectivity/Connectivity-prefix.pch | 11 + .../Connectivity/Connectivity-umbrella.h | 14 + .../Connectivity/Connectivity.modulemap | 6 + .../Connectivity/Connectivity.xcconfig | 10 + .../Connectivity/Info.plist | 26 + .../Pods-Connectivity_Example/Info.plist | 26 + ...ectivity_Example-acknowledgements.markdown | 26 + ...onnectivity_Example-acknowledgements.plist | 58 ++ .../Pods-Connectivity_Example-dummy.m | 5 + .../Pods-Connectivity_Example-frameworks.sh | 99 +++ .../Pods-Connectivity_Example-resources.sh | 102 +++ .../Pods-Connectivity_Example-umbrella.h | 16 + .../Pods-Connectivity_Example.debug.xcconfig | 11 + .../Pods-Connectivity_Example.modulemap | 6 + ...Pods-Connectivity_Example.release.xcconfig | 11 + .../Pods-Connectivity_Tests/Info.plist | 26 + ...nnectivity_Tests-acknowledgements.markdown | 3 + ...-Connectivity_Tests-acknowledgements.plist | 29 + .../Pods-Connectivity_Tests-dummy.m | 5 + .../Pods-Connectivity_Tests-frameworks.sh | 92 +++ .../Pods-Connectivity_Tests-resources.sh | 102 +++ .../Pods-Connectivity_Tests-umbrella.h | 16 + .../Pods-Connectivity_Tests.debug.xcconfig | 8 + .../Pods-Connectivity_Tests.modulemap | 6 + .../Pods-Connectivity_Tests.release.xcconfig | 8 + Example/Tests/Info.plist | 24 + Example/Tests/Tests.swift | 29 + LICENSE | 19 + README.md | 36 + _Pods.xcodeproj | 1 + 56 files changed, 3231 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 Connectivity.png create mode 100644 Connectivity.podspec create mode 100644 Connectivity/Assets/.gitkeep create mode 100644 Connectivity/Classes/.gitkeep create mode 100644 Connectivity/Classes/Connectivity.swift create mode 100644 Connectivity/Classes/Reachability/LICENSE.txt create mode 100644 Connectivity/Classes/Reachability/Reachability.h create mode 100644 Connectivity/Classes/Reachability/Reachability.m create mode 100644 Example/Connectivity.xcodeproj/project.pbxproj create mode 100644 Example/Connectivity.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Example/Connectivity.xcodeproj/xcshareddata/xcschemes/Connectivity-Example.xcscheme create mode 100644 Example/Connectivity.xcworkspace/contents.xcworkspacedata create mode 100644 Example/Connectivity/AppDelegate.swift create mode 100644 Example/Connectivity/Base.lproj/LaunchScreen.xib create mode 100644 Example/Connectivity/Base.lproj/Main.storyboard create mode 100644 Example/Connectivity/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Example/Connectivity/Info.plist create mode 100644 Example/Connectivity/ViewController.swift create mode 100644 Example/Podfile create mode 100644 Example/Podfile.lock create mode 100644 Example/Pods/Local Podspecs/Connectivity.podspec.json create mode 100644 Example/Pods/Manifest.lock create mode 100644 Example/Pods/Pods.xcodeproj/project.pbxproj create mode 100644 Example/Pods/Target Support Files/Connectivity/Connectivity-dummy.m create mode 100644 Example/Pods/Target Support Files/Connectivity/Connectivity-prefix.pch create mode 100644 Example/Pods/Target Support Files/Connectivity/Connectivity-umbrella.h create mode 100644 Example/Pods/Target Support Files/Connectivity/Connectivity.modulemap create mode 100644 Example/Pods/Target Support Files/Connectivity/Connectivity.xcconfig create mode 100644 Example/Pods/Target Support Files/Connectivity/Info.plist create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Example/Info.plist create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-acknowledgements.markdown create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-acknowledgements.plist create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-dummy.m create mode 100755 Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-frameworks.sh create mode 100755 Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-resources.sh create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-umbrella.h create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.debug.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.modulemap create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.release.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Tests/Info.plist create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-acknowledgements.markdown create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-acknowledgements.plist create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-dummy.m create mode 100755 Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-frameworks.sh create mode 100755 Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-resources.sh create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-umbrella.h create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.debug.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.modulemap create mode 100644 Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.release.xcconfig create mode 100644 Example/Tests/Info.plist create mode 100644 Example/Tests/Tests.swift create mode 100644 LICENSE create mode 100644 README.md create mode 120000 _Pods.xcodeproj diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7b722d --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +# OS X +.DS_Store + +# Xcode +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata/ +*.xccheckout +profile +*.moved-aside +DerivedData +*.hmap +*.ipa + +# Bundler +.bundle + +Carthage +# 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 +# +# Note: if you ignore the Pods directory, make sure to uncomment +# `pod install` in .travis.yml +# +# Pods/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..79971bc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +# references: +# * http://www.objc.io/issue-6/travis-ci.html +# * https://github.com/supermarin/xcpretty#usage + +osx_image: xcode7.3 +language: objective-c +# cache: cocoapods +# podfile: Example/Podfile +# before_install: +# - gem install cocoapods # Since Travis is not always on latest version +# - pod install --project-directory=Example +script: +- set -o pipefail && xcodebuild test -workspace Example/Connectivity.xcworkspace -scheme Connectivity-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty +- pod lib lint diff --git a/Connectivity.png b/Connectivity.png new file mode 100644 index 0000000000000000000000000000000000000000..bfd01b1d0720839ad30cd07592a414b32f6c9c7d GIT binary patch literal 12363 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 'MIT', :file => 'LICENSE' } + s.author = { 'rwbutler' => 'github@rwbutler.com' } + s.source = { :git => 'https://github.com/rwbutler/Connectivity.git', :tag => s.version.to_s } + # s.social_media_url = 'https://twitter.com/' + + s.ios.deployment_target = '8.0' + + s.source_files = 'Connectivity/Classes/**/*' + + # s.resource_bundles = { + # 'Connectivity' => ['Connectivity/Assets/*.png'] + # } + + # s.public_header_files = 'Pod/Classes/**/*.h' + # s.frameworks = 'UIKit', 'MapKit' + # s.dependency 'AFNetworking', '~> 2.3' +end diff --git a/Connectivity/Assets/.gitkeep b/Connectivity/Assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Connectivity/Classes/.gitkeep b/Connectivity/Classes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Connectivity/Classes/Connectivity.swift b/Connectivity/Classes/Connectivity.swift new file mode 100644 index 0000000..2eab009 --- /dev/null +++ b/Connectivity/Classes/Connectivity.swift @@ -0,0 +1,209 @@ +// +// Connectivity.swift +// Connectivity +// +// Created by Ross Butler on 7/12/17. +// Copyright © 2017 Ross Butler. All rights reserved. +// + +extension Notification.Name { + static let ReachabilityDidChange = Notification.Name("kNetworkReachabilityChangedNotification") + static let ConnectivityDidChange = Notification.Name("kNetworkConnectivityChangedNotification") +} + +public class Connectivity { + public struct Percentage { + let value: Double + init?(_ value: Double) { + guard (0.0...100.0).contains(value) else { + return nil + } + self.value = value + } + } + public typealias NetworkConnected = (Connectivity) -> () + public typealias NetworkDisconnected = (Connectivity) -> () + + public private(set) var isConnected: Bool = false + public static var connectivityThreshold: Connectivity.Percentage = Connectivity.Percentage(75.0)! + public static var connectivityURLs: [URL] = { + var result: [URL] = [] + var useHTTP = false + if let bundleInfo = Bundle.main.infoDictionary, + let appTransportSecurity = bundleInfo["NSAppTransportSecurity"] as? [String: Any], + let allowsArbitraryLoads = appTransportSecurity["NSAllowsArbitraryLoads"] as? Bool { + useHTTP = allowsArbitraryLoads + } + let connectivityDomains: [String] = (useHTTP) + ? [ + "www.apple.com", + "apple.com", + "www.appleiphonecell.com", + "www.itools.info", + "www.ibook.info", + "www.airport.us", + "www.thinkdifferent.us" + ] + : [ "www.apple.com" ] // Recommended supplementing with your own URLs + let connectivityPath = "/library/test/success.html" + let httpProtocol = (useHTTP) ? "http" : "https" + for domain in connectivityDomains { + if let connectivityURL = URL(string: "\(httpProtocol)://\(domain)\(connectivityPath)") { + result.append(connectivityURL) + } + } + return result + }() + public static var urlSessionConfiguration: URLSessionConfiguration = { + let sessionConfiguration = URLSessionConfiguration.default + sessionConfiguration.timeoutIntervalForRequest = 5.0 + sessionConfiguration.timeoutIntervalForResource = 5.0 + return sessionConfiguration + }() + public var notificationCenter: NotificationCenter = NotificationCenter.default + + public enum ConnectivityStatus: CustomStringConvertible { + case notConnected, connectedViaWiFi, connectedViaWWAN, connectedViaWiFiWithoutInternet, connectedViaWWANWithoutInternet + + public var description: String { + switch self { + case .connectedViaWWAN: return "Cellular" + case .connectedViaWWANWithoutInternet: return "Cellular without Internet access" + case .connectedViaWiFi: return "WiFi" + case .connectedViaWiFiWithoutInternet: return "WiFi without Internet access" + case .notConnected: return "No Connection" + } + } + } + public var whenConnected: NetworkConnected? + public var whenDisconnected: NetworkDisconnected? + + public var currentConnectivityString: String { + return "\(currentConnectivityStatus)" + } + + public var currentConnectivityStatus: ConnectivityStatus { + if isConnectedViaWiFi { + return .connectedViaWiFi + } + if isConnectedViaWWAN + { + return .connectedViaWWAN + } + if isConnectedViaWiFiWithoutInternet { + return .connectedViaWiFiWithoutInternet + } + if isConnectedViaWWANWithoutInternet + { + return .connectedViaWWANWithoutInternet + } + return .notConnected + } + let reachability: Reachability + private static let expectedResponse = "Success" + private var timer: Timer? = nil + fileprivate var reachabilityPolling = false + public var aggressivePolling: Bool = false { + didSet { + aggressivePolling(enabled: aggressivePolling) + } + } + + public func aggressivePolling(enabled: Bool) { + if #available(iOS 10.0, *) { + timer?.invalidate() + if aggressivePolling && reachabilityPolling { + timer = Timer.scheduledTimer(withTimeInterval: 5.0, repeats: true, block: { timer in + self.performConnectivityChecks() + }) + } + } + } + + public init() { + reachability = Reachability.forInternetConnection() + performConnectivityChecks() + } + + public func performConnectivityChecks() { + let connectivityURLs = type(of: self).connectivityURLs + let connectivityDomainCount: Double = Double(connectivityURLs.count) + var successfulConnectivityChecks: Double = 0 + var failedConnectivityChecks: Double = 0 + + for connectivityURL in connectivityURLs { + let urlSession = URLSession(configuration: type(of: self).urlSessionConfiguration) + let task = urlSession.dataTask(with: connectivityURL, completionHandler: { [weak self] (data, response, error) in + guard let strongSelf = self else { + return + } + if let data = data, + let responseString = String(data: data, encoding: .utf8), + responseString.contains(type(of: strongSelf).expectedResponse) { + successfulConnectivityChecks += 1 + } else { + failedConnectivityChecks += 1 + } + + if connectivityDomainCount == (successfulConnectivityChecks + failedConnectivityChecks) { + let percentageSuccessful = (successfulConnectivityChecks / connectivityDomainCount) * 100.0 + strongSelf.isConnected = (percentageSuccessful >= type(of: strongSelf).connectivityThreshold.value) + ? true : false + unowned let unownedSelf = strongSelf // Caller responsible for maintaining the reference + strongSelf.notificationCenter.post(name: .ConnectivityDidChange, object: unownedSelf) + DispatchQueue.main.async { + let callback = strongSelf.isConnected ? strongSelf.whenConnected : strongSelf.whenDisconnected + callback?(unownedSelf) + } + } + }) + task.resume() + } + } + + @objc fileprivate func reachabilityDidChange(_ notification: NSNotification) { + performConnectivityChecks() + } + + deinit { + stopNotifier() + } +} + +public extension Connectivity { + var isConnectedViaWWAN: Bool { + return isConnected && reachability.currentReachabilityStatus() == ReachableViaWWAN + } + + var isConnectedViaWiFi: Bool { + return isConnected && reachability.currentReachabilityStatus() == ReachableViaWiFi + } + + var isConnectedViaWWANWithoutInternet: Bool { + return reachability.currentReachabilityStatus() == ReachableViaWWAN + } + + var isConnectedViaWiFiWithoutInternet: Bool { + return reachability.currentReachabilityStatus() == ReachableViaWiFi + } + + var description: String { + return "\(reachability.description)" + } + + func startNotifier() { + reachability.startNotifier() + reachabilityPolling = true + aggressivePolling(enabled: aggressivePolling) + NotificationCenter.default.addObserver(self, + selector: #selector(reachabilityDidChange(_:)), + name: NSNotification.Name.ReachabilityDidChange, + object: nil) + } + + func stopNotifier() { + reachability.stopNotifier() + reachabilityPolling = false + notificationCenter.removeObserver(self) + } +} diff --git a/Connectivity/Classes/Reachability/LICENSE.txt b/Connectivity/Classes/Reachability/LICENSE.txt new file mode 100644 index 0000000..d784f0b --- /dev/null +++ b/Connectivity/Classes/Reachability/LICENSE.txt @@ -0,0 +1,42 @@ +Sample code project: Reachability +Version: 5.0 + +IMPORTANT: This Apple software is supplied to you by Apple +Inc. ("Apple") in consideration of your agreement to the following +terms, and your use, installation, modification or redistribution of +this Apple software constitutes acceptance of these terms. If you do +not agree with these terms, please do not use, install, modify or +redistribute this Apple software. + +In consideration of your agreement to abide by the following terms, and +subject to these terms, Apple grants you a personal, non-exclusive +license, under Apple's copyrights in this original Apple software (the +"Apple Software"), to use, reproduce, modify and redistribute the Apple +Software, with or without modifications, in source and/or binary forms; +provided that if you redistribute the Apple Software in its entirety and +without modifications, you must retain this notice and the following +text and disclaimers in all such redistributions of the Apple Software. +Neither the name, trademarks, service marks or logos of Apple Inc. may +be used to endorse or promote products derived from the Apple Software +without specific prior written permission from Apple. Except as +expressly stated in this notice, no other rights or licenses, express or +implied, are granted by Apple herein, including but not limited to any +patent rights that may be infringed by your derivative works or by other +works in which the Apple Software may be incorporated. + +The Apple Software is provided by Apple on an "AS IS" basis. APPLE +MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION +THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND +OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS. + +IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL +OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, +MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED +AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), +STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +Copyright (C) 2016 Apple Inc. All Rights Reserved. diff --git a/Connectivity/Classes/Reachability/Reachability.h b/Connectivity/Classes/Reachability/Reachability.h new file mode 100644 index 0000000..50c048c --- /dev/null +++ b/Connectivity/Classes/Reachability/Reachability.h @@ -0,0 +1,64 @@ +/* + Copyright (C) 2016 Apple Inc. All Rights Reserved. + See LICENSE.txt for this sample’s licensing information + + Abstract: + Basic demonstration of how to use the SystemConfiguration Reachablity APIs. + */ + +#import +#import +#import + + +typedef enum : NSInteger { + NotReachable = 0, + ReachableViaWiFi, + ReachableViaWWAN +} NetworkStatus; + +#pragma mark IPv6 Support +//Reachability fully support IPv6. For full details, see ReadMe.md. + + +extern NSString *kReachabilityChangedNotification; + + +@interface Reachability : NSObject + +/*! + * Use to check the reachability of a given host name. + */ ++ (instancetype)reachabilityWithHostName:(NSString *)hostName; + +/*! + * Use to check the reachability of a given IP address. + */ ++ (instancetype)reachabilityWithAddress:(const struct sockaddr *)hostAddress; + +/*! + * Checks whether the default route is available. Should be used by applications that do not connect to a particular host. + */ ++ (instancetype)reachabilityForInternetConnection; + + +#pragma mark reachabilityForLocalWiFi +//reachabilityForLocalWiFi has been removed from the sample. See ReadMe.md for more information. +//+ (instancetype)reachabilityForLocalWiFi; + +/*! + * Start listening for reachability notifications on the current run loop. + */ +- (BOOL)startNotifier; +- (void)stopNotifier; + +- (NetworkStatus)currentReachabilityStatus; + +/*! + * WWAN may be available, but not active until a connection has been established. WiFi may require a connection for VPN on Demand. + */ +- (BOOL)connectionRequired; + +@end + + diff --git a/Connectivity/Classes/Reachability/Reachability.m b/Connectivity/Classes/Reachability/Reachability.m new file mode 100644 index 0000000..f081a16 --- /dev/null +++ b/Connectivity/Classes/Reachability/Reachability.m @@ -0,0 +1,242 @@ +/* + Copyright (C) 2016 Apple Inc. All Rights Reserved. + See LICENSE.txt for this sample’s licensing information + + Abstract: + Basic demonstration of how to use the SystemConfiguration Reachablity APIs. + */ + +#import +#import +#import +#import +#import + +#import + +#import "Reachability.h" + +#pragma mark IPv6 Support +//Reachability fully support IPv6. For full details, see ReadMe.md. + + +NSString *kReachabilityChangedNotification = @"kNetworkReachabilityChangedNotification"; + + +#pragma mark - Supporting functions + +#define kShouldPrintReachabilityFlags 1 + +static void PrintReachabilityFlags(SCNetworkReachabilityFlags flags, const char* comment) +{ +#if kShouldPrintReachabilityFlags + + NSLog(@"Reachability Flag Status: %c%c %c%c%c%c%c%c%c %s\n", + (flags & kSCNetworkReachabilityFlagsIsWWAN) ? 'W' : '-', + (flags & kSCNetworkReachabilityFlagsReachable) ? 'R' : '-', + + (flags & kSCNetworkReachabilityFlagsTransientConnection) ? 't' : '-', + (flags & kSCNetworkReachabilityFlagsConnectionRequired) ? 'c' : '-', + (flags & kSCNetworkReachabilityFlagsConnectionOnTraffic) ? 'C' : '-', + (flags & kSCNetworkReachabilityFlagsInterventionRequired) ? 'i' : '-', + (flags & kSCNetworkReachabilityFlagsConnectionOnDemand) ? 'D' : '-', + (flags & kSCNetworkReachabilityFlagsIsLocalAddress) ? 'l' : '-', + (flags & kSCNetworkReachabilityFlagsIsDirect) ? 'd' : '-', + comment + ); +#endif +} + + +static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReachabilityFlags flags, void* info) +{ +#pragma unused (target, flags) + NSCAssert(info != NULL, @"info was NULL in ReachabilityCallback"); + NSCAssert([(__bridge NSObject*) info isKindOfClass: [Reachability class]], @"info was wrong class in ReachabilityCallback"); + + Reachability* noteObject = (__bridge Reachability *)info; + // Post a notification to notify the client that the network reachability changed. + [[NSNotificationCenter defaultCenter] postNotificationName: kReachabilityChangedNotification object: noteObject]; +} + + +#pragma mark - Reachability implementation + +@implementation Reachability +{ + SCNetworkReachabilityRef _reachabilityRef; +} + ++ (instancetype)reachabilityWithHostName:(NSString *)hostName +{ + Reachability* returnValue = NULL; + SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithName(NULL, [hostName UTF8String]); + if (reachability != NULL) + { + returnValue= [[self alloc] init]; + if (returnValue != NULL) + { + returnValue->_reachabilityRef = reachability; + } + else { + CFRelease(reachability); + } + } + return returnValue; +} + + ++ (instancetype)reachabilityWithAddress:(const struct sockaddr *)hostAddress +{ + SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithAddress(kCFAllocatorDefault, hostAddress); + + Reachability* returnValue = NULL; + + if (reachability != NULL) + { + returnValue = [[self alloc] init]; + if (returnValue != NULL) + { + returnValue->_reachabilityRef = reachability; + } + else { + CFRelease(reachability); + } + } + return returnValue; +} + + ++ (instancetype)reachabilityForInternetConnection +{ + struct sockaddr_in zeroAddress; + bzero(&zeroAddress, sizeof(zeroAddress)); + zeroAddress.sin_len = sizeof(zeroAddress); + zeroAddress.sin_family = AF_INET; + + return [self reachabilityWithAddress: (const struct sockaddr *) &zeroAddress]; +} + +#pragma mark reachabilityForLocalWiFi +//reachabilityForLocalWiFi has been removed from the sample. See ReadMe.md for more information. +//+ (instancetype)reachabilityForLocalWiFi + + + +#pragma mark - Start and stop notifier + +- (BOOL)startNotifier +{ + BOOL returnValue = NO; + SCNetworkReachabilityContext context = {0, (__bridge void *)(self), NULL, NULL, NULL}; + + if (SCNetworkReachabilitySetCallback(_reachabilityRef, ReachabilityCallback, &context)) + { + if (SCNetworkReachabilityScheduleWithRunLoop(_reachabilityRef, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode)) + { + returnValue = YES; + } + } + + return returnValue; +} + + +- (void)stopNotifier +{ + if (_reachabilityRef != NULL) + { + SCNetworkReachabilityUnscheduleFromRunLoop(_reachabilityRef, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode); + } +} + + +- (void)dealloc +{ + [self stopNotifier]; + if (_reachabilityRef != NULL) + { + CFRelease(_reachabilityRef); + } +} + + +#pragma mark - Network Flag Handling + +- (NetworkStatus)networkStatusForFlags:(SCNetworkReachabilityFlags)flags +{ + PrintReachabilityFlags(flags, "networkStatusForFlags"); + if ((flags & kSCNetworkReachabilityFlagsReachable) == 0) + { + // The target host is not reachable. + return NotReachable; + } + + NetworkStatus returnValue = NotReachable; + + if ((flags & kSCNetworkReachabilityFlagsConnectionRequired) == 0) + { + /* + If the target host is reachable and no connection is required then we'll assume (for now) that you're on Wi-Fi... + */ + returnValue = ReachableViaWiFi; + } + + if ((((flags & kSCNetworkReachabilityFlagsConnectionOnDemand ) != 0) || + (flags & kSCNetworkReachabilityFlagsConnectionOnTraffic) != 0)) + { + /* + ... and the connection is on-demand (or on-traffic) if the calling application is using the CFSocketStream or higher APIs... + */ + + if ((flags & kSCNetworkReachabilityFlagsInterventionRequired) == 0) + { + /* + ... and no [user] intervention is needed... + */ + returnValue = ReachableViaWiFi; + } + } + + if ((flags & kSCNetworkReachabilityFlagsIsWWAN) == kSCNetworkReachabilityFlagsIsWWAN) + { + /* + ... but WWAN connections are OK if the calling application is using the CFNetwork APIs. + */ + returnValue = ReachableViaWWAN; + } + + return returnValue; +} + + +- (BOOL)connectionRequired +{ + NSAssert(_reachabilityRef != NULL, @"connectionRequired called with NULL reachabilityRef"); + SCNetworkReachabilityFlags flags; + + if (SCNetworkReachabilityGetFlags(_reachabilityRef, &flags)) + { + return (flags & kSCNetworkReachabilityFlagsConnectionRequired); + } + + return NO; +} + + +- (NetworkStatus)currentReachabilityStatus +{ + NSAssert(_reachabilityRef != NULL, @"currentNetworkStatus called with NULL SCNetworkReachabilityRef"); + NetworkStatus returnValue = NotReachable; + SCNetworkReachabilityFlags flags; + + if (SCNetworkReachabilityGetFlags(_reachabilityRef, &flags)) + { + returnValue = [self networkStatusForFlags:flags]; + } + + return returnValue; +} + + +@end diff --git a/Example/Connectivity.xcodeproj/project.pbxproj b/Example/Connectivity.xcodeproj/project.pbxproj new file mode 100644 index 0000000..0a95bcb --- /dev/null +++ b/Example/Connectivity.xcodeproj/project.pbxproj @@ -0,0 +1,591 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 4992400D384F73130F10F078 /* Pods_Connectivity_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C9101FE1CB42B71A47A459A9 /* Pods_Connectivity_Tests.framework */; }; + 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; + 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; + 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; + 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; + 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; + 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; + B5AE95FBAF83E86E09C71F53 /* Pods_Connectivity_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 69CC3C92548787468F0C65E3 /* Pods_Connectivity_Example.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 607FACC81AFB9204008FA782 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 607FACCF1AFB9204008FA782; + remoteInfo = Connectivity; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 15F577975F24E6EC59A4D7E2 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; name = README.md; path = ../README.md; sourceTree = ""; }; + 1A67A15C226AE5041C7BBBBC /* Pods-Connectivity_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Connectivity_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.debug.xcconfig"; sourceTree = ""; }; + 59AC20C4169D5C969777DC33 /* Pods-Connectivity_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Connectivity_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.release.xcconfig"; sourceTree = ""; }; + 607FACD01AFB9204008FA782 /* Connectivity_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Connectivity_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; + 607FACE51AFB9204008FA782 /* Connectivity_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Connectivity_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; + 69CC3C92548787468F0C65E3 /* Pods_Connectivity_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Connectivity_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 6D2EC5685A21E721BE90F9DC /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; + 7834EB795119690B628EF770 /* Pods-Connectivity_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Connectivity_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.debug.xcconfig"; sourceTree = ""; }; + AE8026CB81F7E1D74EB3EEDF /* Pods-Connectivity_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Connectivity_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.release.xcconfig"; sourceTree = ""; }; + C9101FE1CB42B71A47A459A9 /* Pods_Connectivity_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Connectivity_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + D4A64AA190C10F19094EC842 /* Connectivity.podspec */ = {isa = PBXFileReference; includeInIndex = 1; name = Connectivity.podspec; path = ../Connectivity.podspec; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 607FACCD1AFB9204008FA782 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + B5AE95FBAF83E86E09C71F53 /* Pods_Connectivity_Example.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE21AFB9204008FA782 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4992400D384F73130F10F078 /* Pods_Connectivity_Tests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 35AD42983D257CA6A2F53909 /* Pods */ = { + isa = PBXGroup; + children = ( + 7834EB795119690B628EF770 /* Pods-Connectivity_Example.debug.xcconfig */, + 59AC20C4169D5C969777DC33 /* Pods-Connectivity_Example.release.xcconfig */, + 1A67A15C226AE5041C7BBBBC /* Pods-Connectivity_Tests.debug.xcconfig */, + AE8026CB81F7E1D74EB3EEDF /* Pods-Connectivity_Tests.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + 607FACC71AFB9204008FA782 = { + isa = PBXGroup; + children = ( + 607FACF51AFB993E008FA782 /* Podspec Metadata */, + 607FACD21AFB9204008FA782 /* Example for Connectivity */, + 607FACE81AFB9204008FA782 /* Tests */, + 607FACD11AFB9204008FA782 /* Products */, + 35AD42983D257CA6A2F53909 /* Pods */, + A8CA67091073AD9C029746CF /* Frameworks */, + ); + sourceTree = ""; + }; + 607FACD11AFB9204008FA782 /* Products */ = { + isa = PBXGroup; + children = ( + 607FACD01AFB9204008FA782 /* Connectivity_Example.app */, + 607FACE51AFB9204008FA782 /* Connectivity_Tests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 607FACD21AFB9204008FA782 /* Example for Connectivity */ = { + isa = PBXGroup; + children = ( + 607FACD51AFB9204008FA782 /* AppDelegate.swift */, + 607FACD71AFB9204008FA782 /* ViewController.swift */, + 607FACD91AFB9204008FA782 /* Main.storyboard */, + 607FACDC1AFB9204008FA782 /* Images.xcassets */, + 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, + 607FACD31AFB9204008FA782 /* Supporting Files */, + ); + name = "Example for Connectivity"; + path = Connectivity; + sourceTree = ""; + }; + 607FACD31AFB9204008FA782 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 607FACD41AFB9204008FA782 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 607FACE81AFB9204008FA782 /* Tests */ = { + isa = PBXGroup; + children = ( + 607FACEB1AFB9204008FA782 /* Tests.swift */, + 607FACE91AFB9204008FA782 /* Supporting Files */, + ); + path = Tests; + sourceTree = ""; + }; + 607FACE91AFB9204008FA782 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 607FACEA1AFB9204008FA782 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { + isa = PBXGroup; + children = ( + D4A64AA190C10F19094EC842 /* Connectivity.podspec */, + 15F577975F24E6EC59A4D7E2 /* README.md */, + 6D2EC5685A21E721BE90F9DC /* LICENSE */, + ); + name = "Podspec Metadata"; + sourceTree = ""; + }; + A8CA67091073AD9C029746CF /* Frameworks */ = { + isa = PBXGroup; + children = ( + 69CC3C92548787468F0C65E3 /* Pods_Connectivity_Example.framework */, + C9101FE1CB42B71A47A459A9 /* Pods_Connectivity_Tests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 607FACCF1AFB9204008FA782 /* Connectivity_Example */ = { + isa = PBXNativeTarget; + buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Connectivity_Example" */; + buildPhases = ( + A7532169CCE6A976C11858A9 /* [CP] Check Pods Manifest.lock */, + 607FACCC1AFB9204008FA782 /* Sources */, + 607FACCD1AFB9204008FA782 /* Frameworks */, + 607FACCE1AFB9204008FA782 /* Resources */, + F304913DAEDE2BBD64E7E7B8 /* [CP] Embed Pods Frameworks */, + 0EBABFD64F44C3114DE70003 /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Connectivity_Example; + productName = Connectivity; + productReference = 607FACD01AFB9204008FA782 /* Connectivity_Example.app */; + productType = "com.apple.product-type.application"; + }; + 607FACE41AFB9204008FA782 /* Connectivity_Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Connectivity_Tests" */; + buildPhases = ( + 47431E572076189799EF7970 /* [CP] Check Pods Manifest.lock */, + 607FACE11AFB9204008FA782 /* Sources */, + 607FACE21AFB9204008FA782 /* Frameworks */, + 607FACE31AFB9204008FA782 /* Resources */, + 0019390127BC80CE65799CA8 /* [CP] Embed Pods Frameworks */, + 79694C28DF13A1FC5C1BCA56 /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + 607FACE71AFB9204008FA782 /* PBXTargetDependency */, + ); + name = Connectivity_Tests; + productName = Tests; + productReference = 607FACE51AFB9204008FA782 /* Connectivity_Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 607FACC81AFB9204008FA782 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0720; + LastUpgradeCheck = 0820; + ORGANIZATIONNAME = CocoaPods; + TargetAttributes = { + 607FACCF1AFB9204008FA782 = { + CreatedOnToolsVersion = 6.3.1; + LastSwiftMigration = 0820; + }; + 607FACE41AFB9204008FA782 = { + CreatedOnToolsVersion = 6.3.1; + LastSwiftMigration = 0820; + TestTargetID = 607FACCF1AFB9204008FA782; + }; + }; + }; + buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "Connectivity" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 607FACC71AFB9204008FA782; + productRefGroup = 607FACD11AFB9204008FA782 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 607FACCF1AFB9204008FA782 /* Connectivity_Example */, + 607FACE41AFB9204008FA782 /* Connectivity_Tests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 607FACCE1AFB9204008FA782 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, + 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, + 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE31AFB9204008FA782 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 0019390127BC80CE65799CA8 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 0EBABFD64F44C3114DE70003 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 47431E572076189799EF7970 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + 79694C28DF13A1FC5C1BCA56 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + A7532169CCE6A976C11858A9 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + F304913DAEDE2BBD64E7E7B8 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 607FACCC1AFB9204008FA782 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, + 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE11AFB9204008FA782 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 607FACCF1AFB9204008FA782 /* Connectivity_Example */; + targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 607FACD91AFB9204008FA782 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 607FACDA1AFB9204008FA782 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { + isa = PBXVariantGroup; + children = ( + 607FACDF1AFB9204008FA782 /* Base */, + ); + name = LaunchScreen.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 607FACED1AFB9204008FA782 /* 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-with-dsym"; + 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_SYMBOLS_PRIVATE_EXTERN = NO; + 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 = 8.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 607FACEE1AFB9204008FA782 /* 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 = 8.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 607FACF01AFB9204008FA782 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7834EB795119690B628EF770 /* Pods-Connectivity_Example.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = Connectivity/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + 607FACF11AFB9204008FA782 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 59AC20C4169D5C969777DC33 /* Pods-Connectivity_Example.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = Connectivity/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; + 607FACF31AFB9204008FA782 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 1A67A15C226AE5041C7BBBBC /* Pods-Connectivity_Tests.debug.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = Tests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + 607FACF41AFB9204008FA782 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = AE8026CB81F7E1D74EB3EEDF /* Pods-Connectivity_Tests.release.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + INFOPLIST_FILE = Tests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "Connectivity" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACED1AFB9204008FA782 /* Debug */, + 607FACEE1AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Connectivity_Example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACF01AFB9204008FA782 /* Debug */, + 607FACF11AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Connectivity_Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACF31AFB9204008FA782 /* Debug */, + 607FACF41AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 607FACC81AFB9204008FA782 /* Project object */; +} diff --git a/Example/Connectivity.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/Connectivity.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..d8a8339 --- /dev/null +++ b/Example/Connectivity.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example/Connectivity.xcodeproj/xcshareddata/xcschemes/Connectivity-Example.xcscheme b/Example/Connectivity.xcodeproj/xcshareddata/xcschemes/Connectivity-Example.xcscheme new file mode 100644 index 0000000..3add800 --- /dev/null +++ b/Example/Connectivity.xcodeproj/xcshareddata/xcschemes/Connectivity-Example.xcscheme @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Connectivity.xcworkspace/contents.xcworkspacedata b/Example/Connectivity.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..c796b2a --- /dev/null +++ b/Example/Connectivity.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Example/Connectivity/AppDelegate.swift b/Example/Connectivity/AppDelegate.swift new file mode 100644 index 0000000..63407e7 --- /dev/null +++ b/Example/Connectivity/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// Connectivity +// +// Created by Ross Butler on 07/15/2017. +// Copyright (c) 2017 Ross Butler. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> 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/Example/Connectivity/Base.lproj/LaunchScreen.xib b/Example/Connectivity/Base.lproj/LaunchScreen.xib new file mode 100644 index 0000000..ed81e7b --- /dev/null +++ b/Example/Connectivity/Base.lproj/LaunchScreen.xib @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Connectivity/Base.lproj/Main.storyboard b/Example/Connectivity/Base.lproj/Main.storyboard new file mode 100644 index 0000000..52ea29e --- /dev/null +++ b/Example/Connectivity/Base.lproj/Main.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Connectivity/Images.xcassets/AppIcon.appiconset/Contents.json b/Example/Connectivity/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d3942e9 --- /dev/null +++ b/Example/Connectivity/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,38 @@ +{ + "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" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Example/Connectivity/Info.plist b/Example/Connectivity/Info.plist new file mode 100644 index 0000000..eb18faa --- /dev/null +++ b/Example/Connectivity/Info.plist @@ -0,0 +1,39 @@ + + + + + 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 + + + diff --git a/Example/Connectivity/ViewController.swift b/Example/Connectivity/ViewController.swift new file mode 100644 index 0000000..33d99c1 --- /dev/null +++ b/Example/Connectivity/ViewController.swift @@ -0,0 +1,24 @@ +// +// ViewController.swift +// Connectivity +// +// Created by Ross Butler on 07/15/2017. +// Copyright (c) 2017 Ross Butler. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + +} + diff --git a/Example/Podfile b/Example/Podfile new file mode 100644 index 0000000..35cdeaa --- /dev/null +++ b/Example/Podfile @@ -0,0 +1,11 @@ +use_frameworks! + +target 'Connectivity_Example' do + pod 'Connectivity', :path => '../' + + target 'Connectivity_Tests' do + inherit! :search_paths + + + end +end diff --git a/Example/Podfile.lock b/Example/Podfile.lock new file mode 100644 index 0000000..69e857a --- /dev/null +++ b/Example/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - Connectivity (0.1.0) + +DEPENDENCIES: + - Connectivity (from `../`) + +EXTERNAL SOURCES: + Connectivity: + :path: ../ + +SPEC CHECKSUMS: + Connectivity: e66d30988538605ad58745b71ff574d0545b02e9 + +PODFILE CHECKSUM: 894f6b333c14128fd4e8f3c9af2e006edc0dbedb + +COCOAPODS: 1.2.1 diff --git a/Example/Pods/Local Podspecs/Connectivity.podspec.json b/Example/Pods/Local Podspecs/Connectivity.podspec.json new file mode 100644 index 0000000..e62205a --- /dev/null +++ b/Example/Pods/Local Podspecs/Connectivity.podspec.json @@ -0,0 +1,22 @@ +{ + "name": "Connectivity", + "version": "0.1.0", + "summary": "A short description of Connectivity.", + "description": "TODO: Add long description of the pod here.", + "homepage": "https://github.com/rwbutler/Connectivity", + "license": { + "type": "MIT", + "file": "LICENSE" + }, + "authors": { + "rwbutler": "ross.butler@argos.co.uk" + }, + "source": { + "git": "https://github.com/rwbutler/Connectivity.git", + "tag": "0.1.0" + }, + "platforms": { + "ios": "8.0" + }, + "source_files": "Connectivity/Classes/**/*" +} diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock new file mode 100644 index 0000000..69e857a --- /dev/null +++ b/Example/Pods/Manifest.lock @@ -0,0 +1,16 @@ +PODS: + - Connectivity (0.1.0) + +DEPENDENCIES: + - Connectivity (from `../`) + +EXTERNAL SOURCES: + Connectivity: + :path: ../ + +SPEC CHECKSUMS: + Connectivity: e66d30988538605ad58745b71ff574d0545b02e9 + +PODFILE CHECKSUM: 894f6b333c14128fd4e8f3c9af2e006edc0dbedb + +COCOAPODS: 1.2.1 diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj new file mode 100644 index 0000000..4e36b9d --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -0,0 +1,748 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1D7BDA0F4FA3F836E1F579CAB133B337 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; + 243485BE467B634C7876036C8E7F7DC1 /* Pods-Connectivity_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0E26BBF67138E9BA9C0682AA47AD4F23 /* Pods-Connectivity_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3B47FADB850258F00978AEAF84B37EB7 /* Pods-Connectivity_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A1132FB3546756E999EC05C7B81BC97C /* Pods-Connectivity_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 49043866F44012C88A336B67DDD5868E /* Connectivity-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 19234B796AC167AA76B437CAB23D0CC7 /* Connectivity-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 97DEE0E2443FCF9AC3B6365359658596 /* Pods-Connectivity_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 287695F1D233E315FB94429618CDBD0C /* Pods-Connectivity_Tests-dummy.m */; }; + CCC9C00A02ACAF30834CD7DC3BC718B9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; + E4B1FB021F1D229D0010315E /* Connectivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = E4B1FB011F1D229D0010315E /* Connectivity.swift */; }; + E4B1FB0A1F1D25B50010315E /* Reachability.h in Headers */ = {isa = PBXBuildFile; fileRef = E4B1FB081F1D25B50010315E /* Reachability.h */; settings = {ATTRIBUTES = (Public, ); }; }; + E4B1FB0B1F1D25B50010315E /* Reachability.m in Sources */ = {isa = PBXBuildFile; fileRef = E4B1FB091F1D25B50010315E /* Reachability.m */; }; + E920EFD118013230D8A39F988ED578B2 /* Connectivity-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 733616E1A00BCC94FBD64E422C8F2D61 /* Connectivity-dummy.m */; }; + F01F0401BBB2929E149B9AE3B1C100FC /* Pods-Connectivity_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 27C0B2C6765B9488920ED457807FD053 /* Pods-Connectivity_Example-dummy.m */; }; + FF971CE830DF30E57BC4EFC3F1CEED2B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 58568922FD1CBD557CE86348ACD49AD3 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5F862368CBA8C1A8F9CD87B35B83FFAC; + remoteInfo = Connectivity; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 0ADE3A702474BD913F0757617E837472 /* Pods_Connectivity_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Connectivity_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 0E26BBF67138E9BA9C0682AA47AD4F23 /* Pods-Connectivity_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Connectivity_Example-umbrella.h"; sourceTree = ""; }; + 0F3C86DFE68666B2609FC68CB5107631 /* Pods-Connectivity_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Connectivity_Tests-frameworks.sh"; sourceTree = ""; }; + 1619A1C3FFF4399451291807685FFA3C /* Connectivity.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Connectivity.xcconfig; sourceTree = ""; }; + 19234B796AC167AA76B437CAB23D0CC7 /* Connectivity-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Connectivity-umbrella.h"; sourceTree = ""; }; + 1E609636CA10792AE64DF24CFCD88AA8 /* Pods-Connectivity_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-Connectivity_Example.modulemap"; sourceTree = ""; }; + 27C0B2C6765B9488920ED457807FD053 /* Pods-Connectivity_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Connectivity_Example-dummy.m"; sourceTree = ""; }; + 287695F1D233E315FB94429618CDBD0C /* Pods-Connectivity_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Connectivity_Tests-dummy.m"; sourceTree = ""; }; + 35ED5702931F52E1AF8C683BC796E40D /* Connectivity.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = Connectivity.modulemap; sourceTree = ""; }; + 3A65E57C40DFEE353A743315148A8B30 /* Pods-Connectivity_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Connectivity_Example.release.xcconfig"; sourceTree = ""; }; + 481237EBCD949FD9DAAA0F8DEAF15494 /* Pods-Connectivity_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Connectivity_Example.debug.xcconfig"; sourceTree = ""; }; + 4C3C1F1FD6E95A0FE604CD5505F0A02C /* Pods-Connectivity_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Connectivity_Tests-acknowledgements.plist"; sourceTree = ""; }; + 52E437792277CEF5B19AEABBC44AECFA /* Connectivity.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Connectivity.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 53ECEF75082FFA833B059CE7BE4670DF /* Connectivity-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Connectivity-prefix.pch"; sourceTree = ""; }; + 578B89814E31161565DEE0DC46FC6FFE /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 5E51903ECA23148857ABA3A92AD79F13 /* Pods-Connectivity_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Connectivity_Example-acknowledgements.markdown"; sourceTree = ""; }; + 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + 70AF90F0CEEA9B723FC1DE06C87D7387 /* Pods-Connectivity_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Connectivity_Tests-resources.sh"; sourceTree = ""; }; + 720D0ADE44D7ABC70BA0AF0F4CEC381F /* Pods-Connectivity_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Connectivity_Tests.debug.xcconfig"; sourceTree = ""; }; + 733616E1A00BCC94FBD64E422C8F2D61 /* Connectivity-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Connectivity-dummy.m"; sourceTree = ""; }; + 7E6754A29C3D1DAB04ABCEC3F698A6FD /* Pods_Connectivity_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Connectivity_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 8CB974750626ADD86F1DE6133FEDA734 /* Pods-Connectivity_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Connectivity_Tests.release.xcconfig"; sourceTree = ""; }; + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 9EDB45A388622C552807947490D9FE7A /* Pods-Connectivity_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-Connectivity_Tests.modulemap"; sourceTree = ""; }; + A1132FB3546756E999EC05C7B81BC97C /* Pods-Connectivity_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Connectivity_Tests-umbrella.h"; sourceTree = ""; }; + A55B175767059A78999375FED5C168FD /* Pods-Connectivity_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Connectivity_Example-frameworks.sh"; sourceTree = ""; }; + C3AD2A1CF180D044568994C88AF5059C /* Pods-Connectivity_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Connectivity_Example-resources.sh"; sourceTree = ""; }; + CCB2284D28E80165446C7A666487E176 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D21D28E4BE57F8D9A892457729A33521 /* Pods-Connectivity_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Connectivity_Tests-acknowledgements.markdown"; sourceTree = ""; }; + DDE42404BB48D627C8E2A798031FAE5F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + E4B1FB011F1D229D0010315E /* Connectivity.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Connectivity.swift; sourceTree = ""; }; + E4B1FB081F1D25B50010315E /* Reachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Reachability.h; path = Reachability/Reachability.h; sourceTree = ""; }; + E4B1FB091F1D25B50010315E /* Reachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Reachability.m; path = Reachability/Reachability.m; sourceTree = ""; }; + EB7587989E6CC7B0188B096E57CC0D0F /* Pods-Connectivity_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Connectivity_Example-acknowledgements.plist"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 71AD20D1A6F97F124617D1142499E9B0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D7BDA0F4FA3F836E1F579CAB133B337 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 76E54751EFDBFA94B1D3E220BB63B08A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + CCC9C00A02ACAF30834CD7DC3BC718B9 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CCEF7060AC7C8DFBFAF017FF0CC9EB78 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + FF971CE830DF30E57BC4EFC3F1CEED2B /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0524FD32F14E67F3C5316843DDE4E117 /* Development Pods */ = { + isa = PBXGroup; + children = ( + DA24EFBA756D01C1B335235AA832F9F9 /* Connectivity */, + ); + name = "Development Pods"; + sourceTree = ""; + }; + 10054BAD5A9CE876793136162D16787F /* Connectivity */ = { + isa = PBXGroup; + children = ( + 6957B087A58EA9FD73C74A2AB2F1F162 /* Classes */, + ); + path = Connectivity; + sourceTree = ""; + }; + 1BF9640EE5B5AB866C3C4C111FFC22B8 /* Pods-Connectivity_Tests */ = { + isa = PBXGroup; + children = ( + DDE42404BB48D627C8E2A798031FAE5F /* Info.plist */, + 9EDB45A388622C552807947490D9FE7A /* Pods-Connectivity_Tests.modulemap */, + D21D28E4BE57F8D9A892457729A33521 /* Pods-Connectivity_Tests-acknowledgements.markdown */, + 4C3C1F1FD6E95A0FE604CD5505F0A02C /* Pods-Connectivity_Tests-acknowledgements.plist */, + 287695F1D233E315FB94429618CDBD0C /* Pods-Connectivity_Tests-dummy.m */, + 0F3C86DFE68666B2609FC68CB5107631 /* Pods-Connectivity_Tests-frameworks.sh */, + 70AF90F0CEEA9B723FC1DE06C87D7387 /* Pods-Connectivity_Tests-resources.sh */, + A1132FB3546756E999EC05C7B81BC97C /* Pods-Connectivity_Tests-umbrella.h */, + 720D0ADE44D7ABC70BA0AF0F4CEC381F /* Pods-Connectivity_Tests.debug.xcconfig */, + 8CB974750626ADD86F1DE6133FEDA734 /* Pods-Connectivity_Tests.release.xcconfig */, + ); + name = "Pods-Connectivity_Tests"; + path = "Target Support Files/Pods-Connectivity_Tests"; + sourceTree = ""; + }; + 6957B087A58EA9FD73C74A2AB2F1F162 /* Classes */ = { + isa = PBXGroup; + children = ( + E4B1FB071F1D25940010315E /* Reachability */, + E4B1FB011F1D229D0010315E /* Connectivity.swift */, + ); + path = Classes; + sourceTree = ""; + }; + 7DB346D0F39D3F0E887471402A8071AB = { + isa = PBXGroup; + children = ( + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, + 0524FD32F14E67F3C5316843DDE4E117 /* Development Pods */, + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, + F892A22006F79F7E602C6B2C4532954D /* Products */, + 7F6551977CA0E1833EB3107A788B8F09 /* Targets Support Files */, + ); + sourceTree = ""; + }; + 7F6551977CA0E1833EB3107A788B8F09 /* Targets Support Files */ = { + isa = PBXGroup; + children = ( + C1459FE3922344A253053F200029A493 /* Pods-Connectivity_Example */, + 1BF9640EE5B5AB866C3C4C111FFC22B8 /* Pods-Connectivity_Tests */, + ); + name = "Targets Support Files"; + sourceTree = ""; + }; + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { + isa = PBXGroup; + children = ( + D35AF013A5F0BAD4F32504907A52519E /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; + BEC7AF0FF015F9600AC3E5BBB20BC40E /* Support Files */ = { + isa = PBXGroup; + children = ( + 35ED5702931F52E1AF8C683BC796E40D /* Connectivity.modulemap */, + 1619A1C3FFF4399451291807685FFA3C /* Connectivity.xcconfig */, + 733616E1A00BCC94FBD64E422C8F2D61 /* Connectivity-dummy.m */, + 53ECEF75082FFA833B059CE7BE4670DF /* Connectivity-prefix.pch */, + 19234B796AC167AA76B437CAB23D0CC7 /* Connectivity-umbrella.h */, + CCB2284D28E80165446C7A666487E176 /* Info.plist */, + ); + name = "Support Files"; + path = "Example/Pods/Target Support Files/Connectivity"; + sourceTree = ""; + }; + C1459FE3922344A253053F200029A493 /* Pods-Connectivity_Example */ = { + isa = PBXGroup; + children = ( + 578B89814E31161565DEE0DC46FC6FFE /* Info.plist */, + 1E609636CA10792AE64DF24CFCD88AA8 /* Pods-Connectivity_Example.modulemap */, + 5E51903ECA23148857ABA3A92AD79F13 /* Pods-Connectivity_Example-acknowledgements.markdown */, + EB7587989E6CC7B0188B096E57CC0D0F /* Pods-Connectivity_Example-acknowledgements.plist */, + 27C0B2C6765B9488920ED457807FD053 /* Pods-Connectivity_Example-dummy.m */, + A55B175767059A78999375FED5C168FD /* Pods-Connectivity_Example-frameworks.sh */, + C3AD2A1CF180D044568994C88AF5059C /* Pods-Connectivity_Example-resources.sh */, + 0E26BBF67138E9BA9C0682AA47AD4F23 /* Pods-Connectivity_Example-umbrella.h */, + 481237EBCD949FD9DAAA0F8DEAF15494 /* Pods-Connectivity_Example.debug.xcconfig */, + 3A65E57C40DFEE353A743315148A8B30 /* Pods-Connectivity_Example.release.xcconfig */, + ); + name = "Pods-Connectivity_Example"; + path = "Target Support Files/Pods-Connectivity_Example"; + sourceTree = ""; + }; + D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { + isa = PBXGroup; + children = ( + 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, + ); + name = iOS; + sourceTree = ""; + }; + DA24EFBA756D01C1B335235AA832F9F9 /* Connectivity */ = { + isa = PBXGroup; + children = ( + 10054BAD5A9CE876793136162D16787F /* Connectivity */, + BEC7AF0FF015F9600AC3E5BBB20BC40E /* Support Files */, + ); + name = Connectivity; + path = ../..; + sourceTree = ""; + }; + E4B1FB071F1D25940010315E /* Reachability */ = { + isa = PBXGroup; + children = ( + E4B1FB081F1D25B50010315E /* Reachability.h */, + E4B1FB091F1D25B50010315E /* Reachability.m */, + ); + name = Reachability; + sourceTree = ""; + }; + F892A22006F79F7E602C6B2C4532954D /* Products */ = { + isa = PBXGroup; + children = ( + 52E437792277CEF5B19AEABBC44AECFA /* Connectivity.framework */, + 7E6754A29C3D1DAB04ABCEC3F698A6FD /* Pods_Connectivity_Example.framework */, + 0ADE3A702474BD913F0757617E837472 /* Pods_Connectivity_Tests.framework */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 1F99A36B5888E203ACAED97BDD708421 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 243485BE467B634C7876036C8E7F7DC1 /* Pods-Connectivity_Example-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 5ADD63F0E6497CAB27545417E9DB5B99 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 49043866F44012C88A336B67DDD5868E /* Connectivity-umbrella.h in Headers */, + E4B1FB0A1F1D25B50010315E /* Reachability.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6024F78B57C1BB41A5DE36B3BABB0968 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 3B47FADB850258F00978AEAF84B37EB7 /* Pods-Connectivity_Tests-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 2C4460F2071B5DA3036F45D2C1FD21FA /* Pods-Connectivity_Example */ = { + isa = PBXNativeTarget; + buildConfigurationList = 53A5CCE31177DC44158235A44884A36A /* Build configuration list for PBXNativeTarget "Pods-Connectivity_Example" */; + buildPhases = ( + 3B100685E4424C1A41EC5DA5C8FA265A /* Sources */, + 76E54751EFDBFA94B1D3E220BB63B08A /* Frameworks */, + 1F99A36B5888E203ACAED97BDD708421 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + 993FA405894BE9FCD1E858EE6D846A9C /* PBXTargetDependency */, + ); + name = "Pods-Connectivity_Example"; + productName = "Pods-Connectivity_Example"; + productReference = 7E6754A29C3D1DAB04ABCEC3F698A6FD /* Pods_Connectivity_Example.framework */; + productType = "com.apple.product-type.framework"; + }; + 5F862368CBA8C1A8F9CD87B35B83FFAC /* Connectivity */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8322E64C47F3513310A2ECF958756E60 /* Build configuration list for PBXNativeTarget "Connectivity" */; + buildPhases = ( + E99F69B01D6E302B7D556A9F64F3220C /* Sources */, + 71AD20D1A6F97F124617D1142499E9B0 /* Frameworks */, + 5ADD63F0E6497CAB27545417E9DB5B99 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Connectivity; + productName = Connectivity; + productReference = 52E437792277CEF5B19AEABBC44AECFA /* Connectivity.framework */; + productType = "com.apple.product-type.framework"; + }; + BEC04ECA70FE2F6426014242B582C44B /* Pods-Connectivity_Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 126214244EAA2118455C5273AFFB75A7 /* Build configuration list for PBXNativeTarget "Pods-Connectivity_Tests" */; + buildPhases = ( + 50502E49B6C970996C024EF012F38B46 /* Sources */, + CCEF7060AC7C8DFBFAF017FF0CC9EB78 /* Frameworks */, + 6024F78B57C1BB41A5DE36B3BABB0968 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Pods-Connectivity_Tests"; + productName = "Pods-Connectivity_Tests"; + productReference = 0ADE3A702474BD913F0757617E837472 /* Pods_Connectivity_Tests.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0830; + LastUpgradeCheck = 0700; + TargetAttributes = { + 5F862368CBA8C1A8F9CD87B35B83FFAC = { + LastSwiftMigration = 0830; + }; + }; + }; + buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 7DB346D0F39D3F0E887471402A8071AB; + productRefGroup = F892A22006F79F7E602C6B2C4532954D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 5F862368CBA8C1A8F9CD87B35B83FFAC /* Connectivity */, + 2C4460F2071B5DA3036F45D2C1FD21FA /* Pods-Connectivity_Example */, + BEC04ECA70FE2F6426014242B582C44B /* Pods-Connectivity_Tests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 3B100685E4424C1A41EC5DA5C8FA265A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F01F0401BBB2929E149B9AE3B1C100FC /* Pods-Connectivity_Example-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 50502E49B6C970996C024EF012F38B46 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97DEE0E2443FCF9AC3B6365359658596 /* Pods-Connectivity_Tests-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + E99F69B01D6E302B7D556A9F64F3220C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E4B1FB021F1D229D0010315E /* Connectivity.swift in Sources */, + E4B1FB0B1F1D25B50010315E /* Reachability.m in Sources */, + E920EFD118013230D8A39F988ED578B2 /* Connectivity-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 993FA405894BE9FCD1E858EE6D846A9C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = Connectivity; + target = 5F862368CBA8C1A8F9CD87B35B83FFAC /* Connectivity */; + targetProxy = 58568922FD1CBD557CE86348ACD49AD3 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 094F05EE1ECB3F2265780264689589A8 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 1619A1C3FFF4399451291807685FFA3C /* Connectivity.xcconfig */; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREFIX_HEADER = "Target Support Files/Connectivity/Connectivity-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/Connectivity/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/Connectivity/Connectivity.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = Connectivity; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 1CC69ABF652A4EF0221FC0DBBAEC156D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3A65E57C40DFEE353A743315148A8B30 /* Pods-Connectivity_Example.release.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = "Target Support Files/Pods-Connectivity_Example/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = Pods_Connectivity_Example; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 345CC476DF4A7516DBD2220CF5035FF3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; + 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; + 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_OBJC_ROOT_CLASS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_REQUIRED = NO; + COPY_PHASE_STRIP = NO; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + ONLY_ACTIVE_ARCH = YES; + PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + 488B90FD1DFA836D42C81B1285ED12AE /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 481237EBCD949FD9DAAA0F8DEAF15494 /* Pods-Connectivity_Example.debug.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = "Target Support Files/Pods-Connectivity_Example/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = Pods_Connectivity_Example; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 4E97AA48F3D55D53576C61CA469B69A8 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 1619A1C3FFF4399451291807685FFA3C /* Connectivity.xcconfig */; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREFIX_HEADER = "Target Support Files/Connectivity/Connectivity-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/Connectivity/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/Connectivity/Connectivity.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + PRODUCT_NAME = Connectivity; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 500921434C9149CF9A8D56ACE741F3C3 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 8CB974750626ADD86F1DE6133FEDA734 /* Pods-Connectivity_Tests.release.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = "Target Support Files/Pods-Connectivity_Tests/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = Pods_Connectivity_Tests; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 717E77604BFBB04BEAF56608A1CB2EDE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; + 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; + 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_OBJC_ROOT_CLASS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_REQUIRED = NO; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + D73FE82F91729DFA85D98B371FDDDC9B /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 720D0ADE44D7ABC70BA0AF0F4CEC381F /* Pods-Connectivity_Tests.debug.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = "Target Support Files/Pods-Connectivity_Tests/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = Pods_Connectivity_Tests; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 126214244EAA2118455C5273AFFB75A7 /* Build configuration list for PBXNativeTarget "Pods-Connectivity_Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D73FE82F91729DFA85D98B371FDDDC9B /* Debug */, + 500921434C9149CF9A8D56ACE741F3C3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 345CC476DF4A7516DBD2220CF5035FF3 /* Debug */, + 717E77604BFBB04BEAF56608A1CB2EDE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 53A5CCE31177DC44158235A44884A36A /* Build configuration list for PBXNativeTarget "Pods-Connectivity_Example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 488B90FD1DFA836D42C81B1285ED12AE /* Debug */, + 1CC69ABF652A4EF0221FC0DBBAEC156D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8322E64C47F3513310A2ECF958756E60 /* Build configuration list for PBXNativeTarget "Connectivity" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4E97AA48F3D55D53576C61CA469B69A8 /* Debug */, + 094F05EE1ECB3F2265780264689589A8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; +} diff --git a/Example/Pods/Target Support Files/Connectivity/Connectivity-dummy.m b/Example/Pods/Target Support Files/Connectivity/Connectivity-dummy.m new file mode 100644 index 0000000..45ce508 --- /dev/null +++ b/Example/Pods/Target Support Files/Connectivity/Connectivity-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Connectivity : NSObject +@end +@implementation PodsDummy_Connectivity +@end diff --git a/Example/Pods/Target Support Files/Connectivity/Connectivity-prefix.pch b/Example/Pods/Target Support Files/Connectivity/Connectivity-prefix.pch new file mode 100644 index 0000000..c8da35e --- /dev/null +++ b/Example/Pods/Target Support Files/Connectivity/Connectivity-prefix.pch @@ -0,0 +1,11 @@ +#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/Example/Pods/Target Support Files/Connectivity/Connectivity-umbrella.h b/Example/Pods/Target Support Files/Connectivity/Connectivity-umbrella.h new file mode 100644 index 0000000..5906443 --- /dev/null +++ b/Example/Pods/Target Support Files/Connectivity/Connectivity-umbrella.h @@ -0,0 +1,14 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif +#import "Reachability.h" +FOUNDATION_EXPORT double ConnectivityVersionNumber; +FOUNDATION_EXPORT const unsigned char ConnectivityVersionString[]; diff --git a/Example/Pods/Target Support Files/Connectivity/Connectivity.modulemap b/Example/Pods/Target Support Files/Connectivity/Connectivity.modulemap new file mode 100644 index 0000000..c43317e --- /dev/null +++ b/Example/Pods/Target Support Files/Connectivity/Connectivity.modulemap @@ -0,0 +1,6 @@ +framework module Connectivity { + umbrella header "Connectivity-umbrella.h" + + export * + module * { export * } +} diff --git a/Example/Pods/Target Support Files/Connectivity/Connectivity.xcconfig b/Example/Pods/Target Support Files/Connectivity/Connectivity.xcconfig new file mode 100644 index 0000000..54d55a8 --- /dev/null +++ b/Example/Pods/Target Support Files/Connectivity/Connectivity.xcconfig @@ -0,0 +1,10 @@ +CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/Connectivity +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" +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}/../.. +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES diff --git a/Example/Pods/Target Support Files/Connectivity/Info.plist b/Example/Pods/Target Support Files/Connectivity/Info.plist new file mode 100644 index 0000000..161a9d3 --- /dev/null +++ b/Example/Pods/Target Support Files/Connectivity/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 0.1.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Example/Info.plist b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Example/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/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-acknowledgements.markdown new file mode 100644 index 0000000..12b447a --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-acknowledgements.markdown @@ -0,0 +1,26 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## Connectivity + +Copyright (c) 2017 rwbutler + +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/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-acknowledgements.plist new file mode 100644 index 0000000..28b5e2a --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-acknowledgements.plist @@ -0,0 +1,58 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + Copyright (c) 2017 rwbutler <ross.butler@argos.co.uk> + +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. + + License + MIT + Title + Connectivity + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-dummy.m b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-dummy.m new file mode 100644 index 0000000..7be181a --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_Connectivity_Example : NSObject +@end +@implementation PodsDummy_Pods_Connectivity_Example +@end diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-frameworks.sh b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-frameworks.sh new file mode 100755 index 0000000..b15daa4 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-frameworks.sh @@ -0,0 +1,99 @@ +#!/bin/sh +set -e + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + # use filter instead of exclude so missing patterns dont' throw errors + echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identitiy + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" + + if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + code_sign_cmd="$code_sign_cmd &" + fi + echo "$code_sign_cmd" + eval "$code_sign_cmd" + fi +} + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + # Get architectures for current file + archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" + stripped="" + for arch in $archs; do + if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi +} + + +if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "$BUILT_PRODUCTS_DIR/Connectivity/Connectivity.framework" +fi +if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "$BUILT_PRODUCTS_DIR/Connectivity/Connectivity.framework" +fi +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + wait +fi diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-resources.sh b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-resources.sh new file mode 100755 index 0000000..aed060f --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-resources.sh @@ -0,0 +1,102 @@ +#!/bin/sh +set -e + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +XCASSET_FILES=() + +case "${TARGETED_DEVICE_FAMILY}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + 3) + TARGET_DEVICE_ARGS="--target-device tv" + ;; + 4) + TARGET_DEVICE_ARGS="--target-device watch" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; +esac + +install_resource() +{ + if [[ "$1" = /* ]] ; then + RESOURCE_PATH="$1" + else + RESOURCE_PATH="${PODS_ROOT}/$1" + fi + if [[ ! -e "$RESOURCE_PATH" ]] ; then + cat << EOM +error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. +EOM + exit 1 + fi + case $RESOURCE_PATH in + *.storyboard) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.xib) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.framework) + echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" + xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") + ;; + *) + echo "$RESOURCE_PATH" + echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] +then + # Find all other xcassets (this unfortunately includes those of path pods and other targets). + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) + while read line; do + if [[ $line != "${PODS_ROOT}*" ]]; then + XCASSET_FILES+=("$line") + fi + done <<<"$OTHER_XCASSETS" + + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-umbrella.h b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-umbrella.h new file mode 100644 index 0000000..e94e709 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example-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_Connectivity_ExampleVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_Connectivity_ExampleVersionString[]; + diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.debug.xcconfig b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.debug.xcconfig new file mode 100644 index 0000000..92b997c --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.debug.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/Connectivity" +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/Connectivity/Connectivity.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "Connectivity" +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/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.modulemap b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.modulemap new file mode 100644 index 0000000..8401323 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.modulemap @@ -0,0 +1,6 @@ +framework module Pods_Connectivity_Example { + umbrella header "Pods-Connectivity_Example-umbrella.h" + + export * + module * { export * } +} diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.release.xcconfig b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.release.xcconfig new file mode 100644 index 0000000..92b997c --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Example/Pods-Connectivity_Example.release.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/Connectivity" +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/Connectivity/Connectivity.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "Connectivity" +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/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Info.plist b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/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/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-acknowledgements.markdown new file mode 100644 index 0000000..102af75 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-acknowledgements.markdown @@ -0,0 +1,3 @@ +# Acknowledgements +This application makes use of the following third party libraries: +Generated by CocoaPods - https://cocoapods.org diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-acknowledgements.plist new file mode 100644 index 0000000..7acbad1 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-acknowledgements.plist @@ -0,0 +1,29 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-dummy.m b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-dummy.m new file mode 100644 index 0000000..441c61e --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_Connectivity_Tests : NSObject +@end +@implementation PodsDummy_Pods_Connectivity_Tests +@end diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-frameworks.sh b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-frameworks.sh new file mode 100755 index 0000000..0f29f13 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-frameworks.sh @@ -0,0 +1,92 @@ +#!/bin/sh +set -e + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + # use filter instead of exclude so missing patterns dont' throw errors + echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identitiy + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" + + if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + code_sign_cmd="$code_sign_cmd &" + fi + echo "$code_sign_cmd" + eval "$code_sign_cmd" + fi +} + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + # Get architectures for current file + archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" + stripped="" + for arch in $archs; do + if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi +} + +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + wait +fi diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-resources.sh b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-resources.sh new file mode 100755 index 0000000..aed060f --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-resources.sh @@ -0,0 +1,102 @@ +#!/bin/sh +set -e + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +XCASSET_FILES=() + +case "${TARGETED_DEVICE_FAMILY}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + 3) + TARGET_DEVICE_ARGS="--target-device tv" + ;; + 4) + TARGET_DEVICE_ARGS="--target-device watch" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; +esac + +install_resource() +{ + if [[ "$1" = /* ]] ; then + RESOURCE_PATH="$1" + else + RESOURCE_PATH="${PODS_ROOT}/$1" + fi + if [[ ! -e "$RESOURCE_PATH" ]] ; then + cat << EOM +error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. +EOM + exit 1 + fi + case $RESOURCE_PATH in + *.storyboard) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.xib) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" + ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} + ;; + *.framework) + echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" + xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") + ;; + *) + echo "$RESOURCE_PATH" + echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] +then + # Find all other xcassets (this unfortunately includes those of path pods and other targets). + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) + while read line; do + if [[ $line != "${PODS_ROOT}*" ]]; then + XCASSET_FILES+=("$line") + fi + done <<<"$OTHER_XCASSETS" + + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-umbrella.h b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-umbrella.h new file mode 100644 index 0000000..d8acc36 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests-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_Connectivity_TestsVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_Connectivity_TestsVersionString[]; + diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.debug.xcconfig b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.debug.xcconfig new file mode 100644 index 0000000..2a4f127 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.debug.xcconfig @@ -0,0 +1,8 @@ +FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/Connectivity" +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/Connectivity/Connectivity.framework/Headers" +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/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.modulemap b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.modulemap new file mode 100644 index 0000000..bbd5a30 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.modulemap @@ -0,0 +1,6 @@ +framework module Pods_Connectivity_Tests { + umbrella header "Pods-Connectivity_Tests-umbrella.h" + + export * + module * { export * } +} diff --git a/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.release.xcconfig b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.release.xcconfig new file mode 100644 index 0000000..2a4f127 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Connectivity_Tests/Pods-Connectivity_Tests.release.xcconfig @@ -0,0 +1,8 @@ +FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/Connectivity" +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/Connectivity/Connectivity.framework/Headers" +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/Example/Tests/Info.plist b/Example/Tests/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/Example/Tests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Example/Tests/Tests.swift b/Example/Tests/Tests.swift new file mode 100644 index 0000000..83dbb10 --- /dev/null +++ b/Example/Tests/Tests.swift @@ -0,0 +1,29 @@ +import UIKit +import XCTest +import Connectivity + +class Tests: XCTestCase { + + override func setUp() { + super.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. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + XCTAssert(true, "Pass") + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measure() { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6894554 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2017 rwbutler + +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/README.md b/README.md new file mode 100644 index 0000000..7ae40de --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +![Connectivity](Connectivity.png) + +[![CI Status](http://img.shields.io/travis/rwbutler/Connectivity.svg?style=flat)](https://travis-ci.org/rwbutler/Connectivity) +[![Version](https://img.shields.io/cocoapods/v/Connectivity.svg?style=flat)](http://cocoapods.org/pods/Connectivity) +[![License](https://img.shields.io/cocoapods/l/Connectivity.svg?style=flat)](http://cocoapods.org/pods/Connectivity) +[![Platform](https://img.shields.io/cocoapods/p/Connectivity.svg?style=flat)](http://cocoapods.org/pods/Connectivity) + + +Connectivity is a wrapper for Apple's [Reachability](https://developer.apple.com/library/content/samplecode/Reachability/Introduction/Intro.html) which provides a true indication of whether Internet connectivity is available. Connectivity's objective is to solve the captive portal problem whereby a device running iOS is connected to a WiFi network lacking Internet connectivity. Connectivity can detect such situations enabling you to react accordingly. + +Ensure that you include Apple's Reachability header and implementation files ([Reachability.h and Reachability.m](https://developer.apple.com/library/content/samplecode/Reachability/Reachability.zip)) to use. + +Use of Apple's Reachability is subject to [licensing from Apple](./Connectivity/Classes/Reachability/LICENSE.txt). + +## Example + +To run the example project, clone the repo, and run `pod install` from the Example directory first. + +## Requirements + +## Installation + +Connectivity is available through [CocoaPods](http://cocoapods.org). To install +it, simply add the following line to your Podfile: + +```ruby +pod "Connectivity" +``` + +## Author + +Ross Butler + +## License + +Connectivity is available under the MIT license. See the [LICENSE](./LICENSE) file for more info. diff --git a/_Pods.xcodeproj b/_Pods.xcodeproj new file mode 120000 index 0000000..3c5a8e7 --- /dev/null +++ b/_Pods.xcodeproj @@ -0,0 +1 @@ +Example/Pods/Pods.xcodeproj \ No newline at end of file