diff --git a/Cargo.lock b/Cargo.lock index f4ceae0..9d967c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2439,7 +2439,7 @@ dependencies = [ [[package]] name = "stremio-core-kotlin" -version = "1.3.1" +version = "1.4.0" dependencies = [ "Inflector", "auto_impl", diff --git a/stremio-core-kotlin/Cargo.toml b/stremio-core-kotlin/Cargo.toml index 17edeca..f6059bb 100644 --- a/stremio-core-kotlin/Cargo.toml +++ b/stremio-core-kotlin/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "stremio-core-kotlin" -version = "1.3.1" +version = "1.4.0" authors = ["Smart Code OOD"] edition = "2021" diff --git a/stremio-core-kotlin/README.md b/stremio-core-kotlin/README.md index 74cb384..b01316b 100644 --- a/stremio-core-kotlin/README.md +++ b/stremio-core-kotlin/README.md @@ -32,6 +32,6 @@ allprojects { ```gradle dependencies { - implementation 'com.github.Stremio:stremio-core-kotlin:1.3.1' + implementation 'com.github.Stremio:stremio-core-kotlin:1.4.0' } ``` diff --git a/stremio-core-kotlin/build.gradle.kts b/stremio-core-kotlin/build.gradle.kts index 22f13f8..1d51fb0 100644 --- a/stremio-core-kotlin/build.gradle.kts +++ b/stremio-core-kotlin/build.gradle.kts @@ -1,7 +1,7 @@ import com.google.protobuf.gradle.* group = "com.github.Stremio" -version = "1.3.1" +version = "1.4.0" allprojects { repositories { diff --git a/stremio-core-protobuf/proto/stremio/core/models/player.proto b/stremio-core-protobuf/proto/stremio/core/models/player.proto index 2a34a54..4416a14 100644 --- a/stremio-core-protobuf/proto/stremio/core/models/player.proto +++ b/stremio-core-protobuf/proto/stremio/core/models/player.proto @@ -25,7 +25,7 @@ message Player { message VideoParams { optional string hash = 1; - optional int64 size = 2; + optional uint64 size = 2; optional string filename = 3; } message StreamState { diff --git a/stremio-core-protobuf/src/bridge.rs b/stremio-core-protobuf/src/bridge.rs index 7fb611a..6e33eee 100644 --- a/stremio-core-protobuf/src/bridge.rs +++ b/stremio-core-protobuf/src/bridge.rs @@ -29,7 +29,7 @@ mod stream; mod string; mod subtitle; -pub trait ToProtobuf { +pub trait ToProtobuf { fn to_protobuf(&self, args: &A) -> T; } diff --git a/stremio-core-protobuf/src/model/fields/player.rs b/stremio-core-protobuf/src/model/fields/player.rs index cde83bc..c6c2bb5 100644 --- a/stremio-core-protobuf/src/model/fields/player.rs +++ b/stremio-core-protobuf/src/model/fields/player.rs @@ -54,7 +54,7 @@ impl FromProtobuf for models::player::VideoParams { fn from_protobuf(&self) -> VideoParams { VideoParams { hash: self.hash.to_owned(), - size: self.size.map(|x| x as u64).to_owned(), + size: self.size.to_owned(), filename: self.filename.to_owned(), } } @@ -67,7 +67,7 @@ impl ToProtobuf for VideoParams { ) -> models::player::VideoParams { models::player::VideoParams { hash: self.hash.to_owned(), - size: self.size.map(|x| x as i64).to_owned(), + size: self.size.to_owned(), filename: self.filename.to_owned(), } }