This is a swift package that exposes GoogleMaps.xcframework, GoogleMapsBase.xcframework and GoogleMapsCore.xcframeworkbuilt downloaded from the official Google Maps ios sdk documentation. This eliminates the need to store them in your repository.
To use Google Maps
in your own project, you can use:
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "MyPackage",
dependencies: [
.package(
url: "https://github.com/abaltatech/googlemaps-ios.git",
.upToNextMajor(from: "7.3.0") // or `.upToNextMinor
)
],
targets: [
.target(
name: "MyTarget",
dependencies: [
.product(name: "GoogleMaps", package: "googlemaps-ios")
]
)
]
)
Add https://github.com/abaltatech/googlemaps-ios.git to your package dependencies
You can view the api reference docs at https://developers.google.com/maps/documentation/ios-sdk/reference For more information you can visit the official Maps SDK for iOS site.
Include the headers and follow the reference docs
#import <GoogleMaps/GoogleMaps.h>
- Clone this project.
- Download the latest official XCFrameworks from Google. You can also download a specific version from the CocoaPods specs.
- Unzip and put downloaded XCFrameworks inside
GoogleFrameworks
directory. - Run
make_xcframeworks.sh
script. - You can find your new XCFrameworks in
Build
directory.