Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
/ googlemaps-ios Public archive

Swift package for the Google Maps iOS Framework.

Notifications You must be signed in to change notification settings

abaltatech/googlemaps-ios

Repository files navigation

googlemaps-ios

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.

Table of Contents

Installation

To use Google Maps in your own project, you can use:

Swift Package Manager

// 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")
      ]
    )
  ]
)

Xcode

Add https://github.com/abaltatech/googlemaps-ios.git to your package dependencies add-package

Documentation

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.

Usage

Include the headers and follow the reference docs

#import <GoogleMaps/GoogleMaps.h>

Build XCFrameworks yourself

  1. Clone this project.
  2. Download the latest official XCFrameworks from Google. You can also download a specific version from the CocoaPods specs.
  3. Unzip and put downloaded XCFrameworks inside GoogleFrameworks directory.
  4. Run make_xcframeworks.sh script.
  5. You can find your new XCFrameworks in Build directory.

About

Swift package for the Google Maps iOS Framework.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •