From 65b677046701deb3de428b7e65a91f5ccbba2871 Mon Sep 17 00:00:00 2001 From: SayantanRC Date: Wed, 20 Jan 2021 17:59:40 +0530 Subject: [PATCH] remove DocumentFile. Prep for first release. --- build.gradle | 1 - src/main/java/balti/filex/filex11/utils/Tools.kt | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 90ce019..fa66406 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,6 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.3.2' implementation 'androidx.appcompat:appcompat:1.2.0' - implementation 'androidx.documentfile:documentfile:1.0.1' } diff --git a/src/main/java/balti/filex/filex11/utils/Tools.kt b/src/main/java/balti/filex/filex11/utils/Tools.kt index 8fd1db4..92e78e5 100644 --- a/src/main/java/balti/filex/filex11/utils/Tools.kt +++ b/src/main/java/balti/filex/filex11/utils/Tools.kt @@ -8,14 +8,13 @@ import android.os.Environment import android.os.storage.StorageManager import android.os.storage.StorageVolume import android.provider.DocumentsContract -import androidx.documentfile.provider.DocumentFile import balti.filex.filex11.FileX11 import balti.filex.FileXInit import balti.filex.FileXInit.Companion.fContext import balti.filex.exceptions.RootNotInitializedException object Tools { - internal fun traversePath( + /*internal fun traversePath( fileX: FileX11, fileFunc: (uri: Uri, name: String) -> Boolean?, directoryFunc: ((uri: Uri, name: String) -> Unit)? = null, @@ -39,7 +38,7 @@ object Tools { } } return true - } + }*/ private val PRIMARY_VOLUME_NAME = "primary" private val DOWNLOADS_VOLUME_NAME = "downloads"