Skip to content

SRGSSR/google-cast-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

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 with the framework version number and the checksum that you obtained. Also update the deployment target according to the official SDK documentation.
  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 repostory grows.