feat: Add 'PermissionManager' module#745
Conversation
PR Reviewer Guide 🔍(Review updated until commit d8bb9c7)Here are some key observations to aid the review process:
|
sirambd
left a comment
There was a problem hiding this comment.
We need to support required permissions as well
|
Persistent review updated to latest commit 830a2eb |
830a2eb to
fdc6f09
Compare
|
Persistent review updated to latest commit fdc6f09 |
|
Persistent review updated to latest commit 1678945 |
1678945 to
6d914f3
Compare
|
Persistent review updated to latest commit 6d914f3 |
b91aed2 to
d8bb9c7
Compare
|
Persistent review updated to latest commit d8bb9c7 |
There was a problem hiding this comment.
Pull request overview
Adds a new PermissionManager Android library module intended to centralize permission handling via Jetpack Compose + Accompanist, and wires it into the multi-module build.
Changes:
- Registers the new
:PermissionManagerGradle module and publishes a new version-catalog alias for it. - Introduces a Compose-first
PermissionManagerStateAPI with supported/unsupported-API implementations. - Adds
accompanist-permissionsto the version catalog and uses it in the new module.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| settings.gradle.kts | Includes the new :PermissionManager module in the build. |
| gradle/core.versions.toml | Adds Accompanist permissions dependency + a new infomaniak-core-permissionmanager catalog entry. |
| PermissionManager/build.gradle.kts | New Android library module configuration and dependencies (Compose + Accompanist). |
| PermissionManager/src/main/kotlin/com/infomaniak/core/permissionmanager/PermissionManagerState.kt | Public rememberPermissionManagerState entry point + PermissionManagerState API. |
| PermissionManager/src/main/kotlin/com/infomaniak/core/permissionmanager/SupportedApiPermissionManagerState.kt | Supported-permission implementation backed by Accompanist PermissionState. |
| PermissionManager/src/main/kotlin/com/infomaniak/core/permissionmanager/UnsupportedApiPermissionManagerState.kt | No-op implementation for permissions not applicable on the current API level. |
| PermissionManager/src/main/kotlin/com/infomaniak/core/permissionmanager/PermissionType.kt | Adds PermissionType enum mapping app concepts to Android permission strings. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Failed to generate code suggestions for PR |
1 similar comment
|
Failed to generate code suggestions for PR |
9afdc49 to
03957b7
Compare
|
Failed to generate code suggestions for PR |
b3104e1 to
bfca15b
Compare
|
Failed to generate code suggestions for PR |
1 similar comment
|
Failed to generate code suggestions for PR |
559f0d7 to
aee766a
Compare
aee766a to
bacbb2c
Compare
|
Failed to generate code suggestions for PR |
8f2e395 to
9f4a09c
Compare
|
This PR/issue depends on:
|
bacbb2c to
3078686
Compare
|



Add a 'PermissionManager' that allow you to easily manage permission across your application.
Depends on #738