CORE-001 Android-Projekt anlegen Feature

This commit is contained in:
2026-08-20 08:46:48 +02:00
parent b2d36d98fc
commit 251a23dbe1
88 changed files with 3733 additions and 0 deletions
@@ -0,0 +1,42 @@
package de.medapp.wunddoku
import android.os.Bundle
import android.view.WindowManager
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import de.medapp.wunddoku.ui.navigation.WunddokuNavGraph
import de.medapp.wunddoku.ui.theme.WunddokuTheme
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
// FLAG_SECURE (Freigabe-Entscheidung aus Phase 1, Architektur-Dokument Abschnitt 13):
// verhindert, dass Wunddaten in Screenshots oder in der App-Switcher-Vorschau
// sichtbar werden, da die App sensible Patientendaten verarbeitet.
window.setFlags(
WindowManager.LayoutParams.FLAG_SECURE,
WindowManager.LayoutParams.FLAG_SECURE,
)
setContent {
WunddokuApp()
}
}
}
@Composable
private fun WunddokuApp() {
WunddokuTheme {
Surface(modifier = Modifier.fillMaxSize()) {
WunddokuNavGraph()
}
}
}