Commit d88037b
committed
build: update SDK versions, AGP, and refine URI permission flags
This commit updates the project configuration to target Android SDK 37 and upgrades the Android Gradle Plugin. It also refactors how URI permissions are handled in camera intents to ensure compatibility with newer Android versions.
Key changes:
- **Build & SDK Updates**:
- Updated `compileSdk` and `targetSdk` from `36` to `37`.
- Upgraded Android Gradle Plugin (AGP) from `9.1.0` to `9.1.1`.
- **Logic Improvements**:
- **Intent Handling**: In `getCaptureImageIntent`, added conditional logic to use `FLAG_GRANT_READ_URI_PERMISSION` and `FLAG_GRANT_WRITE_URI_PERMISSION` for SDK versions starting from `CINNAMON_BUN`, falling back to `FLAG_GRANT_PERSISTABLE_URI_PERMISSION` for older versions.
- **Refactoring**: Standardized flag assignment in `getCaptureVideoIntent` by using `addFlags()` instead of direct assignment.1 parent 1f50a65 commit d88037b
2 files changed
Lines changed: 11 additions & 5 deletions
File tree
- filepickerlibrary/src/main/java/com/nareshchocha/filepickerlibrary/utilities
- gradle
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
43 | | - | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments