This commit is contained in:
Martin Ptáček
2023-05-02 20:00:59 +02:00
parent 8d23b0689e
commit 48d064b726
4 changed files with 12 additions and 1 deletions

1
LICENSE Normal file
View File

@ -0,0 +1 @@
#TODO license compatible with prometheus license

View File

@ -66,6 +66,9 @@ dependencies {
implementation "io.ktor:ktor-server-cio:2.3.0"
implementation "io.ktor:ktor-server-core:2.3.0"
// view model for Jetpack Compose
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1"
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'

View File

@ -24,6 +24,13 @@ import kotlinx.coroutines.launch
import java.io.StringWriter
//https://www.geeksforgeeks.org/how-to-launch-an-application-automatically-on-system-boot-up-in-android/
// reference android app architecture
//https://github.dev/google-developer-training/basic-android-kotlin-compose-training-unscramble
// reference for sharing the view model accross whole application
// just acces viewmodel instance using viewmodel() function in composable fun
class MainActivity : ComponentActivity() {
private val collectorRegistry: CollectorRegistry = CollectorRegistry()

View File

@ -7,4 +7,4 @@ plugins {
id 'com.android.application' version '8.0.0' apply false
id 'com.android.library' version '8.0.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.0' apply false
}
}