fix proguard issues with entities/navigation

This commit is contained in:
Felix 2020-06-11 18:15:58 +02:00
parent da9b2389de
commit d1877dd924
6 changed files with 9 additions and 5 deletions

View file

@ -22,6 +22,7 @@ android {
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.pro'
buildConfigField "String", "STREAMING_API_BASE_URL", "\"https://streaming.media.ccc.de\""
buildConfigField "String", "STREAMING_API_OFFERS_PATH", "\"/streams/v2.json\""

View file

@ -21,8 +21,7 @@
#-renamesourcefileattribute SourceFile
-ignorewarnings
-keep @interface androidx.support.annotation.Keep
-keep @interface androidx.room.Entity
-keep @androidx.room.Entity public class *
## Start Retrofit-Rules
# Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and

View file

@ -53,7 +53,7 @@
-dontwarn javax.annotation.**
-dontwarn sun.misc.Unsafe
-dontwarn okio.**
-keep class de.nicidienase.chaosflix.common.entities.** { *; }
#retrofit
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }

View file

@ -1 +1,3 @@
include ':touch', ':common', ':leanback'
include ':touch'
include ':common'
include ':leanback'

View file

@ -55,7 +55,7 @@
-dontwarn javax.annotation.**
-dontwarn sun.misc.Unsafe
-dontwarn okio.**
-keep class de.nicidienase.chaosflix.common.entities.** { *; }
#retrofit
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }

View file

@ -2,10 +2,12 @@ package de.nicidienase.chaosflix.touch.playback
import android.os.Parcel
import android.os.Parcelable
import androidx.annotation.Keep
import de.nicidienase.chaosflix.common.mediadata.entities.recording.persistence.Event
import de.nicidienase.chaosflix.common.mediadata.entities.recording.persistence.Recording
import de.nicidienase.chaosflix.common.mediadata.entities.streaming.StreamUrl
@Keep
data class PlaybackItem(val title: String, val subtitle: String, val eventGuid: String, val uri: String) : Parcelable {
constructor(parcel: Parcel) : this(
parcel.readString() ?: "",