Skip to content

Commit

Permalink
Move FilePicker, replace Glide with Coil (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrlzy authored Jan 11, 2024
1 parent e95655f commit d9e333f
Show file tree
Hide file tree
Showing 68 changed files with 3,597 additions and 2 deletions.
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

0 comments on commit d9e333f

Please sign in to comment.