diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementContent.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementContent.kt similarity index 99% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementContent.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementContent.kt index b5c724c..4c5654f 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementContent.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementContent.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.agreement +package com.abhishek.germanPocketDictionary.agreement import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementScreen.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementScreen.kt similarity index 85% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementScreen.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementScreen.kt index 57eb5dd..c9b7027 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementScreen.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementScreen.kt @@ -1,12 +1,12 @@ -package com.abhishek.germanPocketDictionary.ui.agreement +package com.abhishek.germanPocketDictionary.agreement import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue import androidx.hilt.navigation.compose.hiltViewModel import androidx.lifecycle.compose.collectAsStateWithLifecycle -import com.abhishek.germanPocketDictionary.ui.destinations.AgreementScreenDestination -import com.abhishek.germanPocketDictionary.ui.destinations.HomeScreenDestination +import com.abhishek.germanPocketDictionary.destinations.AgreementScreenDestination +import com.abhishek.germanPocketDictionary.destinations.HomeScreenDestination import com.ramcosta.composedestinations.annotation.Destination import com.ramcosta.composedestinations.navigation.DestinationsNavigator import com.ramcosta.composedestinations.navigation.popUpTo diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementViewModel.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementViewModel.kt similarity index 95% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementViewModel.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementViewModel.kt index 35ce336..c260cf6 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementViewModel.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementViewModel.kt @@ -1,7 +1,7 @@ -package com.abhishek.germanPocketDictionary.ui.agreement +package com.abhishek.germanPocketDictionary.agreement import androidx.lifecycle.ViewModel -import com.abhishek.germanPocketDictionary.ui.agreement.domain.repository.AgreementRepository +import com.abhishek.germanPocketDictionary.agreement.domain.repository.AgreementRepository import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject import kotlinx.coroutines.flow.MutableStateFlow diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementViewState.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementViewState.kt similarity index 96% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementViewState.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementViewState.kt index 4810027..eeb3605 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/AgreementViewState.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/AgreementViewState.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.agreement +package com.abhishek.germanPocketDictionary.agreement sealed class AgreementViewState { object Initial : AgreementViewState() diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/domain/repository/AgreementRepository.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/domain/repository/AgreementRepository.kt similarity index 69% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/domain/repository/AgreementRepository.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/agreement/domain/repository/AgreementRepository.kt index 3470dc2..ec89668 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/domain/repository/AgreementRepository.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/domain/repository/AgreementRepository.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.agreement.domain.repository +package com.abhishek.germanPocketDictionary.agreement.domain.repository interface AgreementRepository { fun getAgreement(): String diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/domain/repository/AgreementRepositoryImpl.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/domain/repository/AgreementRepositoryImpl.kt similarity index 74% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/domain/repository/AgreementRepositoryImpl.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/agreement/domain/repository/AgreementRepositoryImpl.kt index 95c346e..137af3e 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/domain/repository/AgreementRepositoryImpl.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/domain/repository/AgreementRepositoryImpl.kt @@ -1,7 +1,7 @@ -package com.abhishek.germanPocketDictionary.ui.agreement.domain.repository +package com.abhishek.germanPocketDictionary.agreement.domain.repository -import com.abhishek.germanPocketDictionary.ui.agreement.utils.AgreementLoader -import com.abhishek.germanPocketDictionary.ui.agreement.utils.AgreementPreferenceManager +import com.abhishek.germanPocketDictionary.agreement.utils.AgreementLoader +import com.abhishek.germanPocketDictionary.agreement.utils.AgreementPreferenceManager import javax.inject.Inject class AgreementRepositoryImpl @Inject constructor( diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/AgreementLoader.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/AgreementLoader.kt new file mode 100644 index 0000000..e1b0b13 --- /dev/null +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/AgreementLoader.kt @@ -0,0 +1,5 @@ +package com.abhishek.germanPocketDictionary.agreement.utils + +interface AgreementLoader { + fun loadAgreement(): String +} \ No newline at end of file diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/AgreementPreferenceManager.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/AgreementPreferenceManager.kt similarity index 69% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/AgreementPreferenceManager.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/AgreementPreferenceManager.kt index 9b5cb64..2eff3a3 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/AgreementPreferenceManager.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/AgreementPreferenceManager.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.agreement.utils +package com.abhishek.germanPocketDictionary.agreement.utils interface AgreementPreferenceManager { fun updateAgreementAcceptanceStatus(status: Boolean) diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/AgreementPreferenceManagerImpl.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/AgreementPreferenceManagerImpl.kt similarity index 91% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/AgreementPreferenceManagerImpl.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/AgreementPreferenceManagerImpl.kt index 583ad53..80a2fdf 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/AgreementPreferenceManagerImpl.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/AgreementPreferenceManagerImpl.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.agreement.utils +package com.abhishek.germanPocketDictionary.agreement.utils import com.abhishek.germanPocketDictionary.core.utils.Constants import com.abhishek.germanPocketDictionary.core.utils.SharedPreferenceManager diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/RawResourceAgreementLoader.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/RawResourceAgreementLoader.kt similarity index 94% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/RawResourceAgreementLoader.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/RawResourceAgreementLoader.kt index 007ac2f..00b5b46 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/RawResourceAgreementLoader.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/agreement/utils/RawResourceAgreementLoader.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.agreement.utils +package com.abhishek.germanPocketDictionary.agreement.utils import android.content.Context import com.abhishek.germanPocketDictionary.R diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/core/di/AgreementModule.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/core/di/AgreementModule.kt index 51003c5..50ac324 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/core/di/AgreementModule.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/core/di/AgreementModule.kt @@ -1,11 +1,11 @@ package com.abhishek.germanPocketDictionary.core.di -import com.abhishek.germanPocketDictionary.ui.agreement.domain.repository.AgreementRepository -import com.abhishek.germanPocketDictionary.ui.agreement.domain.repository.AgreementRepositoryImpl -import com.abhishek.germanPocketDictionary.ui.agreement.utils.AgreementLoader -import com.abhishek.germanPocketDictionary.ui.agreement.utils.AgreementPreferenceManager -import com.abhishek.germanPocketDictionary.ui.agreement.utils.AgreementPreferenceManagerImpl -import com.abhishek.germanPocketDictionary.ui.agreement.utils.RawResourceAgreementLoader +import com.abhishek.germanPocketDictionary.agreement.domain.repository.AgreementRepository +import com.abhishek.germanPocketDictionary.agreement.domain.repository.AgreementRepositoryImpl +import com.abhishek.germanPocketDictionary.agreement.utils.AgreementLoader +import com.abhishek.germanPocketDictionary.agreement.utils.AgreementPreferenceManager +import com.abhishek.germanPocketDictionary.agreement.utils.AgreementPreferenceManagerImpl +import com.abhishek.germanPocketDictionary.agreement.utils.RawResourceAgreementLoader import dagger.Binds import dagger.Module import dagger.hilt.InstallIn diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/core/ui/MainActivity.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/core/ui/MainActivity.kt index 8aca06b..831f8b4 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/core/ui/MainActivity.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/core/ui/MainActivity.kt @@ -11,8 +11,8 @@ import androidx.compose.runtime.Composable import androidx.compose.runtime.SideEffect import androidx.compose.ui.graphics.Color import androidx.core.view.WindowCompat +import com.abhishek.germanPocketDictionary.NavGraphs import com.abhishek.germanPocketDictionary.core.ui.theme.GPDTheme -import com.abhishek.germanPocketDictionary.ui.NavGraphs import com.google.accompanist.systemuicontroller.rememberSystemUiController import com.ramcosta.composedestinations.DestinationsNavHost import com.ramcosta.composedestinations.animations.defaults.RootNavGraphDefaultAnimations diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/HomeContent.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/HomeContent.kt similarity index 98% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/HomeContent.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/HomeContent.kt index deb593e..ae711fd 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/HomeContent.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/HomeContent.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.home.ui +package com.abhishek.germanPocketDictionary.home.ui import android.content.res.Configuration import androidx.compose.foundation.layout.Column @@ -34,7 +34,7 @@ import androidx.compose.ui.unit.dp import com.abhishek.germanPocketDictionary.R import com.abhishek.germanPocketDictionary.core.ui.components.words.UIMinWord import com.abhishek.germanPocketDictionary.core.ui.theme.GPDTheme -import com.abhishek.germanPocketDictionary.ui.home.ui.components.WordsPagerWithTabs +import com.abhishek.germanPocketDictionary.home.ui.components.WordsPagerWithTabs @Composable fun HomeContent( diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/HomeScreen.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/HomeScreen.kt similarity index 95% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/HomeScreen.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/HomeScreen.kt index 7e497e5..7f543dc 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/HomeScreen.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/HomeScreen.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.home.ui +package com.abhishek.germanPocketDictionary.home.ui import android.content.Context import androidx.compose.runtime.Composable @@ -8,7 +8,7 @@ import androidx.hilt.navigation.compose.hiltViewModel import androidx.lifecycle.compose.collectAsStateWithLifecycle import com.abhishek.germanPocketDictionary.core.utils.intent.openWebPage import com.abhishek.germanPocketDictionary.core.utils.intent.shareSimpleText -import com.abhishek.germanPocketDictionary.ui.destinations.SearchScreenDestination +import com.abhishek.germanPocketDictionary.destinations.SearchScreenDestination import com.ramcosta.composedestinations.annotation.Destination import com.ramcosta.composedestinations.navigation.DestinationsNavigator diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/HomeViewModel.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/HomeViewModel.kt similarity index 99% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/HomeViewModel.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/HomeViewModel.kt index c8307ad..425b557 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/HomeViewModel.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/HomeViewModel.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.home.ui +package com.abhishek.germanPocketDictionary.home.ui import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/WordPageViewState.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/WordPageViewState.kt similarity index 83% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/WordPageViewState.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/WordPageViewState.kt index 6300084..5376bef 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/WordPageViewState.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/WordPageViewState.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.home.ui +package com.abhishek.germanPocketDictionary.home.ui sealed class WordPageViewState { class Initial : WordPageViewState() diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/WordType.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/WordType.kt similarity index 82% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/WordType.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/WordType.kt index 89f4775..e3b31d7 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/WordType.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/WordType.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.home.ui +package com.abhishek.germanPocketDictionary.home.ui enum class WordType(private val simplifiedName: String? = null) { ALL_WORDS("ALL WORDS"), diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/components/WordList.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/components/WordList.kt similarity index 100% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/components/WordList.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/components/WordList.kt diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/components/WordsPagerWithTabs.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/components/WordsPagerWithTabs.kt similarity index 96% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/components/WordsPagerWithTabs.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/components/WordsPagerWithTabs.kt index 58d2d42..fd234f7 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/home/ui/components/WordsPagerWithTabs.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/home/ui/components/WordsPagerWithTabs.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.home.ui.components +package com.abhishek.germanPocketDictionary.home.ui.components import androidx.compose.foundation.background import androidx.compose.foundation.layout.fillMaxSize @@ -21,12 +21,12 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp import com.abhishek.germanPocketDictionary.core.ui.components.pager.pagerTabIndicatorOffset import com.abhishek.germanPocketDictionary.core.ui.components.words.UIMinWord +import com.abhishek.germanPocketDictionary.home.ui.WordPageViewState +import com.abhishek.germanPocketDictionary.home.ui.WordType import com.abhishek.germanPocketDictionary.ui.home.ui.NounWordList import com.abhishek.germanPocketDictionary.ui.home.ui.OppositesWordList import com.abhishek.germanPocketDictionary.ui.home.ui.VerbWordList import com.abhishek.germanPocketDictionary.ui.home.ui.WordList -import com.abhishek.germanPocketDictionary.ui.home.ui.WordPageViewState -import com.abhishek.germanPocketDictionary.ui.home.ui.WordType import com.google.accompanist.pager.HorizontalPager import com.google.accompanist.pager.rememberPagerState import kotlinx.coroutines.launch diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchContent.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchContent.kt similarity index 99% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchContent.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchContent.kt index 44a596a..9a96184 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchContent.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchContent.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.search +package com.abhishek.germanPocketDictionary.search import android.content.res.Configuration import androidx.compose.foundation.layout.Column diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchScreen.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchScreen.kt similarity index 93% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchScreen.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchScreen.kt index 786fb2e..95e9a21 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchScreen.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchScreen.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.search +package com.abhishek.germanPocketDictionary.search import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchViewModel.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchViewModel.kt similarity index 97% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchViewModel.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchViewModel.kt index a73d174..9b9aeae 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchViewModel.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchViewModel.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.search +package com.abhishek.germanPocketDictionary.search import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchViewState.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchViewState.kt similarity index 93% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchViewState.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchViewState.kt index 4ee0989..17e7daa 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/search/SearchViewState.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/search/SearchViewState.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.search +package com.abhishek.germanPocketDictionary.search import com.abhishek.germanPocketDictionary.core.ui.components.words.UIMinWord diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashContent.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashContent.kt similarity index 96% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashContent.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashContent.kt index 7dc0114..29ddc16 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashContent.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashContent.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.splash +package com.abhishek.germanPocketDictionary.splash import android.content.res.Configuration import androidx.compose.foundation.Image diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashScreen.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashScreen.kt similarity index 80% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashScreen.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashScreen.kt index 11d147d..5f7e623 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashScreen.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashScreen.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.splash +package com.abhishek.germanPocketDictionary.splash import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect @@ -6,9 +6,9 @@ import androidx.compose.runtime.getValue import androidx.hilt.navigation.compose.hiltViewModel import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.navigation.NavOptionsBuilder -import com.abhishek.germanPocketDictionary.ui.destinations.AgreementScreenDestination -import com.abhishek.germanPocketDictionary.ui.destinations.HomeScreenDestination -import com.abhishek.germanPocketDictionary.ui.destinations.SplashScreenDestination +import com.abhishek.germanPocketDictionary.destinations.AgreementScreenDestination +import com.abhishek.germanPocketDictionary.destinations.HomeScreenDestination +import com.abhishek.germanPocketDictionary.destinations.SplashScreenDestination import com.ramcosta.composedestinations.annotation.Destination import com.ramcosta.composedestinations.annotation.RootNavGraph import com.ramcosta.composedestinations.navigation.DestinationsNavigator diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashViewModel.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashViewModel.kt similarity index 85% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashViewModel.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashViewModel.kt index 4b937c4..f180f36 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashViewModel.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashViewModel.kt @@ -1,8 +1,8 @@ -package com.abhishek.germanPocketDictionary.ui.splash +package com.abhishek.germanPocketDictionary.splash import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope -import com.abhishek.germanPocketDictionary.ui.agreement.domain.repository.AgreementRepository +import com.abhishek.germanPocketDictionary.agreement.domain.repository.AgreementRepository import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject import kotlinx.coroutines.delay diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashViewState.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashViewState.kt similarity index 73% rename from app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashViewState.kt rename to app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashViewState.kt index 467df29..e602f50 100644 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/splash/SplashViewState.kt +++ b/app/src/main/java/com/abhishek/germanPocketDictionary/splash/SplashViewState.kt @@ -1,4 +1,4 @@ -package com.abhishek.germanPocketDictionary.ui.splash +package com.abhishek.germanPocketDictionary.splash sealed class SplashViewState { object Initial : SplashViewState() diff --git a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/AgreementLoader.kt b/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/AgreementLoader.kt deleted file mode 100644 index 7ed7950..0000000 --- a/app/src/main/java/com/abhishek/germanPocketDictionary/ui/agreement/utils/AgreementLoader.kt +++ /dev/null @@ -1,5 +0,0 @@ -package com.abhishek.germanPocketDictionary.ui.agreement.utils - -interface AgreementLoader { - fun loadAgreement(): String -} \ No newline at end of file