diff --git a/Cartfile.resolved b/Cartfile.resolved index a9345bc..dd402db 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1 +1 @@ -github "xmartlabs/Eureka" "1.5.0" +github "xmartlabs/Eureka" "1.6.0" diff --git a/Example.xcodeproj/project.pbxproj b/Example.xcodeproj/project.pbxproj index 89336e9..6dd34dc 100644 --- a/Example.xcodeproj/project.pbxproj +++ b/Example.xcodeproj/project.pbxproj @@ -15,6 +15,8 @@ 28F828D71C4B714D00330CF4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 28F828D61C4B714D00330CF4 /* Assets.xcassets */; }; 28F828DA1C4B714D00330CF4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 28F828D81C4B714D00330CF4 /* LaunchScreen.storyboard */; }; 8F3EDFA21CBFCE1E000754B7 /* GooglePlacesRow.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 287D0A7A1C4B7B26004566D6 /* GooglePlacesRow.framework */; }; + 8FCDF8721D4BB4F1005FE478 /* Eureka.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8FCDF8711D4BB4F1005FE478 /* Eureka.framework */; }; + 8FCDF8731D4BB4F1005FE478 /* Eureka.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 8FCDF8711D4BB4F1005FE478 /* Eureka.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -56,6 +58,7 @@ dstSubfolderSpec = 10; files = ( 287D0A7E1C4B7B55004566D6 /* GooglePlacesRow.framework in Embed Frameworks */, + 8FCDF8731D4BB4F1005FE478 /* Eureka.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -74,6 +77,7 @@ 28F828DB1C4B714D00330CF4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Example/Info.plist; sourceTree = ""; }; 28F828E01C4B714D00330CF4 /* ExampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 28F828E61C4B714D00330CF4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; name = Info.plist; path = Example/ExampleUITests/Info.plist; sourceTree = ""; }; + 8FCDF8711D4BB4F1005FE478 /* Eureka.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Eureka.framework; path = Carthage/Build/iOS/Eureka.framework; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -82,6 +86,7 @@ buildActionMask = 2147483647; files = ( 8F3EDFA21CBFCE1E000754B7 /* GooglePlacesRow.framework in Frameworks */, + 8FCDF8721D4BB4F1005FE478 /* Eureka.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -149,6 +154,7 @@ 8F3EDFA11CBFCDCB000754B7 /* Frameworks */ = { isa = PBXGroup; children = ( + 8FCDF8711D4BB4F1005FE478 /* Eureka.framework */, ); name = Frameworks; sourceTree = ""; @@ -435,6 +441,7 @@ FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Frameworks", + "$(PROJECT_DIR)/Carthage/Build/iOS", ); INFOPLIST_FILE = "$(SRCROOT)/Example/Example/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -451,6 +458,7 @@ FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Frameworks", + "$(PROJECT_DIR)/Carthage/Build/iOS", ); INFOPLIST_FILE = "$(SRCROOT)/Example/Example/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; diff --git a/Example/Example/AppDelegate.swift b/Example/Example/AppDelegate.swift index 7591db1..dfb26eb 100644 --- a/Example/Example/AppDelegate.swift +++ b/Example/Example/AppDelegate.swift @@ -6,7 +6,7 @@ // import UIKit -import GoogleMaps +import GooglePlaces @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { @@ -17,7 +17,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { //TODO: Set API_KEY let apiKey = "YOUR_API_KEY" - GMSServices.provideAPIKey(apiKey) + GMSPlacesClient.provideAPIKey(apiKey) + print(GMSPlacesClient.openSourceLicenseInfo()) if apiKey == "YOUR_API_KEY" { print("IF YOU SEE THIS IN YOUR CONSOLE IT'S BECAUSE YOU FORGOT TO SET YOUR API_KEY") assertionFailure() diff --git a/Example/Example/ViewController.swift b/Example/Example/ViewController.swift index 329f792..f4e1637 100644 --- a/Example/Example/ViewController.swift +++ b/Example/Example/ViewController.swift @@ -8,7 +8,7 @@ import UIKit import GooglePlacesRow import Eureka -import GoogleMaps +import GooglePlaces class ViewController: FormViewController { diff --git a/Frameworks/GoogleMapsBase.framework/GoogleMapsBase b/Frameworks/GoogleMapsBase.framework/GoogleMapsBase new file mode 120000 index 0000000..11c8237 --- /dev/null +++ b/Frameworks/GoogleMapsBase.framework/GoogleMapsBase @@ -0,0 +1 @@ +Versions/Current/GoogleMapsBase \ No newline at end of file diff --git a/Frameworks/GoogleMapsBase.framework/Headers b/Frameworks/GoogleMapsBase.framework/Headers new file mode 120000 index 0000000..a177d2a --- /dev/null +++ b/Frameworks/GoogleMapsBase.framework/Headers @@ -0,0 +1 @@ +Versions/Current/Headers \ No newline at end of file diff --git a/Frameworks/GoogleMapsBase.framework/Modules b/Frameworks/GoogleMapsBase.framework/Modules new file mode 120000 index 0000000..5736f31 --- /dev/null +++ b/Frameworks/GoogleMapsBase.framework/Modules @@ -0,0 +1 @@ +Versions/Current/Modules \ No newline at end of file diff --git a/Frameworks/GoogleMapsBase.framework/Resources b/Frameworks/GoogleMapsBase.framework/Resources new file mode 120000 index 0000000..953ee36 --- /dev/null +++ b/Frameworks/GoogleMapsBase.framework/Resources @@ -0,0 +1 @@ +Versions/Current/Resources \ No newline at end of file diff --git a/Frameworks/GoogleMapsBase.framework/Versions/A/GoogleMapsBase b/Frameworks/GoogleMapsBase.framework/Versions/A/GoogleMapsBase new file mode 100644 index 0000000..b825240 Binary files /dev/null and b/Frameworks/GoogleMapsBase.framework/Versions/A/GoogleMapsBase differ diff --git a/Frameworks/GoogleMapsBase.framework/Versions/A/Headers/GMSCompatabilityMacros.h b/Frameworks/GoogleMapsBase.framework/Versions/A/Headers/GMSCompatabilityMacros.h new file mode 100644 index 0000000..2deea17 --- /dev/null +++ b/Frameworks/GoogleMapsBase.framework/Versions/A/Headers/GMSCompatabilityMacros.h @@ -0,0 +1,43 @@ +// +// GMSCompatabilityMacros.h +// Google Maps SDK for iOS +// +// Copyright 2015 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#import + +#if !__has_feature(nullability) || !defined(NS_ASSUME_NONNULL_BEGIN) || \ + !defined(NS_ASSUME_NONNULL_END) +#define GMS_ASSUME_NONNULL_BEGIN +#define GMS_ASSUME_NONNULL_END +#define GMS_NULLABLE +#define GMS_NULLABLE_PTR +#define GMS_NULLABLE_INSTANCETYPE instancetype +#else +#define GMS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN +#define GMS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END +#define GMS_NULLABLE nullable +#define GMS_NULLABLE_PTR __nullable +#define GMS_NULLABLE_INSTANCETYPE nullable instancetype +#endif + +#if __has_feature(objc_generics) && defined(__IPHONE_9_0) && \ + __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0 +#define GMS_DECLARE_GENERICS 1 +#else +#define GMS_DECLARE_GENERICS 0 +#endif + +#if GMS_DECLARE_GENERICS +#define GMS_NSArrayOf(value) NSArray +#define GMS_NSDictionaryOf(key, value) NSDictionary +#define GMS_NSSetOf(value) NSSet +#else +#define GMS_NSArrayOf(value) NSArray +#define GMS_NSDictionaryOf(key, value) NSDictionary +#define GMS_NSSetOf(value) NSSet +#endif diff --git a/Frameworks/GoogleMapsBase.framework/Versions/A/Headers/GMSCoordinateBounds.h b/Frameworks/GoogleMapsBase.framework/Versions/A/Headers/GMSCoordinateBounds.h new file mode 100644 index 0000000..4db7511 --- /dev/null +++ b/Frameworks/GoogleMapsBase.framework/Versions/A/Headers/GMSCoordinateBounds.h @@ -0,0 +1,82 @@ +// +// GMSCoordinateBounds.h +// Google Maps SDK for iOS +// +// Copyright 2013 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#import + +#import + +GMS_ASSUME_NONNULL_BEGIN + +/** + * GMSCoordinateBounds represents a rectangular bounding box on the Earth's + * surface. GMSCoordinateBounds is immutable and can't be modified after + * construction. + */ +@interface GMSCoordinateBounds : NSObject + +/** The North-East corner of these bounds. */ +@property(nonatomic, readonly) CLLocationCoordinate2D northEast; + +/** The South-West corner of these bounds. */ +@property(nonatomic, readonly) CLLocationCoordinate2D southWest; + +/** + * Returns NO if this bounds does not contain any points. + * For example, [[GMSCoordinateBounds alloc] init].valid == NO. + * When an invalid bounds is expanded with valid coordinates via + * includingCoordinate: or includingBounds:, the resulting bounds will be valid + * but contain only the new coordinates. + */ +@property(readonly, getter=isValid) BOOL valid; + +/** + * Inits the northEast and southWest bounds corresponding + * to the rectangular region defined by the two corners. + * + * It is ambiguous whether the longitude of the box + * extends from |coord1| to |coord2| or vice-versa; + * the box is constructed as the smaller of the two variants, eliminating the + * ambiguity. + */ +- (id)initWithCoordinate:(CLLocationCoordinate2D)coord1 + coordinate:(CLLocationCoordinate2D)coord2; + +/** + * Returns a GMSCoordinateBounds representing + * the current bounds extended to include the passed-in coordinate. + * If the current bounds is invalid, the result is a valid bounds containing + * only |coordinate|. + */ +- (GMSCoordinateBounds *)includingCoordinate:(CLLocationCoordinate2D)coordinate; + +/** + * Returns a GMSCoordinateBounds representing + * the current bounds extended to include the entire other bounds. + * If the current bounds is invalid, the result is a valid bounds equal + * to |other|. + */ +- (GMSCoordinateBounds *)includingBounds:(GMSCoordinateBounds *)other; + +/** + * Returns YES if |coordinate| is contained within this bounds. This includes + * points that lie exactly on the edge of the bounds. + */ +- (BOOL)containsCoordinate:(CLLocationCoordinate2D)coordinate; + +/** + * Returns YES if |other| overlaps with this bounds. + * Two bounds are overlapping if there is at least one coordinate point + * contained by both. + */ +- (BOOL)intersectsBounds:(GMSCoordinateBounds *)other; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GoogleMapsBase.framework/Versions/A/Headers/GoogleMapsBase.h b/Frameworks/GoogleMapsBase.framework/Versions/A/Headers/GoogleMapsBase.h new file mode 100644 index 0000000..9183bb1 --- /dev/null +++ b/Frameworks/GoogleMapsBase.framework/Versions/A/Headers/GoogleMapsBase.h @@ -0,0 +1,2 @@ +#import +#import diff --git a/Frameworks/GoogleMapsBase.framework/Versions/A/Modules/module.modulemap b/Frameworks/GoogleMapsBase.framework/Versions/A/Modules/module.modulemap new file mode 100644 index 0000000..360c546 --- /dev/null +++ b/Frameworks/GoogleMapsBase.framework/Versions/A/Modules/module.modulemap @@ -0,0 +1,4 @@ +framework module GoogleMapsBase { umbrella header "GoogleMapsBase.h" +header "GMSCompatabilityMacros.h" +header "GMSCoordinateBounds.h" +export * module * { export * } } diff --git a/Frameworks/GoogleMapsBase.framework/Versions/Current b/Frameworks/GoogleMapsBase.framework/Versions/Current new file mode 120000 index 0000000..8c7e5a6 --- /dev/null +++ b/Frameworks/GoogleMapsBase.framework/Versions/Current @@ -0,0 +1 @@ +A \ No newline at end of file diff --git a/Frameworks/GooglePlaces.framework/GooglePlaces b/Frameworks/GooglePlaces.framework/GooglePlaces new file mode 120000 index 0000000..69cb11e --- /dev/null +++ b/Frameworks/GooglePlaces.framework/GooglePlaces @@ -0,0 +1 @@ +Versions/Current/GooglePlaces \ No newline at end of file diff --git a/Frameworks/GooglePlaces.framework/Headers b/Frameworks/GooglePlaces.framework/Headers new file mode 120000 index 0000000..a177d2a --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Headers @@ -0,0 +1 @@ +Versions/Current/Headers \ No newline at end of file diff --git a/Frameworks/GooglePlaces.framework/Modules b/Frameworks/GooglePlaces.framework/Modules new file mode 120000 index 0000000..5736f31 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Modules @@ -0,0 +1 @@ +Versions/Current/Modules \ No newline at end of file diff --git a/Frameworks/GooglePlaces.framework/Resources b/Frameworks/GooglePlaces.framework/Resources new file mode 120000 index 0000000..953ee36 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Resources @@ -0,0 +1 @@ +Versions/Current/Resources \ No newline at end of file diff --git a/Frameworks/GooglePlaces.framework/Versions/A/GooglePlaces b/Frameworks/GooglePlaces.framework/Versions/A/GooglePlaces new file mode 100644 index 0000000..714d127 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/GooglePlaces differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAddressComponent.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAddressComponent.h new file mode 100644 index 0000000..d0dc2e9 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAddressComponent.h @@ -0,0 +1,36 @@ +// +// GMSAddressComponent.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif + +GMS_ASSUME_NONNULL_BEGIN + +/** + * Represents a component of an address, e.g., street number, postcode, city, etc. + */ +@interface GMSAddressComponent : NSObject + +/** + * Type of the address component. For a list of supported types, see + * https://developers.google.com/places/supported_types#table2. This string will be one of the + * constants defined in GMSPlaceTypes.h. + */ +@property(nonatomic, readonly, copy) NSString *type; + +/** Name of the address component, e.g. "Sydney" */ +@property(nonatomic, readonly, copy) NSString *name; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteFetcher.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteFetcher.h new file mode 100644 index 0000000..8097873 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteFetcher.h @@ -0,0 +1,94 @@ +// +// GMSAutocompleteFetcher.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif +#import + +@class GMSAutocompletePrediction; + +GMS_ASSUME_NONNULL_BEGIN + +/** + * Protocol for objects that can receive callbacks from GMSAutocompleteFetcher + */ +@protocol GMSAutocompleteFetcherDelegate + +@required + +/** + * Called when autocomplete predictions are available. + * @param predictions an array of GMSAutocompletePrediction objects. + */ +- (void)didAutocompleteWithPredictions:(GMS_NSArrayOf(GMSAutocompletePrediction *) *)predictions; + +/** + * Called when an autocomplete request returns an error. + * @param error the error that was received. + */ +- (void)didFailAutocompleteWithError:(NSError *)error; + +@end + +/** + * GMSAutocompleteFetcher is a wrapper around the lower-level autocomplete APIs that encapsulates + * some of the complexity of requesting autocomplete predictions as the user is typing. Calling + * sourceTextHasChanged will generally result in the provided delegate being called with + * autocomplete predictions for the queried text, with the following provisos: + * + * - The fetcher may not necessarily request predictions on every call of sourceTextHasChanged if + * several requests are made within a short amount of time. + * - The delegate will only be called with prediction results if those predictions are for the + * text supplied in the most recent call to sourceTextHasChanged. + */ +@interface GMSAutocompleteFetcher : NSObject + +/** + * Initialise the fetcher + * @param bounds The bounds used to bias the results. This is not a hard restrict - places may still + * be returned outside of these bounds. This parameter may be nil. + * @param filter The filter to apply to the results. This parameter may be nil. + */ +- (instancetype)initWithBounds:(GMSCoordinateBounds *GMS_NULLABLE_PTR)bounds + filter:(GMSAutocompleteFilter *GMS_NULLABLE_PTR)filter + NS_DESIGNATED_INITIALIZER; + +/** Delegate to be notified with autocomplete prediction results. */ +@property(nonatomic, weak) id GMS_NULLABLE_PTR delegate; + +/** Bounds used to bias the autocomplete search (can be nil). */ +@property(nonatomic, strong) GMSCoordinateBounds *GMS_NULLABLE_PTR autocompleteBounds; + +/** Filter to apply to autocomplete suggestions (can be nil). */ +@property(nonatomic, strong) GMSAutocompleteFilter *GMS_NULLABLE_PTR autocompleteFilter; + +/** + * Notify the fetcher that the source text to autocomplete has changed. + * + * This method should only be called from the main thread. Calling this method from another thread + * will result in undefined behavior. Calls to |GMSAutocompleteFetcherDelegate| methods will also be + * called on the main thread. + * + * This method is non-blocking. + * @param text The partial text to autocomplete. + */ +- (void)sourceTextHasChanged:(NSString *GMS_NULLABLE_PTR)text; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteFilter.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteFilter.h new file mode 100644 index 0000000..4425135 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteFilter.h @@ -0,0 +1,78 @@ +// +// GMSAutocompleteFilter.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif + +GMS_ASSUME_NONNULL_BEGIN + +/** + * The type filters that may be applied to an autocomplete request to restrict results to different + * types. + */ +typedef NS_ENUM(NSInteger, GMSPlacesAutocompleteTypeFilter) { + /** + * All results. + */ + kGMSPlacesAutocompleteTypeFilterNoFilter, + /** + * Geeocoding results, as opposed to business results. + */ + kGMSPlacesAutocompleteTypeFilterGeocode, + /** + * Geocoding results with a precise address. + */ + kGMSPlacesAutocompleteTypeFilterAddress, + /** + * Business results. + */ + kGMSPlacesAutocompleteTypeFilterEstablishment, + /** + * Results that match the following types: + * "locality", + * "sublocality" + * "postal_code", + * "country", + * "administrative_area_level_1", + * "administrative_area_level_2" + */ + kGMSPlacesAutocompleteTypeFilterRegion, + /** + * Results that match the following types: + * "locality", + * "administrative_area_level_3" + */ + kGMSPlacesAutocompleteTypeFilterCity, +}; + +/** + * This class represents a set of restrictions that may be applied to autocomplete requests. This + * allows customization of autocomplete suggestions to only those places that are of interest. + */ +@interface GMSAutocompleteFilter : NSObject + +/** + * The type filter applied to an autocomplete request to restrict results to different types. + * Default value is kGMSPlacesAutocompleteTypeFilterNoFilter. + */ +@property(nonatomic, assign) GMSPlacesAutocompleteTypeFilter type; + +/** + * The country to restrict results to. This should be a ISO 3166-1 Alpha-2 country code (case + * insensitive). If nil, no country filtering will take place. + */ +@property(nonatomic, copy) NSString *GMS_NULLABLE_PTR country; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteMatchFragment.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteMatchFragment.h new file mode 100644 index 0000000..bc77959 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteMatchFragment.h @@ -0,0 +1,39 @@ +// +// GMSAutocompleteMatchFragment.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif + +GMS_ASSUME_NONNULL_BEGIN + +/** + * This class represents a matched fragment of a string. This is a contiguous range of characters + * in a string, suitable for highlighting in an autocompletion UI. + */ +@interface GMSAutocompleteMatchFragment : NSObject + +/** + * The offset of the matched fragment. This is an index into a string. The character at this index + * is the first matched character. + */ +@property(nonatomic, readonly) NSUInteger offset; + +/** + * The length of the matched fragment. + */ +@property(nonatomic, readonly) NSUInteger length; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompletePrediction.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompletePrediction.h new file mode 100644 index 0000000..55fe373 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompletePrediction.h @@ -0,0 +1,88 @@ +// +// GMSAutocompletePrediction.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif + +GMS_ASSUME_NONNULL_BEGIN + +/* + * Attribute name for match fragments in |GMSAutocompletePrediction| attributedFullText. + */ +extern NSString *const kGMSAutocompleteMatchAttribute; + +/** + * This class represents a prediction of a full query based on a partially typed string. + */ +@interface GMSAutocompletePrediction : NSObject + +/** + * The full description of the prediction as a NSAttributedString. E.g., "Sydney Opera House, + * Sydney, New South Wales, Australia". + * + * Every text range that matches the user input has a |kGMSAutocompleteMatchAttribute|. For + * example, you can make every match bold using enumerateAttribute: + *
+ *   UIFont *regularFont = [UIFont systemFontOfSize:[UIFont labelFontSize]];
+ *   UIFont *boldFont = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]];
+ *
+ *   NSMutableAttributedString *bolded = [prediction.attributedFullText mutableCopy];
+ *   [bolded enumerateAttribute:kGMSAutocompleteMatchAttribute
+ *                      inRange:NSMakeRange(0, bolded.length)
+ *                      options:0
+ *                   usingBlock:^(id value, NSRange range, BOOL *stop) {
+ *                     UIFont *font = (value == nil) ? regularFont : boldFont;
+ *                     [bolded addAttribute:NSFontAttributeName value:font range:range];
+ *                   }];
+ *
+ *   label.attributedText = bolded;
+ * 
+ */ +@property(nonatomic, copy, readonly) NSAttributedString *attributedFullText; + +/** + * The main text of a prediction as a NSAttributedString, usually the name of the place. + * E.g. "Sydney Opera House". + * + * Text ranges that match user input are have a |kGMSAutocompleteMatchAttribute|, + * like |attributedFullText|. + */ +@property(nonatomic, copy, readonly) NSAttributedString *attributedPrimaryText; + +/** + * The secondary text of a prediction as a NSAttributedString, usually the location of the place. + * E.g. "Sydney, New South Wales, Australia". + * + * Text ranges that match user input are have a |kGMSAutocompleteMatchAttribute|, like + * |attributedFullText|. + * + * May be nil. + */ +@property(nonatomic, copy, readonly) NSAttributedString *GMS_NULLABLE_PTR attributedSecondaryText; + +/** + * An optional property representing the place ID of the prediction, suitable for use in a place + * details request. + */ +@property(nonatomic, copy, readonly) NSString *GMS_NULLABLE_PTR placeID; + +/** + * The types of this autocomplete result. Types are NSStrings, valid values are any types + * documented at . + */ +@property(nonatomic, copy, readonly) GMS_NSArrayOf(NSString *) *types; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteResultsViewController.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteResultsViewController.h new file mode 100644 index 0000000..cf89e5f --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteResultsViewController.h @@ -0,0 +1,140 @@ +// +// GMSAutocompleteResultsViewController.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#import + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif +#import +#import +#import + +GMS_ASSUME_NONNULL_BEGIN + +@class GMSAutocompleteResultsViewController; + +/** + * Protocol used by |GMSAutocompleteResultsViewController|, to communicate the user's interaction + * with the controller to the application. + */ +@protocol GMSAutocompleteResultsViewControllerDelegate + +@required + +/** + * Called when a place has been selected from the available autocomplete predictions. + * @param resultsController The |GMSAutocompleteResultsViewController| that generated the event. + * @param place The |GMSPlace| that was returned. + */ +- (void)resultsController:(GMSAutocompleteResultsViewController *)resultsController + didAutocompleteWithPlace:(GMSPlace *)place; + +/** + * Called when a non-retryable error occurred when retrieving autocomplete predictions or place + * details. A non-retryable error is defined as one that is unlikely to be fixed by immediately + * retrying the operation. + *

+ * Only the following values of |GMSPlacesErrorCode| are retryable: + *

    + *
  • kGMSPlacesNetworkError + *
  • kGMSPlacesServerError + *
  • kGMSPlacesInternalError + *
+ * All other error codes are non-retryable. + * @param resultsController The |GMSAutocompleteResultsViewController| that generated the event. + * @param error The |NSError| that was returned. + */ +- (void)resultsController:(GMSAutocompleteResultsViewController *)resultsController + didFailAutocompleteWithError:(NSError *)error; + +@optional + +/** + * Called when the user selects an autocomplete prediction from the list but before requesting + * place details. Returning NO from this method will suppress the place details fetch and + * didAutocompleteWithPlace will not be called. + * @param resultsController The |GMSAutocompleteResultsViewController| that generated the event. + * @param prediction The |GMSAutocompletePrediction| that was selected. + */ +- (BOOL)resultsController:(GMSAutocompleteResultsViewController *)resultsController + didSelectPrediction:(GMSAutocompletePrediction *)prediction; + +/** + * Called once every time new autocomplete predictions are received. + * @param resultsController The |GMSAutocompleteResultsViewController| that generated the event. + */ +- (void)didUpdateAutocompletePredictionsForResultsController: + (GMSAutocompleteResultsViewController *)resultsController; + +/** + * Called once immediately after a request for autocomplete predictions is made. + * @param resultsController The |GMSAutocompleteResultsViewController| that generated the event. + */ +- (void)didRequestAutocompletePredictionsForResultsController: + (GMSAutocompleteResultsViewController *)resultsController; + +@end + + +/** + * GMSAutocompleteResultsViewController provides an interface that displays place autocomplete + * predictions in a table view. The table view will be automatically updated as input text + * changes. + * + * This class is intended to be used as the search results controller of a UISearchController. Pass + * an instance of |GMSAutocompleteResultsViewController| to UISearchController's + * initWithSearchResultsController method, then set the controller as the UISearchController's + * searchResultsUpdater property. + * + * Use the |GMSAutocompleteResultsViewControllerDelegate| delegate protocol to be notified when a + * place is selected from the list. + */ +@interface GMSAutocompleteResultsViewController : UIViewController < + UISearchResultsUpdating> + +/** Delegate to be notified when a place is selected. */ +@property(nonatomic, weak) + id GMS_NULLABLE_PTR delegate; + +/** Bounds used to bias the autocomplete search (can be nil). */ +@property(nonatomic, strong) GMSCoordinateBounds *GMS_NULLABLE_PTR autocompleteBounds; + +/** Filter to apply to autocomplete suggestions (can be nil). */ +@property(nonatomic, strong) GMSAutocompleteFilter *GMS_NULLABLE_PTR autocompleteFilter; + +/** The background color of table cells. */ +@property(nonatomic, strong) IBInspectable UIColor *tableCellBackgroundColor; + +/** The color of the separator line between table cells. */ +@property(nonatomic, strong) IBInspectable UIColor *tableCellSeparatorColor; + +/** The color of result name text in autocomplete results */ +@property(nonatomic, strong) IBInspectable UIColor *primaryTextColor; + +/** The color used to highlight matching text in autocomplete results */ +@property(nonatomic, strong) IBInspectable UIColor *primaryTextHighlightColor; + +/** The color of the second row of text in autocomplete results. */ +@property(nonatomic, strong) IBInspectable UIColor *secondaryTextColor; + +/** The tint color applied to controls in the Autocomplete view. */ +@property(nonatomic, strong) IBInspectable UIColor *GMS_NULLABLE_PTR tintColor; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteTableDataSource.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteTableDataSource.h new file mode 100644 index 0000000..4ddd5fa --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteTableDataSource.h @@ -0,0 +1,164 @@ +// +// GMSAutocompleteTableDataSource.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#import + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif +#import +#import +#import + +GMS_ASSUME_NONNULL_BEGIN + +@class GMSAutocompleteTableDataSource; + +/** + * Protocol used by |GMSAutocompleteTableDataSource|, to communicate the user's interaction with the + * data source to the application. + */ +@protocol GMSAutocompleteTableDataSourceDelegate + +@required + +/** + * Called when a place has been selected from the available autocomplete predictions. + * @param tableDataSource The |GMSAutocompleteTableDataSource| that generated the event. + * @param place The |GMSPlace| that was returned. + */ +- (void)tableDataSource:(GMSAutocompleteTableDataSource *)tableDataSource + didAutocompleteWithPlace:(GMSPlace *)place; + +/** + * Called when a non-retryable error occurred when retrieving autocomplete predictions or place + * details. A non-retryable error is defined as one that is unlikely to be fixed by immediately + * retrying the operation. + *

+ * Only the following values of |GMSPlacesErrorCode| are retryable: + *

    + *
  • kGMSPlacesNetworkError + *
  • kGMSPlacesServerError + *
  • kGMSPlacesInternalError + *
+ * All other error codes are non-retryable. + * @param tableDataSource The |GMSAutocompleteTableDataSource| that generated the event. + * @param error The |NSError| that was returned. + */ +- (void)tableDataSource:(GMSAutocompleteTableDataSource *)tableDataSource + didFailAutocompleteWithError:(NSError *)error; + +@optional + +/** + * Called when the user selects an autocomplete prediction from the list but before requesting + * place details. Returning NO from this method will suppress the place details fetch and + * didAutocompleteWithPlace will not be called. + * @param tableDataSource The |GMSAutocompleteTableDataSource| that generated the event. + * @param prediction The |GMSAutocompletePrediction| that was selected. + */ +- (BOOL)tableDataSource:(GMSAutocompleteTableDataSource *)tableDataSource + didSelectPrediction:(GMSAutocompletePrediction *)prediction; + +/** + * Called once every time new autocomplete predictions are received. + * @param tableDataSource The |GMSAutocompleteTableDataSource| that generated the event. + */ +- (void)didUpdateAutocompletePredictionsForTableDataSource: + (GMSAutocompleteTableDataSource *)tableDataSource; + +/** + * Called once immediately after a request for autocomplete predictions is made. + * @param tableDataSource The |GMSAutocompleteTableDataSource| that generated the event. + */ +- (void)didRequestAutocompletePredictionsForTableDataSource: + (GMSAutocompleteTableDataSource *)tableDataSource; + +@end + + +/** + * GMSAutocompleteTableDataSource provides an interface for providing place autocomplete + * predictions to populate a UITableView by implementing the UITableViewDataSource and + * UITableViewDelegate protocols. + * + * GMSAutocompleteTableDataSource is designed to be used as the data source for a + * UISearchDisplayController. + * + * NOTE: Unless iOS 7 compatibility is required, using UISearchController with + * |GMSAutocompleteResultsViewController| instead of UISearchDisplayController is highly + * recommended. + * + * Set an instance of GMSAutocompleteTableDataSource as the searchResultsDataSource and + * searchResultsDelegate properties of UISearchDisplayController. In your implementation of + * shouldReloadTableForSearchString, call sourceTextHasChanged with the current search string. + * + * Use the |GMSAutocompleteTableDataSourceDelegate| delegate protocol to be notified when a place is + * selected from the list. Because autocomplete predictions load asynchronously, it is necessary + * to implement didUpdateAutocompletePredictions and call reloadData on the + * UISearchDisplayController's table view. + * + */ +@interface GMSAutocompleteTableDataSource : NSObject < + UITableViewDataSource, UITableViewDelegate> + +/** Delegate to be notified when a place is selected or picking is cancelled. */ +@property(nonatomic, weak) + IBOutlet id GMS_NULLABLE_PTR delegate; + +/** Bounds used to bias the autocomplete search (can be nil). */ +@property(nonatomic, strong) GMSCoordinateBounds *GMS_NULLABLE_PTR autocompleteBounds; + +/** Filter to apply to autocomplete suggestions (can be nil). */ +@property(nonatomic, strong) GMSAutocompleteFilter *GMS_NULLABLE_PTR autocompleteFilter; + +/** The background color of table cells. */ +@property(nonatomic, strong) UIColor *tableCellBackgroundColor; + +/** The color of the separator line between table cells. */ +@property(nonatomic, strong) UIColor *tableCellSeparatorColor; + +/** The color of result name text in autocomplete results */ +@property(nonatomic, strong) UIColor *primaryTextColor; + +/** The color used to highlight matching text in autocomplete results */ +@property(nonatomic, strong) UIColor *primaryTextHighlightColor; + +/** The color of the second row of text in autocomplete results. */ +@property(nonatomic, strong) UIColor *secondaryTextColor; + +/** The tint color applied to controls in the Autocomplete view. */ +@property(nonatomic, strong) UIColor *GMS_NULLABLE_PTR tintColor; + +/** Designated initializer */ +- (instancetype)init NS_DESIGNATED_INITIALIZER; + +/** + * Notify the data source that the source text to autocomplete has changed. + * + * This method should only be called from the main thread. Calling this method from another thread + * will result in undefined behavior. Calls to |GMSAutocompleteTableDataSourceDelegate| methods will + * also be called on the main thread. + * + * This method is non-blocking. + * @param text The partial text to autocomplete. + */ +- (void)sourceTextHasChanged:(NSString *GMS_NULLABLE_PTR)text; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteViewController.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteViewController.h new file mode 100644 index 0000000..3ebd960 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSAutocompleteViewController.h @@ -0,0 +1,140 @@ +// +// GMSAutocompleteViewController.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#import + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif +#import +#import +#import + +GMS_ASSUME_NONNULL_BEGIN + +@class GMSAutocompleteViewController; + +/** + * Protocol used by |GMSAutocompleteViewController|, to communicate the user's interaction + * with the controller to the application. + */ +@protocol GMSAutocompleteViewControllerDelegate + +@required + +/** + * Called when a place has been selected from the available autocomplete predictions. + * @param viewController The |GMSAutocompleteViewController| that generated the event. + * @param place The |GMSPlace| that was returned. + */ +- (void)viewController:(GMSAutocompleteViewController *)viewController + didAutocompleteWithPlace:(GMSPlace *)place; + +/** + * Called when a non-retryable error occurred when retrieving autocomplete predictions or place + * details. A non-retryable error is defined as one that is unlikely to be fixed by immediately + * retrying the operation. + *

+ * Only the following values of |GMSPlacesErrorCode| are retryable: + *

    + *
  • kGMSPlacesNetworkError + *
  • kGMSPlacesServerError + *
  • kGMSPlacesInternalError + *
+ * All other error codes are non-retryable. + * @param viewController The |GMSAutocompleteViewController| that generated the event. + * @param error The |NSError| that was returned. + */ +- (void)viewController:(GMSAutocompleteViewController *)viewController + didFailAutocompleteWithError:(NSError *)error; + +/** + * Called when the user taps the Cancel button in a |GMSAutocompleteViewController|. + * @param viewController The |GMSAutocompleteViewController| that generated the event. + */ +- (void)wasCancelled:(GMSAutocompleteViewController *)viewController; + +@optional + +/** + * Called when the user selects an autocomplete prediction from the list but before requesting + * place details. Returning NO from this method will suppress the place details fetch and + * didAutocompleteWithPlace will not be called. + * @param viewController The |GMSAutocompleteViewController| that generated the event. + * @param prediction The |GMSAutocompletePrediction| that was selected. + */ +- (BOOL)viewController:(GMSAutocompleteViewController *)viewController + didSelectPrediction:(GMSAutocompletePrediction *)prediction; + +/** + * Called once every time new autocomplete predictions are received. + * @param viewController The |GMSAutocompleteViewController| that generated the event. + */ +- (void)didUpdateAutocompletePredictions:(GMSAutocompleteViewController *)viewController; + +/** + * @param viewController The |GMSAutocompleteViewController| that generated the event. + * Called once immediately after a request for autocomplete predictions is made. + */ +- (void)didRequestAutocompletePredictions:(GMSAutocompleteViewController *)viewController; + +@end + + +/** + * GMSAutocompleteViewController provides an interface that displays a table of autocomplete + * predictions that updates as the user enters text. Place selections made by the user are + * returned to the app via the |GMSAutocompleteViewControllerResultsDelegate| protocol. + * + * To use GMSAutocompleteViewController, set its delegate to an object in your app that + * conforms to the |GMSAutocompleteViewControllerDelegate| protocol and present the controller + * (eg using presentViewController). The |GMSAutocompleteViewControllerDelegate| delegate methods + * can be used to determine when the user has selected a place or has cancelled selection. + */ +@interface GMSAutocompleteViewController : UIViewController + +/** Delegate to be notified when a place is selected or picking is cancelled. */ +@property(nonatomic, weak) + IBOutlet id GMS_NULLABLE_PTR delegate; + +/** Bounds used to bias the autocomplete search (can be nil). */ +@property(nonatomic, strong) GMSCoordinateBounds *GMS_NULLABLE_PTR autocompleteBounds; + +/** Filter to apply to autocomplete suggestions (can be nil). */ +@property(nonatomic, strong) GMSAutocompleteFilter *GMS_NULLABLE_PTR autocompleteFilter; + +/** The background color of table cells. */ +@property(nonatomic, strong) IBInspectable UIColor *tableCellBackgroundColor; + +/** The color of the separator line between table cells. */ +@property(nonatomic, strong) IBInspectable UIColor *tableCellSeparatorColor; + +/** The color of result name text in autocomplete results */ +@property(nonatomic, strong) IBInspectable UIColor *primaryTextColor; + +/** The color used to highlight matching text in autocomplete results */ +@property(nonatomic, strong) IBInspectable UIColor *primaryTextHighlightColor; + +/** The color of the second row of text in autocomplete results. */ +@property(nonatomic, strong) IBInspectable UIColor *secondaryTextColor; + +/** The tint color applied to controls in the Autocomplete view. */ +@property(nonatomic, strong) IBInspectable UIColor *GMS_NULLABLE_PTR tintColor; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlace.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlace.h new file mode 100644 index 0000000..86834a0 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlace.h @@ -0,0 +1,138 @@ +// +// GMSPlace.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#import + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif + +GMS_ASSUME_NONNULL_BEGIN + +@class GMSAddressComponent; +@class GMSCoordinateBounds; + + +/** Describes the current open status of a place. */ +typedef NS_ENUM(NSInteger, GMSPlacesOpenNowStatus) { + /** The place is open now. */ + kGMSPlacesOpenNowStatusYes, + /** The place is not open now. */ + kGMSPlacesOpenNowStatusNo, + /** We don't know whether the place is open now. */ + kGMSPlacesOpenNowStatusUnknown, +}; + +typedef NS_ENUM(NSInteger, GMSPlacesPriceLevel) { + kGMSPlacesPriceLevelUnknown = -1, + kGMSPlacesPriceLevelFree = 0, + kGMSPlacesPriceLevelCheap = 1, + kGMSPlacesPriceLevelMedium = 2, + kGMSPlacesPriceLevelHigh = 3, + kGMSPlacesPriceLevelExpensive = 4, +}; + +/** + * Represents a particular physical place. A GMSPlace encapsulates information about a physical + * location, including its name, location, and any other information we might have about it. This + * class is immutable. + */ +@interface GMSPlace : NSObject + +/** Name of the place. */ +@property(nonatomic, copy, readonly) NSString *name; + +/** Place ID of this place. */ +@property(nonatomic, copy, readonly) NSString *placeID; + +/** + * Location of the place. The location is not necessarily the center of the Place, or any + * particular entry or exit point, but some arbitrarily chosen point within the geographic extent of + * the Place. + */ +@property(nonatomic, readonly, assign) CLLocationCoordinate2D coordinate; + +/** + * Represents the open now status of the place at the time that the place was created. + */ +@property(nonatomic, readonly, assign) GMSPlacesOpenNowStatus openNowStatus; + +/** + * Phone number of this place, in international format, i.e. including the country code prefixed + * with "+". For example, Google Sydney's phone number is "+61 2 9374 4000". + */ +@property(nonatomic, copy, readonly) NSString *GMS_NULLABLE_PTR phoneNumber; + +/** + * Address of the place as a simple string. + */ +@property(nonatomic, copy, readonly) NSString *GMS_NULLABLE_PTR formattedAddress; + +/** + * Five-star rating for this place based on user reviews. + * + * Ratings range from 1.0 to 5.0. 0.0 means we have no rating for this place (e.g. because not + * enough users have reviewed this place). + */ +@property(nonatomic, readonly, assign) float rating; + +/** + * Price level for this place, as integers from 0 to 4. + * + * e.g. A value of 4 means this place is "$$$$" (expensive). A value of 0 means free (such as a + * museum with free admission). + */ +@property(nonatomic, readonly, assign) GMSPlacesPriceLevel priceLevel; + +/** + * The types of this place. Types are NSStrings, valid values are any types documented at + * . + */ +@property(nonatomic, copy, readonly) GMS_NSArrayOf(NSString *) *types; + +/** Website for this place. */ +@property(nonatomic, copy, readonly) NSURL *GMS_NULLABLE_PTR website; + +/** + * The data provider attribution string for this place. + * + * These are provided as a NSAttributedString, which may contain hyperlinks to the website of each + * provider. + * + * In general, these must be shown to the user if data from this GMSPlace is shown, as described in + * the Places API Terms of Service. + */ +@property(nonatomic, copy, readonly) NSAttributedString *GMS_NULLABLE_PTR attributions; + +/** + * The recommended viewport for this place. May be nil if the size of the place is not known. + * + * This returns a viewport of a size that is suitable for displaying this place. For example, a + * |GMSPlace| object representing a store may have a relatively small viewport, while a |GMSPlace| + * object representing a country may have a very large viewport. + */ +@property(nonatomic, strong, readonly) GMSCoordinateBounds *GMS_NULLABLE_PTR viewport; + +/** + * An array of |GMSAddressComponent| objects representing the components in the place's address. + * These components are provided for the purpose of extracting structured information about the + * place's address: for example, finding the city that a place is in. + * + * These components should not be used for address formatting. If a formatted address is required, + * use the |formattedAddress| property, which provides a localized formatted address. + */ +@property(nonatomic, copy, readonly) + GMS_NSArrayOf(GMSAddressComponent *) *GMS_NULLABLE_PTR addressComponents; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlaceLikelihood.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlaceLikelihood.h new file mode 100644 index 0000000..79a923a --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlaceLikelihood.h @@ -0,0 +1,45 @@ +// +// GMSPlaceLikelihood.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif + +GMS_ASSUME_NONNULL_BEGIN + +@class GMSPlace; + +/** + * Represents a |GMSPlace| and the relative likelihood of the place being the best match within the + * list of returned places for a single request. For more information about place likelihoods, see + * |GMSPlaceLikelihoodList|. + */ +@interface GMSPlaceLikelihood : NSObject + +/** + * The place contained in this place likelihood. + */ +@property(nonatomic, strong, readonly) GMSPlace *place; + +/** + * Returns a value from 0.0 to 1.0 indicating the confidence that the user is at this place. The + * larger the value the more confident we are of the place returned. For example, a likelihood of + * 0.75 means that the user is at least 75% likely to be at this place. + */ +@property(nonatomic, assign, readonly) double likelihood; + +- (instancetype)initWithPlace:(GMSPlace *)place likelihood:(double)likelihood; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlaceLikelihoodList.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlaceLikelihoodList.h new file mode 100644 index 0000000..891223b --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlaceLikelihoodList.h @@ -0,0 +1,46 @@ +// +// GMSPlaceLikelihoodList.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif + +GMS_ASSUME_NONNULL_BEGIN + +@class GMSPlaceLikelihood; + +/** + * Represents a list of places with an associated likelihood for the place being the correct place. + * For example, the Places service may be uncertain what the true Place is, but think it 55% likely + * to be PlaceA, and 35% likely to be PlaceB. The corresponding likelihood list has two members, one + * with likelihood 0.55 and the other with likelihood 0.35. The likelihoods are not guaranteed to be + * correct, and in a given place likelihood list they may not sum to 1.0. + */ +@interface GMSPlaceLikelihoodList : NSObject + +/** An array of |GMSPlaceLikelihood|s containing the likelihoods in the list. */ +@property(nonatomic, copy) GMS_NSArrayOf(GMSPlaceLikelihood *) * likelihoods; + +/** + * The data provider attribution strings for the likelihood list. + * + * These are provided as a NSAttributedString, which may contain hyperlinks to the website of each + * provider. + * + * In general, these must be shown to the user if data from this likelihood list is shown, as + * described in the Places API Terms of Service. + */ +@property(nonatomic, copy, readonly) NSAttributedString *GMS_NULLABLE_PTR attributions; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacePhotoMetadata.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacePhotoMetadata.h new file mode 100644 index 0000000..de05af2 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacePhotoMetadata.h @@ -0,0 +1,44 @@ +// +// GMSPlacePhotoMetadata.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#import + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif + +GMS_ASSUME_NONNULL_BEGIN + +/** + * The metadata corresponding to a single photo associated with a place. + */ +@interface GMSPlacePhotoMetadata : NSObject + +/** + * The data provider attribution string for this photo. + * + * These are provided as a NSAttributedString, which may contain hyperlinks to the website of each + * provider. + * + * In general, these must be shown to the user if data from this GMSPlacePhotoMetadata is shown, as + * described in the Places API Terms of Service. + */ +@property(nonatomic, readonly, copy) NSAttributedString* GMS_NULLABLE_PTR attributions; + +/** + * The maximum pixel size in which this photo is available. + */ +@property(nonatomic, readonly, assign) CGSize maxSize; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacePhotoMetadataList.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacePhotoMetadataList.h new file mode 100644 index 0000000..e913f6f --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacePhotoMetadataList.h @@ -0,0 +1,34 @@ +// +// GMSPlacePhotoMetadataList.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#import + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif +#import + +GMS_ASSUME_NONNULL_BEGIN + +/** + * A list of |GMSPlacePhotoMetadata| objects. + */ +@interface GMSPlacePhotoMetadataList : NSObject + +/** + * The array of |GMSPlacePhotoMetadata| objects. + */ +@property(nonatomic, readonly, copy) GMS_NSArrayOf(GMSPlacePhotoMetadata *) * results; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlaceTypes.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlaceTypes.h new file mode 100644 index 0000000..acbceee --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlaceTypes.h @@ -0,0 +1,141 @@ +// +// GMSPlaceTypes.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + + + +extern NSString *const kGMSPlaceTypeAccounting; +extern NSString *const kGMSPlaceTypeAdministrativeAreaLevel1; +extern NSString *const kGMSPlaceTypeAdministrativeAreaLevel2; +extern NSString *const kGMSPlaceTypeAdministrativeAreaLevel3; +extern NSString *const kGMSPlaceTypeAdministrativeAreaLevel4; +extern NSString *const kGMSPlaceTypeAdministrativeAreaLevel5; +extern NSString *const kGMSPlaceTypeAirport; +extern NSString *const kGMSPlaceTypeAmusementPark; +extern NSString *const kGMSPlaceTypeAquarium; +extern NSString *const kGMSPlaceTypeArtGallery; +extern NSString *const kGMSPlaceTypeAtm; +extern NSString *const kGMSPlaceTypeBakery; +extern NSString *const kGMSPlaceTypeBank; +extern NSString *const kGMSPlaceTypeBar; +extern NSString *const kGMSPlaceTypeBeautySalon; +extern NSString *const kGMSPlaceTypeBicycleStore; +extern NSString *const kGMSPlaceTypeBookStore; +extern NSString *const kGMSPlaceTypeBowlingAlley; +extern NSString *const kGMSPlaceTypeBusStation; +extern NSString *const kGMSPlaceTypeCafe; +extern NSString *const kGMSPlaceTypeCampground; +extern NSString *const kGMSPlaceTypeCarDealer; +extern NSString *const kGMSPlaceTypeCarRental; +extern NSString *const kGMSPlaceTypeCarRepair; +extern NSString *const kGMSPlaceTypeCarWash; +extern NSString *const kGMSPlaceTypeCasino; +extern NSString *const kGMSPlaceTypeCemetery; +extern NSString *const kGMSPlaceTypeChurch; +extern NSString *const kGMSPlaceTypeCityHall; +extern NSString *const kGMSPlaceTypeClothingStore; +extern NSString *const kGMSPlaceTypeColloquialArea; +extern NSString *const kGMSPlaceTypeConvenienceStore; +extern NSString *const kGMSPlaceTypeCountry; +extern NSString *const kGMSPlaceTypeCourthouse; +extern NSString *const kGMSPlaceTypeDentist; +extern NSString *const kGMSPlaceTypeDepartmentStore; +extern NSString *const kGMSPlaceTypeDoctor; +extern NSString *const kGMSPlaceTypeElectrician; +extern NSString *const kGMSPlaceTypeElectronicsStore; +extern NSString *const kGMSPlaceTypeEmbassy; +extern NSString *const kGMSPlaceTypeEstablishment; +extern NSString *const kGMSPlaceTypeFinance; +extern NSString *const kGMSPlaceTypeFireStation; +extern NSString *const kGMSPlaceTypeFloor; +extern NSString *const kGMSPlaceTypeFlorist; +extern NSString *const kGMSPlaceTypeFood; +extern NSString *const kGMSPlaceTypeFuneralHome; +extern NSString *const kGMSPlaceTypeFurnitureStore; +extern NSString *const kGMSPlaceTypeGasStation; +extern NSString *const kGMSPlaceTypeGeneralContractor; +extern NSString *const kGMSPlaceTypeGeocode; +extern NSString *const kGMSPlaceTypeGroceryOrSupermarket; +extern NSString *const kGMSPlaceTypeGym; +extern NSString *const kGMSPlaceTypeHairCare; +extern NSString *const kGMSPlaceTypeHardwareStore; +extern NSString *const kGMSPlaceTypeHealth; +extern NSString *const kGMSPlaceTypeHinduTemple; +extern NSString *const kGMSPlaceTypeHomeGoodsStore; +extern NSString *const kGMSPlaceTypeHospital; +extern NSString *const kGMSPlaceTypeInsuranceAgency; +extern NSString *const kGMSPlaceTypeIntersection; +extern NSString *const kGMSPlaceTypeJewelryStore; +extern NSString *const kGMSPlaceTypeLaundry; +extern NSString *const kGMSPlaceTypeLawyer; +extern NSString *const kGMSPlaceTypeLibrary; +extern NSString *const kGMSPlaceTypeLiquorStore; +extern NSString *const kGMSPlaceTypeLocalGovernmentOffice; +extern NSString *const kGMSPlaceTypeLocality; +extern NSString *const kGMSPlaceTypeLocksmith; +extern NSString *const kGMSPlaceTypeLodging; +extern NSString *const kGMSPlaceTypeMealDelivery; +extern NSString *const kGMSPlaceTypeMealTakeaway; +extern NSString *const kGMSPlaceTypeMosque; +extern NSString *const kGMSPlaceTypeMovieRental; +extern NSString *const kGMSPlaceTypeMovieTheater; +extern NSString *const kGMSPlaceTypeMovingCompany; +extern NSString *const kGMSPlaceTypeMuseum; +extern NSString *const kGMSPlaceTypeNaturalFeature; +extern NSString *const kGMSPlaceTypeNeighborhood; +extern NSString *const kGMSPlaceTypeNightClub; +extern NSString *const kGMSPlaceTypePainter; +extern NSString *const kGMSPlaceTypePark; +extern NSString *const kGMSPlaceTypeParking; +extern NSString *const kGMSPlaceTypePetStore; +extern NSString *const kGMSPlaceTypePharmacy; +extern NSString *const kGMSPlaceTypePhysiotherapist; +extern NSString *const kGMSPlaceTypePlaceOfWorship; +extern NSString *const kGMSPlaceTypePlumber; +extern NSString *const kGMSPlaceTypePointOfInterest; +extern NSString *const kGMSPlaceTypePolice; +extern NSString *const kGMSPlaceTypePolitical; +extern NSString *const kGMSPlaceTypePostBox; +extern NSString *const kGMSPlaceTypePostOffice; +extern NSString *const kGMSPlaceTypePostalCode; +extern NSString *const kGMSPlaceTypePostalCodePrefix; +extern NSString *const kGMSPlaceTypePostalCodeSuffix; +extern NSString *const kGMSPlaceTypePostalTown; +extern NSString *const kGMSPlaceTypePremise; +extern NSString *const kGMSPlaceTypeRealEstateAgency; +extern NSString *const kGMSPlaceTypeRestaurant; +extern NSString *const kGMSPlaceTypeRoofingContractor; +extern NSString *const kGMSPlaceTypeRoom; +extern NSString *const kGMSPlaceTypeRoute; +extern NSString *const kGMSPlaceTypeRvPark; +extern NSString *const kGMSPlaceTypeSchool; +extern NSString *const kGMSPlaceTypeShoeStore; +extern NSString *const kGMSPlaceTypeShoppingMall; +extern NSString *const kGMSPlaceTypeSpa; +extern NSString *const kGMSPlaceTypeStadium; +extern NSString *const kGMSPlaceTypeStorage; +extern NSString *const kGMSPlaceTypeStore; +extern NSString *const kGMSPlaceTypeStreetAddress; +extern NSString *const kGMSPlaceTypeStreetNumber; +extern NSString *const kGMSPlaceTypeSublocality; +extern NSString *const kGMSPlaceTypeSublocalityLevel1; +extern NSString *const kGMSPlaceTypeSublocalityLevel2; +extern NSString *const kGMSPlaceTypeSublocalityLevel3; +extern NSString *const kGMSPlaceTypeSublocalityLevel4; +extern NSString *const kGMSPlaceTypeSublocalityLevel5; +extern NSString *const kGMSPlaceTypeSubpremise; +extern NSString *const kGMSPlaceTypeSubwayStation; +extern NSString *const kGMSPlaceTypeSynagogue; +extern NSString *const kGMSPlaceTypeTaxiStand; +extern NSString *const kGMSPlaceTypeTrainStation; +extern NSString *const kGMSPlaceTypeTransitStation; +extern NSString *const kGMSPlaceTypeTravelAgency; +extern NSString *const kGMSPlaceTypeUniversity; +extern NSString *const kGMSPlaceTypeVeterinaryCare; +extern NSString *const kGMSPlaceTypeZoo; diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacesClient.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacesClient.h new file mode 100644 index 0000000..e2c2cc4 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacesClient.h @@ -0,0 +1,238 @@ +// +// GMSPlacesClient.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#import + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif +#import +#import +#import + + +@class GMSAutocompleteFilter; +@class GMSAutocompletePrediction; +@class GMSPlaceLikelihoodList; +@class GMSPlacePhotoMetadata; +@class GMSPlacePhotoMetadataList; + +GMS_ASSUME_NONNULL_BEGIN + +/** + * @relates GMSPlacesClient + * Callback type for receiving place details lookups. If an error occurred, + * |result| will be nil and |error| will contain information about the error. + * @param result The |GMSPlace| that was returned. + * @param error The error that occurred, if any. + */ +typedef void (^GMSPlaceResultCallback)( + GMSPlace * GMS_NULLABLE_PTR result, + NSError * GMS_NULLABLE_PTR error); + +/** + * @relates GMSPlacesClient + * Callback type for receiving place likelihood lists. If an error occurred, |likelihoodList| will + * be nil and |error| will contain information about the error. + * @param likelihoodList The list of place likelihoods. + * @param error The error that occurred, if any. + */ +typedef void (^GMSPlaceLikelihoodListCallback)( + GMSPlaceLikelihoodList * GMS_NULLABLE_PTR likelihoodList, + NSError * GMS_NULLABLE_PTR error); + +/** + * @relates GMSPlacesClient + * Callback type for receiving autocompletion results. |results| is an array of + * GMSAutocompletePredictions representing candidate completions of the query. + * @param results An array of |GMSAutocompletePrediction|s. + * @param error The error that occurred, if any. + */ +typedef void (^GMSAutocompletePredictionsCallback)(GMS_NSArrayOf(GMSAutocompletePrediction *) * + GMS_NULLABLE_PTR results, + NSError *GMS_NULLABLE_PTR error); + +/** + * @relates GMSPlacesClient + * Callback type for receiving place photos results. If an error occurred, |photos| will be nil and + * |error| will contain information about the error. + * @param photos The result containing |GMSPlacePhotoMetadata| objects. + * @param error The error that occurred, if any. + */ +typedef void (^GMSPlacePhotoMetadataResultCallback)( + GMSPlacePhotoMetadataList *GMS_NULLABLE_PTR photos, NSError *GMS_NULLABLE_PTR error); + +/** + * @relates GMSPlacesClient + * Callback type for receiving |UIImage| objects from a |GMSPlacePhotoMetadata| object. If an error + * occurred, |photo| will be nil and |error| will contain information about the error. + * @param photo The |UIImage| which was loaded. + * @param error The error that occurred, if any. + */ +typedef void (^GMSPlacePhotoImageResultCallback)(UIImage *GMS_NULLABLE_PTR photo, + NSError *GMS_NULLABLE_PTR error); + +/** + * Main interface to the Places API. Used for searching and getting details about places. This class + * should be accessed through the [GMSPlacesClient sharedClient] method. + * + * GMSPlacesClient methods should only be called from the main thread. Calling these methods from + * another thread will result in an exception or undefined behavior. Unless otherwise specified, all + * callbacks will be invoked on the main thread. + */ +@interface GMSPlacesClient : NSObject + +/** + * Provides the shared instance of GMSPlacesClient for the Google Places API for iOS, creating it if + * necessary. + * + * If your application often uses methods of GMSPlacesClient it may want to hold onto this object + * directly, as otherwise your connection to Google may be restarted on a regular basis. + */ ++ (instancetype)sharedClient; + +/** + * Provides your API key to the Google Places API for iOS. This key is generated for your + * application via the Google APIs Console, and is paired with your application's bundle ID to + * identify it. This should be called exactly once by your application, e.g., in application: + * didFinishLaunchingWithOptions:. + * + * @return YES if the APIKey was successfully provided. + */ ++ (BOOL)provideAPIKey:(NSString *)key; + +/** + * Returns the open source software license information for the Google Places API for iOS. This + * information must be made available within your application. + */ ++ (NSString *)openSourceLicenseInfo; + +/** + * Returns the version for this release of the Google Places API for iOS. + */ ++ (NSString *)SDKVersion; + +/** + * Report that the device is at a particular place. + */ +- (void)reportDeviceAtPlaceWithID:(NSString *)placeID; + +/** + * Get details for a place. This method is non-blocking. + * @param placeID The place ID to lookup. + * @param callback The callback to invoke with the lookup result. + */ +- (void)lookUpPlaceID:(NSString *)placeID callback:(GMSPlaceResultCallback)callback; + +/** + * Gets the metadata for up to 10 photos associated with a place. + * + * Photos are sourced from a variety of locations, including business owners and photos contributed + * by Google+ users. In most cases, these photos can be used without attribution, or will have the + * required attribution included as a part of the image. However, you must use the |attributions| + * property in the response to retrieve any additional attributions required, and display those + * attributions in your application wherever you display the image. A maximum of 10 photos is + * returned. + * + * Multiple calls of this method will probably return the same photos each time. However, this is + * not guaranteed because the underlying data may have changed. + * + * This method performs a network lookup. + * + * @param placeID The place ID for which to lookup photos. + * @param callback The callback to invoke with the lookup result. + */ +- (void)lookUpPhotosForPlaceID:(NSString *)placeID + callback:(GMSPlacePhotoMetadataResultCallback)callback; + +/** + * Loads the image for a specific photo at its maximum size. + * + * Image data may be cached. If the requested photo does not exist in the cache then a network + * lookup will be performed. + * + * @param photo The photo for which to load a |UIImage|. + * @param callback The callback to invoke with the loaded |UIImage|. + */ +- (void)loadPlacePhoto:(GMSPlacePhotoMetadata *)photo + callback:(GMSPlacePhotoImageResultCallback)callback; + +/** + * Loads the image for a specific photo, scaled to fit the given maximum dimensions. + * + * The image will be scaled to fit within the given dimensions while maintaining the aspect ratio of + * the original image. This scaling is performed server-side. + * + * If the scale parameter is not 1.0 maxSize will be multiplied by this value and the returned + * UIImage will be set to have the specified scale. This parameter should be set to the screen scale + * if you are loading images for display on screen. + * + * Image data may be cached. If the requested photo does not exist in the cache then a network + * lookup will be performed. + * + * NOTE: After applying the scale factor the dimensions in maxSize will be rounded up to the nearest + * integer before use. If an image is requested which is larger than the maximum size available a + * smaller image may be returned. + * + * @param photo The photo for which to load a |UIImage|. + * @param maxSize The maximum size of the image. + * @param scale The scale to load the image at. + * @param callback The callback to invoke with the loaded |UIImage|. + */ +- (void)loadPlacePhoto:(GMSPlacePhotoMetadata *)photo + constrainedToSize:(CGSize)maxSize + scale:(CGFloat)scale + callback:(GMSPlacePhotoImageResultCallback)callback; + +/** + * Returns an estimate of the place where the device is currently known to be located. + * + * Generates a place likelihood list based on the device's last estimated location. The supplied + * callback will be invoked with this likelihood list upon success and an NSError upon an error. + * + * NOTE: This method requires that your app has permission to access the devices location. Before + * calling this make sure to request access to the users location using [CLLocationManager + * requestWhenInUseAuthorization] or [CLLocationManager requestAlwaysAuthorization]. If you do call + * this method and your app does not have the correct authorization status, the callback will be + * called with an error. + * + * @param callback The callback to invoke with the place likelihood list. + */ +- (void)currentPlaceWithCallback:(GMSPlaceLikelihoodListCallback)callback; + +/** + * Autocompletes a given text query. Results may optionally be biased towards a certain location. + * The supplied callback will be invoked with an array of autocompletion predictions upon success + * and an NSError upon an error. + * @param query The partial text to autocomplete. + * @param bounds The bounds used to bias the results. This is not a hard restrict - places may still + * be returned outside of these bounds. This parameter may be nil. + * @param filter The filter to apply to the results. This parameter may be nil. + * @param callback The callback to invoke with the predictions. + */ +- (void)autocompleteQuery:(NSString *)query + bounds:(GMSCoordinateBounds * GMS_NULLABLE_PTR)bounds + filter:(GMSAutocompleteFilter * GMS_NULLABLE_PTR)filter + callback:(GMSAutocompletePredictionsCallback)callback; + +/** + * Add a place. The |place| must have all its fields set, except that website or phoneNumber may be + * nil. + * @param place The details of the place to be added. + * @param callback The callback to invoke with the place that was added. + */ +- (void)addPlace:(GMSUserAddedPlace *)place + callback:(GMSPlaceResultCallback)callback; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacesErrors.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacesErrors.h new file mode 100644 index 0000000..7564418 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSPlacesErrors.h @@ -0,0 +1,103 @@ +// +// GMSPlacesErrors.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif + +GMS_ASSUME_NONNULL_BEGIN + +/* Error domain used for Places API errors. */ +extern NSString * const kGMSPlacesErrorDomain; + +/* Error codes for |kGMSPlacesErrorDomain|. */ +typedef NS_ENUM(NSInteger, GMSPlacesErrorCode) { + /** + * Something went wrong with the connection to the Places API server. + */ + kGMSPlacesNetworkError = -1, + /** + * The Places API server returned a response that we couldn't understand. + *

+ * If you believe this error represents a bug, please file a report using the instructions on our + * community and support page. + */ + kGMSPlacesServerError = -2, + /** + * An internal error occurred in the Places API library. + *

+ * If you believe this error represents a bug, please file a report using the instructions on our + * community and support page. + */ + kGMSPlacesInternalError = -3, + /** + * Operation failed due to an invalid (malformed or missing) API key. + *

+ * See the developer's guide + * for information on creating and using an API key. + */ + kGMSPlacesKeyInvalid = -4, + /** + * Operation failed due to an expired API key. + *

+ * See the developer's guide + * for information on creating and using an API key. + */ + kGMSPlacesKeyExpired = -5, + /** + * Operation failed due to exceeding the quota usage limit. + *

+ * See the usage limits guide + * for information on usage limits and how to request a higher limit. + */ + kGMSPlacesUsageLimitExceeded = -6, + /** + * Operation failed due to exceeding the usage rate limit for the API key. + *

+ * This status code shouldn't be returned during normal usage of the API. It relates to usage of + * the API that far exceeds normal request levels. See the usage limits guide for more + * information. + */ + kGMSPlacesRateLimitExceeded = -7, + /** + * Operation failed due to exceeding the per-device usage rate limit. + *

+ * This status code shouldn't be returned during normal usage of the API. It relates to usage of + * the API that far exceeds normal request levels. See the usage limits guide for more + * information. + */ + kGMSPlacesDeviceRateLimitExceeded = -8, + /** + * The Places API for iOS is not enabled. + *

+ * See the developer's guide for how + * to enable the Google Places API for iOS. + */ + kGMSPlacesAccessNotConfigured = -9, + /** + * The application's bundle identifier does not match one of the allowed iOS applications for the + * API key. + *

+ * See the developer's guide + * for how to configure bundle restrictions on API keys. + */ + kGMSPlacesIncorrectBundleIdentifier = -10, + /** + * The Places API could not find the user's location. This may be because the user has not allowed + * the application to access location information. + */ + kGMSPlacesLocationError = -11 +}; + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSUserAddedPlace.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSUserAddedPlace.h new file mode 100644 index 0000000..639bc6f --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GMSUserAddedPlace.h @@ -0,0 +1,53 @@ +// +// GMSUserAddedPlace.h +// Google Places API for iOS +// +// Copyright 2016 Google Inc. +// +// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of +// Service: https://developers.google.com/maps/terms +// + +#import +#import + +#if __has_feature(modules) +@import GoogleMapsBase; +#else +#import +#endif + +GMS_ASSUME_NONNULL_BEGIN + +/** + * Represents a place constructed by a user, suitable for adding to Google's collection of places. + * + * All properties must be set before passing to GMSPlacesClient.addPlace, except that either website + * _or_ phoneNumber may be nil. + */ +@interface GMSUserAddedPlace : NSObject + +/** Name of the place. */ +@property(nonatomic, copy) NSString *GMS_NULLABLE_PTR name; + +/** Address of the place. */ +@property(nonatomic, copy) NSString *GMS_NULLABLE_PTR address; + +/** Location of the place. */ +@property(nonatomic, assign) CLLocationCoordinate2D coordinate; + +/** Phone number of the place. */ +@property(nonatomic, copy) NSString *GMS_NULLABLE_PTR phoneNumber; + +/** List of types of the place as an array of NSStrings, like the GMSPlace.types property. +* Only table 1 types +* are valid. +*/ +@property(nonatomic, copy) GMS_NSArrayOf(NSString *) * GMS_NULLABLE_PTR types; + +/** The website for the place. */ +@property(nonatomic, copy) NSString *GMS_NULLABLE_PTR website; + +@end + +GMS_ASSUME_NONNULL_END diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Headers/GooglePlaces.h b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GooglePlaces.h new file mode 100644 index 0000000..e4fb191 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Headers/GooglePlaces.h @@ -0,0 +1,17 @@ +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Modules/module.modulemap b/Frameworks/GooglePlaces.framework/Versions/A/Modules/module.modulemap new file mode 100644 index 0000000..8a46427 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/A/Modules/module.modulemap @@ -0,0 +1,19 @@ +framework module GooglePlaces { umbrella header "GooglePlaces.h" +header "GMSAddressComponent.h" +header "GMSAutocompleteFetcher.h" +header "GMSAutocompleteFilter.h" +header "GMSAutocompleteMatchFragment.h" +header "GMSAutocompletePrediction.h" +header "GMSAutocompleteResultsViewController.h" +header "GMSAutocompleteTableDataSource.h" +header "GMSAutocompleteViewController.h" +header "GMSPlace.h" +header "GMSPlaceLikelihood.h" +header "GMSPlaceLikelihoodList.h" +header "GMSPlacePhotoMetadata.h" +header "GMSPlacePhotoMetadataList.h" +header "GMSPlaceTypes.h" +header "GMSPlacesClient.h" +header "GMSPlacesErrors.h" +header "GMSUserAddedPlace.h" +export * module * { export * } } diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/Info.plist b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/Info.plist new file mode 100644 index 0000000..546aba0 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/Info.plist differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ar.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ar.lproj/GooglePlaces.strings new file mode 100644 index 0000000..bce2694 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ar.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ca.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ca.lproj/GooglePlaces.strings new file mode 100644 index 0000000..c90a9dc Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ca.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/cs.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/cs.lproj/GooglePlaces.strings new file mode 100644 index 0000000..80f6468 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/cs.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/da.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/da.lproj/GooglePlaces.strings new file mode 100644 index 0000000..03d7425 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/da.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/de.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/de.lproj/GooglePlaces.strings new file mode 100644 index 0000000..8b1ed19 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/de.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/el.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/el.lproj/GooglePlaces.strings new file mode 100644 index 0000000..6458ece Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/el.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en.lproj/GooglePlaces.strings new file mode 100644 index 0000000..76f26e4 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en_AU.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en_AU.lproj/GooglePlaces.strings new file mode 100644 index 0000000..2e7f8c7 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en_AU.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en_GB.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en_GB.lproj/GooglePlaces.strings new file mode 100644 index 0000000..2e7f8c7 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en_GB.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en_IN.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en_IN.lproj/GooglePlaces.strings new file mode 100644 index 0000000..2e7f8c7 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/en_IN.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/es.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/es.lproj/GooglePlaces.strings new file mode 100644 index 0000000..f83f1da Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/es.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/es_419.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/es_419.lproj/GooglePlaces.strings new file mode 100644 index 0000000..fe60c57 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/es_419.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/es_MX.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/es_MX.lproj/GooglePlaces.strings new file mode 100644 index 0000000..fe60c57 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/es_MX.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/fi.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/fi.lproj/GooglePlaces.strings new file mode 100644 index 0000000..36449cf Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/fi.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/fr.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/fr.lproj/GooglePlaces.strings new file mode 100644 index 0000000..be66a02 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/fr.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/fr_CA.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/fr_CA.lproj/GooglePlaces.strings new file mode 100644 index 0000000..b421ac5 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/fr_CA.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/he.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/he.lproj/GooglePlaces.strings new file mode 100644 index 0000000..ae5d522 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/he.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/hi.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/hi.lproj/GooglePlaces.strings new file mode 100644 index 0000000..62f4270 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/hi.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/hr.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/hr.lproj/GooglePlaces.strings new file mode 100644 index 0000000..c0b30bf Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/hr.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/hu.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/hu.lproj/GooglePlaces.strings new file mode 100644 index 0000000..62af815 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/hu.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/id.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/id.lproj/GooglePlaces.strings new file mode 100644 index 0000000..dfc646d Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/id.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/it.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/it.lproj/GooglePlaces.strings new file mode 100644 index 0000000..fb40633 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/it.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ja.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ja.lproj/GooglePlaces.strings new file mode 100644 index 0000000..201ee48 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ja.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ko.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ko.lproj/GooglePlaces.strings new file mode 100644 index 0000000..d671954 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ko.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ms.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ms.lproj/GooglePlaces.strings new file mode 100644 index 0000000..4d41e13 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ms.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/nb.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/nb.lproj/GooglePlaces.strings new file mode 100644 index 0000000..5898919 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/nb.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/nl.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/nl.lproj/GooglePlaces.strings new file mode 100644 index 0000000..54730fe Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/nl.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/oss_licenses_places.txt.gz b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/oss_licenses_places.txt.gz new file mode 100644 index 0000000..d28dae0 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/oss_licenses_places.txt.gz differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pl.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pl.lproj/GooglePlaces.strings new file mode 100644 index 0000000..a5a8feb Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pl.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-dark.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-dark.png new file mode 100644 index 0000000..6b93ac7 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-dark.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-dark@2x.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-dark@2x.png new file mode 100644 index 0000000..5725af3 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-dark@2x.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-dark@3x.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-dark@3x.png new file mode 100644 index 0000000..d48ada7 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-dark@3x.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-light.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-light.png new file mode 100644 index 0000000..f9bfb06 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-light.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-light@2x.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-light@2x.png new file mode 100644 index 0000000..3437461 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-light@2x.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-light@3x.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-light@3x.png new file mode 100644 index 0000000..ba5cc90 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/powered-by-google-light@3x.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pt.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pt.lproj/GooglePlaces.strings new file mode 100644 index 0000000..b69a46c Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pt.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pt_BR.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pt_BR.lproj/GooglePlaces.strings new file mode 100644 index 0000000..b69a46c Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pt_BR.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pt_PT.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pt_PT.lproj/GooglePlaces.strings new file mode 100644 index 0000000..6fe0e89 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/pt_PT.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ro.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ro.lproj/GooglePlaces.strings new file mode 100644 index 0000000..d710300 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ro.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ru.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ru.lproj/GooglePlaces.strings new file mode 100644 index 0000000..4adff2f Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/ru.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud.png new file mode 100644 index 0000000..60ff4a1 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud@2x.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud@2x.png new file mode 100644 index 0000000..aef35f3 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud@2x.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud@3x.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud@3x.png new file mode 100644 index 0000000..4a47965 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud@3x.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud_dark.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud_dark.png new file mode 100644 index 0000000..9eed3bf Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud_dark.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud_dark@2x.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud_dark@2x.png new file mode 100644 index 0000000..5e86b28 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud_dark@2x.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud_dark@3x.png b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud_dark@3x.png new file mode 100644 index 0000000..25ef651 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sad_cloud_dark@3x.png differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sk.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sk.lproj/GooglePlaces.strings new file mode 100644 index 0000000..28494a5 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sk.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sv.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sv.lproj/GooglePlaces.strings new file mode 100644 index 0000000..573dd48 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/sv.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/th.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/th.lproj/GooglePlaces.strings new file mode 100644 index 0000000..51f5c6d Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/th.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/tr.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/tr.lproj/GooglePlaces.strings new file mode 100644 index 0000000..e40fd3a Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/tr.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/uk.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/uk.lproj/GooglePlaces.strings new file mode 100644 index 0000000..b9bfea6 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/uk.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/vi.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/vi.lproj/GooglePlaces.strings new file mode 100644 index 0000000..ef9ad3a Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/vi.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/zh_CN.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/zh_CN.lproj/GooglePlaces.strings new file mode 100644 index 0000000..5e82314 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/zh_CN.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/zh_HK.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/zh_HK.lproj/GooglePlaces.strings new file mode 100644 index 0000000..749cbcd Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/zh_HK.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/zh_TW.lproj/GooglePlaces.strings b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/zh_TW.lproj/GooglePlaces.strings new file mode 100644 index 0000000..1b3d5b9 Binary files /dev/null and b/Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle/zh_TW.lproj/GooglePlaces.strings differ diff --git a/Frameworks/GooglePlaces.framework/Versions/Current b/Frameworks/GooglePlaces.framework/Versions/Current new file mode 120000 index 0000000..8c7e5a6 --- /dev/null +++ b/Frameworks/GooglePlaces.framework/Versions/Current @@ -0,0 +1 @@ +A \ No newline at end of file diff --git a/GooglePlacesRow.podspec b/GooglePlacesRow.podspec index 5cfe0b3..d291583 100644 --- a/GooglePlacesRow.podspec +++ b/GooglePlacesRow.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "GooglePlacesRow" - s.version = "0.0.1" + s.version = "1.0.0" s.summary = "A row extension for Eureka that allows the user to pick a place based on Google Places autocomplete feature" s.homepage = "https://github.com/EurekaCommunity/GooglePlacesRow" s.license = { type: 'MIT', file: 'LICENSE' } @@ -13,11 +13,14 @@ Pod::Spec.new do |s| s.ios.frameworks = 'UIKit', 'Foundation' s.dependency 'Eureka', '~> 1.5' s.libraries = "c++", "icucore", "z" # required for GoogleMaps.framework - s.frameworks = "Accelerate", "AVFoundation", "CoreData", "CoreGraphics", "CoreBluetooth", "CoreLocation", "CoreText", "Foundation", "GLKit", "ImageIO", "OpenGLES", "QuartzCore", "SystemConfiguration", "GoogleMaps" # required for GoogleMaps.framework - s.vendored_frameworks = "Frameworks/GoogleMaps.framework" + s.frameworks = "Accelerate", "AVFoundation", "CoreData", "CoreGraphics", "CoreBluetooth", "CoreLocation", "CoreText", "Foundation", "GLKit", "ImageIO", "OpenGLES", "QuartzCore", "SystemConfiguration", "GoogleMapsBase", "GooglePlaces" # required for GooglePlaces.framework + s.vendored_frameworks = "Frameworks/GoogleMapsBase.framework", "Frameworks/GooglePlaces.framework" s.prepare_command = <<-CMD - curl -o GoogleMaps 'https://www.gstatic.com/cpdc/369280b0e1f04cb7-GoogleMaps-1.13.0.tar.gz' + curl -o GoogleMaps 'https://www.gstatic.com/cpdc/5a212b0fa429156f-GoogleMaps-2.0.1.tar.gz' tar -zxvf GoogleMaps + curl -o GooglePlaces 'https://www.gstatic.com/cpdc/2b9e8b99fc05d124-GooglePlaces-2.0.1.tar.gz' + tar -zxvf GooglePlaces CMD - #s.dependency 'GoogleMaps', '~> 1.13' + #s.dependency 'GoogleMaps', '~> 2.0.1' + #s.dependency 'GooglePlaces', '~> 2.0.1' end diff --git a/GooglePlacesRow.xcodeproj/project.pbxproj b/GooglePlacesRow.xcodeproj/project.pbxproj index 542479a..f906b2c 100644 --- a/GooglePlacesRow.xcodeproj/project.pbxproj +++ b/GooglePlacesRow.xcodeproj/project.pbxproj @@ -13,7 +13,6 @@ 28F8289A1C494B4200330CF4 /* GooglePlacesRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28F828991C494B4200330CF4 /* GooglePlacesRow.swift */; }; 8F3A831C1CBEC6E300F4A73F /* Eureka.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F3A831B1CBEC6E300F4A73F /* Eureka.framework */; }; 8F4BF7211CBEB61600EFE79A /* GooglePlacesCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F4BF7201CBEB61600EFE79A /* GooglePlacesCell.swift */; }; - 8F4BF7281CBEC3EE00EFE79A /* GoogleMaps.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F4BF7271CBEC3EE00EFE79A /* GoogleMaps.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; 8F5A4F721CBFEF6500F47E76 /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F3EDF801CBFCD1A000754B7 /* Accelerate.framework */; }; 8F5A4F731CBFEF6500F47E76 /* CoreBluetooth.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F3EDF811CBFCD1A000754B7 /* CoreBluetooth.framework */; }; 8F5A4F741CBFEF6500F47E76 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F3EDF821CBFCD1A000754B7 /* CoreGraphics.framework */; }; @@ -28,12 +27,14 @@ 8F5A4F7E1CBFEF6500F47E76 /* CoreText.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F3EDF8C1CBFCD1A000754B7 /* CoreText.framework */; }; 8F5A4F7F1CBFEF6500F47E76 /* GLKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F3EDF8D1CBFCD1A000754B7 /* GLKit.framework */; }; 8F5A4F801CBFEF6500F47E76 /* ImageIO.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F3EDF8E1CBFCD1A000754B7 /* ImageIO.framework */; }; - 8F5A4F821CBFEF8700F47E76 /* GoogleMaps.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 8F5A4F811CBFEF8700F47E76 /* GoogleMaps.bundle */; }; 8F5A4F861CC0071C00F47E76 /* GPCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F5A4F851CC0071C00F47E76 /* GPCollectionViewCell.swift */; }; 8F5A4F881CC0074400F47E76 /* GPTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F5A4F871CC0074400F47E76 /* GPTableViewCell.swift */; }; 8F5A4F8A1CC00AF500F47E76 /* GooglePlacesCollectionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F5A4F891CC00AF500F47E76 /* GooglePlacesCollectionCell.swift */; }; 8F5A4F8C1CC00B0300F47E76 /* GooglePlacesTableCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F5A4F8B1CC00B0300F47E76 /* GooglePlacesTableCell.swift */; }; 8F6FCE231CC1355F00EF0FD2 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F3EDF831CBFCD1A000754B7 /* libz.tbd */; }; + 8F965AA11D4BDDBD00F2CB0B /* GoogleMapsBase.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F965AA01D4BDDBD00F2CB0B /* GoogleMapsBase.framework */; }; + 8F965AA31D4BDDBF00F2CB0B /* GooglePlaces.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8F965AA21D4BDDBF00F2CB0B /* GooglePlaces.framework */; }; + 8F965AA51D4BDDDB00F2CB0B /* GooglePlaces.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 8F965AA41D4BDDDB00F2CB0B /* GooglePlaces.bundle */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -71,12 +72,13 @@ 8F3EDF8D1CBFCD1A000754B7 /* GLKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GLKit.framework; path = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/GLKit.framework; sourceTree = ""; }; 8F3EDF8E1CBFCD1A000754B7 /* ImageIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ImageIO.framework; path = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/ImageIO.framework; sourceTree = ""; }; 8F4BF7201CBEB61600EFE79A /* GooglePlacesCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GooglePlacesCell.swift; sourceTree = ""; }; - 8F4BF7271CBEC3EE00EFE79A /* GoogleMaps.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GoogleMaps.framework; path = Frameworks/GoogleMaps.framework; sourceTree = ""; }; - 8F5A4F811CBFEF8700F47E76 /* GoogleMaps.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = GoogleMaps.bundle; path = Frameworks/GoogleMaps.framework/Versions/A/Resources/GoogleMaps.bundle; sourceTree = ""; }; 8F5A4F851CC0071C00F47E76 /* GPCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GPCollectionViewCell.swift; sourceTree = ""; }; 8F5A4F871CC0074400F47E76 /* GPTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GPTableViewCell.swift; sourceTree = ""; }; 8F5A4F891CC00AF500F47E76 /* GooglePlacesCollectionCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GooglePlacesCollectionCell.swift; sourceTree = ""; }; 8F5A4F8B1CC00B0300F47E76 /* GooglePlacesTableCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GooglePlacesTableCell.swift; sourceTree = ""; }; + 8F965AA01D4BDDBD00F2CB0B /* GoogleMapsBase.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GoogleMapsBase.framework; path = Frameworks/GoogleMapsBase.framework; sourceTree = ""; }; + 8F965AA21D4BDDBF00F2CB0B /* GooglePlaces.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GooglePlaces.framework; path = Frameworks/GooglePlaces.framework; sourceTree = ""; }; + 8F965AA41D4BDDDB00F2CB0B /* GooglePlaces.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = GooglePlaces.bundle; path = Frameworks/GooglePlaces.framework/Versions/A/Resources/GooglePlaces.bundle; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -84,7 +86,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 8F4BF7281CBEC3EE00EFE79A /* GoogleMaps.framework in Frameworks */, 8F5A4F721CBFEF6500F47E76 /* Accelerate.framework in Frameworks */, 8F5A4F731CBFEF6500F47E76 /* CoreBluetooth.framework in Frameworks */, 8F5A4F741CBFEF6500F47E76 /* CoreGraphics.framework in Frameworks */, @@ -101,6 +102,8 @@ 8F5A4F7F1CBFEF6500F47E76 /* GLKit.framework in Frameworks */, 8F5A4F801CBFEF6500F47E76 /* ImageIO.framework in Frameworks */, 8F3A831C1CBEC6E300F4A73F /* Eureka.framework in Frameworks */, + 8F965AA11D4BDDBD00F2CB0B /* GoogleMapsBase.framework in Frameworks */, + 8F965AA31D4BDDBF00F2CB0B /* GooglePlaces.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -118,6 +121,7 @@ 28F828731C494B2C00330CF4 = { isa = PBXGroup; children = ( + 8F965AA41D4BDDDB00F2CB0B /* GooglePlaces.bundle */, 28F828971C494B4200330CF4 /* Sources */, 28F8287F1C494B2C00330CF4 /* GooglePlacesRow */, 28F8288B1C494B2C00330CF4 /* Tests */, @@ -170,13 +174,14 @@ CAEDE44796BC640758663FDB /* Frameworks */ = { isa = PBXGroup; children = ( + 8F965AA21D4BDDBF00F2CB0B /* GooglePlaces.framework */, + 8F965AA01D4BDDBD00F2CB0B /* GoogleMapsBase.framework */, 8F3EDF801CBFCD1A000754B7 /* Accelerate.framework */, 8F3EDF811CBFCD1A000754B7 /* CoreBluetooth.framework */, 8F3EDF821CBFCD1A000754B7 /* CoreGraphics.framework */, 8F3EDF831CBFCD1A000754B7 /* libz.tbd */, 8F3EDF841CBFCD1A000754B7 /* libicucore.tbd */, 8F3EDF851CBFCD1A000754B7 /* libc++.tbd */, - 8F5A4F811CBFEF8700F47E76 /* GoogleMaps.bundle */, 8F3EDF861CBFCD1A000754B7 /* QuartzCore.framework */, 8F3EDF871CBFCD1A000754B7 /* SystemConfiguration.framework */, 8F3EDF881CBFCD1A000754B7 /* OpenGLES.framework */, @@ -187,7 +192,6 @@ 8F3EDF8D1CBFCD1A000754B7 /* GLKit.framework */, 8F3EDF8E1CBFCD1A000754B7 /* ImageIO.framework */, 8F3A831B1CBEC6E300F4A73F /* Eureka.framework */, - 8F4BF7271CBEC3EE00EFE79A /* GoogleMaps.framework */, ); name = Frameworks; sourceTree = ""; @@ -282,7 +286,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 8F5A4F821CBFEF8700F47E76 /* GoogleMaps.bundle in Resources */, + 8F965AA51D4BDDDB00F2CB0B /* GooglePlaces.bundle in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/README.md b/README.md index dc74ef7..eb16da6 100755 --- a/README.md +++ b/README.md @@ -4,12 +4,14 @@ Platform iOS Swift 2 compatible -CocoaPods compatible +CocoaPods compatible License: MIT

By [Xmartlabs SRL](http://EurekaCommunity.com). +**Current Google Places version used is 2.0.1** + ## Inroduction GooglePlacesRow is a row extension for Eureka. It implements a row where the user can use Google Places autocomplete functionality to select a place suggested by the API. @@ -20,6 +22,8 @@ GooglePlacesRow includes two rows with similar functionality but their options a The project is experimental and open to changes although it is already quite customizable. + + Please follow the [installation instructions](#installation) @@ -55,7 +59,8 @@ To see what you can customize have a look at the [Customization](#customization) ## Dependencies * Eureka (obviously) -* GoogleMaps (and all the frameworks it depends on) +* GooglePlaces (and all the frameworks it depends on) +* GoogleMapsBase ## Requirements @@ -77,7 +82,6 @@ If you use **GooglePlacesRow** in your app we would love to hear about it! Drop Follow these steps to run Example project: * Clone GooglePlacesRow repository * Run `carthage update` in the root of the project -* Due to the fact that the Google Maps binary is too large to be uploaded to Github you will have to get that framework by another means and paste it inside the `Frameworks` folder (create it, if it does not exist). You can for example download it from [here](https://www.gstatic.com/cpdc/369280b0e1f04cb7-GoogleMaps-1.13.0.tar.gz). * Open GooglePlacesRow workspace * **Set your Google places API KEY in `AppDelegate.swift`** * and run the *Example* project. @@ -97,7 +101,7 @@ pod 'GooglePlacesRow' Then you have to tell Xcode where the Google Places framework is. The easiest way to do it is by adding `$(PROJECT_DIR)/Pods/GooglePlacesRow/Frameworks` to the `Build Settings/Framework Search Paths` of your target. -> Note: Do not add `pod 'GoogleMaps'` to your podfile as this library includes it as a vendored framework +> Note: Do not add `pod 'GooglePlaces'` to your podfile as this library includes it as a vendored framework