Proguard: activate it in release
This commit is contained in:
parent
1786ba30f7
commit
23cbed310a
|
@ -192,8 +192,14 @@ android {
|
||||||
resValue "bool", "debug_mode", "false"
|
resValue "bool", "debug_mode", "false"
|
||||||
buildConfigField "boolean", "LOW_PRIVACY_LOG_ENABLE", "false"
|
buildConfigField "boolean", "LOW_PRIVACY_LOG_ENABLE", "false"
|
||||||
|
|
||||||
minifyEnabled false
|
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
postprocessing {
|
||||||
|
removeUnusedCode true
|
||||||
|
removeUnusedResources true
|
||||||
|
obfuscate false
|
||||||
|
optimizeCode true
|
||||||
|
proguardFiles 'proguard-rules.pro'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,3 +19,5 @@
|
||||||
# If you keep the line number information, uncomment this to
|
# If you keep the line number information, uncomment this to
|
||||||
# hide the original source file name.
|
# hide the original source file name.
|
||||||
#-renamesourcefileattribute SourceFile
|
#-renamesourcefileattribute SourceFile
|
||||||
|
|
||||||
|
-keep class im.vector.riotx.features.** { *; }
|
|
@ -39,7 +39,7 @@ private const val SIZE_20MB = 20 * 1024 * 1024
|
||||||
private const val SIZE_50MB = 50 * 1024 * 1024
|
private const val SIZE_50MB = 50 * 1024 * 1024
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
class VectorFileLogger @Inject constructor(val context: Context, private val vectorPreferences: VectorPreferences) : Timber.DebugTree() {
|
class VectorFileLogger @Inject constructor(val context: Context, private val vectorPreferences: VectorPreferences) : Timber.Tree() {
|
||||||
|
|
||||||
private val maxLogSizeByte: Int
|
private val maxLogSizeByte: Int
|
||||||
private val logRotationCount: Int
|
private val logRotationCount: Int
|
||||||
|
|
Loading…
Reference in New Issue