1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-08-22 23:32:50 +00:00
fcast/sdk/sender
Marcus Hanestad afc46f3022 Sender SDK
2025-08-21 14:49:52 +00:00
..
chromecast-protocol Sender SDK 2025-08-21 14:49:52 +00:00
examples Sender SDK 2025-08-21 14:49:52 +00:00
fcast-sender-sdk Sender SDK 2025-08-21 14:49:52 +00:00
fuzz Sender SDK 2025-08-21 14:49:52 +00:00
http Sender SDK 2025-08-21 14:49:52 +00:00
parsers-common Sender SDK 2025-08-21 14:49:52 +00:00
xtask Sender SDK 2025-08-21 14:49:52 +00:00
.gitlab-ci.yml Sender SDK 2025-08-21 14:49:52 +00:00
Dockerfile Sender SDK 2025-08-21 14:49:52 +00:00
README.md Sender SDK 2025-08-21 14:49:52 +00:00

FCast Sender SDK

Required tools

Android

Additional required tools

  • cargo-ndk
  • The aarch64-linux-android, i686-linux-android, armv7-linux-androideabi and x86_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 and aarch64-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.