Skip to content

Commit

Permalink
Fix the R8 and TypeToken issue
Browse files Browse the repository at this point in the history
  • Loading branch information
harri35 committed Nov 25, 2022
1 parent 920d854 commit bd29f90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class StorageTestUseCase @Inject constructor(
logger.d("Done\n")
StorageTestResult.Success(measurementResults)
} catch (t: Throwable) {
logger.e(t, "runTest")
StorageTestResult.Failed(t)
}
}
Expand Down
6 changes: 6 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
}
##

## TypeToken
# Retain generic signatures of TypeToken and its subclasses with R8 version 3.0 and higher.
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
##

## Crashlytics reports
-keepattributes *Annotation*
-keepattributes SourceFile,LineNumberTable
Expand Down

0 comments on commit bd29f90

Please sign in to comment.