Skip to content

Commit eddb59c

Browse files
author
Patrick Jackson
committed
fix missing WT imagefile
1 parent f2234c3 commit eddb59c

File tree

6 files changed

+19
-22
lines changed

6 files changed

+19
-22
lines changed

android/src/main/java/org/reduxkotlin/namegame/store/BaseNameGameViewFragment.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ open class BaseNameGameViewFragment<V: GameBaseView>: Fragment(), GameBaseView {
99
private val presenterObserver = PresenterLifecycleObserver(this)
1010

1111
override fun onCreate(savedInstanceState: Bundle?) {
12-
retainInstance = true
1312
lifecycle.addObserver(presenterObserver)
1413
super.onCreate(savedInstanceState)
1514
}

common/src/commonMain/kotlin/org/reduxkotlin/namegame/common/GameEngine.kt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@ class GameEngine(navigator: Navigator,
2020
val vibrateUtil = VibrateUtil(application)
2121
private val localStorageSettingsRepository by lazy { LocalStorageSettingsRepository(userSettings(application)) }
2222

23-
val appStore by lazy {
24-
createStore(reducer, AppState.INITIAL_STATE,
25-
compose(listOf(presenterEnhancer(uiContext),
26-
applyMiddleware(createThunkMiddleware(),
27-
uiMiddleware(networkThunks, timerThunks, uiContext),
28-
navigationMiddleware(navigator),
29-
loggerMiddleware,
30-
settingsMiddleware(localStorageSettingsRepository, networkContext)))))
31-
}
23+
val appStore = createStore(reducer, AppState.INITIAL_STATE,
24+
compose(listOf(presenterEnhancer(uiContext),
25+
applyMiddleware(createThunkMiddleware(),
26+
uiMiddleware(networkThunks, timerThunks, uiContext),
27+
navigationMiddleware(navigator),
28+
loggerMiddleware,
29+
settingsMiddleware(localStorageSettingsRepository, networkContext)))))
3230

3331
init {
3432
CoroutineScope(uiContext).launch {

common/src/commonMain/kotlin/org/reduxkotlin/namegame/common/ui/SettingsView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ interface SettingsView: GameBaseView {
1313
}
1414

1515
val settingsPresenter = presenter<SettingsView> {{
16-
withSingleField({ it.settings }) { showSettings(state.settings.toViewState()) }
16+
select { it.settings } then { showSettings(state.settings.toViewState()) }
1717
}}

common/src/commonMain/kotlin/org/reduxkotlin/namegame/common/ui/StartView.kt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ interface StartView : GameBaseView {
1313
override fun presenter(): Presenter<View, AppState> = startPresenter
1414
}
1515

16-
val startPresenter = presenter<StartView> {{
17-
withSingleField({ it.isLoadingItems }) {
18-
if (state.isLoadingItems) {
19-
showLoading()
20-
} else {
21-
hideLoading()
16+
val startPresenter = presenter<StartView> {
17+
{
18+
select { state.isLoadingItems } then {
19+
if (state.isLoadingItems) {
20+
showLoading()
21+
} else {
22+
hideLoading()
23+
}
2224
}
23-
}
2425

25-
withSingleField({ it.errorLoadingItems }) {
26-
showError(state.errorMsg)
26+
select { state.errorLoadingItems } then { showError(state.errorMsg) }
2727
}
28-
}}
28+
}

iOS/NameGame/NameGame.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
1E9D6D3B224EA74E00F5C0B8 /* diamond.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = diamond.png; sourceTree = "<group>"; };
8181
1E9D6D3C224EA74E00F5C0B8 /* confetti.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = confetti.png; sourceTree = "<group>"; };
8282
1E9D6D3D224EA74E00F5C0B8 /* star.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = star.png; sourceTree = "<group>"; };
83-
1E9ED1E122550E7E000D7C69 /* willowtree_banner.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = willowtree_banner.png; path = ../../../android/src/main/res/drawable/willowtree_banner.png; sourceTree = "<group>"; };
83+
1E9ED1E122550E7E000D7C69 /* willowtree_banner.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = willowtree_banner.png; sourceTree = "<group>"; };
8484
1EB9EA7B2238071A008AF004 /* NameGame.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NameGame.app; sourceTree = BUILT_PRODUCTS_DIR; };
8585
1EB9EA7E2238071A008AF004 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
8686
1EB9EA832238071A008AF004 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
100 KB
Loading

0 commit comments

Comments
 (0)