diff --git a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt index 0c36ae0..23b48eb 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt @@ -15,14 +15,12 @@ import androidx.compose.material3.NavigationBarItem import androidx.compose.material3.Scaffold import androidx.compose.material3.Text import androidx.compose.runtime.Composable -import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.compose.ui.Modifier import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp import androidx.lifecycle.Lifecycle -import androidx.lifecycle.asLiveData import androidx.lifecycle.lifecycleScope import androidx.lifecycle.repeatOnLifecycle import androidx.navigation.NavDestination.Companion.hierarchy @@ -32,19 +30,17 @@ import androidx.navigation.compose.NavHost import androidx.navigation.compose.composable import androidx.navigation.compose.currentBackStackEntryAsState import androidx.navigation.compose.rememberNavController -import eu.m724.vastapp.activity.dashboard.screen.Screen import eu.m724.vastapp.activity.dashboard.screen.BillingScreen import eu.m724.vastapp.activity.dashboard.screen.DashboardScreen import eu.m724.vastapp.activity.dashboard.screen.HelpScreen import eu.m724.vastapp.activity.dashboard.screen.InstancesScreen +import eu.m724.vastapp.activity.dashboard.screen.Screen import eu.m724.vastapp.ui.theme.VastappTheme import eu.m724.vastapp.vastai.VastApi import eu.m724.vastapp.vastai.data.User -import kotlinx.coroutines.flow.collect import kotlinx.coroutines.launch import org.chromium.net.CronetEngine import java.util.concurrent.Executors -import kotlin.coroutines.coroutineContext class DashboardActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { diff --git a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardUiState.kt b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardUiState.kt index 2ba0a12..70a24bf 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardUiState.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardUiState.kt @@ -1,9 +1,5 @@ package eu.m724.vastapp.activity.dashboard -import androidx.compose.runtime.MutableState -import eu.m724.vastapp.vastai.data.Instance -import eu.m724.vastapp.vastai.data.User - data class DashboardUiState( val refreshing: Int = 0 ) { diff --git a/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Billing.kt b/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Billing.kt index 9b90f2c..eb5dd2b 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Billing.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Billing.kt @@ -9,16 +9,13 @@ import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding -import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.material3.Card import androidx.compose.material3.Icon import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState -import androidx.compose.runtime.derivedStateOf import androidx.compose.runtime.getValue -import androidx.compose.runtime.remember import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.res.painterResource diff --git a/app/src/main/java/eu/m724/vastapp/vastai/api/InstancesUrlRequestCallback.kt b/app/src/main/java/eu/m724/vastapp/vastai/api/InstancesUrlRequestCallback.kt index de71c0d..5f49d47 100644 --- a/app/src/main/java/eu/m724/vastapp/vastai/api/InstancesUrlRequestCallback.kt +++ b/app/src/main/java/eu/m724/vastapp/vastai/api/InstancesUrlRequestCallback.kt @@ -2,7 +2,6 @@ package eu.m724.vastapp.vastai.api import eu.m724.vastapp.vastai.ApiFailure import eu.m724.vastapp.vastai.data.Instance -import eu.m724.vastapp.vastai.data.User import org.chromium.net.CronetException import org.chromium.net.UrlRequest import org.chromium.net.UrlResponseInfo