Skip to content

Commit bb98092

Browse files
author
Spike Brehm
authored
Merge pull request react-native-maps#923 from exponent/react-native-40
[RN 0.40] Update iOS header imports and JS SyntheticEvent import for RN 0.40
2 parents 4c4541a + 6d6b0b4 commit bb98092

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

+185
-203
lines changed

example/examples/EventListener.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import React, { PropTypes } from 'react';
2-
import SyntheticEvent from 'react/lib/SyntheticEvent';
32
import {
43
StyleSheet,
54
View,
65
Text,
76
Dimensions,
87
ScrollView,
98
} from 'react-native';
9+
// eslint-disable-next-line max-len
10+
import SyntheticEvent from 'react-native/Libraries/Renderer/src/renderers/shared/stack/event/SyntheticEvent';
1011
import MapView from 'react-native-maps';
1112
import PriceMarker from './PriceMarker';
1213

example/ios/AirMapsExplorer.xcodeproj/project.pbxproj

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
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 */; };
3635
8620CC871DBD814A00B79BFE /* AIRGMSMarker.m in Sources */ = {isa = PBXBuildFile; fileRef = 8620CC6E1DBD814A00B79BFE /* AIRGMSMarker.m */; };
3736
8620CC881DBD814A00B79BFE /* AIRGoogleMap.m in Sources */ = {isa = PBXBuildFile; fileRef = 8620CC701DBD814A00B79BFE /* AIRGoogleMap.m */; };
3837
8620CC891DBD814A00B79BFE /* AIRGoogleMapCallout.m in Sources */ = {isa = PBXBuildFile; fileRef = 8620CC721DBD814A00B79BFE /* AIRGoogleMapCallout.m */; };
@@ -50,7 +49,7 @@
5049
8697D6251DBEE22B00DB7D0F /* AIRGoogleMapCircleManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 8697D6241DBEE22B00DB7D0F /* AIRGoogleMapCircleManager.m */; };
5150
86DE6F881DCE7D21002A5053 /* AIRGoogleMapUrlTile.m in Sources */ = {isa = PBXBuildFile; fileRef = 86DE6F871DCE7D21002A5053 /* AIRGoogleMapUrlTile.m */; };
5251
86DE6F8B1DCE8543002A5053 /* AIRGoogleMapURLTileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 86DE6F8A1DCE8543002A5053 /* AIRGoogleMapURLTileManager.m */; };
53-
C9315A21AD5A149EB5B40F29 /* Pods_AirMapsExplorer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24EB66BA0860A4DCD4CA3D77 /* Pods_AirMapsExplorer.framework */; };
52+
A622B8115793E41C70169A8B /* libPods-AirMapsExplorer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E5044A406006E7C2A53E05C /* libPods-AirMapsExplorer.a */; };
5453
/* End PBXBuildFile section */
5554

5655
/* Begin PBXContainerItemProxy section */
@@ -66,6 +65,7 @@
6665
/* Begin PBXFileReference section */
6766
008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
6867
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,7 +116,6 @@
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; };
120119
8620CC6D1DBD814A00B79BFE /* AIRGMSMarker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRGMSMarker.h; sourceTree = "<group>"; };
121120
8620CC6E1DBD814A00B79BFE /* AIRGMSMarker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AIRGMSMarker.m; sourceTree = "<group>"; };
122121
8620CC6F1DBD814A00B79BFE /* AIRGoogleMap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRGoogleMap.h; sourceTree = "<group>"; };
@@ -147,12 +146,12 @@
147146
8697D6211DBEDE6100DB7D0F /* AIRGoogleMapCircle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AIRGoogleMapCircle.m; sourceTree = "<group>"; };
148147
8697D6231DBEE22B00DB7D0F /* AIRGoogleMapCircleManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRGoogleMapCircleManager.h; sourceTree = "<group>"; };
149148
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>"; };
152149
86DE6F861DCE7D21002A5053 /* AIRGoogleMapUrlTile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRGoogleMapUrlTile.h; sourceTree = "<group>"; };
153150
86DE6F871DCE7D21002A5053 /* AIRGoogleMapUrlTile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AIRGoogleMapUrlTile.m; sourceTree = "<group>"; };
154151
86DE6F891DCE8543002A5053 /* AIRGoogleMapUrlTileManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRGoogleMapUrlTileManager.h; sourceTree = "<group>"; };
155152
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>"; };
156155
/* End PBXFileReference section */
157156

158157
/* Begin PBXFrameworksBuildPhase section */
@@ -171,7 +170,7 @@
171170
21E6570E1D77591F00B75EE5 /* MapKit.framework in Frameworks */,
172171
21E6570C1D77591A00B75EE5 /* MobileCoreServices.framework in Frameworks */,
173172
21E6570A1D77591400B75EE5 /* SystemConfiguration.framework in Frameworks */,
174-
3E4E0B5921E01BC4043FD8CD /* Pods_AirMapsExplorer.framework in Frameworks */,
173+
A622B8115793E41C70169A8B /* libPods-AirMapsExplorer.a in Frameworks */,
175174
);
176175
runOnlyForDeploymentPostprocessing = 0;
177176
};
@@ -190,7 +189,7 @@
190189
21E6570D1D77591F00B75EE5 /* MapKit.framework */,
191190
21E6570B1D77591A00B75EE5 /* MobileCoreServices.framework */,
192191
21E657091D77591400B75EE5 /* SystemConfiguration.framework */,
193-
3591658C00398534590C8751 /* Pods_AirMapsExplorer.framework */,
192+
0E5044A406006E7C2A53E05C /* libPods-AirMapsExplorer.a */,
194193
);
195194
name = Frameworks;
196195
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 "RCTRootView.h"
12+
#import <React/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 "RCTLog.h"
14-
#import "RCTRootView.h"
13+
#import <React/RCTLog.h>
14+
#import <React/RCTRootView.h>
1515

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

example/ios/Podfile

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
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-
1+
# You Podfile should look similar to this file. React Native currently does not support use_frameworks!
62
source 'https://github.com/CocoaPods/Specs.git'
73

84
platform :ios, '8.0'
9-
use_frameworks!
105

116
# Change 'AirMapsExplorer' to match the target in your Xcode project.
127
target 'AirMapsExplorer' do
138
pod 'React', path: '../node_modules/react-native', :subspecs => [
149
'Core',
1510
'RCTActionSheet',
11+
'RCTAnimation',
1612
'RCTGeolocation',
1713
'RCTImage',
1814
'RCTLinkingIOS',
@@ -23,29 +19,9 @@ target 'AirMapsExplorer' do
2319
'RCTWebSocket'
2420
]
2521

26-
# when not using frameworks we can do this instead of including the source files in our project (1/4):
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):
3122
pod 'GoogleMaps' # <~~ remove this line if you do not want to support GoogleMaps on iOS
32-
end
3323

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
24+
# 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+
end

example/ios/Podfile.lock

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,43 @@
11
PODS:
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):
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):
914
- React/Core
10-
- React/RCTGeolocation (0.35.0):
15+
- React/RCTAnimation (0.40.0):
1116
- React/Core
12-
- React/RCTImage (0.35.0):
17+
- React/RCTGeolocation (0.40.0):
18+
- React/Core
19+
- React/RCTImage (0.40.0):
1320
- React/Core
1421
- React/RCTNetwork
15-
- React/RCTLinkingIOS (0.35.0):
22+
- React/RCTLinkingIOS (0.40.0):
1623
- React/Core
17-
- React/RCTNetwork (0.35.0):
24+
- React/RCTNetwork (0.40.0):
1825
- React/Core
19-
- React/RCTSettings (0.35.0):
26+
- React/RCTSettings (0.40.0):
2027
- React/Core
21-
- React/RCTText (0.35.0):
28+
- React/RCTText (0.40.0):
2229
- React/Core
23-
- React/RCTVibration (0.35.0):
30+
- React/RCTVibration (0.40.0):
2431
- React/Core
25-
- React/RCTWebSocket (0.35.0):
32+
- React/RCTWebSocket (0.40.0):
2633
- React/Core
34+
- React/yoga (0.40.0)
2735

2836
DEPENDENCIES:
2937
- GoogleMaps
3038
- React/Core (from `../node_modules/react-native`)
3139
- React/RCTActionSheet (from `../node_modules/react-native`)
40+
- React/RCTAnimation (from `../node_modules/react-native`)
3241
- React/RCTGeolocation (from `../node_modules/react-native`)
3342
- React/RCTImage (from `../node_modules/react-native`)
3443
- React/RCTLinkingIOS (from `../node_modules/react-native`)
@@ -43,9 +52,9 @@ EXTERNAL SOURCES:
4352
:path: "../node_modules/react-native"
4453

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

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

5160
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.3.1",
13-
"react-native": "^0.35.0",
14-
"react-native-maps": "../"
12+
"react": "~15.4.1",
13+
"react-native": "^0.40.0",
14+
"react-native-maps": "file:../"
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 "UIView+React.h"
9+
#import <React/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 "RCTComponent.h"
9+
#import <React/RCTComponent.h>
10+
#import <React/RCTConvert+MapKit.h>
1011
#import <GoogleMaps/GoogleMaps.h>
1112
#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 "RCTConvert+MapKit.h"
17-
#import "UIView+React.h"
16+
#import <React/RCTConvert+MapKit.h>
17+
#import <React/UIView+React.h>
1818

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

0 commit comments

Comments
 (0)