mirror of
https://github.com/mii443/prometheus-android-exporter.git
synced 2025-08-22 15:15:35 +00:00
misc
This commit is contained in:
@ -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'
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user