Skip to content

Commit

Permalink
chore: update workflows and README
Browse files Browse the repository at this point in the history
  • Loading branch information
wangela committed Nov 29, 2023
1 parent ac0d208 commit 04441e1
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -34,7 +34,7 @@ jobs:
run: sudo gem install cocoapods

- name: CocoaPods spec lint
run: pod lib lint Google-Maps-iOS-Utils.podspec
run: pod spec lint Google-Maps-iOS-Utils.podspec

- name: Build DevApp
run: |
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/release.yml
Expand Up @@ -32,13 +32,7 @@ jobs:
run: sudo xcode-select -s /Applications/Xcode_14.2.app

- name: Install Dependencies
run: |
brew install carthage
sudo gem install cocoapods
- name: Carthage update
run: |
carthage build --use-xcframeworks
run: sudo gem install cocoapods

- name: Create XCFramework
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -31,12 +31,14 @@ jobs:
- name: Checkout google-maps-ios-utils
uses: actions/checkout@v3

# Lint check on the podspec
- name: Install Dependencies
run: sudo gem install cocoapods

- name: CocoaPods spec lint
run: pod lib lint Google-Maps-iOS-Utils.podspec
run: pod spec lint Google-Maps-iOS-Utils.podspec

# Run unit tests
- name: Run unit tests
run: |
xcodebuild -scheme UnitTest -configuration Debug -destination "platform=iOS Simulator,OS=16.2,name=iPhone 14" build test | xcpretty
Expand Down
2 changes: 1 addition & 1 deletion Google-Maps-iOS-Utils.podspec
Expand Up @@ -21,7 +21,7 @@ Pod::Spec.new do |s|
s.module_name = "GoogleMapsUtils"
s.swift_version = '5.0'

s.dependency 'GoogleMaps', '~> 8.3'
s.dependency 'GoogleMaps'
s.static_framework = true

s.subspec 'QuadTree' do |sp|
Expand Down
2 changes: 1 addition & 1 deletion Podfile.template
Expand Up @@ -4,7 +4,7 @@ platform :ios, '14.0'

target 'YOUR_APPLICATION_TARGET_NAME_HERE' do
use_frameworks!
pod 'GoogleMaps', '8.0.0'
pod 'GoogleMaps', '8.3.0'
pod 'Google-Maps-iOS-Utils', '4.2.2'
end
# [END maps_ios_utils_podfile_template]
29 changes: 28 additions & 1 deletion README.md
Expand Up @@ -25,6 +25,7 @@ range of applications using the [Google Maps SDK for iOS][sdk].

- iOS 14.0+
- [Maps SDK for iOS][sdk] (see [Releases](https://github.com/googlemaps/google-maps-ios-utils/releases) for minimum compatible version)
- An [API key](https://developers.google.com/maps/documentation/ios-sdk/get-api-key)

## Installation

Expand Down Expand Up @@ -54,7 +55,33 @@ pod install

**Note**: This feature is only available with Swift 5.3 (Xcode 12) or later.

Add the following to your `dependencies` value of your `Package.swift` file.
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).

2. In the "Enter Package URL" field, enter this GitHub repository:

```
https://github.com/googlemaps/google-maps-ios-utils
```

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.

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: [
Expand Down

0 comments on commit 04441e1

Please sign in to comment.