Skip to content

Commit a75ba77

Browse files
author
Spike Brehm
committed
Revert "Merge pull request react-native-maps#923 from exponent/react-native-40"
This reverts commit fcc2995, reversing changes made to 1e71a21.
1 parent ff9bf14 commit a75ba77

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+203
-185
lines changed

example/examples/EventListener.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import React, { PropTypes } from 'react';
2+
import SyntheticEvent from 'react/lib/SyntheticEvent';
23
import {
34
StyleSheet,
45
View,
56
Text,
67
Dimensions,
78
ScrollView,
89
} from 'react-native';
9-
// eslint-disable-next-line max-len
10-
import SyntheticEvent from 'react-native/Libraries/Renderer/src/renderers/shared/stack/event/SyntheticEvent';
1110
import MapView from 'react-native-maps';
1211
import PriceMarker from './PriceMarker';
1312

example/ios/AirMapsExplorer.xcodeproj/project.pbxproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
21E6570C1D77591A00B75EE5 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21E6570B1D77591A00B75EE5 /* MobileCoreServices.framework */; };
3333
21E6570E1D77591F00B75EE5 /* MapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21E6570D1D77591F00B75EE5 /* MapKit.framework */; };
3434
21E657101D77594C00B75EE5 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21E6570F1D77594C00B75EE5 /* AudioToolbox.framework */; };
35+
3E4E0B5921E01BC4043FD8CD /* Pods_AirMapsExplorer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3591658C00398534590C8751 /* Pods_AirMapsExplorer.framework */; };
3536
8620CC871DBD814A00B79BFE /* AIRGMSMarker.m in Sources */ = {isa = PBXBuildFile; fileRef = 8620CC6E1DBD814A00B79BFE /* AIRGMSMarker.m */; };
3637
8620CC881DBD814A00B79BFE /* AIRGoogleMap.m in Sources */ = {isa = PBXBuildFile; fileRef = 8620CC701DBD814A00B79BFE /* AIRGoogleMap.m */; };
3738
8620CC891DBD814A00B79BFE /* AIRGoogleMapCallout.m in Sources */ = {isa = PBXBuildFile; fileRef = 8620CC721DBD814A00B79BFE /* AIRGoogleMapCallout.m */; };
@@ -49,7 +50,7 @@
4950
8697D6251DBEE22B00DB7D0F /* AIRGoogleMapCircleManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 8697D6241DBEE22B00DB7D0F /* AIRGoogleMapCircleManager.m */; };
5051
86DE6F881DCE7D21002A5053 /* AIRGoogleMapUrlTile.m in Sources */ = {isa = PBXBuildFile; fileRef = 86DE6F871DCE7D21002A5053 /* AIRGoogleMapUrlTile.m */; };
5152
86DE6F8B1DCE8543002A5053 /* AIRGoogleMapURLTileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 86DE6F8A1DCE8543002A5053 /* AIRGoogleMapURLTileManager.m */; };
52-
A622B8115793E41C70169A8B /* libPods-AirMapsExplorer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E5044A406006E7C2A53E05C /* libPods-AirMapsExplorer.a */; };
53+
C9315A21AD5A149EB5B40F29 /* Pods_AirMapsExplorer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24EB66BA0860A4DCD4CA3D77 /* Pods_AirMapsExplorer.framework */; };
5354
/* End PBXBuildFile section */
5455

5556
/* Begin PBXContainerItemProxy section */
@@ -65,7 +66,6 @@
6566
/* Begin PBXFileReference section */
6667
008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
6768
00E356EE1AD99517003FC87E /* AirMapsExplorerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AirMapsExplorerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
68-
0E5044A406006E7C2A53E05C /* libPods-AirMapsExplorer.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AirMapsExplorer.a"; sourceTree = BUILT_PRODUCTS_DIR; };
6969
13B07F961A680F5B00A75B9A /* AirMapsExplorer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AirMapsExplorer.app; sourceTree = BUILT_PRODUCTS_DIR; };
7070
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = AirMapsExplorer/AppDelegate.h; sourceTree = "<group>"; };
7171
13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = AirMapsExplorer/AppDelegate.m; sourceTree = "<group>"; };
@@ -116,6 +116,7 @@
116116
21E6570B1D77591A00B75EE5 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
117117
21E6570D1D77591F00B75EE5 /* MapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapKit.framework; path = System/Library/Frameworks/MapKit.framework; sourceTree = SDKROOT; };
118118
21E6570F1D77594C00B75EE5 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
119+
3591658C00398534590C8751 /* Pods_AirMapsExplorer.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AirMapsExplorer.framework; sourceTree = BUILT_PRODUCTS_DIR; };
119120
8620CC6D1DBD814A00B79BFE /* AIRGMSMarker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRGMSMarker.h; sourceTree = "<group>"; };
120121
8620CC6E1DBD814A00B79BFE /* AIRGMSMarker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AIRGMSMarker.m; sourceTree = "<group>"; };
121122
8620CC6F1DBD814A00B79BFE /* AIRGoogleMap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRGoogleMap.h; sourceTree = "<group>"; };
@@ -146,12 +147,12 @@
146147
8697D6211DBEDE6100DB7D0F /* AIRGoogleMapCircle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AIRGoogleMapCircle.m; sourceTree = "<group>"; };
147148
8697D6231DBEE22B00DB7D0F /* AIRGoogleMapCircleManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRGoogleMapCircleManager.h; sourceTree = "<group>"; };
148149
8697D6241DBEE22B00DB7D0F /* AIRGoogleMapCircleManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AIRGoogleMapCircleManager.m; sourceTree = "<group>"; };
150+
BE5DE1E9AE25978F88CD940A /* Pods-AirMapsExplorer.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AirMapsExplorer.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AirMapsExplorer/Pods-AirMapsExplorer.debug.xcconfig"; sourceTree = "<group>"; };
151+
E138AD0CDB08FE57B09B18F8 /* Pods-AirMapsExplorer.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AirMapsExplorer.release.xcconfig"; path = "Pods/Target Support Files/Pods-AirMapsExplorer/Pods-AirMapsExplorer.release.xcconfig"; sourceTree = "<group>"; };
149152
86DE6F861DCE7D21002A5053 /* AIRGoogleMapUrlTile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRGoogleMapUrlTile.h; sourceTree = "<group>"; };
150153
86DE6F871DCE7D21002A5053 /* AIRGoogleMapUrlTile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AIRGoogleMapUrlTile.m; sourceTree = "<group>"; };
151154
86DE6F891DCE8543002A5053 /* AIRGoogleMapUrlTileManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRGoogleMapUrlTileManager.h; sourceTree = "<group>"; };
152155
86DE6F8A1DCE8543002A5053 /* AIRGoogleMapURLTileManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AIRGoogleMapURLTileManager.m; sourceTree = "<group>"; };
153-
BE5DE1E9AE25978F88CD940A /* Pods-AirMapsExplorer.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AirMapsExplorer.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AirMapsExplorer/Pods-AirMapsExplorer.debug.xcconfig"; sourceTree = "<group>"; };
154-
E138AD0CDB08FE57B09B18F8 /* Pods-AirMapsExplorer.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AirMapsExplorer.release.xcconfig"; path = "Pods/Target Support Files/Pods-AirMapsExplorer/Pods-AirMapsExplorer.release.xcconfig"; sourceTree = "<group>"; };
155156
/* End PBXFileReference section */
156157

157158
/* Begin PBXFrameworksBuildPhase section */
@@ -170,7 +171,7 @@
170171
21E6570E1D77591F00B75EE5 /* MapKit.framework in Frameworks */,
171172
21E6570C1D77591A00B75EE5 /* MobileCoreServices.framework in Frameworks */,
172173
21E6570A1D77591400B75EE5 /* SystemConfiguration.framework in Frameworks */,
173-
A622B8115793E41C70169A8B /* libPods-AirMapsExplorer.a in Frameworks */,
174+
3E4E0B5921E01BC4043FD8CD /* Pods_AirMapsExplorer.framework in Frameworks */,
174175
);
175176
runOnlyForDeploymentPostprocessing = 0;
176177
};
@@ -189,7 +190,7 @@
189190
21E6570D1D77591F00B75EE5 /* MapKit.framework */,
190191
21E6570B1D77591A00B75EE5 /* MobileCoreServices.framework */,
191192
21E657091D77591400B75EE5 /* SystemConfiguration.framework */,
192-
0E5044A406006E7C2A53E05C /* libPods-AirMapsExplorer.a */,
193+
3591658C00398534590C8751 /* Pods_AirMapsExplorer.framework */,
193194
);
194195
name = Frameworks;
195196
sourceTree = "<group>";

example/ios/AirMapsExplorer/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import "AppDelegate.h"
1111

12-
#import <React/RCTRootView.h>
12+
#import "RCTRootView.h"
1313

1414
#import <GoogleMaps/GoogleMaps.h>
1515

example/ios/AirMapsExplorerTests/AirMapsExplorerTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#import <UIKit/UIKit.h>
1111
#import <XCTest/XCTest.h>
1212

13-
#import <React/RCTLog.h>
14-
#import <React/RCTRootView.h>
13+
#import "RCTLog.h"
14+
#import "RCTRootView.h"
1515

1616
#define TIMEOUT_SECONDS 240
1717
#define TEXT_TO_LOOK_FOR @"Welcome to React Native!"

example/ios/Podfile

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
# You Podfile should look similar to this file. React Native currently does not support use_frameworks!
1+
# You Podfile should look similar to this file. Whether you use_frameworks! or not, the following configuration should work.
2+
#
3+
# However if you DO NOT use_frameworks! and you prefer to install pods instead of
4+
# dragging the AirMaps directory into your project, refer to the comments below (steps 1~4)
5+
26
source 'https://github.com/CocoaPods/Specs.git'
37

48
platform :ios, '8.0'
9+
use_frameworks!
510

611
# Change 'AirMapsExplorer' to match the target in your Xcode project.
712
target 'AirMapsExplorer' do
813
pod 'React', path: '../node_modules/react-native', :subspecs => [
914
'Core',
1015
'RCTActionSheet',
11-
'RCTAnimation',
1216
'RCTGeolocation',
1317
'RCTImage',
1418
'RCTLinkingIOS',
@@ -19,9 +23,29 @@ target 'AirMapsExplorer' do
1923
'RCTWebSocket'
2024
]
2125

22-
pod 'GoogleMaps' # <~~ remove this line if you do not want to support GoogleMaps on iOS
23-
2426
# when not using frameworks we can do this instead of including the source files in our project (1/4):
25-
# pod 'react-native-maps', path: '../../'
26-
# pod 'react-native-google-maps', path: '../../' # <~~ if you need GoogleMaps support on iOS
27+
# pod 'react-native-maps', path: '../../'
28+
# pod 'react-native-google-maps', path: '../../' # <~~ if you need GoogleMaps support on iOS
29+
30+
# when not using frameworks we can remove this line (2/4):
31+
pod 'GoogleMaps' # <~~ remove this line if you do not want to support GoogleMaps on iOS
2732
end
33+
34+
# when not using frameworks this might be necessary, but try without it first and see if `pod install` works (3/4):
35+
# THIS IS ONLY NECESSARY IF YOU NEED GoogleMaps SUPPORT
36+
# pre_install do |installer|
37+
# # copied from https://github.com/CocoaPods/CocoaPods/issues/2926
38+
# # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
39+
# def installer.verify_no_static_framework_transitive_dependencies; end
40+
# end
41+
42+
# when not using frameworks (4/4):
43+
# THIS IS ONLY NECESSARY IF YOU NEED GoogleMaps SUPPORT
44+
# #Crud, this shouldn't be necessary, but https://github.com/CocoaPods/CocoaPods/issues/5429
45+
# post_install do |installer|
46+
# installer.pods_project.targets.each do |target|
47+
# target.build_configurations.each do |config|
48+
# config.build_settings['CLANG_ENABLE_MODULES'] = 'NO'
49+
# end
50+
# end
51+
# end

example/ios/Podfile.lock

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,34 @@
11
PODS:
2-
- GoogleMaps (2.1.1):
3-
- GoogleMaps/Maps (= 2.1.1)
4-
- GoogleMaps/Base (2.1.1)
5-
- GoogleMaps/Maps (2.1.1):
6-
- GoogleMaps/Base
7-
- React/Core (0.40.0):
8-
- React/cxxreact
9-
- React/yoga
10-
- React/cxxreact (0.40.0):
11-
- React/jschelpers
12-
- React/jschelpers (0.40.0)
13-
- React/RCTActionSheet (0.40.0):
2+
- GoogleMaps (2.1.0):
3+
- GoogleMaps/Maps (= 2.1.0)
4+
- GoogleMaps/Base (2.1.0)
5+
- GoogleMaps/Maps (2.1.0):
6+
- GoogleMaps/Base (= 2.1.0)
7+
- React/Core (0.35.0)
8+
- React/RCTActionSheet (0.35.0):
149
- React/Core
15-
- React/RCTAnimation (0.40.0):
10+
- React/RCTGeolocation (0.35.0):
1611
- React/Core
17-
- React/RCTGeolocation (0.40.0):
18-
- React/Core
19-
- React/RCTImage (0.40.0):
12+
- React/RCTImage (0.35.0):
2013
- React/Core
2114
- React/RCTNetwork
22-
- React/RCTLinkingIOS (0.40.0):
15+
- React/RCTLinkingIOS (0.35.0):
2316
- React/Core
24-
- React/RCTNetwork (0.40.0):
17+
- React/RCTNetwork (0.35.0):
2518
- React/Core
26-
- React/RCTSettings (0.40.0):
19+
- React/RCTSettings (0.35.0):
2720
- React/Core
28-
- React/RCTText (0.40.0):
21+
- React/RCTText (0.35.0):
2922
- React/Core
30-
- React/RCTVibration (0.40.0):
23+
- React/RCTVibration (0.35.0):
3124
- React/Core
32-
- React/RCTWebSocket (0.40.0):
25+
- React/RCTWebSocket (0.35.0):
3326
- React/Core
34-
- React/yoga (0.40.0)
3527

3628
DEPENDENCIES:
3729
- GoogleMaps
3830
- React/Core (from `../node_modules/react-native`)
3931
- React/RCTActionSheet (from `../node_modules/react-native`)
40-
- React/RCTAnimation (from `../node_modules/react-native`)
4132
- React/RCTGeolocation (from `../node_modules/react-native`)
4233
- React/RCTImage (from `../node_modules/react-native`)
4334
- React/RCTLinkingIOS (from `../node_modules/react-native`)
@@ -52,9 +43,9 @@ EXTERNAL SOURCES:
5243
:path: "../node_modules/react-native"
5344

5445
SPEC CHECKSUMS:
55-
GoogleMaps: a5b5bbe47734e2443bde781a6aa64e69fdb6d785
56-
React: 6dfb2f72edb1d74a800127ae157af038646673ce
46+
GoogleMaps: 06589b9a38097bce0cd6e90f0fd9b5e4b4a9344c
47+
React: d80af5410aa500d0cb1bce2cc4493a584cf2ec92
5748

58-
PODFILE CHECKSUM: ffbc20bd08f662256d501d07a70e77862684f702
49+
PODFILE CHECKSUM: be65689c848eff5d4099a483239b72acab62f6a4
5950

6051
COCOAPODS: 1.1.1

example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"dev": "concurrently 'npm run watch' 'npm run packager'"
1010
},
1111
"dependencies": {
12-
"react": "~15.4.1",
13-
"react-native": "^0.40.0",
14-
"react-native-maps": "file:../"
12+
"react": "^15.3.1",
13+
"react-native": "^0.35.0",
14+
"react-native-maps": "../"
1515
},
1616
"devDependencies": {
1717
"concurrently": "^2.2.0",

ios/AirGoogleMaps/AIRGMSMarker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77

88
#import <GoogleMaps/GoogleMaps.h>
9-
#import <React/UIView+React.h>
9+
#import "UIView+React.h"
1010

1111
@class AIRGoogleMapMarker;
1212

ios/AirGoogleMaps/AIRGoogleMap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
//
77

88
#import <UIKit/UIKit.h>
9-
#import <React/RCTComponent.h>
10-
#import <React/RCTConvert+MapKit.h>
9+
#import "RCTComponent.h"
1110
#import <GoogleMaps/GoogleMaps.h>
1211
#import <MapKit/MapKit.h>
12+
#import "RCTConvert+MapKit.h"
1313
#import "AIRGMSMarker.h"
1414

1515
@interface AIRGoogleMap : GMSMapView

ios/AirGoogleMaps/AIRGoogleMap.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#import "AIRGoogleMapUrlTile.h"
1414
#import <GoogleMaps/GoogleMaps.h>
1515
#import <MapKit/MapKit.h>
16-
#import <React/RCTConvert+MapKit.h>
17-
#import <React/UIView+React.h>
16+
#import "RCTConvert+MapKit.h"
17+
#import "UIView+React.h"
1818

1919
id regionAsJSON(MKCoordinateRegion region) {
2020
return @{

0 commit comments

Comments
 (0)