Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.42 KB

File metadata and controls

42 lines (29 loc) · 1.42 KB

google_maps_flutter_ios

Fork of the official plugin

This allows you to run your Flutter app that depends on google_maps_flutter using arm64 architecture on ios simulator.

It uses the latest version of Google Maps SDK downloaded from map configuration documentation (link in the section about updating below).

Current Google Maps SDK version: 8.2.0

Usage

⚠️ Tested with google_maps_flutter version 2.5.0

  1. Inside ios/Runner/AppDelegate.swift enable Metal renderer for GoogleMaps if one is available:
    GeneratedPluginRegistrant.register(with: self)
    GMSServices.provideAPIKey(mapsApiKey)

    let device = MTLCreateSystemDefaultDevice();
    if (device != nil) {
        GMSServices.setMetalRendererEnabled(true);
    }
  1. Override google_maps_flutter_ios
dependency_overrides:
  google_maps_flutter_ios:
    git:
      url: https://github.com/XperiTech/google_maps_flutter_ios
      ref: <insert hash of last commit>

Updating maps version this package provides

  1. Go to https://developers.google.com/maps/documentation/ios-sdk/config#install-the-xcframework and download the SDK source files.
  2. Find GoogleMaps, GoogleMapsBase and GoogleMapsCore xcframeworks and copy them over to Frameworks directory