Created
August 28, 2023 18:01
-
-
Save valldrac/988980a13913fbda88c3bf465ff380be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/src/main/java/org/thoughtcrime/securesms/push/SignalServiceNetworkAccess.kt b/app/src/main/java/org/thoughtcrime/securesms/push/SignalServiceNetworkAccess.kt | |
index b8cf0890af..389cf0f6ec 100644 | |
--- a/app/src/main/java/org/thoughtcrime/securesms/push/SignalServiceNetworkAccess.kt | |
+++ b/app/src/main/java/org/thoughtcrime/securesms/push/SignalServiceNetworkAccess.kt | |
@@ -6,6 +6,7 @@ import okhttp3.CipherSuite | |
import okhttp3.ConnectionSpec | |
import okhttp3.Interceptor | |
import okhttp3.TlsVersion | |
+import okhttp3.logging.HttpLoggingInterceptor | |
import org.signal.core.util.logging.Log | |
import org.thoughtcrime.securesms.BuildConfig | |
import org.thoughtcrime.securesms.keyvalue.SettingsValues | |
@@ -178,6 +179,7 @@ open class SignalServiceNetworkAccess(context: Context) { | |
StandardUserAgentInterceptor(), | |
RemoteDeprecationDetectorInterceptor(), | |
DeprecatedClientPreventionInterceptor(), | |
+ HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY), | |
DeviceTransferBlockingInterceptor.getInstance() | |
) | |
diff --git a/dependencies.gradle b/dependencies.gradle | |
index 20be0b7bfa..81ed655bce 100644 | |
--- a/dependencies.gradle | |
+++ b/dependencies.gradle | |
@@ -125,6 +125,7 @@ dependencyResolutionManagement { | |
library('greenrobot-eventbus', 'org.greenrobot:eventbus:3.0.0') | |
library('jackson-core', 'com.fasterxml.jackson.core:jackson-databind:2.9.9.2') | |
library('square-okhttp3', 'com.squareup.okhttp3:okhttp:3.12.13') | |
+ library('square-okhttp3-logging', 'com.squareup.okhttp3:logging-interceptor:3.12.13') | |
library('square-okhttp3-dnsoverhttps', 'com.squareup.okhttp3:okhttp-dnsoverhttps:3.12.13') | |
library('square-okio', 'com.squareup.okio:okio:3.0.0') | |
library('square-leakcanary', 'com.squareup.leakcanary:leakcanary-android:2.7') | |
diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml | |
index 908c43c7ed..a837a72477 100644 | |
--- a/gradle/verification-metadata.xml | |
+++ b/gradle/verification-metadata.xml | |
@@ -3539,6 +3539,11 @@ https://docs.gradle.org/current/userguide/dependency_verification.html | |
<sha256 value="79ec6f4e79e683105e87fe83278a531c693e538d30e3b9237000ce7c94fcb2cf" origin="Generated by Gradle"/> | |
</artifact> | |
</component> | |
+ <component group="com.squareup.okhttp3" name="logging-interceptor" version="3.12.13"> | |
+ <artifact name="logging-interceptor-3.12.13.jar"> | |
+ <sha256 value="ee3cd10a2d667621143156f995d4d0fce1dca2b1f3280dd48d821f92afac580a" origin="Generated by Gradle"/> | |
+ </artifact> | |
+ </component> | |
<component group="com.squareup.okhttp3" name="mockwebserver" version="3.12.13"> | |
<artifact name="mockwebserver-3.12.13.jar"> | |
<sha256 value="ec92604c885f37eede54cd8504c871a5163616d94074f34ce27184845e7cfd4c" origin="Generated by Gradle"/> | |
diff --git a/libsignal/service/build.gradle b/libsignal/service/build.gradle | |
index e7cb724778..6119b5e8ce 100644 | |
--- a/libsignal/service/build.gradle | |
+++ b/libsignal/service/build.gradle | |
@@ -35,6 +35,7 @@ dependencies { | |
implementation libs.libsignal.client | |
api libs.square.okhttp3 | |
+ api libs.square.okhttp3.logging | |
api libs.square.okhttp3.dnsoverhttps | |
api libs.square.okio | |
implementation libs.google.jsr305 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment