basic empty compose app
This commit is contained in:
parent
6b716afb62
commit
8ae7995a96
3 changed files with 26 additions and 0 deletions
|
|
@ -64,6 +64,8 @@ dependencies {
|
|||
implementation(libs.androidx.material.icons.extended)
|
||||
// Optional - Add window size utils
|
||||
implementation(libs.androidx.adaptive)
|
||||
// Optional - Integration with activities
|
||||
implementation(libs.androidx.activity.compose)
|
||||
|
||||
implementation(libs.androidx.core.ktx)
|
||||
implementation(libs.androidx.appcompat)
|
||||
|
|
|
|||
22
DBTApp/app/src/main/java/de/cdaut/dbtapp/MainActivity.kt
Normal file
22
DBTApp/app/src/main/java/de/cdaut/dbtapp/MainActivity.kt
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package de.cdaut.dbtapp
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.activity.ComponentActivity
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.activity.compose.setContent
|
||||
|
||||
class MainActivity : ComponentActivity(){
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContent {
|
||||
NavigationBar()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
fun NavigationBar() {
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
[versions]
|
||||
activityCompose = "1.10.1"
|
||||
agp = "8.9.2"
|
||||
kotlin = "2.0.21"
|
||||
coreKtx = "1.16.0"
|
||||
|
|
@ -9,6 +10,7 @@ appcompat = "1.7.0"
|
|||
material = "1.12.0"
|
||||
|
||||
[libraries]
|
||||
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activityCompose" }
|
||||
androidx-adaptive = { module = "androidx.compose.material3.adaptive:adaptive" }
|
||||
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
||||
androidx-material-icons-core = { module = "androidx.compose.material:material-icons-core" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue