Replace Accompanist Permissions with first-party activity-compose API

Accompanist Permissions (0.36.0) is deprecated and experimental. Migrate
to the stable ActivityResultContracts.RequestPermission /
RequestMultiplePermissions APIs already available via activity-compose.

Adds explicit state tracking with a cameraResultReceived flag to
correctly distinguish "never asked" from "permanently denied" — an
improvement over the previous Accompanist-based detection.

Bump version to 1.1.2.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ole-Morten Duesund 2026-03-18 16:43:56 +01:00
commit 878c23bf89
5 changed files with 76 additions and 35 deletions

View file

@ -112,9 +112,6 @@ dependencies {
// Location
implementation(libs.play.services.location)
// Permissions
implementation(libs.accompanist.permissions)
// Debug
debugImplementation(libs.androidx.ui.tooling)
}