Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:supportsRtl="true"
android:theme="@style/NameGameAppTheme">
<activity
android:name=".MainActivity"
android:name=".ui.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/NameGameAppTheme">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import androidx.navigation.findNavController
import org.reduxkotlin.namegame.common.util.Logger
import org.reduxkotlin.namegame.common.middleware.Navigator
import org.reduxkotlin.namegame.common.middleware.Screen
import org.reduxkotlin.namegame.store.SettingsDialogFragment
import org.reduxkotlin.namegame.ui.SettingsDialogFragment
import java.lang.Exception

/**
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion android/src/main/java/org/reduxkotlin/namegame/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.bumptech.glide.load.DataSource
import com.bumptech.glide.load.engine.GlideException
import com.bumptech.glide.request.RequestListener
import com.bumptech.glide.request.target.Target
import org.reduxkotlin.namegame.GlideRequest
import org.reduxkotlin.namegame.ui.GlideRequest

val Int.dp: Int
get() = (this / Resources.getSystem().displayMetrics.density).toInt()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.reduxkotlin.namegame.store
package org.reduxkotlin.namegame.ui

import android.os.Bundle
import androidx.fragment.app.Fragment
Expand All @@ -9,7 +9,6 @@ open class BaseNameGameViewFragment<V: GameBaseView>: Fragment(), GameBaseView {
private val presenterObserver = PresenterLifecycleObserver(this)

override fun onCreate(savedInstanceState: Bundle?) {
retainInstance = true
lifecycle.addObserver(presenterObserver)
super.onCreate(savedInstanceState)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.reduxkotlin.namegame.store
package org.reduxkotlin.namegame.ui

import android.os.Bundle
import android.view.LayoutInflater
Expand All @@ -7,11 +7,9 @@ import android.view.ViewGroup
import org.reduxkotlin.namegame.common.middleware.UiActions
import org.reduxkotlin.namegame.common.ui.GameResultsViewState
import org.reduxkotlin.namegame.common.ui.GameResultsView
import org.reduxkotlin.namegame.MainActivity
import org.reduxkotlin.namegame.R
import org.reduxkotlin.namegame.dispatch
import kotlinx.android.synthetic.main.fragment_game_results.*
import org.reduxkotlin.namegame.store.BaseNameGameViewFragment

class GameResultsFragment : BaseNameGameViewFragment<GameResultsView>(), GameResultsView, MainActivity.IOnBackPressed {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.reduxkotlin.namegame
package org.reduxkotlin.namegame.ui

import android.os.Bundle
import android.os.Handler
Expand All @@ -11,6 +11,7 @@ import com.bumptech.glide.module.AppGlideModule
import com.willowtreeapps.hyperion.core.Hyperion
import kotlinx.android.synthetic.main.app_bar_main.*
import kotlinx.android.synthetic.main.activity_main.*
import org.reduxkotlin.namegame.R


@GlideModule
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.reduxkotlin.namegame.store
package org.reduxkotlin.namegame.ui

import android.animation.AnimatorSet
import android.animation.ObjectAnimator
Expand All @@ -22,7 +22,6 @@ import androidx.interpolator.view.animation.FastOutSlowInInterpolator
import org.reduxkotlin.namegame.common.util.Logger
import org.reduxkotlin.namegame.common.middleware.UiActions
import org.reduxkotlin.namegame.*
import org.reduxkotlin.namegame.MainActivity
import org.reduxkotlin.namegame.dispatch
import org.reduxkotlin.namegame.onComplete
import java.util.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.reduxkotlin.namegame.store
package org.reduxkotlin.namegame.ui

import android.Manifest
import android.content.pm.PackageManager
Expand All @@ -12,7 +12,6 @@ import org.reduxkotlin.namegame.common.middleware.UiActions
//import com.google.firebase.auth.FirebaseAuth
import org.reduxkotlin.namegame.common.ui.SettingsView
import org.reduxkotlin.namegame.common.ui.SettingsViewState
import org.reduxkotlin.namegame.MainActivity
import org.reduxkotlin.namegame.dispatch
import kotlinx.android.synthetic.main.fragment_settings.*
import org.reduxkotlin.PresenterLifecycleObserver
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.reduxkotlin.namegame.store
package org.reduxkotlin.namegame.ui

import android.os.Bundle
import android.view.LayoutInflater
Expand All @@ -9,7 +9,6 @@ import org.reduxkotlin.namegame.common.ui.StartView
import kotlinx.android.synthetic.main.fragment_start.*
import org.reduxkotlin.namegame.R
import org.reduxkotlin.namegame.dispatch
import org.reduxkotlin.namegame.store.BaseNameGameViewFragment

class StartFragment : BaseNameGameViewFragment<StartView>(), StartView {

Expand Down
Loading