Implement sending logs to developer (#190)

* Save logs to a file

* Send logs via email

* Enable network logs in release builds

* Remove useless chooser title

* Append to logs file and ignore I/O errors

* Ensure email and password are not logged

* Ensure base URL is never logged

* Add logs disclaimer
This commit is contained in:
Kirill Kamakin
2023-12-10 12:49:03 +01:00
committed by GitHub
parent f6f44c7592
commit 36a72b63de
29 changed files with 500 additions and 157 deletions

View File

@@ -7,7 +7,7 @@ plugins {
android {
defaultConfig {
buildConfigField("Boolean", "LOG_NETWORK", "false")
buildConfigField("Boolean", "LOG_NETWORK", "true")
consumerProguardFiles("consumer-proguard-rules.pro")
}
namespace = "gq.kirmanak.mealient.datasource"
@@ -31,7 +31,7 @@ dependencies {
implementation(platform(libs.okhttp3.bom))
implementation(libs.okhttp3.okhttp)
debugImplementation(libs.okhttp3.loggingInterceptor)
implementation(libs.okhttp3.loggingInterceptor)
implementation(libs.ktor.core)
implementation(libs.ktor.auth)