Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore deprecation
  • Loading branch information
stuartmorgan-g committed Nov 30, 2023
commit da1400628f214630deed3f45e94a9789da8655ee
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,18 @@ - (instancetype)initWithFrame:(CGRect)frame
}
}

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// TODO(stuartmorgan): Switch to initWithOptions: once versions older than
// iOS 14 are no longer supported by the plugin, or there is a specific need
// for its functionality. Since it involves a newly-added class, call it
// dynamically is more trouble than it is currently worth.
if (mapID && [GMSMapView respondsToSelector:@selector(mapWithFrame:mapID:camera:)]) {
mapView = [GMSMapView mapWithFrame:frame mapID:mapID camera:camera];
} else {
mapView = [GMSMapView mapWithFrame:frame camera:camera];
}
#pragma clang diagnostic pop

return [self initWithMapView:mapView viewIdentifier:viewId arguments:args registrar:registrar];
}
Expand Down