Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Android library adds required feature "android.hardware.location.gps" #10345

Closed

Description

@yperess

Platform: Android
Mapbox SDK version: 5.2.0-beta.2

Steps to trigger behavior

  1. Include mapbox in dependencies
  2. Build

Expected behavior

The resulting merged AndroidManifest.xml should not require the feature android.hardware.location.gps instead it should use required="false". This took a while to find and teams wanting to port their apps to Chromebooks will all have to override this value.

Actual behavior

The entry below is added to the AndroidManifest.xml:

<uses-feature name="android.hardware.location.gps" required="true"/>

Activity

  1. added
    Android
    on Nov 1, 2017
  2. tobrun commented on Nov 1, 2017

    @tobrun
    Member

    Thank you for the report @yperess, we don't add this value ourselves but this value will probably come from another dependency. We will work on overriding this value in our AndroidManifest.xml file in our SDK.

  3. added this to the android-v5.2.0 milestone on Nov 1, 2017
  4. yperess commented on Nov 1, 2017

    @yperess
    Author

    Awesome! Thanks for the quick response!

  5. zugaldia commented on Nov 1, 2017

    @zugaldia
    Member

    While this lands, a workaround is to manually add the following line to your app's Manifest to remove this requirement:

    <uses-feature android:name="android.hardware.location.gps" android:required="false" tools:replace="required" />
    
  6. yperess commented on Nov 1, 2017

    @yperess
    Author

    Yup, that's correct. I just figured adding this fix will make it easier for others and save them the time of hunting down the source of the requirement.

  7. tobrun commented on Nov 2, 2017

    @tobrun
    Member

    Landed with #10347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Android

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions