Skip to content

Commit

Permalink
docs: update SPM install instructions in README
Browse files Browse the repository at this point in the history
  • Loading branch information
wangela committed Dec 14, 2023
1 parent 91a70c5 commit 59b3987
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions README.md
Expand Up @@ -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).
Expand All @@ -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)

<details>
Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit 59b3987

Please sign in to comment.