Fix account provider change on nightly and release (#861)
* Use parallelMap (same code) * Add proguard rules. Fixes #818 * Rename file proguard-rules.pro to consumer-rules.pro for coherency. * Remove empty and non-referenced proguard files.
This commit is contained in:
parent
106d070846
commit
c919618bc0
13 changed files with 61 additions and 195 deletions
|
|
@ -20,6 +20,13 @@ plugins {
|
|||
|
||||
android {
|
||||
namespace = "io.element.android.libraries.network"
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
anvil {
|
||||
|
|
|
|||
9
libraries/network/consumer-rules.pro
Normal file
9
libraries/network/consumer-rules.pro
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# From https://github.com/square/retrofit/issues/3751#issuecomment-1192043644
|
||||
# Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items).
|
||||
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
|
||||
-keep,allowobfuscation,allowshrinking class retrofit2.Response
|
||||
|
||||
# With R8 full mode generic signatures are stripped for classes that are not
|
||||
# kept. Suspend functions are wrapped in continuations where the type argument
|
||||
# is used.
|
||||
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
|
||||
Loading…
Add table
Add a link
Reference in a new issue