Android: Fix FileAccess crash when using treeUri in Gradle-built apps

This commit is contained in:
Anish Kumar 2026-03-06 05:48:42 +05:30
parent bfbe95e510
commit ed8853b8d1
3 changed files with 3 additions and 1 deletions

View file

@ -41,6 +41,7 @@ dependencies {
implementation "androidx.fragment:fragment:$versions.fragmentVersion"
implementation "androidx.core:core-splashscreen:$versions.splashscreenVersion"
implementation "androidx.documentfile:documentfile:$versions.documentfileVersion"
if (rootProject.findProject(":lib")) {
implementation project(":lib")

View file

@ -23,6 +23,7 @@ ext.versions = [
kotlinTestVersion : '1.3.11',
testRunnerVersion : '1.7.0',
testOrchestratorVersion: '1.6.1',
documentfileVersion: '1.1.0',
]
ext.getExportPackageName = { ->

View file

@ -13,7 +13,7 @@ apply from: "../scripts/publish-module.gradle"
dependencies {
implementation "androidx.fragment:fragment:$versions.fragmentVersion"
implementation 'androidx.documentfile:documentfile:1.1.0'
implementation "androidx.documentfile:documentfile:$versions.documentfileVersion"
testImplementation "junit:junit:4.13.2"
}