Skip to content

Commit faab995

Browse files
committed
feat(core-file): add FileManager with copy support
1 parent 8871b4b commit faab995

File tree

31 files changed

+370
-92
lines changed

31 files changed

+370
-92
lines changed

app-common/src/main/kotlin/net/thunderbird/app/common/core/AppCommonCoreModule.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import net.thunderbird.app.common.core.configstore.appCommonCoreConfigStoreModul
55
import net.thunderbird.app.common.core.logging.appCommonCoreLogger
66
import net.thunderbird.app.common.core.ui.appCommonCoreUiModule
77
import net.thunderbird.core.file.AndroidFileSystemManager
8+
import net.thunderbird.core.file.DefaultFileManager
9+
import net.thunderbird.core.file.FileManager
810
import net.thunderbird.core.file.FileSystemManager
911
import org.koin.core.module.Module
1012
import org.koin.dsl.module
@@ -21,4 +23,10 @@ val appCommonCoreModule: Module = module {
2123
contentResolver = get<Context>().contentResolver,
2224
)
2325
}
26+
27+
single<FileManager> {
28+
DefaultFileManager(
29+
fileSystemManager = get(),
30+
)
31+
}
2432
}

app-common/src/main/kotlin/net/thunderbird/app/common/core/logging/LoggerModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ val appCommonCoreLogger = module {
6363
level = LogLevel.DEBUG,
6464
fileName = "thunderbird-sync-debug",
6565
fileLocation = get<Context>().filesDir.path,
66-
fileSystemManager = get(),
66+
fileManager = get(),
6767
)
6868
}
6969

app-k9mail/dependencies/fossReleaseRuntimeClasspath.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ co.touchlab:stately-concurrent-collections:2.1.0
172172
co.touchlab:stately-strict-jvm:2.1.0
173173
co.touchlab:stately-strict:2.1.0
174174
com.beetstra.jutf7:jutf7:1.0.0
175+
com.eygraber:uri-kmp-android:0.0.21
176+
com.eygraber:uri-kmp:0.0.21
175177
com.github.ByteHamster:SearchPreference:2.7.3
176178
com.github.bumptech.glide:annotations:4.16.0
177179
com.github.bumptech.glide:disklrucache:4.16.0

app-k9mail/dependencies/fullReleaseRuntimeClasspath.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ co.touchlab:stately-strict:2.1.0
174174
com.android.billingclient:billing-ktx:7.1.1
175175
com.android.billingclient:billing:7.1.1
176176
com.beetstra.jutf7:jutf7:1.0.0
177+
com.eygraber:uri-kmp-android:0.0.21
178+
com.eygraber:uri-kmp:0.0.21
177179
com.github.ByteHamster:SearchPreference:2.7.3
178180
com.github.bumptech.glide:annotations:4.16.0
179181
com.github.bumptech.glide:disklrucache:4.16.0

app-thunderbird/dependencies/fossBetaRuntimeClasspath.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ co.touchlab:stately-concurrent-collections:2.1.0
177177
co.touchlab:stately-strict-jvm:2.1.0
178178
co.touchlab:stately-strict:2.1.0
179179
com.beetstra.jutf7:jutf7:1.0.0
180+
com.eygraber:uri-kmp-android:0.0.21
181+
com.eygraber:uri-kmp:0.0.21
180182
com.github.ByteHamster:SearchPreference:2.7.3
181183
com.github.bumptech.glide:annotations:4.16.0
182184
com.github.bumptech.glide:disklrucache:4.16.0

app-thunderbird/dependencies/fossDailyRuntimeClasspath.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ co.touchlab:stately-concurrent-collections:2.1.0
177177
co.touchlab:stately-strict-jvm:2.1.0
178178
co.touchlab:stately-strict:2.1.0
179179
com.beetstra.jutf7:jutf7:1.0.0
180+
com.eygraber:uri-kmp-android:0.0.21
181+
com.eygraber:uri-kmp:0.0.21
180182
com.github.ByteHamster:SearchPreference:2.7.3
181183
com.github.bumptech.glide:annotations:4.16.0
182184
com.github.bumptech.glide:disklrucache:4.16.0

app-thunderbird/dependencies/fossReleaseRuntimeClasspath.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ co.touchlab:stately-concurrent-collections:2.1.0
177177
co.touchlab:stately-strict-jvm:2.1.0
178178
co.touchlab:stately-strict:2.1.0
179179
com.beetstra.jutf7:jutf7:1.0.0
180+
com.eygraber:uri-kmp-android:0.0.21
181+
com.eygraber:uri-kmp:0.0.21
180182
com.github.ByteHamster:SearchPreference:2.7.3
181183
com.github.bumptech.glide:annotations:4.16.0
182184
com.github.bumptech.glide:disklrucache:4.16.0

app-thunderbird/dependencies/fullBetaRuntimeClasspath.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ co.touchlab:stately-strict:2.1.0
179179
com.android.billingclient:billing-ktx:7.1.1
180180
com.android.billingclient:billing:7.1.1
181181
com.beetstra.jutf7:jutf7:1.0.0
182+
com.eygraber:uri-kmp-android:0.0.21
183+
com.eygraber:uri-kmp:0.0.21
182184
com.github.ByteHamster:SearchPreference:2.7.3
183185
com.github.bumptech.glide:annotations:4.16.0
184186
com.github.bumptech.glide:disklrucache:4.16.0

app-thunderbird/dependencies/fullDailyRuntimeClasspath.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ co.touchlab:stately-strict:2.1.0
179179
com.android.billingclient:billing-ktx:7.1.1
180180
com.android.billingclient:billing:7.1.1
181181
com.beetstra.jutf7:jutf7:1.0.0
182+
com.eygraber:uri-kmp-android:0.0.21
183+
com.eygraber:uri-kmp:0.0.21
182184
com.github.ByteHamster:SearchPreference:2.7.3
183185
com.github.bumptech.glide:annotations:4.16.0
184186
com.github.bumptech.glide:disklrucache:4.16.0

app-thunderbird/dependencies/fullReleaseRuntimeClasspath.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ co.touchlab:stately-strict:2.1.0
179179
com.android.billingclient:billing-ktx:7.1.1
180180
com.android.billingclient:billing:7.1.1
181181
com.beetstra.jutf7:jutf7:1.0.0
182+
com.eygraber:uri-kmp-android:0.0.21
183+
com.eygraber:uri-kmp:0.0.21
182184
com.github.ByteHamster:SearchPreference:2.7.3
183185
com.github.bumptech.glide:annotations:4.16.0
184186
com.github.bumptech.glide:disklrucache:4.16.0

0 commit comments

Comments
 (0)