-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from Stremio/chore/move-stremio-core-kotlin-to…
…-own-crate Chore/move stremio core kotlin to own crate
- Loading branch information
Showing
35 changed files
with
127 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[env] | ||
NDK_VERSION = "27.2.12479018" | ||
|
||
# Set the same RANLIB binary location for all the 4 targets: | ||
# armv7-linux-androideabi, aarch64-linux-android, i686-linux-android, x86_64-linux-android | ||
RANLIB_armv7_linux_androideabi = "$$ANDROID_HOME/ndk/$$NDK_VERSION/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib" | ||
RANLIB_aarch64_linux_android = "$$ANDROID_HOME/ndk/$$NDK_VERSION/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib" | ||
RANLIB_i686_linux_android = "$$ANDROID_HOME/ndk/$$NDK_VERSION/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib" | ||
RANLIB_x86_64_linux_android = "$$ANDROID_HOME/ndk/$$NDK_VERSION/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
[package] | ||
name = "stremio-core-kotlin" | ||
version = "1.2.6" | ||
authors = ["Smart Code OOD"] | ||
edition = "2021" | ||
|
||
rust-version = "1.70.0" | ||
|
||
[features] | ||
default = ["kotlin"] | ||
kotlin = [ | ||
# for fetch (making requests): | ||
"dep:http", | ||
"dep:reqwest", | ||
"dep:openssl", | ||
"dep:http-cache-reqwest", | ||
"dep:reqwest-middleware", | ||
# executors | ||
"dep:tokio", | ||
# java bindings | ||
"dep:jni", | ||
"dep:getrandom", | ||
] | ||
|
||
[lib] | ||
name = "stremio_core_kotlin" | ||
path = "src/commonMain/rust/lib.rs" | ||
crate-type = ["staticlib", "dylib"] | ||
|
||
[dependencies] | ||
stremio-core.workspace = true | ||
# stremio-core-web.workspace = true | ||
stremio-core-protobuf.workspace = true | ||
|
||
serde.workspace = true | ||
serde_json.workspace = true | ||
serde_path_to_error.workspace = true | ||
|
||
strum = { version = "0.22.*", features = ["derive"] } | ||
|
||
# Utils | ||
once_cell.workspace = true | ||
semver = { version = "1", features = ["serde"] } | ||
enclose = "1.1.*" | ||
itertools.workspace = true | ||
chrono.workspace = true | ||
boolinator = "2.4.*" | ||
Inflector = "0.11.*" | ||
cfg-if = "0.1.*" | ||
auto_impl = "0.5.*" | ||
|
||
base64 = "0.13.*" | ||
hex.workspace = true | ||
flate2 = "1.0.*" | ||
url = { version = "2.4", features = ["serde"] } | ||
percent-encoding = "2.1" | ||
|
||
# kotlin specific + Env impl | ||
getrandom = { workspace = true, optional = true } | ||
|
||
jni = { version = "0.19.*", optional = true } | ||
|
||
# Async executor | ||
tokio = { version = "1", features = ["rt", "rt-multi-thread"], optional = true } | ||
# Futures | ||
futures.workspace = true | ||
|
||
# Http Request handling | ||
http = { workspace = true, optional = true } | ||
reqwest = { workspace = true, features = ["json", "rustls-tls"], optional = true } | ||
openssl = { workspace = true, features = ["vendored"], optional = true } | ||
http-cache-reqwest = { workspace = true, optional = true } | ||
reqwest-middleware = { workspace = true, optional = true } | ||
|
||
# Bytes / Protobuf | ||
bytes = "1.1.0" | ||
prost.workspace = true | ||
prost-types.workspace = true | ||
|
||
[build-dependencies] | ||
prost-build.workspace = true | ||
protox.workspace = true | ||
glob.workspace = true | ||
|
||
# A way to quickly test with local version of `core` crates | ||
# [patch.'https://github.com/Stremio/stremio-core'] | ||
# stremio-core = { path = "../core" } | ||
# stremio-core-web = { path = "../core/stremio-core-web" } |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.