mirror of
https://github.com/mii443/prometheus-android-exporter.git
synced 2025-12-03 19:18:26 +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-cio:2.3.0"
|
||||||
implementation "io.ktor:ktor-server-core: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.core:core-ktx:1.7.0'
|
||||||
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
|
||||||
|
|||||||
@@ -24,6 +24,13 @@ import kotlinx.coroutines.launch
|
|||||||
import java.io.StringWriter
|
import java.io.StringWriter
|
||||||
|
|
||||||
//https://www.geeksforgeeks.org/how-to-launch-an-application-automatically-on-system-boot-up-in-android/
|
//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() {
|
class MainActivity : ComponentActivity() {
|
||||||
|
|
||||||
private val collectorRegistry: CollectorRegistry = CollectorRegistry()
|
private val collectorRegistry: CollectorRegistry = CollectorRegistry()
|
||||||
|
|||||||
Reference in New Issue
Block a user