mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-10 06:44:17 +00:00
fix proguard issues with entities/navigation
This commit is contained in:
parent
da9b2389de
commit
d1877dd924
6 changed files with 9 additions and 5 deletions
|
@ -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\""
|
||||
|
|
3
common/proguard-rules.pro
vendored
3
common/proguard-rules.pro
vendored
|
@ -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
|
||||
|
|
2
leanback/proguard-rules.pro
vendored
2
leanback/proguard-rules.pro
vendored
|
@ -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.** { *; }
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
include ':touch', ':common', ':leanback'
|
||||
include ':touch'
|
||||
include ':common'
|
||||
include ':leanback'
|
||||
|
|
2
touch/proguard-rules.pro
vendored
2
touch/proguard-rules.pro
vendored
|
@ -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.** { *; }
|
||||
|
|
|
@ -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() ?: "",
|
||||
|
|
Loading…
Reference in a new issue