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:
parent
24eabfe26f
commit
878c23bf89
5 changed files with 76 additions and 35 deletions
|
|
@ -99,6 +99,5 @@ Bitmaps emitted to `StateFlow`s are **never eagerly recycled** immediately after
|
|||
## Known limitations / future work
|
||||
|
||||
- `minSdk = 35` (Android 15) — intentional for personal use. Lower to 26-29 if distributing.
|
||||
- Accompanist Permissions (`0.36.0`) is deprecated; should migrate to first-party `activity-compose` API.
|
||||
- Dependencies are pinned to late-2024 versions; periodic bumps recommended.
|
||||
- Fragment shader uses `int` uniform branching in GLSL ES 1.00 — works but could be cleaner with ES 3.00.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue