From f8d2b1581c7a3baa3698aa69110e8d12f891a299 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 56be7022..3ed771cd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -88,7 +88,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 13be0d83..e6b25a49 100644 --- a/app/src/main/java/dev/arkbuilders/arkmemo/App.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/App.kt @@ -3,7 +3,7 @@ package dev.arkbuilders.arkmemo import android.app.Application import dagger.hilt.android.HiltAndroidApp import dev.arkbuilders.arklib.initArkLib -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