diff --git a/Playgrounds/ObservablesOperators/Observables+Transforming.playground/contents.xcplayground b/Playgrounds/ObservablesOperators/Observables+Transforming.playground/contents.xcplayground index 3de2b51b..06828af9 100644 --- a/Playgrounds/ObservablesOperators/Observables+Transforming.playground/contents.xcplayground +++ b/Playgrounds/ObservablesOperators/Observables+Transforming.playground/contents.xcplayground @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/RxCocoa/RxCocoa.xcodeproj/project.pbxproj b/RxCocoa/RxCocoa.xcodeproj/project.pbxproj index 4c364efe..d6edd7be 100644 --- a/RxCocoa/RxCocoa.xcodeproj/project.pbxproj +++ b/RxCocoa/RxCocoa.xcodeproj/project.pbxproj @@ -138,7 +138,7 @@ C84969C91B47DE1D00E0BDB9 /* RxTableViewDelegateProxy.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = RxTableViewDelegateProxy.swift; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; C852A1BD1B6A30DF007A6944 /* NSObject+Rx+CoreGraphics.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = "NSObject+Rx+CoreGraphics.swift"; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; C86282321B36037100500DC3 /* ControlTarget.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = ControlTarget.swift; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; - C86282331B36037100500DC3 /* NSObject+Rx.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = "NSObject+Rx.swift"; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; + C86282331B36037100500DC3 /* NSObject+Rx.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = "NSObject+Rx.swift"; sourceTree = ""; }; C86282341B36037100500DC3 /* NSNotificationCenter+Rx.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = "NSNotificationCenter+Rx.swift"; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; C86282351B36037100500DC3 /* NSURLSession+Rx.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = "NSURLSession+Rx.swift"; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; C86282491B3607D500500DC3 /* CoreDataEntityEvent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = CoreDataEntityEvent.swift; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; diff --git a/RxExample/RxExample.xcodeproj/project.pbxproj b/RxExample/RxExample.xcodeproj/project.pbxproj index 958c22ed..943f165d 100644 --- a/RxExample/RxExample.xcodeproj/project.pbxproj +++ b/RxExample/RxExample.xcodeproj/project.pbxproj @@ -282,8 +282,6 @@ C8DF92E41B0B32DA009BCF9A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C8DF92E11B0B32DA009BCF9A /* Main.storyboard */; }; C8DF92E51B0B32DA009BCF9A /* RootViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8DF92E21B0B32DA009BCF9A /* RootViewController.swift */; }; C8DF92E71B0B32F2009BCF9A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C8DF92E61B0B32F2009BCF9A /* Main.storyboard */; }; - C8DF92EA1B0B38C0009BCF9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C8DF92E91B0B38C0009BCF9A /* Images.xcassets */; }; - C8DF92EB1B0B38C0009BCF9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C8DF92E91B0B38C0009BCF9A /* Images.xcassets */; }; C8DF92F61B0B43A4009BCF9A /* IntroductionExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8DF92F51B0B43A4009BCF9A /* IntroductionExampleViewController.swift */; }; C8F57F441AD02DBE006B8702 /* RxCocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C8F57F431AD02DBE006B8702 /* RxCocoa.framework */; }; C8F57F451AD02DBE006B8702 /* RxCocoa.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C8F57F431AD02DBE006B8702 /* RxCocoa.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; @@ -1302,7 +1300,6 @@ C8C46DAB1B47F7110020D71E /* WikipediaSearchCell.xib in Resources */, C8DF92E31B0B32DA009BCF9A /* LaunchScreen.xib in Resources */, C8C46DA91B47F7110020D71E /* WikipediaImageCell.xib in Resources */, - C8DF92EA1B0B38C0009BCF9A /* Images.xcassets in Resources */, C8DF92E41B0B32DA009BCF9A /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -1312,7 +1309,6 @@ buildActionMask = 2147483647; files = ( C8DF92E71B0B32F2009BCF9A /* Main.storyboard in Resources */, - C8DF92EB1B0B38C0009BCF9A /* Images.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1604,6 +1600,7 @@ C8297E661B6CF905000589EA /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; INFOPLIST_FILE = "RxExample/Info-iOS.plist"; IPHONEOS_DEPLOYMENT_TARGET = 7.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -1612,12 +1609,14 @@ PRODUCT_NAME = "RxExample-iOS-no-module"; SDKROOT = iphoneos; SWIFT_OBJC_BRIDGING_HEADER = ../RxCocoa/RxCocoa/RxCocoa.h; + TARGETED_DEVICE_FAMILY = 1; }; name = Debug; }; C8297E671B6CF905000589EA /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; INFOPLIST_FILE = "RxExample/Info-iOS.plist"; IPHONEOS_DEPLOYMENT_TARGET = 7.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -1626,12 +1625,14 @@ PRODUCT_NAME = "RxExample-iOS-no-module"; SDKROOT = iphoneos; SWIFT_OBJC_BRIDGING_HEADER = ../RxCocoa/RxCocoa/RxCocoa.h; + TARGETED_DEVICE_FAMILY = 1; }; name = Release; }; C8297E681B6CF905000589EA /* Release-Tests */ = { isa = XCBuildConfiguration; buildSettings = { + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; INFOPLIST_FILE = "RxExample/Info-iOS.plist"; IPHONEOS_DEPLOYMENT_TARGET = 7.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -1640,6 +1641,7 @@ PRODUCT_NAME = "RxExample-iOS-no-module"; SDKROOT = iphoneos; SWIFT_OBJC_BRIDGING_HEADER = ../RxCocoa/RxCocoa/RxCocoa.h; + TARGETED_DEVICE_FAMILY = 1; }; name = "Release-Tests"; }; diff --git a/RxExample/RxExample/Examples/APIWrappers/APIWrappersViewController.swift b/RxExample/RxExample/Examples/APIWrappers/APIWrappersViewController.swift index 27e3791b..8afcbc9b 100644 --- a/RxExample/RxExample/Examples/APIWrappers/APIWrappersViewController.swift +++ b/RxExample/RxExample/Examples/APIWrappers/APIWrappersViewController.swift @@ -51,7 +51,7 @@ class APIWrappersViewController: ViewController { let disposeBag = DisposeBag() - let manager = CLLocationManager() +// let manager = CLLocationManager() override func viewDidLoad() { super.viewDidLoad() @@ -194,7 +194,7 @@ class APIWrappersViewController: ViewController { // MARK: CLLocationManager - + /* if manager.respondsToSelector("requestWhenInUseAuthorization") { manager.requestWhenInUseAuthorization() } @@ -213,6 +213,7 @@ class APIWrappersViewController: ViewController { manager.startUpdatingLocation() + */ diff --git a/RxExample/RxExample/Examples/GitHubSignup/Views/GitHubSignupViewController.swift b/RxExample/RxExample/Examples/GitHubSignup/Views/GitHubSignupViewController.swift index b4e929e9..a2bb7a9d 100644 --- a/RxExample/RxExample/Examples/GitHubSignup/Views/GitHubSignupViewController.swift +++ b/RxExample/RxExample/Examples/GitHubSignup/Views/GitHubSignupViewController.swift @@ -207,17 +207,15 @@ class GitHubSignupViewController : ViewController { case .SignedUp(let signed): self.signingUpOulet.hidden = true - let controller: UIAlertController + let alert: UIAlertView if signed { - controller = UIAlertController(title: "GitHub", message: "Mock signed up to GitHub", preferredStyle: .Alert) + alert = UIAlertView(title: "GitHub", message: "Mock signed up to GitHub", delegate: nil, cancelButtonTitle: "Cancel") } else { - controller = UIAlertController(title: "GitHub", message: "Mock signed up failed", preferredStyle: .Alert) + alert = UIAlertView(title: "GitHub", message: "Mock signed up failed", delegate: nil, cancelButtonTitle: "Cancel") } - - controller.addAction(UIAlertAction(title: "Cancel", style: .Cancel, handler: nil)) - self.presentViewController(controller, animated: true, completion: nil) + alert.show() default: self.signingUpOulet.hidden = true } diff --git a/RxExample/RxExample/Images.xcassets/LaunchImage.launchimage/Contents.json b/RxExample/RxExample/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 00000000..f5cc0ba2 --- /dev/null +++ b/RxExample/RxExample/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,53 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "launch_image_3.5_inches.png", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "retina4", + "filename" : "launch_image_5_inches.png", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/RxExample/RxExample/Images.xcassets/LaunchImage.launchimage/launch_image_3.5_inches.png b/RxExample/RxExample/Images.xcassets/LaunchImage.launchimage/launch_image_3.5_inches.png new file mode 100644 index 00000000..bab18b13 Binary files /dev/null and b/RxExample/RxExample/Images.xcassets/LaunchImage.launchimage/launch_image_3.5_inches.png differ diff --git a/RxExample/RxExample/Images.xcassets/LaunchImage.launchimage/launch_image_5_inches.png b/RxExample/RxExample/Images.xcassets/LaunchImage.launchimage/launch_image_5_inches.png new file mode 100644 index 00000000..d4255a46 Binary files /dev/null and b/RxExample/RxExample/Images.xcassets/LaunchImage.launchimage/launch_image_5_inches.png differ diff --git a/RxExample/RxExample/Info-iOS.plist b/RxExample/RxExample/Info-iOS.plist index 70ef23e7..8041e521 100644 --- a/RxExample/RxExample/Info-iOS.plist +++ b/RxExample/RxExample/Info-iOS.plist @@ -35,8 +35,6 @@ UISupportedInterfaceOrientations UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad diff --git a/RxExample/RxExample/iOS/LaunchScreen.xib b/RxExample/RxExample/iOS/LaunchScreen.xib index e2df5a9d..9305d6a7 100644 --- a/RxExample/RxExample/iOS/LaunchScreen.xib +++ b/RxExample/RxExample/iOS/LaunchScreen.xib @@ -1,30 +1,32 @@ - + - + + + - + - + @@ -43,11 +45,15 @@ - + + + + + diff --git a/RxExample/RxExample/iOS/Main.storyboard b/RxExample/RxExample/iOS/Main.storyboard index 3e59fb91..2976aaa4 100644 --- a/RxExample/RxExample/iOS/Main.storyboard +++ b/RxExample/RxExample/iOS/Main.storyboard @@ -25,7 +25,7 @@ - + @@ -71,7 +71,7 @@ - + @@ -128,7 +128,7 @@ - + @@ -226,12 +226,12 @@ - + - + @@ -245,7 +245,7 @@ - + @@ -258,7 +258,7 @@ - + @@ -283,7 +283,7 @@ - + @@ -342,7 +342,7 @@ - + @@ -478,15 +478,16 @@ + - + - + @@ -502,8 +503,8 @@ -