Skip to content

Commit 3c0dc93

Browse files
build: update dependencies and bump minimum SDK version
This commit updates various build dependencies, increases the minimum supported SDK version, and refines video capture intent logic. Key changes include: - **Build & Dependencies**: - Updated Android Gradle Plugin (AGP) to 8.13.2. - Updated Maven Publish to 0.35.0, Spotless to 8.1.0, and Detekt to 1.23.8. - Updated Core SplashScreen to 1.2.0, Activity Compose to 1.12.2, and Compose BOM to 2025.12.01. - **SDK Version**: - Bumped `minSdk` from 21 to 23 in `gradle/libs.versions.toml` and updated documentation in `README.md` to reflect support for Android 6.0 (API 23) and above. - **Library Logic**: - Updated `IntentUtils.kt` to only include `MediaStore.EXTRA_VIDEO_QUALITY` in the video capture intent if `isHighQuality` is explicitly true, rather than defaulting to 0.
1 parent 9df439c commit 3c0dc93

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A customizable, modern media/document picker for Android with support for image
44

55
[![Maven Central](https://img.shields.io/maven-central/v/io.github.chochanaresh/filepicker.svg)](https://search.maven.org/artifact/io.github.chochanaresh/filepicker)
66
![Build](https://github.com/ChochaNaresh/FilePicker/actions/workflows/ci.yml/badge.svg)
7-
[![API](https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=21)
7+
[![API](https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=23)
88
![Language](https://img.shields.io/badge/language-Kotlin-orange.svg)
99
![Kotlin](https://img.shields.io/badge/Kotlin-2.1.20-blue)
1010

@@ -259,7 +259,7 @@ You can now handle file picker actions with specific contracts. For example:
259259

260260
## 📱 Compatibility
261261

262-
- Android 5.0 (API 21) and above
262+
- Android 6.0 (API 23) and above
263263
- Supports Kotlin & Java
264264

265265
---

filepickerlibrary/src/main/java/com/nareshchocha/filepickerlibrary/utilities/IntentUtils.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ internal fun Context.getVideoCaptureIntent(
3636
): Intent =
3737
Intent(MediaStore.ACTION_VIDEO_CAPTURE).apply {
3838
maxSeconds?.let { putExtra(MediaStore.EXTRA_DURATION_LIMIT, it) }
39-
isHighQuality?.let { putExtra(MediaStore.EXTRA_VIDEO_QUALITY, if (it) 1 else 0) }
39+
if (isHighQuality == true) {
40+
putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1)
41+
}
4042
maxSizeLimit?.let { putExtra(MediaStore.EXTRA_SIZE_LIMIT, it) }
4143
flags = Intent.FLAG_GRANT_WRITE_URI_PERMISSION or Intent.FLAG_GRANT_READ_URI_PERMISSION
4244
putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri)

gradle/libs.versions.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
[versions]
2-
agp = "8.13.0"
3-
mavenPublish = "0.34.0"
2+
agp = "8.13.2"
3+
mavenPublish = "0.35.0"
44
kotlin = "2.2.20"
55
detekt = "1.23.8"
6+
spotless = "8.1.0"
67

78
# build config
89
compileSdk = "36"
910
targetSdk = "36"
10-
minSdk = "21"
11+
minSdk = "23"
1112
jdkVersion = "VERSION_24"
1213

1314
# core
14-
core-splashscreen="1.0.1"
15+
core-splashscreen = "1.2.0"
1516

1617
# compose
17-
activityCompose = "1.10.1"
18-
composeBom = "2025.08.01"
18+
activityCompose = "1.12.2"
19+
composeBom = "2025.12.01"
1920

2021
[libraries]
2122
# core
@@ -44,7 +45,7 @@ kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "ko
4445
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
4546
# code style review
4647
arturbosch-detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
47-
spotless = { id = "com.diffplug.spotless", version = "7.2.1" }
48+
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
4849
# maven publish
4950
maven-publish = { id = "com.vanniktech.maven.publish", version.ref = "mavenPublish" }
5051
# signing

0 commit comments

Comments
 (0)