Skip to content

Commit

Permalink
Merge pull request #156 from mhss1/dev
Browse files Browse the repository at this point in the history
Fixed proguard missing rules and Gson issues
  • Loading branch information
mhss1 authored Sep 24, 2023
2 parents 09b2e43 + 4f27d6e commit f3c6e42
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,14 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-dontobfuscate
-dontobfuscate

-dontwarn org.bouncycastle.jsse.BCSSLParameters
-dontwarn org.bouncycastle.jsse.BCSSLSocket
-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
-dontwarn org.conscrypt.Conscrypt$Version
-dontwarn org.conscrypt.Conscrypt
-dontwarn org.conscrypt.ConscryptHostnameVerifier
-dontwarn org.openjsse.javax.net.ssl.SSLParameters
-dontwarn org.openjsse.javax.net.ssl.SSLSocket
-dontwarn org.openjsse.net.ssl.OpenJSSE
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class DBConverters {
@TypeConverter
fun fromSubTasksList(value: List<SubTask>): String {
val gson = Gson()
val type = object : TypeToken<List<SubTask>>() {}.type
val type = TypeToken.getParameterized(List::class.java, SubTask::class.java).type
return gson.toJson(value, type)
}

@TypeConverter
fun toSubTasksList(value: String): List<SubTask> {
val gson = Gson()
val type = object : TypeToken<List<SubTask>>() {}.type
val type = TypeToken.getParameterized(List::class.java, SubTask::class.java).type
return gson.fromJson(value, type)
}

Expand Down

0 comments on commit f3c6e42

Please sign in to comment.