├── Sample
├── RxGoogleMaps-Sample.xcodeproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── project.pbxproj
├── RxGoogleMaps-Sample.xcworkspace
│ └── contents.xcworkspacedata
├── RxGoogleMaps-Sample
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── Info.plist
│ ├── ViewController.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── AppDelegate.swift
├── Podfile
└── RxGoogleMaps-SampleTests
│ ├── Info.plist
│ └── RxGoogleMaps_SampleTests.swift
├── Sources
├── GMSMarker+Rx.swift
├── RxGMSMapViewDelegateProxy.swift
└── GMSMapView+Rx.swift
├── LICENSE
├── RxGoogleMaps.podspec
├── .gitignore
└── README.md
/Sample/RxGoogleMaps-Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Sample/RxGoogleMaps-Sample.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Sample/RxGoogleMaps-Sample/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/Sample/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | target 'RxGoogleMaps-Sample' do
5 | use_frameworks!
6 | pod 'RxGoogleMaps', :path => '../'
7 | end
8 |
9 | Pod::Installer.class_eval { def verify_no_static_framework_transitive_dependencies; end }
10 |
11 | post_install do |installer|
12 | installer.pods_project.targets.each do |target|
13 | if target.name.eql?("Pods-RxGoogleMaps-Sample")
14 | puts "Removing GoogleMaps in #{target.name} OTHER_LDFLAGS"
15 | target.build_configurations.each do |config|
16 | xcconfig_path = config.base_configuration_reference.real_path
17 | xcconfig = File.read(xcconfig_path)
18 | File.open(xcconfig_path, "w") { |file| file << xcconfig.sub('-framework "GoogleMaps"', '') }
19 | end
20 | end
21 | end
22 | end
23 |
--------------------------------------------------------------------------------
/Sample/RxGoogleMaps-SampleTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Sources/GMSMarker+Rx.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GMSMarker+Rx.swift
3 | // RxGoogleMaps
4 | //
5 | // Created by LeeSunhyoup on 2016. 7. 8..
6 | // Copyright © 2016년 Lee Sun-Hyoup. All rights reserved.
7 | //
8 |
9 | import GoogleMaps
10 | import RxSwift
11 | import RxCocoa
12 |
13 | extension GMSMarker {
14 |
15 | // MARK: Observer Properties
16 |
17 | public var rx_map: AnyObserver {
18 | return UIBindingObserver(UIElement: self) { marker, map in
19 | marker.map = map
20 | }.asObserver()
21 | }
22 |
23 | public var rx_icon: AnyObserver {
24 | return UIBindingObserver(UIElement: self) { marker, icon in
25 | marker.icon = icon
26 | }.asObserver()
27 | }
28 |
29 | public var rx_position: AnyObserver {
30 | return UIBindingObserver(UIElement: self) { marker, position in
31 | marker.position = position
32 | }.asObserver()
33 | }
34 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Lee Sun-Hyoup
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/RxGoogleMaps.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |s|
2 | s.name = "RxGoogleMaps"
3 | s.version = "0.1"
4 | s.summary = "RxGoogleMaps is a RxSwift wrapper for GoogleMaps `delegate`."
5 | s.homepage = "https://github.com/kciter/RxGoogleMaps"
6 | s.license = { :type => 'MIT', :file => 'LICENSE' }
7 | s.author = { "kciter" => "kciter@naver.com" }
8 | s.source = { :git => "https://github.com/kciter/RxGoogleMaps.git", :tag => "#{s.version}" }
9 | s.platform = :ios, '8.0'
10 | s.source_files = 'Sources/*.{swift}'
11 | s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/GoogleMaps/Frameworks"' }
12 | s.frameworks = [
13 | 'UIKit',
14 | 'Foundation',
15 | "Accelerate",
16 | "AVFoundation",
17 | "CoreBluetooth",
18 | "CoreData",
19 | "CoreLocation",
20 | "CoreText",
21 | "GLKit",
22 | "ImageIO",
23 | "OpenGLES",
24 | "QuartzCore",
25 | "Security",
26 | "SystemConfiguration",
27 | "CoreGraphics",
28 | "GoogleMaps"
29 | ]
30 | s.libraries = 'c++', 'z', 'icucore'
31 | s.dependency 'RxSwift', '~> 2.5'
32 | s.dependency 'RxCocoa', '~> 2.5'
33 | s.dependency 'GoogleMaps', '~> 1.13'
34 | s.requires_arc = true
35 | end
36 |
--------------------------------------------------------------------------------
/Sample/RxGoogleMaps-SampleTests/RxGoogleMaps_SampleTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // RxGoogleMaps_SampleTests.swift
3 | // RxGoogleMaps-SampleTests
4 | //
5 | // Created by LeeSunhyoup on 2016. 7. 8..
6 | // Copyright © 2016년 Lee Sun-Hyoup. All rights reserved.
7 | //
8 |
9 | import XCTest
10 | @testable import RxGoogleMaps_Sample
11 |
12 | class RxGoogleMaps_SampleTests: XCTestCase {
13 |
14 | override func setUp() {
15 | super.setUp()
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 | }
18 |
19 | override func tearDown() {
20 | // Put teardown code here. This method is called after the invocation of each test method in the class.
21 | super.tearDown()
22 | }
23 |
24 | func testExample() {
25 | // This is an example of a functional test case.
26 | // Use XCTAssert and related functions to verify your tests produce the correct results.
27 | }
28 |
29 | func testPerformanceExample() {
30 | // This is an example of a performance test case.
31 | self.measureBlock {
32 | // Put the code you want to measure the time of here.
33 | }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/Sample/RxGoogleMaps-Sample/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/Sample/RxGoogleMaps-Sample/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // RxGoogleMaps-Sample
4 | //
5 | // Created by LeeSunhyoup on 2016. 7. 8..
6 | // Copyright © 2016년 Lee Sun-Hyoup. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import GoogleMaps
11 | import RxSwift
12 | import RxCocoa
13 | import RxGoogleMaps
14 |
15 | class ViewController: UIViewController {
16 | var mapView: GMSMapView!
17 | var disposeBag: DisposeBag = DisposeBag()
18 |
19 | override func viewDidLoad() {
20 | super.viewDidLoad()
21 |
22 | mapView = GMSMapView(frame: UIScreen.mainScreen().bounds)
23 | view.addSubview(mapView)
24 |
25 | let marker = GMSMarker(position: mapView.camera.target)
26 | marker.map = mapView
27 | marker.draggable = true
28 |
29 | bindToRx()
30 | }
31 |
32 | func bindToRx() {
33 | mapView.rx_willMove
34 | .asDriver()
35 | .driveNext { gesture in
36 | print("Will Move")
37 | }.addDisposableTo(disposeBag)
38 |
39 | mapView.rx_didChangeCameraPosition
40 | .asDriver()
41 | .driveNext { cameraPosition in
42 | print(cameraPosition)
43 | print("Did Change Camera Postion")
44 | }.addDisposableTo(disposeBag)
45 |
46 | mapView.rx_didTapMarker
47 | .asDriver()
48 | .driveNext { marker in
49 | print(marker.position)
50 | print("Did Marker Tap")
51 | }.addDisposableTo(disposeBag)
52 | }
53 | }
54 |
55 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata
19 |
20 | ## Other
21 | *.xccheckout
22 | *.moved-aside
23 | *.xcuserstate
24 | *.xcscmblueprint
25 |
26 | ## Obj-C/Swift specific
27 | *.hmap
28 | *.ipa
29 |
30 | ## Playgrounds
31 | timeline.xctimeline
32 | playground.xcworkspace
33 |
34 | # Swift Package Manager
35 | #
36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
37 | # Packages/
38 | .build/
39 |
40 | # CocoaPods
41 | #
42 | # We recommend against adding the Pods directory to your .gitignore. However
43 | # you should judge for yourself, the pros and cons are mentioned at:
44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
45 | #
46 | Pods/
47 | Podfile.lock
48 |
49 | # Carthage
50 | #
51 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
52 | # Carthage/Checkouts
53 |
54 | Carthage/Build
55 |
56 | # fastlane
57 | #
58 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
59 | # screenshots whenever they are needed.
60 | # For more information about the recommended setup visit:
61 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
62 |
63 | fastlane/report.xml
64 | fastlane/screenshots
65 |
66 | .DS_Store
67 |
--------------------------------------------------------------------------------
/Sample/RxGoogleMaps-Sample/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Sample/RxGoogleMaps-Sample/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Sources/RxGMSMapViewDelegateProxy.swift:
--------------------------------------------------------------------------------
1 | //
2 | // RxGMSMapViewDelegateProxy.swift
3 | // RxGoogleMaps
4 | //
5 | // Created by LeeSunhyoup on 2016. 7. 7..
6 | // Copyright © 2016년 Lee Sun-Hyoup. All rights reserved.
7 | //
8 |
9 | import GoogleMaps
10 | import RxSwift
11 | import RxCocoa
12 |
13 | class RxGMSMapViewDelegateProxy: DelegateProxy, GMSMapViewDelegate, DelegateProxyType {
14 | private let didTapMarkerSubject = PublishSubject()
15 | private let didTapMyLocationButtonForMapViewSubject = PublishSubject()
16 |
17 | let didTapMarkerEvent: ControlEvent
18 | let didTapMyLocationButtonForMapViewEvent: ControlEvent
19 |
20 | required init(parentObject: AnyObject) {
21 | didTapMarkerEvent = ControlEvent(events: didTapMarkerSubject)
22 | didTapMyLocationButtonForMapViewEvent = ControlEvent(events: didTapMyLocationButtonForMapViewSubject)
23 |
24 | super.init(parentObject: parentObject)
25 | }
26 |
27 | class func currentDelegateFor(object: AnyObject) -> AnyObject? {
28 | let mapView: GMSMapView = (object as? GMSMapView)!
29 | return mapView.delegate
30 | }
31 |
32 | class func setCurrentDelegate(delegate: AnyObject?, toObject object: AnyObject) {
33 | let mapView: GMSMapView = (object as? GMSMapView)!
34 | mapView.delegate = delegate as? GMSMapViewDelegate
35 | }
36 |
37 | func mapView(mapView: GMSMapView, didTapMarker marker: GMSMarker) -> Bool {
38 | didTapMarkerSubject.on(.Next(marker))
39 | return self._forwardToDelegate?.mapView?(mapView, didTapMarker: marker) ?? false
40 | }
41 |
42 | func didTapMyLocationButtonForMapView(mapView: GMSMapView) -> Bool {
43 | didTapMyLocationButtonForMapViewSubject.on(.Next())
44 | return self._forwardToDelegate?.didTapMyLocationButtonForMapView?(mapView) ?? true
45 | }
46 | }
--------------------------------------------------------------------------------
/Sample/RxGoogleMaps-Sample/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // RxGoogleMaps-Sample
4 | //
5 | // Created by LeeSunhyoup on 2016. 7. 8..
6 | // Copyright © 2016년 Lee Sun-Hyoup. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import GoogleMaps
11 |
12 | @UIApplicationMain
13 | class AppDelegate: UIResponder, UIApplicationDelegate {
14 |
15 | var window: UIWindow?
16 |
17 |
18 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
19 | // Override point for customization after application launch.
20 | GMSServices.provideAPIKey("GoogleMaps-Key")
21 | return true
22 | }
23 |
24 | func applicationWillResignActive(application: UIApplication) {
25 | // 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.
26 | // 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.
27 | }
28 |
29 | func applicationDidEnterBackground(application: UIApplication) {
30 | // 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.
31 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
32 | }
33 |
34 | func applicationWillEnterForeground(application: UIApplication) {
35 | // 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.
36 | }
37 |
38 | func applicationDidBecomeActive(application: UIApplication) {
39 | // 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.
40 | }
41 |
42 | func applicationWillTerminate(application: UIApplication) {
43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
44 | }
45 |
46 |
47 | }
48 |
49 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # RxGoogleMaps
2 | RxGoogleMaps is a [RxSwift](https://github.com/ReactiveX/RxSwift) wrapper for [GoogleMaps](https://developers.google.com/maps/documentation/ios-sdk/start) delegate.
3 |
4 | ## Example
5 | ```swift
6 | mapView = GMSMapView(frame: UIScreen.mainScreen().bounds)
7 | view.addSubview(mapView)
8 |
9 | mapView.rx_didChangeCameraPosition
10 | .asDriver()
11 | .driveNext { cameraPosition in
12 | print(cameraPosition)
13 | print("Did Change Camera Postion")
14 | }.addDisposableTo(disposeBag)
15 |
16 | mapView.rx_didTapMarker
17 | .asDriver()
18 | .driveNext { marker in
19 | print(marker.position)
20 | print("Did Marker Tap")
21 | }.addDisposableTo(disposeBag)
22 | ```
23 |
24 | ## Requirements
25 | * iOS 8.0+
26 | * Swift 2.2+
27 |
28 | ## Installation
29 | * **CocoaPods**
30 |
GoogleMaps is static libarary and CocoaPods doesn't support to static library...
So normally it can't be used. But, if you want to use CocoaPods, see below.
31 | ```ruby
32 | # Podfile Sample
33 | target 'Your-App' do
34 | use_frameworks!
35 | pod 'RxGoogleMaps', :git => 'https://github.com/kciter/RxGoogleMaps', :branch => "master"
36 | end
37 |
38 | Pod::Installer.class_eval { def verify_no_static_framework_transitive_dependencies; end }
39 |
40 | post_install do |installer|
41 | installer.pods_project.targets.each do |target|
42 | if target.name.eql?("Your-App")
43 | puts "Removing GoogleMaps in #{target.name} OTHER_LDFLAGS"
44 | target.build_configurations.each do |config|
45 | xcconfig_path = config.base_configuration_reference.real_path
46 | xcconfig = File.read(xcconfig_path)
47 | File.open(xcconfig_path, "w") { |file| file << xcconfig.sub('-framework "GoogleMaps"', '') }
48 | end
49 | end
50 | end
51 | end
52 | ```
53 | It's very difficult. I recommend that you manually install.
54 |
55 | * **Manually**
56 |
To install manually the RxGoogleMaps in an app, just drag the `Sources/*.swift` file into your project.
57 |
58 | ## Support
59 | ### `GMSMapView+Rx`
60 | ```swift
61 | // MARK: Observer Properties
62 | public var rx_selectedMarker: AnyObserver
63 | public var rx_zoom: AnyObserver
64 |
65 | // MARK: Marker Events
66 | public var rx_didTapMarker: ControlEvent
67 | public var rx_didDragMarker: ControlEvent
68 | public var rx_didBeginDraggingMarker: ControlEvent
69 | public var rx_didEndDraggingMarker: ControlEvent
70 |
71 | // MARK: Camera Events
72 | public var rx_willMove: ControlEvent
73 | public var rx_didChangeCameraPosition: ControlEvent
74 | public var rx_idleAtCameraPosition: ControlEvent
75 |
76 | // MARK: User Interaction
77 | public var rx_didTapAtCoordinate: ControlEvent
78 | public var rx_didLongPressAtCoordinate: ControlEvent
79 |
80 | // MARK: Overlay Events
81 | public var rx_didTapOverlay: ControlEvent
82 |
83 | // MARK: InfoWindow Events
84 | public var rx_didTapInfoWindowOfMarker: ControlEvent
85 | public var rx_didLongPressInfoWindowOfMarker: ControlEvent
86 | public var rx_didCloseInfoWindowOfMarker: ControlEvent
87 |
88 | // MARK: MyLocationButton Event
89 | public var rx_didTapMyLocationButtonForMapView: ControlEvent
90 |
91 | // MARK: Rendering Events
92 | public var rx_mapViewSnapshotReady: ControlEvent
93 | public var rx_mapViewDidStartTileRendering: ControlEvent
94 | public var rx_mapViewDidFinishTileRendering: ControlEvent
95 | ```
96 |
97 | ### `GMSMarker+Rx`
98 | ```swift
99 | // MARK: Observer Properties
100 | public var rx_map: AnyObserver
101 | public var rx_icon: AnyObserver
102 | public var rx_position: AnyObserver
103 | ```
104 |
105 | ## Reference
106 | * https://github.com/RxSwiftCommunity/RxMKMapView
107 |
108 | ## License
109 | The MIT License (MIT)
110 |
111 | Copyright (c) 2016 Lee Sun-Hyoup
112 |
113 | Permission is hereby granted, free of charge, to any person obtaining a copy
114 | of this software and associated documentation files (the "Software"), to deal
115 | in the Software without restriction, including without limitation the rights
116 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
117 | copies of the Software, and to permit persons to whom the Software is
118 | furnished to do so, subject to the following conditions:
119 |
120 | The above copyright notice and this permission notice shall be included in all
121 | copies or substantial portions of the Software.
122 |
123 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
124 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
125 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
126 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
127 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
128 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
129 | SOFTWARE.
130 |
--------------------------------------------------------------------------------
/Sources/GMSMapView+Rx.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GMSMapView+Rx.swift
3 | // RxGoogleMaps
4 | //
5 | // Created by LeeSunhyoup on 2016. 7. 7..
6 | // Copyright © 2016년 Lee Sun-Hyoup. All rights reserved.
7 | //
8 |
9 | import GoogleMaps
10 | import RxSwift
11 | import RxCocoa
12 |
13 | // Taken from RxCocoa until marked as public
14 | func castOrThrow(resultType: T.Type, _ object: AnyObject) throws -> T {
15 | guard let returnValue = object as? T else {
16 | throw RxCocoaError.CastingError(object: object, targetType: resultType)
17 | }
18 | return returnValue
19 | }
20 |
21 | extension GMSMapView {
22 | /**
23 | Reactive wrapper for `delegate`.
24 |
25 | For more information take a look at `DelegateProxyType` protocol documentation.
26 | */
27 | public var rx_delegate: DelegateProxy {
28 | return RxGMSMapViewDelegateProxy.proxyForObject(self)
29 | }
30 |
31 | // MARK: Observer Properties
32 |
33 | public var rx_selectedMarker: AnyObserver {
34 | return UIBindingObserver(UIElement: self) { map, marker in
35 | map.selectedMarker = marker
36 | }.asObserver()
37 | }
38 |
39 | public var rx_zoom: AnyObserver {
40 | return UIBindingObserver(UIElement: self) { map, zoom in
41 | map.camera = GMSCameraPosition(
42 | target: map.camera.target,
43 | zoom: zoom,
44 | bearing: map.camera.bearing,
45 | viewingAngle: map.camera.viewingAngle
46 | )
47 | }.asObserver()
48 | }
49 |
50 | // MARK: Marker Events
51 |
52 | public var rx_didTapMarker: ControlEvent {
53 | let proxy = RxGMSMapViewDelegateProxy.proxyForObject(self)
54 | return proxy.didTapMarkerEvent
55 | }
56 |
57 | public var rx_didDragMarker: ControlEvent {
58 | let source = rx_delegate
59 | .observe(#selector(GMSMapViewDelegate.mapView(_:didDragMarker:)))
60 | .map { a in
61 | return try castOrThrow(GMSMarker.self, a[1])
62 | }
63 | return ControlEvent(events: source)
64 | }
65 |
66 | public var rx_didBeginDraggingMarker: ControlEvent {
67 | let source = rx_delegate
68 | .observe(#selector(GMSMapViewDelegate.mapView(_:didBeginDraggingMarker:)))
69 | .map { a in
70 | return try castOrThrow(GMSMarker.self, a[1])
71 | }
72 | return ControlEvent(events: source)
73 | }
74 |
75 | public var rx_didEndDraggingMarker: ControlEvent {
76 | let source = rx_delegate
77 | .observe(#selector(GMSMapViewDelegate.mapView(_:didEndDraggingMarker:)))
78 | .map { a in
79 | return try castOrThrow(GMSMarker.self, a[1])
80 | }
81 | return ControlEvent(events: source)
82 | }
83 |
84 | // MARK: Camera Events
85 |
86 | public var rx_willMove: ControlEvent {
87 | let source = rx_delegate
88 | .observe(#selector(GMSMapViewDelegate.mapView(_:willMove:)))
89 | .map { a in
90 | return try castOrThrow(Bool.self, a[1])
91 | }
92 | return ControlEvent(events: source)
93 | }
94 |
95 | public var rx_didChangeCameraPosition: ControlEvent {
96 | let source = rx_delegate
97 | .observe(#selector(GMSMapViewDelegate.mapView(_:didChangeCameraPosition:)))
98 | .map { a in
99 | return try castOrThrow(GMSCameraPosition.self, a[1])
100 | }
101 | return ControlEvent(events: source)
102 | }
103 |
104 | public var rx_idleAtCameraPosition: ControlEvent {
105 | let source = rx_delegate
106 | .observe(#selector(GMSMapViewDelegate.mapView(_:idleAtCameraPosition:)))
107 | .map { a in
108 | return try castOrThrow(GMSCameraPosition.self, a[1])
109 | }
110 | return ControlEvent(events: source)
111 | }
112 |
113 | // MARK: User Interaction
114 |
115 | public var rx_didTapAtCoordinate: ControlEvent {
116 | let source = rx_delegate
117 | .observe(#selector(GMSMapViewDelegate.mapView(_:didTapAtCoordinate:)))
118 | .map { a in
119 | return try castOrThrow(CLLocationCoordinate2D.self, a[1])
120 | }
121 | return ControlEvent(events: source)
122 | }
123 |
124 | public var rx_didLongPressAtCoordinate: ControlEvent {
125 | let source = rx_delegate
126 | .observe(#selector(GMSMapViewDelegate.mapView(_:didLongPressAtCoordinate:)))
127 | .map { a in
128 | return try castOrThrow(CLLocationCoordinate2D.self, a[1])
129 | }
130 | return ControlEvent(events: source)
131 | }
132 |
133 | // MARK: Overlay Events
134 |
135 | public var rx_didTapOverlay: ControlEvent {
136 | let source = rx_delegate
137 | .observe(#selector(GMSMapViewDelegate.mapView(_:didTapOverlay:)))
138 | .map { a in
139 | return try castOrThrow(GMSOverlay.self, a[1])
140 | }
141 | return ControlEvent(events: source)
142 | }
143 |
144 | // MARK: InfoWindow Events
145 |
146 | public var rx_didTapInfoWindowOfMarker: ControlEvent {
147 | let source = rx_delegate
148 | .observe(#selector(GMSMapViewDelegate.mapView(_:didTapInfoWindowOfMarker:)))
149 | .map { a in
150 | return try castOrThrow(GMSMarker.self, a[1])
151 | }
152 | return ControlEvent(events: source)
153 | }
154 |
155 | public var rx_didLongPressInfoWindowOfMarker: ControlEvent {
156 | let source = rx_delegate
157 | .observe(#selector(GMSMapViewDelegate.mapView(_:didLongPressInfoWindowOfMarker:)))
158 | .map { a in
159 | return try castOrThrow(GMSMarker.self, a[1])
160 | }
161 | return ControlEvent(events: source)
162 | }
163 |
164 | public var rx_didCloseInfoWindowOfMarker: ControlEvent {
165 | let source = rx_delegate
166 | .observe(#selector(GMSMapViewDelegate.mapView(_:didCloseInfoWindowOfMarker:)))
167 | .map { a in
168 | return try castOrThrow(GMSMarker.self, a[1])
169 | }
170 | return ControlEvent(events: source)
171 | }
172 |
173 | // MARK: MyLocationButton Event
174 |
175 | public var rx_didTapMyLocationButtonForMapView: ControlEvent {
176 | let proxy = RxGMSMapViewDelegateProxy.proxyForObject(self)
177 | return proxy.didTapMyLocationButtonForMapViewEvent
178 | }
179 |
180 | // MARK: Rendering Events
181 |
182 | public var rx_mapViewSnapshotReady: ControlEvent {
183 | let source = rx_delegate
184 | .observe(#selector(GMSMapViewDelegate.mapViewSnapshotReady(_:)))
185 | .map { _ in
186 | return
187 | }
188 | return ControlEvent(events: source)
189 | }
190 |
191 | public var rx_mapViewDidStartTileRendering: ControlEvent {
192 | let source = rx_delegate
193 | .observe(#selector(GMSMapViewDelegate.mapViewDidStartTileRendering(_:)))
194 | .map { _ in
195 | return
196 | }
197 | return ControlEvent(events: source)
198 | }
199 |
200 | public var rx_mapViewDidFinishTileRendering: ControlEvent {
201 | let source = rx_delegate
202 | .observe(#selector(GMSMapViewDelegate.mapViewDidFinishTileRendering(_:)))
203 | .map { _ in
204 | return
205 | }
206 | return ControlEvent(events: source)
207 | }
208 | }
--------------------------------------------------------------------------------
/Sample/RxGoogleMaps-Sample.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 545B9905D1479F2282813D6F /* Pods_RxGoogleMaps_Sample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD2D3B0393E0F494CBAFBB2F /* Pods_RxGoogleMaps_Sample.framework */; };
11 | B6032DC91D2F67E9009F0715 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6032DC81D2F67E9009F0715 /* AppDelegate.swift */; };
12 | B6032DCB1D2F67E9009F0715 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6032DCA1D2F67E9009F0715 /* ViewController.swift */; };
13 | B6032DCE1D2F67E9009F0715 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B6032DCC1D2F67E9009F0715 /* Main.storyboard */; };
14 | B6032DD01D2F67E9009F0715 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B6032DCF1D2F67E9009F0715 /* Assets.xcassets */; };
15 | B6032DD31D2F67E9009F0715 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B6032DD11D2F67E9009F0715 /* LaunchScreen.storyboard */; };
16 | B6032DDE1D2F67E9009F0715 /* RxGoogleMaps_SampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6032DDD1D2F67E9009F0715 /* RxGoogleMaps_SampleTests.swift */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXContainerItemProxy section */
20 | B6032DDA1D2F67E9009F0715 /* PBXContainerItemProxy */ = {
21 | isa = PBXContainerItemProxy;
22 | containerPortal = B6032DBD1D2F67E9009F0715 /* Project object */;
23 | proxyType = 1;
24 | remoteGlobalIDString = B6032DC41D2F67E9009F0715;
25 | remoteInfo = "RxGoogleMaps-Sample";
26 | };
27 | /* End PBXContainerItemProxy section */
28 |
29 | /* Begin PBXFileReference section */
30 | 3A4FBA8226841569AA0AD255 /* Pods-RxGoogleMaps-Sample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RxGoogleMaps-Sample.release.xcconfig"; path = "Pods/Target Support Files/Pods-RxGoogleMaps-Sample/Pods-RxGoogleMaps-Sample.release.xcconfig"; sourceTree = ""; };
31 | 45ED3BECC0AAA756A12351C4 /* Pods-RxGoogleMaps-Sample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RxGoogleMaps-Sample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RxGoogleMaps-Sample/Pods-RxGoogleMaps-Sample.debug.xcconfig"; sourceTree = ""; };
32 | 6A495ED3ABB166836107F41B /* Pods_RxGoogleMaps_SampleTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RxGoogleMaps_SampleTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
33 | B6032DC51D2F67E9009F0715 /* RxGoogleMaps-Sample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "RxGoogleMaps-Sample.app"; sourceTree = BUILT_PRODUCTS_DIR; };
34 | B6032DC81D2F67E9009F0715 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
35 | B6032DCA1D2F67E9009F0715 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
36 | B6032DCD1D2F67E9009F0715 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
37 | B6032DCF1D2F67E9009F0715 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
38 | B6032DD21D2F67E9009F0715 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
39 | B6032DD41D2F67E9009F0715 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
40 | B6032DD91D2F67E9009F0715 /* RxGoogleMaps-SampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "RxGoogleMaps-SampleTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
41 | B6032DDD1D2F67E9009F0715 /* RxGoogleMaps_SampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RxGoogleMaps_SampleTests.swift; sourceTree = ""; };
42 | B6032DDF1D2F67E9009F0715 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
43 | B6A84D7A1D32581F004E6EBF /* RxGoogleMaps.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxGoogleMaps.framework; path = "DerivedData/RxGoogleMaps-Sample/Build/Products/Debug-iphonesimulator/RxGoogleMaps/RxGoogleMaps.framework"; sourceTree = ""; };
44 | DD2D3B0393E0F494CBAFBB2F /* Pods_RxGoogleMaps_Sample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RxGoogleMaps_Sample.framework; sourceTree = BUILT_PRODUCTS_DIR; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | B6032DC21D2F67E9009F0715 /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | 545B9905D1479F2282813D6F /* Pods_RxGoogleMaps_Sample.framework in Frameworks */,
53 | );
54 | runOnlyForDeploymentPostprocessing = 0;
55 | };
56 | B6032DD61D2F67E9009F0715 /* Frameworks */ = {
57 | isa = PBXFrameworksBuildPhase;
58 | buildActionMask = 2147483647;
59 | files = (
60 | );
61 | runOnlyForDeploymentPostprocessing = 0;
62 | };
63 | /* End PBXFrameworksBuildPhase section */
64 |
65 | /* Begin PBXGroup section */
66 | 4B8A440DF592C85A923C307B /* Pods */ = {
67 | isa = PBXGroup;
68 | children = (
69 | 45ED3BECC0AAA756A12351C4 /* Pods-RxGoogleMaps-Sample.debug.xcconfig */,
70 | 3A4FBA8226841569AA0AD255 /* Pods-RxGoogleMaps-Sample.release.xcconfig */,
71 | );
72 | name = Pods;
73 | sourceTree = "";
74 | };
75 | 87DA8100F9A0851576C78326 /* Frameworks */ = {
76 | isa = PBXGroup;
77 | children = (
78 | B6A84D7A1D32581F004E6EBF /* RxGoogleMaps.framework */,
79 | DD2D3B0393E0F494CBAFBB2F /* Pods_RxGoogleMaps_Sample.framework */,
80 | 6A495ED3ABB166836107F41B /* Pods_RxGoogleMaps_SampleTests.framework */,
81 | );
82 | name = Frameworks;
83 | sourceTree = "";
84 | };
85 | B6032DBC1D2F67E9009F0715 = {
86 | isa = PBXGroup;
87 | children = (
88 | B6032DC71D2F67E9009F0715 /* RxGoogleMaps-Sample */,
89 | B6032DDC1D2F67E9009F0715 /* RxGoogleMaps-SampleTests */,
90 | B6032DC61D2F67E9009F0715 /* Products */,
91 | 4B8A440DF592C85A923C307B /* Pods */,
92 | 87DA8100F9A0851576C78326 /* Frameworks */,
93 | );
94 | sourceTree = "";
95 | };
96 | B6032DC61D2F67E9009F0715 /* Products */ = {
97 | isa = PBXGroup;
98 | children = (
99 | B6032DC51D2F67E9009F0715 /* RxGoogleMaps-Sample.app */,
100 | B6032DD91D2F67E9009F0715 /* RxGoogleMaps-SampleTests.xctest */,
101 | );
102 | name = Products;
103 | sourceTree = "";
104 | };
105 | B6032DC71D2F67E9009F0715 /* RxGoogleMaps-Sample */ = {
106 | isa = PBXGroup;
107 | children = (
108 | B6032DC81D2F67E9009F0715 /* AppDelegate.swift */,
109 | B6032DCA1D2F67E9009F0715 /* ViewController.swift */,
110 | B6032DCC1D2F67E9009F0715 /* Main.storyboard */,
111 | B6032DCF1D2F67E9009F0715 /* Assets.xcassets */,
112 | B6032DD11D2F67E9009F0715 /* LaunchScreen.storyboard */,
113 | B6032DD41D2F67E9009F0715 /* Info.plist */,
114 | );
115 | path = "RxGoogleMaps-Sample";
116 | sourceTree = "";
117 | };
118 | B6032DDC1D2F67E9009F0715 /* RxGoogleMaps-SampleTests */ = {
119 | isa = PBXGroup;
120 | children = (
121 | B6032DDD1D2F67E9009F0715 /* RxGoogleMaps_SampleTests.swift */,
122 | B6032DDF1D2F67E9009F0715 /* Info.plist */,
123 | );
124 | path = "RxGoogleMaps-SampleTests";
125 | sourceTree = "";
126 | };
127 | /* End PBXGroup section */
128 |
129 | /* Begin PBXNativeTarget section */
130 | B6032DC41D2F67E9009F0715 /* RxGoogleMaps-Sample */ = {
131 | isa = PBXNativeTarget;
132 | buildConfigurationList = B6032DE21D2F67E9009F0715 /* Build configuration list for PBXNativeTarget "RxGoogleMaps-Sample" */;
133 | buildPhases = (
134 | 239DDD3EE62B3564BA0B9EFE /* [CP] Check Pods Manifest.lock */,
135 | B6032DC11D2F67E9009F0715 /* Sources */,
136 | B6032DC21D2F67E9009F0715 /* Frameworks */,
137 | B6032DC31D2F67E9009F0715 /* Resources */,
138 | 80FD3518F15EC1A08BF7D3C0 /* [CP] Embed Pods Frameworks */,
139 | 8C1625FD3128E2BDA6CE7119 /* [CP] Copy Pods Resources */,
140 | );
141 | buildRules = (
142 | );
143 | dependencies = (
144 | );
145 | name = "RxGoogleMaps-Sample";
146 | productName = "RxGoogleMaps-Sample";
147 | productReference = B6032DC51D2F67E9009F0715 /* RxGoogleMaps-Sample.app */;
148 | productType = "com.apple.product-type.application";
149 | };
150 | B6032DD81D2F67E9009F0715 /* RxGoogleMaps-SampleTests */ = {
151 | isa = PBXNativeTarget;
152 | buildConfigurationList = B6032DE51D2F67E9009F0715 /* Build configuration list for PBXNativeTarget "RxGoogleMaps-SampleTests" */;
153 | buildPhases = (
154 | BCFD158C41BAC223997600C2 /* [CP] Check Pods Manifest.lock */,
155 | B6032DD51D2F67E9009F0715 /* Sources */,
156 | B6032DD61D2F67E9009F0715 /* Frameworks */,
157 | B6032DD71D2F67E9009F0715 /* Resources */,
158 | 279065232B68894C706B299B /* [CP] Embed Pods Frameworks */,
159 | 569D06C133040F6EF24293A2 /* [CP] Copy Pods Resources */,
160 | );
161 | buildRules = (
162 | );
163 | dependencies = (
164 | B6032DDB1D2F67E9009F0715 /* PBXTargetDependency */,
165 | );
166 | name = "RxGoogleMaps-SampleTests";
167 | productName = "RxGoogleMaps-SampleTests";
168 | productReference = B6032DD91D2F67E9009F0715 /* RxGoogleMaps-SampleTests.xctest */;
169 | productType = "com.apple.product-type.bundle.unit-test";
170 | };
171 | /* End PBXNativeTarget section */
172 |
173 | /* Begin PBXProject section */
174 | B6032DBD1D2F67E9009F0715 /* Project object */ = {
175 | isa = PBXProject;
176 | attributes = {
177 | LastSwiftUpdateCheck = 0730;
178 | LastUpgradeCheck = 0730;
179 | ORGANIZATIONNAME = "Lee Sun-Hyoup";
180 | TargetAttributes = {
181 | B6032DC41D2F67E9009F0715 = {
182 | CreatedOnToolsVersion = 7.3.1;
183 | };
184 | B6032DD81D2F67E9009F0715 = {
185 | CreatedOnToolsVersion = 7.3.1;
186 | TestTargetID = B6032DC41D2F67E9009F0715;
187 | };
188 | };
189 | };
190 | buildConfigurationList = B6032DC01D2F67E9009F0715 /* Build configuration list for PBXProject "RxGoogleMaps-Sample" */;
191 | compatibilityVersion = "Xcode 3.2";
192 | developmentRegion = English;
193 | hasScannedForEncodings = 0;
194 | knownRegions = (
195 | en,
196 | Base,
197 | );
198 | mainGroup = B6032DBC1D2F67E9009F0715;
199 | productRefGroup = B6032DC61D2F67E9009F0715 /* Products */;
200 | projectDirPath = "";
201 | projectRoot = "";
202 | targets = (
203 | B6032DC41D2F67E9009F0715 /* RxGoogleMaps-Sample */,
204 | B6032DD81D2F67E9009F0715 /* RxGoogleMaps-SampleTests */,
205 | );
206 | };
207 | /* End PBXProject section */
208 |
209 | /* Begin PBXResourcesBuildPhase section */
210 | B6032DC31D2F67E9009F0715 /* Resources */ = {
211 | isa = PBXResourcesBuildPhase;
212 | buildActionMask = 2147483647;
213 | files = (
214 | B6032DD31D2F67E9009F0715 /* LaunchScreen.storyboard in Resources */,
215 | B6032DD01D2F67E9009F0715 /* Assets.xcassets in Resources */,
216 | B6032DCE1D2F67E9009F0715 /* Main.storyboard in Resources */,
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | };
220 | B6032DD71D2F67E9009F0715 /* Resources */ = {
221 | isa = PBXResourcesBuildPhase;
222 | buildActionMask = 2147483647;
223 | files = (
224 | );
225 | runOnlyForDeploymentPostprocessing = 0;
226 | };
227 | /* End PBXResourcesBuildPhase section */
228 |
229 | /* Begin PBXShellScriptBuildPhase section */
230 | 239DDD3EE62B3564BA0B9EFE /* [CP] Check Pods Manifest.lock */ = {
231 | isa = PBXShellScriptBuildPhase;
232 | buildActionMask = 2147483647;
233 | files = (
234 | );
235 | inputPaths = (
236 | );
237 | name = "[CP] Check Pods Manifest.lock";
238 | outputPaths = (
239 | );
240 | runOnlyForDeploymentPostprocessing = 0;
241 | shellPath = /bin/sh;
242 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
243 | showEnvVarsInLog = 0;
244 | };
245 | 279065232B68894C706B299B /* [CP] Embed Pods Frameworks */ = {
246 | isa = PBXShellScriptBuildPhase;
247 | buildActionMask = 2147483647;
248 | files = (
249 | );
250 | inputPaths = (
251 | );
252 | name = "[CP] Embed Pods Frameworks";
253 | outputPaths = (
254 | );
255 | runOnlyForDeploymentPostprocessing = 0;
256 | shellPath = /bin/sh;
257 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RxGoogleMaps-SampleTests/Pods-RxGoogleMaps-SampleTests-frameworks.sh\"\n";
258 | showEnvVarsInLog = 0;
259 | };
260 | 569D06C133040F6EF24293A2 /* [CP] Copy Pods Resources */ = {
261 | isa = PBXShellScriptBuildPhase;
262 | buildActionMask = 2147483647;
263 | files = (
264 | );
265 | inputPaths = (
266 | );
267 | name = "[CP] Copy Pods Resources";
268 | outputPaths = (
269 | );
270 | runOnlyForDeploymentPostprocessing = 0;
271 | shellPath = /bin/sh;
272 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RxGoogleMaps-SampleTests/Pods-RxGoogleMaps-SampleTests-resources.sh\"\n";
273 | showEnvVarsInLog = 0;
274 | };
275 | 80FD3518F15EC1A08BF7D3C0 /* [CP] Embed Pods Frameworks */ = {
276 | isa = PBXShellScriptBuildPhase;
277 | buildActionMask = 2147483647;
278 | files = (
279 | );
280 | inputPaths = (
281 | );
282 | name = "[CP] Embed Pods Frameworks";
283 | outputPaths = (
284 | );
285 | runOnlyForDeploymentPostprocessing = 0;
286 | shellPath = /bin/sh;
287 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RxGoogleMaps-Sample/Pods-RxGoogleMaps-Sample-frameworks.sh\"\n";
288 | showEnvVarsInLog = 0;
289 | };
290 | 8C1625FD3128E2BDA6CE7119 /* [CP] Copy Pods Resources */ = {
291 | isa = PBXShellScriptBuildPhase;
292 | buildActionMask = 2147483647;
293 | files = (
294 | );
295 | inputPaths = (
296 | );
297 | name = "[CP] Copy Pods Resources";
298 | outputPaths = (
299 | );
300 | runOnlyForDeploymentPostprocessing = 0;
301 | shellPath = /bin/sh;
302 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RxGoogleMaps-Sample/Pods-RxGoogleMaps-Sample-resources.sh\"\n";
303 | showEnvVarsInLog = 0;
304 | };
305 | BCFD158C41BAC223997600C2 /* [CP] Check Pods Manifest.lock */ = {
306 | isa = PBXShellScriptBuildPhase;
307 | buildActionMask = 2147483647;
308 | files = (
309 | );
310 | inputPaths = (
311 | );
312 | name = "[CP] Check Pods Manifest.lock";
313 | outputPaths = (
314 | );
315 | runOnlyForDeploymentPostprocessing = 0;
316 | shellPath = /bin/sh;
317 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
318 | showEnvVarsInLog = 0;
319 | };
320 | /* End PBXShellScriptBuildPhase section */
321 |
322 | /* Begin PBXSourcesBuildPhase section */
323 | B6032DC11D2F67E9009F0715 /* Sources */ = {
324 | isa = PBXSourcesBuildPhase;
325 | buildActionMask = 2147483647;
326 | files = (
327 | B6032DCB1D2F67E9009F0715 /* ViewController.swift in Sources */,
328 | B6032DC91D2F67E9009F0715 /* AppDelegate.swift in Sources */,
329 | );
330 | runOnlyForDeploymentPostprocessing = 0;
331 | };
332 | B6032DD51D2F67E9009F0715 /* Sources */ = {
333 | isa = PBXSourcesBuildPhase;
334 | buildActionMask = 2147483647;
335 | files = (
336 | B6032DDE1D2F67E9009F0715 /* RxGoogleMaps_SampleTests.swift in Sources */,
337 | );
338 | runOnlyForDeploymentPostprocessing = 0;
339 | };
340 | /* End PBXSourcesBuildPhase section */
341 |
342 | /* Begin PBXTargetDependency section */
343 | B6032DDB1D2F67E9009F0715 /* PBXTargetDependency */ = {
344 | isa = PBXTargetDependency;
345 | target = B6032DC41D2F67E9009F0715 /* RxGoogleMaps-Sample */;
346 | targetProxy = B6032DDA1D2F67E9009F0715 /* PBXContainerItemProxy */;
347 | };
348 | /* End PBXTargetDependency section */
349 |
350 | /* Begin PBXVariantGroup section */
351 | B6032DCC1D2F67E9009F0715 /* Main.storyboard */ = {
352 | isa = PBXVariantGroup;
353 | children = (
354 | B6032DCD1D2F67E9009F0715 /* Base */,
355 | );
356 | name = Main.storyboard;
357 | sourceTree = "";
358 | };
359 | B6032DD11D2F67E9009F0715 /* LaunchScreen.storyboard */ = {
360 | isa = PBXVariantGroup;
361 | children = (
362 | B6032DD21D2F67E9009F0715 /* Base */,
363 | );
364 | name = LaunchScreen.storyboard;
365 | sourceTree = "";
366 | };
367 | /* End PBXVariantGroup section */
368 |
369 | /* Begin XCBuildConfiguration section */
370 | B6032DE01D2F67E9009F0715 /* Debug */ = {
371 | isa = XCBuildConfiguration;
372 | buildSettings = {
373 | ALWAYS_SEARCH_USER_PATHS = NO;
374 | CLANG_ANALYZER_NONNULL = YES;
375 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
376 | CLANG_CXX_LIBRARY = "libc++";
377 | CLANG_ENABLE_MODULES = YES;
378 | CLANG_ENABLE_OBJC_ARC = YES;
379 | CLANG_WARN_BOOL_CONVERSION = YES;
380 | CLANG_WARN_CONSTANT_CONVERSION = YES;
381 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
382 | CLANG_WARN_EMPTY_BODY = YES;
383 | CLANG_WARN_ENUM_CONVERSION = YES;
384 | CLANG_WARN_INT_CONVERSION = YES;
385 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
386 | CLANG_WARN_UNREACHABLE_CODE = YES;
387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
389 | COPY_PHASE_STRIP = NO;
390 | DEBUG_INFORMATION_FORMAT = dwarf;
391 | ENABLE_STRICT_OBJC_MSGSEND = YES;
392 | ENABLE_TESTABILITY = YES;
393 | GCC_C_LANGUAGE_STANDARD = gnu99;
394 | GCC_DYNAMIC_NO_PIC = NO;
395 | GCC_NO_COMMON_BLOCKS = YES;
396 | GCC_OPTIMIZATION_LEVEL = 0;
397 | GCC_PREPROCESSOR_DEFINITIONS = (
398 | "DEBUG=1",
399 | "$(inherited)",
400 | );
401 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
402 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
403 | GCC_WARN_UNDECLARED_SELECTOR = YES;
404 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
405 | GCC_WARN_UNUSED_FUNCTION = YES;
406 | GCC_WARN_UNUSED_VARIABLE = YES;
407 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
408 | MTL_ENABLE_DEBUG_INFO = YES;
409 | ONLY_ACTIVE_ARCH = YES;
410 | SDKROOT = iphoneos;
411 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
412 | };
413 | name = Debug;
414 | };
415 | B6032DE11D2F67E9009F0715 /* Release */ = {
416 | isa = XCBuildConfiguration;
417 | buildSettings = {
418 | ALWAYS_SEARCH_USER_PATHS = NO;
419 | CLANG_ANALYZER_NONNULL = YES;
420 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
421 | CLANG_CXX_LIBRARY = "libc++";
422 | CLANG_ENABLE_MODULES = YES;
423 | CLANG_ENABLE_OBJC_ARC = YES;
424 | CLANG_WARN_BOOL_CONVERSION = YES;
425 | CLANG_WARN_CONSTANT_CONVERSION = YES;
426 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
427 | CLANG_WARN_EMPTY_BODY = YES;
428 | CLANG_WARN_ENUM_CONVERSION = YES;
429 | CLANG_WARN_INT_CONVERSION = YES;
430 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
431 | CLANG_WARN_UNREACHABLE_CODE = YES;
432 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
433 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
434 | COPY_PHASE_STRIP = NO;
435 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
436 | ENABLE_NS_ASSERTIONS = NO;
437 | ENABLE_STRICT_OBJC_MSGSEND = YES;
438 | GCC_C_LANGUAGE_STANDARD = gnu99;
439 | GCC_NO_COMMON_BLOCKS = YES;
440 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
441 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
442 | GCC_WARN_UNDECLARED_SELECTOR = YES;
443 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
444 | GCC_WARN_UNUSED_FUNCTION = YES;
445 | GCC_WARN_UNUSED_VARIABLE = YES;
446 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
447 | MTL_ENABLE_DEBUG_INFO = NO;
448 | SDKROOT = iphoneos;
449 | VALIDATE_PRODUCT = YES;
450 | };
451 | name = Release;
452 | };
453 | B6032DE31D2F67E9009F0715 /* Debug */ = {
454 | isa = XCBuildConfiguration;
455 | baseConfigurationReference = 45ED3BECC0AAA756A12351C4 /* Pods-RxGoogleMaps-Sample.debug.xcconfig */;
456 | buildSettings = {
457 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
458 | FRAMEWORK_SEARCH_PATHS = (
459 | "$(inherited)",
460 | "$(PROJECT_DIR)/DerivedData/RxGoogleMaps-Sample/Build/Products/Debug-iphonesimulator/RxGoogleMaps",
461 | );
462 | INFOPLIST_FILE = "RxGoogleMaps-Sample/Info.plist";
463 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
464 | OTHER_LDFLAGS = "$(inherited)";
465 | PRODUCT_BUNDLE_IDENTIFIER = "kciter.RxGoogleMaps-Sample";
466 | PRODUCT_NAME = "$(TARGET_NAME)";
467 | };
468 | name = Debug;
469 | };
470 | B6032DE41D2F67E9009F0715 /* Release */ = {
471 | isa = XCBuildConfiguration;
472 | baseConfigurationReference = 3A4FBA8226841569AA0AD255 /* Pods-RxGoogleMaps-Sample.release.xcconfig */;
473 | buildSettings = {
474 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
475 | FRAMEWORK_SEARCH_PATHS = (
476 | "$(inherited)",
477 | "$(PROJECT_DIR)/DerivedData/RxGoogleMaps-Sample/Build/Products/Debug-iphonesimulator/RxGoogleMaps",
478 | );
479 | INFOPLIST_FILE = "RxGoogleMaps-Sample/Info.plist";
480 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
481 | OTHER_LDFLAGS = "$(inherited)";
482 | PRODUCT_BUNDLE_IDENTIFIER = "kciter.RxGoogleMaps-Sample";
483 | PRODUCT_NAME = "$(TARGET_NAME)";
484 | };
485 | name = Release;
486 | };
487 | B6032DE61D2F67E9009F0715 /* Debug */ = {
488 | isa = XCBuildConfiguration;
489 | buildSettings = {
490 | BUNDLE_LOADER = "$(TEST_HOST)";
491 | INFOPLIST_FILE = "RxGoogleMaps-SampleTests/Info.plist";
492 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
493 | PRODUCT_BUNDLE_IDENTIFIER = "kciter.RxGoogleMaps-SampleTests";
494 | PRODUCT_NAME = "$(TARGET_NAME)";
495 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RxGoogleMaps-Sample.app/RxGoogleMaps-Sample";
496 | };
497 | name = Debug;
498 | };
499 | B6032DE71D2F67E9009F0715 /* Release */ = {
500 | isa = XCBuildConfiguration;
501 | buildSettings = {
502 | BUNDLE_LOADER = "$(TEST_HOST)";
503 | INFOPLIST_FILE = "RxGoogleMaps-SampleTests/Info.plist";
504 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
505 | PRODUCT_BUNDLE_IDENTIFIER = "kciter.RxGoogleMaps-SampleTests";
506 | PRODUCT_NAME = "$(TARGET_NAME)";
507 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RxGoogleMaps-Sample.app/RxGoogleMaps-Sample";
508 | };
509 | name = Release;
510 | };
511 | /* End XCBuildConfiguration section */
512 |
513 | /* Begin XCConfigurationList section */
514 | B6032DC01D2F67E9009F0715 /* Build configuration list for PBXProject "RxGoogleMaps-Sample" */ = {
515 | isa = XCConfigurationList;
516 | buildConfigurations = (
517 | B6032DE01D2F67E9009F0715 /* Debug */,
518 | B6032DE11D2F67E9009F0715 /* Release */,
519 | );
520 | defaultConfigurationIsVisible = 0;
521 | defaultConfigurationName = Release;
522 | };
523 | B6032DE21D2F67E9009F0715 /* Build configuration list for PBXNativeTarget "RxGoogleMaps-Sample" */ = {
524 | isa = XCConfigurationList;
525 | buildConfigurations = (
526 | B6032DE31D2F67E9009F0715 /* Debug */,
527 | B6032DE41D2F67E9009F0715 /* Release */,
528 | );
529 | defaultConfigurationIsVisible = 0;
530 | defaultConfigurationName = Release;
531 | };
532 | B6032DE51D2F67E9009F0715 /* Build configuration list for PBXNativeTarget "RxGoogleMaps-SampleTests" */ = {
533 | isa = XCConfigurationList;
534 | buildConfigurations = (
535 | B6032DE61D2F67E9009F0715 /* Debug */,
536 | B6032DE71D2F67E9009F0715 /* Release */,
537 | );
538 | defaultConfigurationIsVisible = 0;
539 | defaultConfigurationName = Release;
540 | };
541 | /* End XCConfigurationList section */
542 | };
543 | rootObject = B6032DBD1D2F67E9009F0715 /* Project object */;
544 | }
545 |
--------------------------------------------------------------------------------