mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-26 05:05:15 +00:00
cleanup
This commit is contained in:
parent
e54ecb466c
commit
83167e4fc0
16 changed files with 16 additions and 17 deletions
|
@ -1,7 +1,6 @@
|
||||||
package com.vanced.manager.di
|
package com.vanced.manager.di
|
||||||
|
|
||||||
import com.vanced.manager.domain.datasource.PackageInformationDataSource
|
import com.vanced.manager.domain.datasource.PackageInformationDataSource
|
||||||
import com.vanced.manager.downloader.impl.VancedDownloader
|
|
||||||
import com.vanced.manager.network.model.AppDtoMapper
|
import com.vanced.manager.network.model.AppDtoMapper
|
||||||
import com.vanced.manager.network.model.JsonDtoMapper
|
import com.vanced.manager.network.model.JsonDtoMapper
|
||||||
import org.koin.dsl.module
|
import org.koin.dsl.module
|
||||||
|
|
|
@ -3,7 +3,6 @@ package com.vanced.manager.downloader.impl
|
||||||
import com.vanced.manager.domain.model.App
|
import com.vanced.manager.domain.model.App
|
||||||
import com.vanced.manager.downloader.base.AppDownloader
|
import com.vanced.manager.downloader.base.AppDownloader
|
||||||
import com.vanced.manager.installer.MusicInstaller
|
import com.vanced.manager.installer.MusicInstaller
|
||||||
import com.vanced.manager.installer.VancedInstaller
|
|
||||||
import com.vanced.manager.ui.viewmodel.HomeViewModel
|
import com.vanced.manager.ui.viewmodel.HomeViewModel
|
||||||
|
|
||||||
class MusicDownloader(
|
class MusicDownloader(
|
||||||
|
|
|
@ -25,9 +25,9 @@ import com.vanced.manager.ui.component.color.managerTextColor
|
||||||
import com.vanced.manager.ui.component.menu.ManagerDropdownMenuItem
|
import com.vanced.manager.ui.component.menu.ManagerDropdownMenuItem
|
||||||
import com.vanced.manager.ui.component.text.ToolbarTitleText
|
import com.vanced.manager.ui.component.text.ToolbarTitleText
|
||||||
import com.vanced.manager.ui.resources.managerString
|
import com.vanced.manager.ui.resources.managerString
|
||||||
import com.vanced.manager.ui.util.Screen
|
|
||||||
import com.vanced.manager.ui.theme.ManagerTheme
|
import com.vanced.manager.ui.theme.ManagerTheme
|
||||||
import com.vanced.manager.ui.theme.isDark
|
import com.vanced.manager.ui.theme.isDark
|
||||||
|
import com.vanced.manager.ui.util.Screen
|
||||||
|
|
||||||
class MainActivity : ComponentActivity() {
|
class MainActivity : ComponentActivity() {
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@ package com.vanced.manager.ui.component.preference
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.rememberCoroutineScope
|
import androidx.compose.runtime.rememberCoroutineScope
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.vanced.manager.ui.component.checkbox.ManagerCheckbox
|
|
||||||
import com.vanced.manager.preferences.ManagerPreference
|
import com.vanced.manager.preferences.ManagerPreference
|
||||||
|
import com.vanced.manager.ui.component.checkbox.ManagerCheckbox
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|
|
@ -6,9 +6,9 @@ import androidx.compose.foundation.lazy.items
|
||||||
import androidx.compose.runtime.*
|
import androidx.compose.runtime.*
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.vanced.manager.ui.component.list.RadiobuttonItem
|
|
||||||
import com.vanced.manager.preferences.ManagerPreference
|
import com.vanced.manager.preferences.ManagerPreference
|
||||||
import com.vanced.manager.preferences.RadioButtonPreference
|
import com.vanced.manager.preferences.RadioButtonPreference
|
||||||
|
import com.vanced.manager.ui.component.list.RadiobuttonItem
|
||||||
import com.vanced.manager.ui.widget.button.ManagerSaveButton
|
import com.vanced.manager.ui.widget.button.ManagerSaveButton
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,10 @@ import com.vanced.manager.ui.component.layout.ManagerSwipeRefresh
|
||||||
import com.vanced.manager.ui.resources.managerString
|
import com.vanced.manager.ui.resources.managerString
|
||||||
import com.vanced.manager.ui.util.defaultContentPaddingVertical
|
import com.vanced.manager.ui.util.defaultContentPaddingVertical
|
||||||
import com.vanced.manager.ui.viewmodel.HomeViewModel
|
import com.vanced.manager.ui.viewmodel.HomeViewModel
|
||||||
|
import com.vanced.manager.ui.widget.layout.CategoryLayout
|
||||||
import com.vanced.manager.ui.widget.screens.home.apps.HomeAppsItem
|
import com.vanced.manager.ui.widget.screens.home.apps.HomeAppsItem
|
||||||
import com.vanced.manager.ui.widget.screens.home.socialmedia.HomeSocialMediaItem
|
import com.vanced.manager.ui.widget.screens.home.socialmedia.HomeSocialMediaItem
|
||||||
import com.vanced.manager.ui.widget.screens.home.sponsors.HomeSponsorsItem
|
import com.vanced.manager.ui.widget.screens.home.sponsors.HomeSponsorsItem
|
||||||
import com.vanced.manager.ui.widget.layout.CategoryLayout
|
|
||||||
import org.koin.androidx.compose.getViewModel
|
import org.koin.androidx.compose.getViewModel
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|
|
@ -8,10 +8,10 @@ import androidx.lifecycle.MutableLiveData
|
||||||
import androidx.lifecycle.ViewModel
|
import androidx.lifecycle.ViewModel
|
||||||
import androidx.lifecycle.viewModelScope
|
import androidx.lifecycle.viewModelScope
|
||||||
import com.vanced.manager.domain.model.App
|
import com.vanced.manager.domain.model.App
|
||||||
import com.vanced.manager.repository.JsonRepository
|
|
||||||
import com.vanced.manager.preferences.holder.managerVariantPref
|
import com.vanced.manager.preferences.holder.managerVariantPref
|
||||||
import com.vanced.manager.preferences.holder.musicEnabled
|
import com.vanced.manager.preferences.holder.musicEnabled
|
||||||
import com.vanced.manager.preferences.holder.vancedEnabled
|
import com.vanced.manager.preferences.holder.vancedEnabled
|
||||||
|
import com.vanced.manager.repository.JsonRepository
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
class HomeViewModel(
|
class HomeViewModel(
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
package com.vanced.manager.ui.widget.screens.home.apps.card
|
package com.vanced.manager.ui.widget.screens.home.apps.card
|
||||||
|
|
||||||
import androidx.compose.animation.*
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
|
import androidx.compose.animation.ExperimentalAnimationApi
|
||||||
import androidx.compose.animation.core.tween
|
import androidx.compose.animation.core.tween
|
||||||
|
import androidx.compose.animation.expandVertically
|
||||||
|
import androidx.compose.animation.shrinkVertically
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
package com.vanced.manager.ui.widget.screens.home.apps.card
|
package com.vanced.manager.ui.widget.screens.home.apps.card
|
||||||
|
|
||||||
import androidx.compose.foundation.Image
|
import androidx.compose.foundation.Image
|
||||||
import androidx.compose.foundation.layout.Box
|
|
||||||
import androidx.compose.foundation.layout.fillMaxSize
|
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.foundation.layout.size
|
import androidx.compose.foundation.layout.size
|
||||||
import androidx.compose.material.MaterialTheme
|
import androidx.compose.material.MaterialTheme
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.vanced.manager.ui.widget.screens.home.installation
|
package com.vanced.manager.ui.widget.screens.home.installation
|
||||||
|
|
||||||
import androidx.annotation.StringRes
|
import androidx.annotation.StringRes
|
||||||
import com.vanced.manager.ui.component.preference.CheckboxDialogPreference
|
|
||||||
import com.vanced.manager.preferences.CheckboxPreference
|
import com.vanced.manager.preferences.CheckboxPreference
|
||||||
import com.vanced.manager.preferences.ManagerPreference
|
import com.vanced.manager.preferences.ManagerPreference
|
||||||
|
import com.vanced.manager.ui.component.preference.CheckboxDialogPreference
|
||||||
import com.vanced.manager.ui.resources.managerString
|
import com.vanced.manager.ui.resources.managerString
|
||||||
|
|
||||||
data class CheckboxInstallationOption(
|
data class CheckboxInstallationOption(
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.vanced.manager.ui.widget.screens.home.installation
|
package com.vanced.manager.ui.widget.screens.home.installation
|
||||||
|
|
||||||
import androidx.annotation.StringRes
|
import androidx.annotation.StringRes
|
||||||
import com.vanced.manager.ui.component.preference.RadiobuttonDialogPreference
|
|
||||||
import com.vanced.manager.preferences.ManagerPreference
|
import com.vanced.manager.preferences.ManagerPreference
|
||||||
import com.vanced.manager.preferences.RadioButtonPreference
|
import com.vanced.manager.preferences.RadioButtonPreference
|
||||||
|
import com.vanced.manager.ui.component.preference.RadiobuttonDialogPreference
|
||||||
import com.vanced.manager.ui.resources.managerString
|
import com.vanced.manager.ui.resources.managerString
|
||||||
|
|
||||||
data class RadiobuttonInstallationOption(
|
data class RadiobuttonInstallationOption(
|
||||||
|
|
|
@ -3,9 +3,9 @@ package com.vanced.manager.ui.widget.screens.settings
|
||||||
import androidx.compose.runtime.*
|
import androidx.compose.runtime.*
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
import com.vanced.manager.R
|
import com.vanced.manager.R
|
||||||
|
import com.vanced.manager.preferences.holder.managerAccentColorPref
|
||||||
import com.vanced.manager.ui.component.color.ManagerColorPicker
|
import com.vanced.manager.ui.component.color.ManagerColorPicker
|
||||||
import com.vanced.manager.ui.component.preference.DialogPreference
|
import com.vanced.manager.ui.component.preference.DialogPreference
|
||||||
import com.vanced.manager.preferences.holder.managerAccentColorPref
|
|
||||||
import com.vanced.manager.ui.resources.managerString
|
import com.vanced.manager.ui.resources.managerString
|
||||||
import com.vanced.manager.ui.widget.button.ManagerSaveButton
|
import com.vanced.manager.ui.widget.button.ManagerSaveButton
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@ package com.vanced.manager.ui.widget.screens.settings
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import com.vanced.manager.R
|
import com.vanced.manager.R
|
||||||
import com.vanced.manager.ui.component.preference.CheckboxPreference
|
|
||||||
import com.vanced.manager.preferences.holder.useCustomTabsPref
|
import com.vanced.manager.preferences.holder.useCustomTabsPref
|
||||||
|
import com.vanced.manager.ui.component.preference.CheckboxPreference
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun SettingsCustomTabsItem() {
|
fun SettingsCustomTabsItem() {
|
||||||
|
|
|
@ -2,9 +2,9 @@ package com.vanced.manager.ui.widget.screens.settings
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import com.vanced.manager.R
|
import com.vanced.manager.R
|
||||||
import com.vanced.manager.ui.component.preference.RadiobuttonDialogPreference
|
|
||||||
import com.vanced.manager.preferences.RadioButtonPreference
|
import com.vanced.manager.preferences.RadioButtonPreference
|
||||||
import com.vanced.manager.preferences.holder.managerVariantPref
|
import com.vanced.manager.preferences.holder.managerVariantPref
|
||||||
|
import com.vanced.manager.ui.component.preference.RadiobuttonDialogPreference
|
||||||
import com.vanced.manager.ui.resources.managerString
|
import com.vanced.manager.ui.resources.managerString
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.vanced.manager.ui.widget.screens.settings
|
package com.vanced.manager.ui.widget.screens.settings
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import com.vanced.manager.ui.component.preference.CheckboxPreference
|
|
||||||
import com.vanced.manager.preferences.managerBooleanPreference
|
import com.vanced.manager.preferences.managerBooleanPreference
|
||||||
|
import com.vanced.manager.ui.component.preference.CheckboxPreference
|
||||||
import com.vanced.manager.util.notificationApps
|
import com.vanced.manager.util.notificationApps
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|
|
@ -2,9 +2,9 @@ package com.vanced.manager.ui.widget.screens.settings
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import com.vanced.manager.R
|
import com.vanced.manager.R
|
||||||
import com.vanced.manager.ui.component.preference.RadiobuttonDialogPreference
|
|
||||||
import com.vanced.manager.preferences.RadioButtonPreference
|
import com.vanced.manager.preferences.RadioButtonPreference
|
||||||
import com.vanced.manager.preferences.holder.managerThemePref
|
import com.vanced.manager.preferences.holder.managerThemePref
|
||||||
|
import com.vanced.manager.ui.component.preference.RadiobuttonDialogPreference
|
||||||
import com.vanced.manager.ui.resources.managerString
|
import com.vanced.manager.ui.resources.managerString
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|
Loading…
Reference in a new issue