mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-16 02:44:51 +00:00
Cleanup prev/next
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
///
|
||||
/// BaseSource.kt
|
||||
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
||||
/// https://github.com/mrousavy/nitro
|
||||
/// Copyright © Marc Rousavy @ Margelo
|
||||
///
|
||||
|
||||
package com.margelo.nitro.omni
|
||||
|
||||
import androidx.annotation.Keep
|
||||
import com.facebook.proguard.annotations.DoNotStrip
|
||||
|
||||
|
||||
/**
|
||||
* Represents the JavaScript object/struct "BaseSource".
|
||||
*/
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
data class BaseSource(
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
val src: Array<VideoSrc>,
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
val startTime: Double?,
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
val subtitles: Array<Subtitle>,
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
val metadata: Metadata?,
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
val mixAudio: MixAudioMode?
|
||||
) {
|
||||
/* primary constructor */
|
||||
|
||||
companion object {
|
||||
/**
|
||||
* Constructor called from C++
|
||||
*/
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
@Suppress("unused")
|
||||
@JvmStatic
|
||||
private fun fromCpp(src: Array<VideoSrc>, startTime: Double?, subtitles: Array<Subtitle>, metadata: Metadata?, mixAudio: MixAudioMode?): BaseSource {
|
||||
return BaseSource(src, startTime, subtitles, metadata, mixAudio)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,7 +28,13 @@ data class Metadata(
|
||||
val artist: String?,
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
val imageLink: String?
|
||||
val imageLink: String?,
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
val hasPrev: Boolean?,
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
val hasNext: Boolean?
|
||||
) {
|
||||
/* primary constructor */
|
||||
|
||||
@@ -40,8 +46,8 @@ data class Metadata(
|
||||
@Keep
|
||||
@Suppress("unused")
|
||||
@JvmStatic
|
||||
private fun fromCpp(title: String, album: String?, artist: String?, imageLink: String?): Metadata {
|
||||
return Metadata(title, album, artist, imageLink)
|
||||
private fun fromCpp(title: String, album: String?, artist: String?, imageLink: String?, hasPrev: Boolean?, hasNext: Boolean?): Metadata {
|
||||
return Metadata(title, album, artist, imageLink, hasPrev, hasNext)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,12 +17,6 @@ import com.facebook.proguard.annotations.DoNotStrip
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
data class Source(
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
val prev: BaseSource?,
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
val next: BaseSource?,
|
||||
@DoNotStrip
|
||||
@Keep
|
||||
val src: Array<VideoSrc>,
|
||||
@@ -49,8 +43,8 @@ data class Source(
|
||||
@Keep
|
||||
@Suppress("unused")
|
||||
@JvmStatic
|
||||
private fun fromCpp(prev: BaseSource?, next: BaseSource?, src: Array<VideoSrc>, startTime: Double?, subtitles: Array<Subtitle>, metadata: Metadata?, mixAudio: MixAudioMode?): Source {
|
||||
return Source(prev, next, src, startTime, subtitles, metadata, mixAudio)
|
||||
private fun fromCpp(src: Array<VideoSrc>, startTime: Double?, subtitles: Array<Subtitle>, metadata: Metadata?, mixAudio: MixAudioMode?): Source {
|
||||
return Source(src, startTime, subtitles, metadata, mixAudio)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user