From 59b3987bec3d47a729980bfff5be908c148eb399 Mon Sep 17 00:00:00 2001 From: Angela Yu <5506675+wangela@users.noreply.github.com> Date: Thu, 14 Dec 2023 09:24:08 -0800 Subject: [PATCH] docs: update SPM install instructions in README --- README.md | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index c3add1e6..ebbc193c 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,8 @@ pod install ### [Swift Package Manager](https://github.com/apple/swift-package-manager) -**Note**: This feature is only available with Swift 5.3 (Xcode 12) or later. +> [!NOTE] +> This feature is only available with Swift 5.3 (Xcode 12) or later. 1. Follow the instructions for [adding package dependencies to your app in Xcode](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app). @@ -64,34 +65,16 @@ pod install https://github.com/googlemaps/google-maps-ios-utils ``` +> [!IMPORTANT] +> You also need to install the Maps SDK for iOS, which is also supported in Swift Package Manager at the URL `https://github.com/googlemaps/ios-maps-sdk` + 3. Select the [version](https://github.com/googlemaps/google-maps-ios-utils/releases) - of the Maps SDK for iOS Utility Library that you want to use. For new projects, we recommend specifying the latest version and using the "Up to Next Major Version" option. + of the Maps SDK for iOS Utility Library that you want to use. For new projects, we recommend specifying the latest version and using the "Exact Version" option. 4. Follow the [instructions](https://developers.google.com/maps/documentation/ios-sdk/config#get-key) to add your API key to your app. -Alternatively, you can add the following to the `dependencies` value of your -`Package.swift` file: - -``` -dependencies: [ - .package( - url: "https://github.com/googlemaps/ios-maps-sdk.git", - .upToNextMajor(from: "8.3.0") - ) -] -``` - -``` -dependencies: [ - .package( - url: "https://github.com/googlemaps/google-maps-ios-utils.git", - .upToNextMinor(from: "4.2.2") - ) -] -``` - ### [Carthage](https://github.com/Carthage/Carthage)
@@ -179,6 +162,12 @@ func renderKml() { Contributions are welcome and encouraged. Please see the [contributing guide][contributing] for guidance. +## Terms of Service + +This library uses Google Maps Platform services, and any use of Google Maps Platform is subject to the [Terms of Service](https://cloud.google.com/maps-platform/terms). + +For clarity, this library, and each underlying component, is not a Google Maps Platform Core Service. + ## Support This library is offered via an open source [license]. It is not governed by the Google Maps Platform [Support Technical Support Services Guidelines](https://cloud.google.com/maps-platform/terms/tssg), the [SLA](https://cloud.google.com/maps-platform/terms/sla), or the [Deprecation Policy](https://cloud.google.com/maps-platform/terms) (however, any Google Maps Platform services used by the library remain subject to the Google Maps Platform Terms of Service).