-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
89 additions
and
90 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
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,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<string-array name="contributors"> | ||
<item>Joseph Hale @thehale</item> | ||
<item>\@gyrraf</item> | ||
<item>\@kantahrek</item> | ||
<item>\@Zolax9</item> | ||
<item>\@rec0de</item> | ||
<item>Ben Halbach @bahalbach</item> | ||
<item>John Veness @JohnVeness</item> | ||
<item>\@preethamrn</item> | ||
<item>\@Poussinou</item> | ||
<item>Ilya Bizyaev @IlyaBizyaev</item> | ||
</string-array> | ||
|
||
</resources> |
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
45 changes: 45 additions & 0 deletions
45
...l/simpletimetracker/feature_settings/interactor/SettingsContributorsViewDataInteractor.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,45 @@ | ||
package com.example.util.simpletimetracker.feature_settings.interactor | ||
|
||
import com.example.util.simpletimetracker.core.repo.ResourceRepo | ||
import com.example.util.simpletimetracker.core.viewData.SettingsBlock | ||
import com.example.util.simpletimetracker.feature_base_adapter.ViewHolderType | ||
import com.example.util.simpletimetracker.feature_settings.R | ||
import com.example.util.simpletimetracker.feature_settings.adapter.SettingsBottomViewData | ||
import com.example.util.simpletimetracker.feature_settings.adapter.SettingsTextViewData | ||
import com.example.util.simpletimetracker.feature_settings.adapter.SettingsTopViewData | ||
import com.example.util.simpletimetracker.feature_settings.adapter.SettingsTranslatorViewData | ||
import javax.inject.Inject | ||
|
||
class SettingsContributorsViewDataInteractor @Inject constructor( | ||
private val resourceRepo: ResourceRepo, | ||
) { | ||
|
||
fun execute(): List<ViewHolderType> { | ||
val result = mutableListOf<ViewHolderType>() | ||
|
||
result += SettingsTopViewData( | ||
block = SettingsBlock.ContributorsTop, | ||
) | ||
|
||
result += SettingsTextViewData( | ||
block = SettingsBlock.ContributorsTitle, | ||
title = resourceRepo.getString(R.string.settings_contributors), | ||
subtitle = "", | ||
layoutIsClickable = false, | ||
) | ||
|
||
result += loadContributorsViewData() | ||
|
||
result += SettingsBottomViewData( | ||
block = SettingsBlock.ContributorsBottom, | ||
) | ||
|
||
return result | ||
} | ||
|
||
private fun loadContributorsViewData(): List<SettingsTranslatorViewData> { | ||
return resourceRepo | ||
.getStringArray(R.array.contributors) | ||
.map { SettingsTranslatorViewData(it) } | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
...etimetracker/feature_settings/viewModel/delegate/SettingsContributorsViewModelDelegate.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,15 @@ | ||
package com.example.util.simpletimetracker.feature_settings.viewModel.delegate | ||
|
||
import com.example.util.simpletimetracker.core.base.ViewModelDelegate | ||
import com.example.util.simpletimetracker.feature_base_adapter.ViewHolderType | ||
import com.example.util.simpletimetracker.feature_settings.interactor.SettingsContributorsViewDataInteractor | ||
import javax.inject.Inject | ||
|
||
class SettingsContributorsViewModelDelegate @Inject constructor( | ||
private val settingsContributorsViewDataInteractor: SettingsContributorsViewDataInteractor, | ||
) : ViewModelDelegate() { | ||
|
||
fun getViewData(): List<ViewHolderType> { | ||
return settingsContributorsViewDataInteractor.execute() | ||
} | ||
} |
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
25 changes: 0 additions & 25 deletions
25
...src/main/java/com/example/util/simpletimetracker/presentation/components/CreditsButton.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
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
41 changes: 0 additions & 41 deletions
41
wear/src/main/java/com/example/util/simpletimetracker/presentation/screens/CreditsScreen.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
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