diff --git a/FloconAndroid/core/src/main/java/io/github/openflocon/flocon/FloconLogger.kt b/FloconAndroid/core/src/main/java/io/github/openflocon/flocon/FloconLogger.kt index dfb5cee1..b3fe0f61 100644 --- a/FloconAndroid/core/src/main/java/io/github/openflocon/flocon/FloconLogger.kt +++ b/FloconAndroid/core/src/main/java/io/github/openflocon/flocon/FloconLogger.kt @@ -3,7 +3,7 @@ package io.github.openflocon.flocon import android.util.Log object FloconLogger { - private const val enabled = false + var enabled = false private const val TAG = "Flocon" fun logError(text: String, throwable: Throwable?) { if(enabled) { diff --git a/FloconAndroid/gradle.properties b/FloconAndroid/gradle.properties index c133015e..aa3d78d2 100644 --- a/FloconAndroid/gradle.properties +++ b/FloconAndroid/gradle.properties @@ -24,5 +24,5 @@ android.nonTransitiveRClass=true floconGroupId=io.github.openflocon -floconVersion=1.0.2 +floconVersion=1.0.5 floconDescription=A powerful desktop companion for Android apps, inspect, debug, and control your app in real time. \ No newline at end of file diff --git a/FloconAndroid/gradle/libs.versions.toml b/FloconAndroid/gradle/libs.versions.toml index 78844621..deb5c3fe 100644 --- a/FloconAndroid/gradle/libs.versions.toml +++ b/FloconAndroid/gradle/libs.versions.toml @@ -17,7 +17,7 @@ okhttpBom = "4.12.0" roomRuntime = "2.7.1" # for grpc gson = "2.11.0" -grpc = "1.73.0" +grpc = "1.70.0" protobufPlugin = "0.9.5" grpcKotlin = "1.4.3" protobuf = "4.26.1" diff --git a/FloconDesktop/composeApp/src/commonMain/kotlin/io/github/openflocon/flocondesktop/features/network/ui/mapper/NetworkUiMapper.kt b/FloconDesktop/composeApp/src/commonMain/kotlin/io/github/openflocon/flocondesktop/features/network/ui/mapper/NetworkUiMapper.kt index 55fb0a64..66b2f7a0 100644 --- a/FloconDesktop/composeApp/src/commonMain/kotlin/io/github/openflocon/flocondesktop/features/network/ui/mapper/NetworkUiMapper.kt +++ b/FloconDesktop/composeApp/src/commonMain/kotlin/io/github/openflocon/flocondesktop/features/network/ui/mapper/NetworkUiMapper.kt @@ -56,7 +56,7 @@ fun toUi(httpRequest: FloconHttpRequestDomainModel): NetworkItemViewState = Netw fun getDomainUi(httpRequest: FloconHttpRequestDomainModel): String = when (val t = httpRequest.type) { is FloconHttpRequestDomainModel.Type.GraphQl -> extractDomainAndPath(httpRequest.url) is FloconHttpRequestDomainModel.Type.Http -> extractDomain(httpRequest.url) - is FloconHttpRequestDomainModel.Type.Grpc -> extractDomain(httpRequest.url) + is FloconHttpRequestDomainModel.Type.Grpc -> httpRequest.url } fun formatDuration(duration: Double): String = duration.milliseconds.toString(unit = DurationUnit.MILLISECONDS) diff --git a/README.md b/README.md index 91de1088..8bc0b450 100644 --- a/README.md +++ b/README.md @@ -340,10 +340,11 @@ Flocon.deeplinks( Similar to network inteceptions, Flocon works with grpc +it works with `io.grpc:grpc-android` : https://github.com/grpc/grpc-java + +⚠️ please ensure your version is at lease `1.70.0` ⚠️ + [![Maven Central](https://img.shields.io/maven-central/v/io.github.openflocon/flocon-grpc-interceptor.svg)](https://search.maven.org/artifact/io.github.openflocon/flocon-grpc-interceptor) -``` -debugImplementation("io.github.openflocon:flocon-grpc-interceptor:LAST_VERSION") -``` ```kotlin ManagedChannelBuilder