Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions packages/google_maps_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.0+5

* Skip the Gradle Android permissions lint for MyLocation (https://github.com/flutter/flutter/issues/28339)

## 0.2.0+4

* Fixed a crash when the plugin is registered by a background FlutterView.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,11 @@ public void setMyLocationEnabled(boolean myLocationEnabled) {

private void updateMyLocationEnabled() {
if (hasLocationPermission()) {
// The plugin doesn't add the location permission by default so that apps that don't need
// the feature won't require the permission.
// Gradle is doing a static check for missing permission and in some configurations will
// fail the build if the permission is missing. The following disables the Gradle lint.
//noinspection ResourceType
googleMap.setMyLocationEnabled(myLocationEnabled);
} else {
// TODO(amirh): Make the options update fail.
Expand Down
2 changes: 1 addition & 1 deletion packages/google_maps_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: google_maps_flutter
description: A Flutter plugin for integrating Google Maps in iOS and Android applications.
author: Flutter Team <flutter-dev@googlegroups.com>
homepage: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter
version: 0.2.0+4
version: 0.2.0+5

dependencies:
flutter:
Expand Down