Skip to content

Commit

Permalink
chore: use google maps/places 5.0.0 for now
Browse files Browse the repository at this point in the history
to improve binary compatibility
  • Loading branch information
Hans Knöchel authored and Hans Knöchel committed Aug 25, 2021
1 parent 4b0e7be commit af1c4a8
Show file tree
Hide file tree
Showing 280 changed files with 6,250 additions and 243 deletions.
Binary file modified platform/GoogleMaps.framework/GoogleMaps
Binary file not shown.
25 changes: 22 additions & 3 deletions platform/GoogleMaps.framework/Headers/GMSAccessibilityLabels.h
Git LFS file not shown
78 changes: 75 additions & 3 deletions platform/GoogleMaps.framework/Headers/GMSAddress.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,75 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8e1f2e359c80efe61d3ccf07566b9423154c7a8c9b9867dee87c20f2358bcf2
size 2261
//
// GMSAddress.h
// Google Maps SDK for iOS
//
// Copyright 2014 Google LLC
//
// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
// Service: https://developers.google.com/maps/terms
//

#import <CoreLocation/CoreLocation.h>

#if __has_feature(modules)
@import GoogleMapsBase;
#else
#import <GoogleMapsBase/GoogleMapsBase.h>
#endif

NS_ASSUME_NONNULL_BEGIN

/**
* A result from a reverse geocode request, containing a human-readable address. This class is
* immutable and should be obtained via GMSGeocoder.
*
* Some of the fields may be nil, indicating they are not present.
*/
@interface GMSAddress : NSObject<NSCopying>

/** Location, or kLocationCoordinate2DInvalid if unknown. */
@property(nonatomic, readonly) CLLocationCoordinate2D coordinate;

/** Street number and name. */
@property(nonatomic, copy, readonly, nullable) NSString *thoroughfare;

/** Locality or city. */
@property(nonatomic, copy, readonly, nullable) NSString *locality;

/** Subdivision of locality, district or park. */
@property(nonatomic, copy, readonly, nullable) NSString *subLocality;

/** Region/State/Administrative area. */
@property(nonatomic, copy, readonly, nullable) NSString *administrativeArea;

/** Postal/Zip code. */
@property(nonatomic, copy, readonly, nullable) NSString *postalCode;

/** The country name. */
@property(nonatomic, copy, readonly, nullable) NSString *country;

/** An array of NSString containing formatted lines of the address. May be nil. */
@property(nonatomic, copy, readonly, nullable) NSArray<NSString *> *lines;

/**
* Returns the first line of the address.
*/
- (nullable NSString *)addressLine1 __GMS_AVAILABLE_BUT_DEPRECATED_MSG(
"This method is obsolete and will be removed in a future release. Use the lines property "
"instead.");

/**
* Returns the second line of the address.
*/
- (nullable NSString *)addressLine2 __GMS_AVAILABLE_BUT_DEPRECATED_MSG(
"This method is obsolete and will be removed in a future release. Use the lines property "
"instead.");

@end

/**
* The former type of geocode results (pre-1.7). This remains here for migration and will be
* removed in future releases.
*/
@compatibility_alias GMSReverseGeocodeResult GMSAddress;

NS_ASSUME_NONNULL_END
23 changes: 20 additions & 3 deletions platform/GoogleMaps.framework/Headers/GMSCALayer.h
Git LFS file not shown
169 changes: 166 additions & 3 deletions platform/GoogleMaps.framework/Headers/GMSCameraPosition.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,166 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d873358e491746e4feb08b271d193a0de490d712f353c5d222e27a46f792f5a2
size 7093
//
// GMSCameraPosition.h
// Google Maps SDK for iOS
//
// Copyright 2013 Google LLC
//
// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
// Service: https://developers.google.com/maps/terms
//

#import <CoreGraphics/CoreGraphics.h>
#import <CoreLocation/CoreLocation.h>

NS_ASSUME_NONNULL_BEGIN

/**
* An immutable class that aggregates all camera position parameters.
*/
@interface GMSCameraPosition : NSObject<NSCopying, NSMutableCopying>

/**
* Location on the Earth towards which the camera points.
*/
@property(nonatomic, readonly) CLLocationCoordinate2D target;

/**
* Zoom level. Zoom uses an exponentional scale, where zoom 0 represents the entire world as a
* 256 x 256 square. Each successive zoom level increases magnification by a factor of 2. So at
* zoom level 1, the world is 512x512, and at zoom level 2, the entire world is 1024x1024.
*/
@property(nonatomic, readonly) float zoom;

/**
* Bearing of the camera, in degrees clockwise from true north.
*/
@property(nonatomic, readonly) CLLocationDirection bearing;

/**
* The angle, in degrees, of the camera from the nadir (directly facing the Earth). 0 is
* straight down, 90 is parallel to the ground. Note that the maximum angle allowed is dependent
* on the zoom. You can think of it as a series of line segments as a function of zoom, rather
* than a step function. For zoom 16 and above, the maximum angle is 65 degrees. For zoom 10 and
* below, the maximum angle is 30 degrees.
*/
@property(nonatomic, readonly) double viewingAngle;

/**
* Designated initializer. Configures this GMSCameraPosition with all available camera properties.
* Building a GMSCameraPosition via this initializer (or by the following convenience constructors)
* will implicitly clamp camera values.
*
* @param target Location on the earth towards which the camera points.
* @param zoom The zoom level near the center of the screen.
* @param bearing Bearing of the camera in degrees clockwise from true north.
* @param viewingAngle The angle, in degrees, of the camera angle from the nadir (directly facing
* the Earth)
*/
- (instancetype)initWithTarget:(CLLocationCoordinate2D)target
zoom:(float)zoom
bearing:(CLLocationDirection)bearing
viewingAngle:(double)viewingAngle;

/**
* Convenience initializer for GMSCameraPosition for a particular target and zoom level. This will
* set the bearing and viewingAngle properties of this camera to zero defaults (i.e., directly
* facing the Earth's surface, with the top of the screen pointing north).
*
* @param target Location on the earth towards which the camera points.
* @param zoom The zoom level near the center of the screen.
*/
- (instancetype)initWithTarget:(CLLocationCoordinate2D)target zoom:(float)zoom;

/**
* Convenience initializer for GMSCameraPosition for a particular latitidue, longitude and zoom
* level. This will set the bearing and viewingAngle properties of this camera to zero defaults
* (i.e., directly facing the Earth's surface, with the top of the screen pointing north).
*
* @param latitude The latitude component of the location towards which the camera points.
* @param longitude The latitude component of the location towards which the camera points.
* @param zoom The zoom level near the center of the screen.
*/
- (instancetype)initWithLatitude:(CLLocationDegrees)latitude
longitude:(CLLocationDegrees)longitude
zoom:(float)zoom;

/**
* Convenience initializer for GMSCameraPosition, with latitude/longitude and all other camera
* properties as per -initWithTarget:zoom:bearing:viewingAngle:.
*
* @param latitude The latitude component of the location towards which the camera points.
* @param longitude The latitude component of the location towards which the camera points.
* @param zoom The zoom level near the center of the screen.
* @param bearing Bearing of the camera in degrees clockwise from true north.
* @param viewingAngle The angle, in degrees, of the camera angle from the nadir (directly facing
* the Earth)
*/
- (instancetype)initWithLatitude:(CLLocationDegrees)latitude
longitude:(CLLocationDegrees)longitude
zoom:(float)zoom
bearing:(CLLocationDirection)bearing
viewingAngle:(double)viewingAngle;

/**
* Convenience constructor for GMSCameraPosition for a particular target and zoom level. This will
* set the bearing and viewingAngle properties of this camera to zero defaults (i.e., directly
* facing the Earth's surface, with the top of the screen pointing north).
*/
+ (instancetype)cameraWithTarget:(CLLocationCoordinate2D)target zoom:(float)zoom;

/**
* Convenience constructor for GMSCameraPosition, as per cameraWithTarget:zoom:.
*/
+ (instancetype)cameraWithLatitude:(CLLocationDegrees)latitude
longitude:(CLLocationDegrees)longitude
zoom:(float)zoom;

/**
* Convenience constructor for GMSCameraPosition, with all camera properties as per
* initWithTarget:zoom:bearing:viewingAngle:.
*/
+ (instancetype)cameraWithTarget:(CLLocationCoordinate2D)target
zoom:(float)zoom
bearing:(CLLocationDirection)bearing
viewingAngle:(double)viewingAngle;

/**
* Convenience constructor for GMSCameraPosition, with latitude/longitude and all other camera
* properties as per initWithTarget:zoom:bearing:viewingAngle:.
*/
+ (instancetype)cameraWithLatitude:(CLLocationDegrees)latitude
longitude:(CLLocationDegrees)longitude
zoom:(float)zoom
bearing:(CLLocationDirection)bearing
viewingAngle:(double)viewingAngle;

/**
* Get the zoom level at which |meters| distance, at given |coord| on Earth, correspond to the
* specified number of screen |points|.
*
* For extremely large or small distances the returned zoom level may be smaller or larger than the
* minimum or maximum zoom level allowed on the camera.
*
* This helper method is useful for building camera positions that contain specific physical areas
* on Earth.
*/
+ (float)zoomAtCoordinate:(CLLocationCoordinate2D)coordinate
forMeters:(CLLocationDistance)meters
perPoints:(CGFloat)points;

@end

/** Mutable version of GMSCameraPosition. */
@interface GMSMutableCameraPosition : GMSCameraPosition
@property(nonatomic) CLLocationCoordinate2D target;
@property(nonatomic) float zoom;
@property(nonatomic) CLLocationDirection bearing;
@property(nonatomic) double viewingAngle;
@end

/** The maximum zoom (closest to the Earth's surface) permitted by the map camera. */
FOUNDATION_EXTERN const float kGMSMaxZoomLevel;

/** The minimum zoom (farthest from the Earth's surface) permitted by the map camera. */
FOUNDATION_EXTERN const float kGMSMinZoomLevel;

NS_ASSUME_NONNULL_END
Loading

0 comments on commit af1c4a8

Please sign in to comment.