Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Stremio/stremio-core-kotlin into …
Browse files Browse the repository at this point in the history
…debug
  • Loading branch information
nklhtv committed Aug 2, 2022
2 parents 80f0910 + 8c17ac0 commit a438383
Show file tree
Hide file tree
Showing 8 changed files with 16 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.0.10"
version = "1.0.11"
authors = ["Smart Code OOD"]
edition = "2018"

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ allprojects {

```gradle
dependencies {
implementation 'com.github.Stremio:stremio-core-kotlin:1.0.10-debug'
implementation 'com.github.Stremio:stremio-core-kotlin:1.0.11-debug'
}
```

## Manual

[Download](https://jitpack.io/com/github/stremio/stremio-core-kotlin/1.0.10-debug/stremio-core-kotlin-1.0.10-debug.aar) aar and link
[Download](https://jitpack.io/com/github/stremio/stremio-core-kotlin/1.0.11-debug/stremio-core-kotlin-1.0.11-debug.aar) aar and link
it manually
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ android {
defaultConfig {
minSdkVersion 23
targetSdkVersion 31
versionCode 11
versionName "1.0.10"
versionCode 12
versionName "1.0.11"
}

kotlinOptions {
Expand Down
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
install:
- wget https://github.com/Stremio/stremio-core-kotlin/releases/download/$VERSION/stremio-core-kotlin.aar
- FILE="-Dfile=stremio-core-kotlin.aar"
- mvn install:install-file $FILE -DgroupId=com.stremio.core -DartifactId=stremio-core-kotlin -Dversion=1.0.10 -Dpackaging=aar -DgeneratePom=true
- mvn install:install-file $FILE -DgroupId=com.stremio.core -DartifactId=stremio-core-kotlin -Dversion=1.0.11 -Dpackaging=aar -DgeneratePom=true
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.stremio.core</groupId>
<artifactId>stremio-core-kotlin</artifactId>
<version>1.0.10</version>
<version>1.0.11</version>
</project>
8 changes: 4 additions & 4 deletions src/main/proto/stremio/core/runtime/event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ message Event {
}

message ProfilePushedToStorage {
required string uid = 1;
optional string uid = 1;
}
message LibraryItemsPushedToStorage {
repeated string ids = 1;
}
message UserPulledFromAPI {
required string uid = 1;
optional string uid = 1;
}
message UserPushedToAPI {
required string uid = 1;
optional string uid = 1;
}
message AddonsPulledFromAPI {
repeated string transport_urls = 1;
Expand All @@ -62,7 +62,7 @@ message Event {
required stremio.core.types.AuthRequest auth_request = 1;
}
message UserLoggedOut {
required string uid = 1;
optional string uid = 1;
}
message SessionDeleted {
required string auth_key = 1;
Expand Down
10 changes: 4 additions & 6 deletions src/main/rust/bridge/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ impl ToProtobuf<runtime::Event, ()> for Event {
fn to_protobuf(&self, _args: &()) -> runtime::Event {
let event = match self {
Event::ProfilePushedToStorage { uid } => runtime::event::Type::ProfilePushedToStorage(
runtime::event::ProfilePushedToStorage {
uid: uid.clone().unwrap(),
},
runtime::event::ProfilePushedToStorage { uid: uid.clone() },
),
Event::LibraryItemsPushedToStorage { ids } => {
runtime::event::Type::LibraryItemsPushedToStorage(
Expand All @@ -22,12 +20,12 @@ impl ToProtobuf<runtime::Event, ()> for Event {
}
Event::UserPulledFromAPI { uid } => {
runtime::event::Type::UserPulledFromApi(runtime::event::UserPulledFromApi {
uid: uid.clone().unwrap(),
uid: uid.clone(),
})
}
Event::UserPushedToAPI { uid } => {
runtime::event::Type::UserPushedToApi(runtime::event::UserPushedToApi {
uid: uid.clone().unwrap(),
uid: uid.clone(),
})
}
Event::AddonsPulledFromAPI { transport_urls } => {
Expand All @@ -47,7 +45,7 @@ impl ToProtobuf<runtime::Event, ()> for Event {
}
Event::UserLoggedOut { uid } => {
runtime::event::Type::UserLoggedOut(runtime::event::UserLoggedOut {
uid: uid.clone().unwrap(),
uid: uid.clone(),
})
}
Event::SessionDeleted { auth_key } => {
Expand Down

0 comments on commit a438383

Please sign in to comment.