Move compose package up

This commit is contained in:
Alex Gabor 2022-03-07 08:58:18 +02:00
parent 6ddd057e66
commit e4ac3f78b6
10 changed files with 16 additions and 21 deletions

View file

@ -6,7 +6,7 @@ import org.fnives.test.showcase.network.mockserver.scenario.auth.AuthScenario
import org.fnives.test.showcase.testutils.MockServerScenarioSetupResetingTestRule
import org.fnives.test.showcase.testutils.idling.MainDispatcherTestRule
import org.fnives.test.showcase.testutils.idling.anyResourceIdling
import org.fnives.test.showcase.ui.compose.ComposeActivity
import org.fnives.test.showcase.compose.ComposeActivity
import org.junit.Before
import org.junit.Rule
import org.junit.Test

View file

@ -2,7 +2,7 @@ package org.fnives.test.showcase.ui
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.ComposeTestRule
import org.fnives.test.showcase.ui.compose.screen.auth.AuthScreenTag
import org.fnives.test.showcase.compose.screen.auth.AuthScreenTag
class ComposeLoginRobot(
private val composeTestRule: ComposeTestRule,

View file

@ -26,7 +26,7 @@
<activity android:name=".ui.home.MainActivity" />
<activity android:name=".ui.auth.AuthActivity" />
<activity
android:name=".ui.compose.ComposeActivity"
android:name="org.fnives.test.showcase.compose.ComposeActivity"
android:configChanges="colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
android:exported="true">
<intent-filter>

View file

@ -1,4 +1,4 @@
package org.fnives.test.showcase.ui.compose
package org.fnives.test.showcase.compose
import android.os.Bundle
import androidx.activity.compose.setContent
@ -6,7 +6,7 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import com.google.accompanist.insets.ProvideWindowInsets
import org.fnives.test.showcase.ui.compose.screen.AppNavigation
import org.fnives.test.showcase.compose.screen.AppNavigation
class ComposeActivity : AppCompatActivity() {

View file

@ -1,4 +1,4 @@
package org.fnives.test.showcase.ui.compose.screen
package org.fnives.test.showcase.compose.screen
import androidx.compose.foundation.background
import androidx.compose.material.MaterialTheme
@ -10,11 +10,11 @@ import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import kotlinx.coroutines.delay
import org.fnives.test.showcase.core.login.IsUserLoggedInUseCase
import org.fnives.test.showcase.ui.compose.screen.auth.AuthScreen
import org.fnives.test.showcase.ui.compose.screen.auth.rememberAuthScreenState
import org.fnives.test.showcase.ui.compose.screen.home.HomeScreen
import org.fnives.test.showcase.ui.compose.screen.home.rememberHomeScreenState
import org.fnives.test.showcase.ui.compose.screen.splash.SplashScreen
import org.fnives.test.showcase.compose.screen.auth.AuthScreen
import org.fnives.test.showcase.compose.screen.auth.rememberAuthScreenState
import org.fnives.test.showcase.compose.screen.home.HomeScreen
import org.fnives.test.showcase.compose.screen.home.rememberHomeScreenState
import org.fnives.test.showcase.compose.screen.splash.SplashScreen
import org.koin.androidx.compose.get
@Composable

View file

@ -1,4 +1,4 @@
package org.fnives.test.showcase.ui.compose.screen.auth
package org.fnives.test.showcase.compose.screen.auth
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.text.KeyboardActions

View file

@ -1,4 +1,4 @@
package org.fnives.test.showcase.ui.compose.screen.auth
package org.fnives.test.showcase.compose.screen.auth
import androidx.compose.runtime.*
import kotlinx.coroutines.CoroutineScope

View file

@ -1,4 +1,4 @@
package org.fnives.test.showcase.ui.compose.screen.home
package org.fnives.test.showcase.compose.screen.home
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable

View file

@ -1,4 +1,4 @@
package org.fnives.test.showcase.ui.compose.screen.home
package org.fnives.test.showcase.compose.screen.home
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue

View file

@ -1,21 +1,16 @@
package org.fnives.test.showcase.ui.compose.screen.splash
package org.fnives.test.showcase.compose.screen.splash
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.rememberDraggableState
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import androidx.lifecycle.viewmodel.compose.viewModel
import org.fnives.test.showcase.R