Coverage Summary for Class: MainActivityKt (com.imecatro.demosales)

Class Class, % Method, % Branch, % Line, % Instruction, %
MainActivityKt 0% (0/1) 0% (0/3) 0% (0/6) 0% (0/8) 0% (0/116)


 package com.imecatro.demosales
 
 import android.os.Bundle
 import androidx.activity.ComponentActivity
 import androidx.activity.compose.setContent
 import androidx.activity.enableEdgeToEdge
 import androidx.compose.foundation.layout.fillMaxSize
 import androidx.compose.material3.MaterialTheme
 import androidx.compose.material3.Surface
 import androidx.compose.runtime.Composable
 import androidx.compose.ui.Modifier
 import com.imecatro.demosales.ui.AppAdaptiveNavigation
 import com.imecatro.demosales.ui.theme.PuntroSalesDemoTheme
 import dagger.hilt.android.AndroidEntryPoint
 
 
 /**
  * Main entry point for the application.
  *
  * This activity is annotated with [AndroidEntryPoint] to enable Hilt dependency injection.
  * It serves as the host for the Compose UI and manages the initial configuration,
  * including edge-to-edge display and the root navigation structure.
  */
 @AndroidEntryPoint
 class MainActivity : ComponentActivity() {
 
     override fun onCreate(savedInstanceState: Bundle?) {
         enableEdgeToEdge()
         super.onCreate(savedInstanceState)
         setContent {
             MainApp {
                 // Experimental Suite Adaptive
                 AppAdaptiveNavigation()
                 //MainScaffoldApp()
             }
         }
     }
 }
 
 /**
  * Core wrapper for the application UI.
  *
  * Applies the [PuntroSalesDemoTheme] and sets up a [Surface] with the theme's
  * background color.
  *
  * @param composable The content to be displayed within the application shell.
  */
 @Composable
 fun MainApp(composable: @Composable () -> Unit) {
     PuntroSalesDemoTheme {
         // A surface container using the 'background' color from the theme
         Surface(
             modifier = Modifier.fillMaxSize(),
             color = MaterialTheme.colorScheme.background
         ) {
             composable()
         }
     }
 }