From a352b92bedf6b6ed36addba36e7f859fcb278450 Mon Sep 17 00:00:00 2001 From: tuancoltech Date: Sun, 23 Jun 2024 10:49:24 +0700 Subject: [PATCH] Update filepicker library version to 0.2.0 --- app/build.gradle | 2 +- app/src/main/java/dev/arkbuilders/arkmemo/App.kt | 2 +- .../dev/arkbuilders/arkmemo/ui/activities/MainActivity.kt | 3 ++- .../dev/arkbuilders/arkmemo/ui/dialogs/FilePickerDialog.kt | 6 +++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0e459e29..ae319f44 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -86,7 +86,7 @@ dependencies { implementation 'androidx.preference:preference-ktx:1.2.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' - implementation 'dev.arkbuilders:arkfilepicker:0.1.1' + implementation 'dev.arkbuilders.components:filepicker:0.2.0' implementation 'dev.arkbuilders:arklib:0.3.3' implementation 'androidx.preference:preference:1.2.0' diff --git a/app/src/main/java/dev/arkbuilders/arkmemo/App.kt b/app/src/main/java/dev/arkbuilders/arkmemo/App.kt index 66eaff24..9a38bd04 100644 --- a/app/src/main/java/dev/arkbuilders/arkmemo/App.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/App.kt @@ -11,7 +11,7 @@ import org.acra.config.httpSender import org.acra.data.StringFormat import org.acra.ktx.initAcra import org.acra.sender.HttpSender -import dev.arkbuilders.arkfilepicker.folders.FoldersRepo +import dev.arkbuilders.arklib.data.folders.FoldersRepo import dev.arkbuilders.arkmemo.preferences.MemoPreferences import javax.inject.Inject diff --git a/app/src/main/java/dev/arkbuilders/arkmemo/ui/activities/MainActivity.kt b/app/src/main/java/dev/arkbuilders/arkmemo/ui/activities/MainActivity.kt index acaca6c8..659be58d 100644 --- a/app/src/main/java/dev/arkbuilders/arkmemo/ui/activities/MainActivity.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/ui/activities/MainActivity.kt @@ -14,7 +14,6 @@ import androidx.core.view.isVisible import androidx.fragment.app.Fragment import by.kirich1409.viewbindingdelegate.viewBinding import dagger.hilt.android.AndroidEntryPoint -import dev.arkbuilders.arkfilepicker.presentation.onArkPathPicked import dev.arkbuilders.arkmemo.R import dev.arkbuilders.arkmemo.contracts.PermissionContract import dev.arkbuilders.arkmemo.databinding.ActivityMainBinding @@ -23,6 +22,8 @@ import dev.arkbuilders.arkmemo.preferences.MemoPreferences import dev.arkbuilders.arkmemo.ui.fragments.BaseEditNoteFragment import dev.arkbuilders.arkmemo.ui.fragments.EditTextNotesFragment import dev.arkbuilders.arkmemo.ui.fragments.NotesFragment +import dev.arkbuilders.arkmemo.ui.fragments.SettingsFragment +import dev.arkbuilders.components.filepicker.onArkPathPicked import javax.inject.Inject @AndroidEntryPoint diff --git a/app/src/main/java/dev/arkbuilders/arkmemo/ui/dialogs/FilePickerDialog.kt b/app/src/main/java/dev/arkbuilders/arkmemo/ui/dialogs/FilePickerDialog.kt index c723bef7..ff66321c 100644 --- a/app/src/main/java/dev/arkbuilders/arkmemo/ui/dialogs/FilePickerDialog.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/ui/dialogs/FilePickerDialog.kt @@ -10,12 +10,12 @@ import androidx.appcompat.app.AppCompatActivity import androidx.core.content.ContextCompat import androidx.fragment.app.FragmentManager import dagger.hilt.android.AndroidEntryPoint -import dev.arkbuilders.arkfilepicker.ArkFilePickerConfig -import dev.arkbuilders.arkfilepicker.presentation.filepicker.ArkFilePickerFragment -import dev.arkbuilders.arkfilepicker.presentation.filepicker.ArkFilePickerMode import dev.arkbuilders.arkmemo.BuildConfig import dev.arkbuilders.arkmemo.R import dev.arkbuilders.arkmemo.preferences.MemoPreferences +import dev.arkbuilders.components.filepicker.ArkFilePickerConfig +import dev.arkbuilders.components.filepicker.ArkFilePickerFragment +import dev.arkbuilders.components.filepicker.ArkFilePickerMode import javax.inject.Inject @AndroidEntryPoint