Skip to content

XperiTech/google_maps_flutter_ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fork of the official plugin with arm64 simulator support

Resources

License

Stars

Watchers

Forks

Packages

No packages published