This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up feature / dog package (#75)
* add KDoc * rename main to dog * create composable package * create map package * create navigation package * create model package * create view / viewmodel package * move navigation
- Loading branch information
Showing
21 changed files
with
94 additions
and
27 deletions.
There are no files selected for viewing
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
app/src/main/java/com/okuzawats/cleanarchitecture/di/NavigatorModule.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
5 changes: 4 additions & 1 deletion
5
...eanarchitecture/feature/main/ErrorView.kt → ...cture/feature/dog/composable/ErrorView.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,7 +1,10 @@ | ||
package com.okuzawats.cleanarchitecture.feature.main | ||
package com.okuzawats.cleanarchitecture.feature.dog.composable | ||
|
||
import androidx.compose.material.Text | ||
import androidx.compose.runtime.Composable | ||
|
||
/** | ||
* show dog error | ||
*/ | ||
@Composable | ||
fun ErrorView() = Text(text = "OOPS...SOMETHING HAPPEN!") |
5 changes: 4 additions & 1 deletion
5
...eanarchitecture/feature/main/ImageView.kt → ...cture/feature/dog/composable/ImageView.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
5 changes: 4 additions & 1 deletion
5
...narchitecture/feature/main/InitialView.kt → ...ure/feature/dog/composable/InitialView.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,7 +1,10 @@ | ||
package com.okuzawats.cleanarchitecture.feature.main | ||
package com.okuzawats.cleanarchitecture.feature.dog.composable | ||
|
||
import androidx.compose.material.Text | ||
import androidx.compose.runtime.Composable | ||
|
||
/** | ||
* initial view | ||
*/ | ||
@Composable | ||
fun InitialView() = Text(text = "☕") |
5 changes: 4 additions & 1 deletion
5
...narchitecture/feature/main/LoadingView.kt → ...ure/feature/dog/composable/LoadingView.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,7 +1,10 @@ | ||
package com.okuzawats.cleanarchitecture.feature.main | ||
package com.okuzawats.cleanarchitecture.feature.dog.composable | ||
|
||
import androidx.compose.material.Text | ||
import androidx.compose.runtime.Composable | ||
|
||
/** | ||
* loading a dog | ||
*/ | ||
@Composable | ||
fun LoadingView() = Text(text = "NOW LOADING...") |
10 changes: 9 additions & 1 deletion
10
...eature/main/DomainToPresentationMapper.kt → .../dog/mapper/DomainToPresentationMapper.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
16 changes: 16 additions & 0 deletions
16
...mage/src/main/java/com/okuzawats/cleanarchitecture/feature/dog/model/DogImageGetResult.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.okuzawats.cleanarchitecture.feature.dog.model | ||
|
||
/** | ||
* presentation model of a dog | ||
*/ | ||
sealed class DogImageGetResult { | ||
/** | ||
* represent a dog | ||
*/ | ||
data class Fetched(val dogImage: String) : DogImageGetResult() | ||
|
||
/** | ||
* dog not loaded | ||
*/ | ||
object FetchFailed : DogImageGetResult() | ||
} |
11 changes: 11 additions & 0 deletions
11
...age/src/main/java/com/okuzawats/cleanarchitecture/feature/dog/navigation/MainNavigator.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.okuzawats.cleanarchitecture.feature.dog.navigation | ||
|
||
/** | ||
* navigator for main | ||
*/ | ||
interface MainNavigator { | ||
/** | ||
* navigate to license | ||
*/ | ||
fun toLicense() | ||
} |
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
...cleanarchitecture/feature/main/UiEvent.kt → ...narchitecture/feature/dog/view/UiEvent.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
...cleanarchitecture/feature/main/UiState.kt → ...narchitecture/feature/dog/view/UiState.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
9 changes: 8 additions & 1 deletion
9
...hitecture/feature/main/UiStateRenderer.kt → ...cture/feature/dog/view/UiStateRenderer.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
3 changes: 2 additions & 1 deletion
3
...rchitecture/feature/main/MainViewModel.kt → ...re/feature/dog/viewmodel/MainViewModel.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
...ecture/feature/main/MainViewModelEvent.kt → ...ature/dog/viewmodel/MainViewModelEvent.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: 3 additions & 1 deletion
4
...ecture/feature/main/MainViewModelState.kt → ...ature/dog/viewmodel/MainViewModelState.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
6 changes: 0 additions & 6 deletions
6
...mdogimage/src/main/java/com/okuzawats/cleanarchitecture/feature/main/DogImageGetResult.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...andomdogimage/src/main/java/com/okuzawats/cleanarchitecture/feature/main/MainNavigator.kt
This file was deleted.
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