Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Android Gradle plugin 7.3.0 #27

Closed
asaarnak opened this issue Sep 16, 2022 · 2 comments
Closed

Support Android Gradle plugin 7.3.0 #27

asaarnak opened this issue Sep 16, 2022 · 2 comments

Comments

@asaarnak
Copy link
Contributor

Since Android Gradle plugin 7.3.0 minimum Kotlin plugin version is 1.5.20
https://developer.android.com/studio/releases/gradle-plugin#min-kotlin-version

Building app gives error:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':maps_launcher' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

@jbacco
Copy link

jbacco commented Oct 28, 2022

For anyone else with this problem, feel free to use my fork.

maps_launcher:
  git:
    url: https://github.com/jbacco/flutter-maps-launcher
    ref: master # Fix for: https://github.com/pikaju/flutter-maps-launcher/issues/27

Or if you want to fork it yourself, just go into the android/build.gradle file and change:

ext.kotlin_version = '1.3.50'

to

ext.kotlin_version = '1.6.10'

@maxammann
Copy link

Alternatively:

  Future<void> _launchMap(String query) async {
    if (Platform.isAndroid) {
      await launchUrl(Uri(scheme: 'geo', host: '0,0', queryParameters: {'q': query}));
    } else if (Platform.isIOS) {
      await launchUrl(Uri.https('maps.apple.com', '/', {'q': query}));
    } else {
      await launchUrl(Uri.https('www.google.com', '/maps/search/', {'api': '1', 'query': query}));
    }
  }

@pikaju pikaju closed this as completed in 0948ddf Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants