| e0e4a1c4 Andy McCall ↶ |
1 |
package com.example.oxygenhub |
| 2 |
|
| 3 |
import android.os.Bundle |
| 4 |
import androidx.activity.ComponentActivity |
| 5 |
import androidx.activity.compose.setContent |
| 6 |
import androidx.activity.enableEdgeToEdge |
| 7 |
import androidx.compose.foundation.layout.fillMaxSize |
| 8 |
import androidx.compose.foundation.layout.padding |
| 9 |
import androidx.compose.material3.Scaffold |
| 10 |
import androidx.compose.material3.Text |
| 11 |
import androidx.compose.runtime.Composable |
| 12 |
import androidx.compose.ui.Modifier |
| 13 |
import androidx.compose.ui.tooling.preview.Preview |
| 14 |
import com.example.oxygenhub.ui.theme.OxygenHubTheme |
| 15 |
|
| 5edf011e Andy McCall ↶ |
16 |
import uniffi.rust_core.oxygenGreeting |
| 17 |
|
| 66127df3 Andy McCall ↶ |
18 |
import com.example.oxygenhub.ui.MainScreen |
| 19 |
|
| e0e4a1c4 Andy McCall ↶ |
20 |
class MainActivity : ComponentActivity() { |
| 21 |
override fun onCreate(savedInstanceState: Bundle?) { |
| 22 |
super.onCreate(savedInstanceState) |
| 23 |
enableEdgeToEdge() |
| 24 |
setContent { |
| 25 |
OxygenHubTheme { |
| 66127df3 Andy McCall ↶ |
26 |
MainScreen() |
| e0e4a1c4 Andy McCall ↶ |
27 |
} |
| 28 |
} |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
@Preview(showBackground = true) |
| 33 |
@Composable |
| 66127df3 Andy McCall ↶ |
34 |
fun MainScreenPreview() { |
| e0e4a1c4 Andy McCall ↶ |
35 |
OxygenHubTheme { |
| 66127df3 Andy McCall ↶ |
36 |
MainScreen() |
| e0e4a1c4 Andy McCall ↶ |
37 |
} |
| 38 |
} |