Skip to content

Commit

Permalink
Update project structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
5AbhishekSaxena committed Dec 28, 2022
1 parent ab64adc commit 4139994
Show file tree
Hide file tree
Showing 28 changed files with 48 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.abhishek.germanPocketDictionary.ui.agreement
package com.abhishek.germanPocketDictionary.agreement

sealed class AgreementViewState {
object Initial : AgreementViewState()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.abhishek.germanPocketDictionary.ui.agreement.domain.repository
package com.abhishek.germanPocketDictionary.agreement.domain.repository

interface AgreementRepository {
fun getAgreement(): String
Expand Down
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.abhishek.germanPocketDictionary.agreement.utils

interface AgreementLoader {
fun loadAgreement(): String
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.abhishek.germanPocketDictionary.ui.agreement.utils
package com.abhishek.germanPocketDictionary.agreement.utils

interface AgreementPreferenceManager {
fun updateAgreementAcceptanceStatus(status: Boolean)
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.abhishek.germanPocketDictionary.ui.home.ui
package com.abhishek.germanPocketDictionary.home.ui

sealed class WordPageViewState<T> {
class Initial<T> : WordPageViewState<T>()
Expand Down
Original file line number Diff line number Diff line change
@@ -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"),
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.abhishek.germanPocketDictionary.ui.search
package com.abhishek.germanPocketDictionary.search

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.abhishek.germanPocketDictionary.ui.search
package com.abhishek.germanPocketDictionary.search

import com.abhishek.germanPocketDictionary.core.ui.components.words.UIMinWord

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.abhishek.germanPocketDictionary.ui.splash
package com.abhishek.germanPocketDictionary.splash

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 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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.abhishek.germanPocketDictionary.ui.splash
package com.abhishek.germanPocketDictionary.splash

sealed class SplashViewState {
object Initial : SplashViewState()
Expand Down

This file was deleted.

0 comments on commit 4139994

Please sign in to comment.