From 418c284071879e7e68703a014ca9eb10549c387f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pt=C3=A1=C4=8Dek?= Date: Wed, 12 Jul 2023 22:21:36 +0200 Subject: [PATCH] keepalive --- client/.idea/deploymentTargetDropDown.xml | 4 ++-- client/app/build.gradle | 24 +++++++++++-------- client/app/src/main/AndroidManifest.xml | 3 ++- .../exporter/worker/ExponentialBackoff.kt | 1 + .../android/exporter/worker/PushProxClient.kt | 16 ++++++++++++- 5 files changed, 34 insertions(+), 14 deletions(-) diff --git a/client/.idea/deploymentTargetDropDown.xml b/client/.idea/deploymentTargetDropDown.xml index 51ddb74..d58ef7a 100644 --- a/client/.idea/deploymentTargetDropDown.xml +++ b/client/.idea/deploymentTargetDropDown.xml @@ -7,11 +7,11 @@ - + - + \ No newline at end of file diff --git a/client/app/build.gradle b/client/app/build.gradle index b5bc853..dfc5147 100644 --- a/client/app/build.gradle +++ b/client/app/build.gradle @@ -103,49 +103,53 @@ dependencies { // room database end --------------------------------------------------------------------------- + + // ktor + implementation "io.ktor:ktor-client-android:2.3.0" + // custom - tests androidTestImplementation 'androidx.test:runner:1.5.2' androidTestUtil 'androidx.test:orchestrator:1.4.2' - // custom - work manager + // - work manager implementation 'androidx.work:work-multiprocess:2.8.1' def core_version = "1.10.1" - // custom - prometheus client java library + // - prometheus client java library implementation 'io.prometheus:simpleclient:0.16.0' implementation 'io.prometheus:simpleclient_common:0.16.0' - // custom - kotlin coroutines + // - kotlin coroutines implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0-RC" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.0-RC" - // custom - ktor web client + // - ktor web client implementation("io.ktor:ktor-client-core:2.3.0") implementation("io.ktor:ktor-client-cio:2.3.0") - // custom - ktor web server + // - ktor web server implementation "io.ktor:ktor-server-cio:2.3.0" implementation "io.ktor:ktor-server-core:2.3.0" implementation "io.ktor:ktor-server-status-pages:2.3.0" - // custom - view model for Jetpack Compose + // - view model for Jetpack Compose implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1" implementation "androidx.core:core-ktx:$core_version" - // custom - navigation for Jetpack Compose + // - navigation for Jetpack Compose def nav_version = "2.5.3" implementation("androidx.navigation:navigation-compose:$nav_version") - // custom - work manager + // - work manager implementation 'androidx.work:work-runtime-ktx:2.7.1' - // custom - yaml configuration parsing + // - yaml configuration parsing implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.1") implementation("com.charleskorn.kaml:kaml:0.54.0") implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1' - // custom - protocol buffers + // - protocol buffers implementation 'com.google.protobuf:protobuf-javalite:3.20.1' implementation 'com.google.protobuf:protobuf-kotlin-lite:3.20.1' diff --git a/client/app/src/main/AndroidManifest.xml b/client/app/src/main/AndroidManifest.xml index 2b9ea94..9e35e59 100644 --- a/client/app/src/main/AndroidManifest.xml +++ b/client/app/src/main/AndroidManifest.xml @@ -16,7 +16,8 @@ android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/Theme.PrometheusAndroidExporter" - tools:targetApi="31"> + tools:targetApi="31" + android:usesCleartextTraffic="true">