huawei_location 6.16.0+300 copy "huawei_location: ^6.16.0+300" to clipboard
huawei_location: ^6.16.0+300 copied to clipboard

PlatformAndroid

HUAWEI Flutter Location Kit plugin combines the Global Navigation Satellite System (GNSS), Wi-Fi, and base station location functionalities into your app.

6.16.0.300 #

Note: This package supports Android 16KB page size for improved performance and compatibility.

Build System Updates

  • Upgraded Android Gradle Plugin to 8.13.0.
  • Updated Gradle wrapper to 8.14.3.
  • Updated compileSdkVersion to 36 and targetSdkVersion to 34.
  • Updated plugin versions in settings.gradle (Android application 8.13.0, Kotlin 1.9.24).
  • Added proper Flutter SDK embedding support for compatibility with modern Flutter versions.
  • Disabled Jetifieras it's no longer needed with AndroidX - improves build speed.

AndroidManifest.xml Updates

  • Removed deprecated package attribute from AndroidManifest.xml.
  • Package declaration now uses namespace in build.gradle (AGP 8.x standard).
  • Fixed XML parsing error in example app's AndroidManifest.xml

Dependencies

  • Added androidx.annotation.annotation:1.9.1 for proper annotation support.
  • Updated HMS Health SDK dependencies maintained at 6.16.0.302.

Bug Fixes

  • Fixed Flutter embedding v2 compatibility issues.
  • Resolved build errors related to missing Flutter SDK dependencies.
  • Fixed namespace configuration for better Android build compatibility.
  • Fixed XML parsing errors caused by invalid placeholder values.

Technical Improvements

  • Modernized settings.gradle with pluginManagement block.
  • Updated to declarative plugin configuration in app/build.gradle.
  • Enhanced build configuration for better compatibility with Flutter 3.x.
  • Modernized Android library configuration following AGP 8.x best practices.

6.14.2+300 #

  • Updated Huawei Location SDK version to 6.14.2.300.

6.12.0+303 #

  • Minor optimization and bug fixes.

6.12.0+302 #

  • Minor optimization and bug fixes.

6.12.0+301 #

Breaking Changes:

  • Starting from this version, you first need to initialize the services to use their features.
    • Added initFusedLocationService() method to FusedLocationProviderClient.
    • Added initActivityIdentificationService() method to ActivityIdentificationService.
    • Added initGeofenceService() method to GeofenceService.
    • Added initGeocoderService(Locale locale) method to GeocoderService.
    • Removed Locale parameter from getFromLocation and getFromLocationName methods.

For more information, please visit the API References document.

6.12.0+300 #

  • Breaking Change: The minimum API Level minSdkVersion changed 21 .
  • Fix issues related to Pending Intents in Android API 33.

6.11.0+301 #

  • Optimized the scenario where no GNSS location is returned.
  • Added the logic of checking whether the value is empty during coordinate conversion
  • Added error code 10206 for the geofence function, indicating that the geofence function is disabled.
  • Added PRIORITY_HIGH_ACCURACY_AND_INDOOR (location request type) to LocationRequest, which is used to check whether location type is indoor location or fused location.
  • Added the utility class LocationUtils for converting WGS84 coordinates into GCJ02 coordinates.
  • Added LonLat, which is a coordinate object returned after coordinate type conversion.
  • Modified getCoordinateType and setCoordinateType in HWLocation, and setCoordinateType in LocationRequest.
  • Modified the following APIs in FusedLocationProviderClient to support setting of the output coordinate type: getLastLocationWithAddress(LocationRequest request), requestLocationUpdates(LocationRequest request, LocationCallback callback, Looper looper), requestLocationUpdatesEx(LocationRequest request, LocationCallback callback, Looper looper)
  • Adapted to Android 13, so that your app can use related functions normally when running on Android 13.
  • Optimized callback parameters of the disableBackgroundLocation and enableBackgroundLocation(int id, Notification notification) methods in FusedLocationProviderClient.
  • Optimized AndroidManifest.xml in the Location SDK to ensure that the displayed version number is consistent with the integrated version number.
  • Modified the naming rule of xxx.properties in the Location SDK to solve the integration conflict issue.

6.4.0+300 #

  • Breaking Change: With this release, PermissionHandler has been removed. You are expected to handle required permissions on your own. You can learn more about the required permissions from our official documentations
  • Opened the background location service for non-Huawei Android phones, and added the enableBackgroundLocation and disableBackgroundLocation methods to the FusedLocationProviderClient class.
  • Supported fused location on non-Huawei phones.
  • Added the setLogConfig and getLogConfig methods to the FusedLocationProviderClient class for log recording function.
  • Added the GeocoderService class with getFromLocation and getFromLocationName methods.
  • Modified the internal structure of the plugin. Please use import 'package:huawei_location/huawei_location.dart' not to get any errors.

6.0.0+303 #

  • Deleted the capability of prompting users to install HMS Core (APK).

6.0.0+302 #

  • Added the High-precision Location capability.
    NOTE Currently, the high-precision location capability of Location Kit is available only in Shenzhen, Guangzhou, Suzhou, Hangzhou, and Chongqing in the Chinese mainland.
  • Supported fused location on non-Huawei phones.
  • Canceled support of the geofence function on non-Huawei phones.

5.1.0+303 #

  • [Breaking Change] Added Null Safety support.

5.1.0+301 #

  • Added the following properties to the LocationSettingsStates class: hmsLocationPresent, hmsLocationUsable, gnssPresent, gnssUsable.
  • Deprecated the following properties in the LocationSettingsStates class: gpsPresent, gpsUsable.
  • Removed the following property in the NavigationRequest class: extras.

5.0.0+301 #

  • Added the getNavigationContextState function.
  • Added the enableLogger and disableLogger methods.

4.0.4+1/4.0.4+300 #

  • Fix minor issues.

4.0.4 #

  • Initial release.
38
likes
160
points
3
downloads

Publisher

verified publisherdeveloper.huawei.com

Weekly Downloads

HUAWEI Flutter Location Kit plugin combines the Global Navigation Satellite System (GNSS), Wi-Fi, and base station location functionalities into your app.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on huawei_location

Packages that implement huawei_location