Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move FilePicker; Replace Glide with Coil #39

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion components/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,23 @@ dependencies {
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.9.0")
implementation("org.orbit-mvi:orbit-viewmodel:6.1.0")
implementation("dev.arkbuilders:arklib:0.3.2")
implementation("dev.arkbuilders:arklib:0.3.5")
implementation("com.mikepenz:fastadapter:5.6.0")
implementation("com.mikepenz:fastadapter-extensions-binding:5.6.0")
implementation("com.mikepenz:fastadapter-extensions-diff:5.6.0")

implementation("com.github.kirich1409:viewbindingpropertydelegate-noreflection:1.5.8")

implementation("androidx.fragment:fragment-ktx:1.6.1")
implementation("com.github.skydoves:balloon:1.4.8")
implementation("com.google.android.flexbox:flexbox:3.0.0")

val coilVersion = "2.4.0"
implementation("io.coil-kt:coil:$coilVersion")
implementation("io.coil-kt:coil-gif:$coilVersion")
implementation("io.coil-kt:coil-svg:$coilVersion")
implementation("io.coil-kt:coil-video:$coilVersion")

testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package dev.arkbuilders.components.filepicker

import androidx.annotation.PluralsRes
import androidx.annotation.StringRes
import androidx.annotation.StyleRes
import dev.arkbuilders.components.R
import java.nio.file.Path

class ArkFilePickerConfig(
@StringRes
val titleStringId: Int = R.string.ark_file_picker_pick_title,
@StringRes
val pickButtonStringId: Int = R.string.ark_file_picker_pick,
@StringRes
val cancelButtonStringId: Int = R.string.ark_file_picker_cancel,
@StringRes
val internalStorageStringId: Int = R.string.ark_file_picker_internal_storage,
@StringRes
val accessDeniedStringId: Int = R.string.ark_file_picker_access_denied,
@PluralsRes
val itemsPluralId: Int = R.plurals.ark_file_picker_items,
@StyleRes
val themeId: Int = com.google.android.material.R.style.Theme_MaterialComponents_Light_Dialog,

val showRoots: Boolean = false,
val rootsFirstPage: Boolean = false,
val initialPath: Path? = null,
val mode: ArkFilePickerMode = ArkFilePickerMode.FOLDER,
val pathPickedRequestKey: String? = null,
)
Loading