Skip to content

Conversation

@AzarouAmine
Copy link

@AzarouAmine AzarouAmine commented Oct 23, 2025

Hello, I'm creating this Pull Request to support Android 16kb page size. The PR contains the following changes:

  • Upgraded HMS Location SDK version to 6.16.0.302 as it supports 16kb page size as per the Huawei Documentation
  • Upgraded Gradle and AGP versions to 8.12.3 and 8.13 respectively to ensure best compatibility with the 16kb alignment mechanisms (Supporting the 16kb page size requires AGP 8.5+)
  • Upgraded android target SDK to 36 and Java version to JDK17 to ensure best compatibility with Gradle
  • Made necessary changes to library code, notably with the HMS Location SDK version 6.16.0.302 the LocationUtils.convertCoord(latitude, longitude, coordType); no longer exists.

Resolves #431 and #425

@EArminjon
Copy link

EArminjon commented Oct 23, 2025

Hello @tiejinjiang-git,

Please check this Pr if possible :)

@AzarouAmine
Copy link
Author

AzarouAmine commented Oct 23, 2025

For those looking to solve their 16kb support issue caused by this plugin, you can do so now by modifying your library version to:

  huawei_location:
    git:
      url: https://github.com/HMS-Core/hms-flutter-plugin
      path: flutter-hms-location
      ref: 561d4edd341916f1a1b9b43e82897103eb40e70c

This git reference is the commit hash of this PR.

@huajiann
Copy link

huajiann commented Nov 6, 2025

hi, seems like the package has been updated to support 16kb, may have a look:
https://pub.dev/packages/huawei_location/changelog#6160300

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

Successfully merging this pull request may close these issues.

huawei_location ^latest version : 16KB Page alignment issue

3 participants