Skip to content

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Apr 4, 2024
1 parent 238f1e9 commit 6187ae0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stremio-core-android"
version = "1.2.3"
version = "1.2.4"
authors = ["Smart Code OOD"]
edition = "2021"
resolver = "2"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ allprojects {

```gradle
dependencies {
implementation 'com.github.Stremio:stremio-core-kotlin:1.2.3'
implementation 'com.github.Stremio:stremio-core-kotlin:1.2.4'
}
```
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import com.google.protobuf.gradle.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

group = "com.github.Stremio"
version = "1.2.3"
version = "1.2.4"

allprojects {
repositories {
Expand Down
32 changes: 18 additions & 14 deletions src/commonMain/rust/bridge/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,24 @@ impl ToProtobuf<types::stream::Source, ()> for StreamSource {
player_frame_url: player_frame_url.to_string(),
})
}
StreamSource::Rar { rar_urls, file_idx, file_must_include } => {
types::stream::Source::Rar(types::stream::Rar {
rar_urls: rar_urls.to_protobuf(&()),
file_idx: file_idx.map(|idx| idx as i32),
file_must_include: file_must_include.to_owned(),
})
},
StreamSource::Zip { zip_urls, file_idx, file_must_include } => {
types::stream::Source::Zip(types::stream::Zip {
zip_urls: zip_urls.to_protobuf(&()),
file_idx: file_idx.map(|idx| idx as i32),
file_must_include: file_must_include.to_owned(),
})
},
StreamSource::Rar {
rar_urls,
file_idx,
file_must_include,
} => types::stream::Source::Rar(types::stream::Rar {
rar_urls: rar_urls.to_protobuf(&()),
file_idx: file_idx.map(|idx| idx as i32),
file_must_include: file_must_include.to_owned(),
}),
StreamSource::Zip {
zip_urls,
file_idx,
file_must_include,
} => types::stream::Source::Zip(types::stream::Zip {
zip_urls: zip_urls.to_protobuf(&()),
file_idx: file_idx.map(|idx| idx as i32),
file_must_include: file_must_include.to_owned(),
}),
}
}
}
Expand Down

0 comments on commit 6187ae0

Please sign in to comment.