mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-08-22 23:32:50 +00:00
.. | ||
chromecast-protocol | ||
examples | ||
fcast-sender-sdk | ||
fuzz | ||
http | ||
parsers-common | ||
xtask | ||
.gitlab-ci.yml | ||
Dockerfile | ||
README.md |
FCast Sender SDK
Required tools
Android
Additional required tools
- cargo-ndk
- The
aarch64-linux-android
,i686-linux-android
,armv7-linux-androideabi
andx86_64-linux-android
rustc targets (can be installed with rustup:rustup target add x86_64-linux-android i686-linux-android armv7-linux-androideabi aarch64-linux-android
) JAVA_HOME
must point to a java implementation
Building
To build the android library locally you first need to clone fcast-sdk-jitpack locally, build the rust binaries and generate the UniFFI kotlin module:
$ cargo xtask kotlin build-android-library --release --src-dir <path-to-fcast-sdk-jitpack>/src
Then follow the Local testing
section here.
IOS
If iphonesimulator SDK
is not found when running the build commands, execute the following:
$ # xcode-select --switch /Applications/Xcode.app/Contents/Developer/
Additional required tools
- The
aarch64-apple-ios-sim
andaarch64-apple-ios
rustc targets (can be installed with rustup:rustup target add aarch64-apple-ios-sim aarch64-apple-ios
)
Building
Execute:
$ cargo xtask generate-ios
You can now import the SDK in your project by drag and dropping ios-bindings/uniffi/{fcast_sender_sdk.swift, fcast_sender_sdkFFI.h}
and ios-bindings/fcast_sender_sdk.xcframework
into Xcode.