Skip to content

Commit

Permalink
fix R8
Browse files Browse the repository at this point in the history
  • Loading branch information
sal0max committed May 7, 2023
1 parent d41fa04 commit 766f80d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions muzei-nationalgeographic/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }

-dontwarn lombok.**

# GSON and R8 don't come along very well
-keepclassmembers,allowobfuscation class * {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package de.msal.muzei.nationalgeographic.model

import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName

@Keep
data class Feed(
@SerializedName("images") val items: List<Item>
)
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package de.msal.muzei.nationalgeographic.model

import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName

@Keep
data class Image(
@SerializedName("alt") val altDescription : String?,
@SerializedName("title") var title : String?,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package de.msal.muzei.nationalgeographic.model

import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
import java.util.*

@Keep
data class Item(
@SerializedName("entityLabel") val entityLabel : String?,
var date : Calendar?,
Expand Down

0 comments on commit 766f80d

Please sign in to comment.