-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add decompose library for architecture (#36)
* refactor: introduce decompose * refactor: better modularization
- Loading branch information
1 parent
0803954
commit 0ed2c90
Showing
311 changed files
with
4,943 additions
and
3,006 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
kotlin.code.style=official | ||
kotlin.version=1.8.0 | ||
agp.version=7.3.0 | ||
compose.version=1.3.1 | ||
compose.version=1.4.0 |
2 changes: 1 addition & 1 deletion
2
...coroutines/CoroutineDispatcherProvider.kt → ...coroutines/CoroutineDispatcherProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package coroutines | ||
package common.coroutines | ||
|
||
import kotlinx.coroutines.CoroutineDispatcher | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...utines/CoroutineDispatcherProviderImpl.kt → ...utines/CoroutineDispatcherProviderImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package coroutines | ||
package common.coroutines | ||
|
||
import kotlinx.coroutines.Dispatchers | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package common.di | ||
|
||
import common.files.DefaultFileManager | ||
import common.files.FileManager | ||
import common.keystore.DefaultTemporaryKeyStore | ||
import common.keystore.TemporaryKeyStore | ||
import common.log.DefaultLogManager | ||
import common.log.LogManager | ||
import common.notification.DefaultNotificationCenter | ||
import common.notification.NotificationCenter | ||
import org.koin.dsl.module | ||
import common.coroutines.CoroutineDispatcherProvider | ||
import common.coroutines.CoroutineDispatcherProviderImpl | ||
|
||
val commonModule = module { | ||
single<CoroutineDispatcherProvider> { | ||
CoroutineDispatcherProviderImpl | ||
} | ||
single<NotificationCenter> { | ||
DefaultNotificationCenter | ||
} | ||
single<TemporaryKeyStore> { | ||
DefaultTemporaryKeyStore(fileManager = get()) | ||
} | ||
single<FileManager> { | ||
DefaultFileManager | ||
} | ||
single<LogManager> { | ||
DefaultLogManager(fileManager = get()) | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...vmMain/kotlin/files/DefaultFileManager.kt → ...kotlin/common/files/DefaultFileManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package files | ||
package common.files | ||
|
||
import java.io.File | ||
import java.util.* | ||
|
2 changes: 1 addition & 1 deletion
2
...n/src/jvmMain/kotlin/files/FileManager.kt → ...vmMain/kotlin/common/files/FileManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package files | ||
package common.files | ||
|
||
interface FileManager { | ||
fun getFilePath(vararg components: String): String | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Main/kotlin/keystore/TemporaryKeyStore.kt → ...tlin/common/keystore/TemporaryKeyStore.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...c/jvmMain/kotlin/log/DefaultLogManager.kt → ...in/kotlin/common/log/DefaultLogManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mmon/src/jvmMain/kotlin/log/LogManager.kt → ...c/jvmMain/kotlin/common/log/LogManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package log | ||
package common.log | ||
|
||
interface LogManager { | ||
fun trace(message: String) | ||
|
2 changes: 1 addition & 1 deletion
2
...notification/DefaultNotificationCenter.kt → ...notification/DefaultNotificationCenter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...kotlin/notification/NotificationCenter.kt → ...common/notification/NotificationCenter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package notification | ||
package common.notification | ||
|
||
import kotlinx.coroutines.flow.SharedFlow | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lin/ui/components/CustomOpenFileDialog.kt → ...mon/ui/components/CustomOpenFileDialog.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lin/ui/components/CustomSaveFileDialog.kt → ...mon/ui/components/CustomSaveFileDialog.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mon/src/jvmMain/kotlin/ui/theme/Colors.kt → .../jvmMain/kotlin/common/ui/theme/Colors.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...src/jvmMain/kotlin/ui/theme/Dimensions.kt → ...Main/kotlin/common/ui/theme/Dimensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ui.theme | ||
package common.ui.theme | ||
|
||
import androidx.compose.ui.unit.dp | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...mmon/src/jvmMain/kotlin/ui/theme/Fonts.kt → ...c/jvmMain/kotlin/common/ui/theme/Fonts.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../jvmMain/kotlin/ui/theme/MetaTermTheme.kt → ...n/kotlin/common/ui/theme/MetaTermTheme.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...n/src/jvmMain/kotlin/utils/AppBusiness.kt → ...vmMain/kotlin/common/utils/AppBusiness.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...on/src/jvmMain/kotlin/utils/Extensions.kt → ...jvmMain/kotlin/common/utils/Extensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.