Skip to content
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
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### 2026-07-21

- Add a Native Islands Location Button component with grant, position, and error
events.

### 2026-10-30

- Chore: Update dependencies and build tooling (Gradle 8.14.3, AGP 8.13.0, minSdk 24, androidx libraries, coroutines 1.9.0, test libraries).

### 2026-11-16

- BREAKING CHANGE: The library is now a single AAR that includes the Location Button, built with `compileSdk` 37. Consumers must build with `compileSdk` 37 or higher (the AAR declares `minCompileSdk = 37`). Builds on `compileSdk` 36 (MABS 12) can no longer use this library, including for the existing geolocation methods.
- BREAKING CHANGE: The minimum supported Android version is now API 26 (`minSdk` 26, previously 24).
- BREAKING CHANGE: Consuming builds now need Android Gradle Plugin 9.1 or higher and Kotlin 2.1 or higher, as required by `androidx.core.locationbutton`. The library is built with Kotlin 2.2 and depends on `kotlin-stdlib` 2.2.x.
- Feature: Depend on `androidx.core.locationbutton:locationbutton:1.0.0-alpha01`, which is still an alpha release (the latest published), so its API may change incompatibly. The `android.permission.USE_LOCATION_BUTTON` permission is now added to the merged manifest.
- Chore: Update build tooling (Gradle 9.4.1, AGP 9.2.1, nexus publish plugin 2.0.0, SonarQube plugin 7.6.0). The publishing script no longer uses the `-b` Gradle flag, which Gradle 9 removed.

## [2.2.2]

### 2026-08-04
Expand Down
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,28 @@ In your app-level gradle file, import the `ion-android-geolocation` library like

## Location Button

`IONGLOCLocationButtonRegistry.register(activity, requester)` registers the
`os.locationButton` native component. The host plugin supplies the precise-location
permission requester and exposes the corresponding web component.
`IONGLOCLocationButtonRegistry.register(controller, ...)` registers the
`os.locationButton` native component. The host plugin exposes the corresponding web
component. The permission flow is handled by the `androidx.core.locationbutton`
`LocationButton` itself: the system button on Android 17+, and the library's own locally
rendered button with its default permission flow on older versions (the host Activity must
be an `ActivityResultRegistryOwner`, which `AppCompatActivity` is).

The component emits `grant`, `position`, and `buttonError` events.

### Requirements

Since version 3.0.0, the library ships as a single AAR that includes the Location Button, so it requires:

- `compileSdk` 37 or higher (apps built with MABS 13). `aarMetadata` enforces this.
- Android Gradle Plugin 9.1 or higher and Kotlin 2.1 or higher in the consuming build, because
`androidx.core.locationbutton` requires them.
- `minSdk` 26 or higher.

`androidx.core.locationbutton:locationbutton` is still an **alpha** release (`1.0.0-alpha01`, the
latest published at the time of writing) and its API may change incompatibly. The version is pinned,
not a range.

## Methods

As mentioned before, the library offers the `IONGLOCController` class that provides the following methods to interact with:
Expand Down
62 changes: 0 additions & 62 deletions api37/build.gradle

This file was deleted.

Binary file removed api37/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 0 additions & 7 deletions api37/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

251 changes: 0 additions & 251 deletions api37/gradlew

This file was deleted.

Loading
Loading