Skip to content

SRGSSR/google-cast-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Cast SDK

Until Google provides SPM support for its Google Cast SDK this repository delivers official XCFrameworks as Swift packages for easy integration into projects.

Integration

Use Swift Package Manager directly within Xcode. You can also declare the library as a dependency of another one directly in the associated Package.swift manifest.

Make the XCFramework available

To make the generated framework available:

  1. Download the Dynamic framework from the Google Cast SDK manual setup.
  2. Rename the corresponding zip as GoogleCast.xcframework.zip.
  3. Calculate the zip checksum using swift package compute-checksum /path/to/GoogleCast.xcframework.zip
  4. Update the Package.swift in this repository:
    • Bump the framework version number to match the new SDK version.
    • Replace the existing checksum with the value obtained above.
    • Adjust the deployment target according to the official SDK documentation.
    • Update the swift-tools-version to a version that supports the selected deployment target.
  5. Commit the changes on main and create a corresponding tag.
  6. Push the commit and the tag to GitHub.
  7. Attach the binary to the tag on GitHub.

Do not commit the binaries in the repository, as this would slow down checkouts made by SPM as the repository grows.