Skip to content

Pin play-services-cast-framework to 22.2.0 to fix Android builds#487

Merged
mblomdahl merged 1 commit intoOwnTube-tv:mainfrom
mblomdahl:fix/pin-cast-framework-version
Feb 24, 2026
Merged

Pin play-services-cast-framework to 22.2.0 to fix Android builds#487
mblomdahl merged 1 commit intoOwnTube-tv:mainfrom
mblomdahl:fix/pin-cast-framework-version

Conversation

@mblomdahl
Copy link
Copy Markdown
Contributor

🚀 Description

Google released play-services-cast-framework 22.3.0 compiled with Kotlin 2.2.0 metadata, which is incompatible with the project's Kotlin 2.0.21 compiler. Pin to 22.2.0 (the latest compatible version) using the react-native-google-cast plugin's built-in version prop.

Closes #486

🧪 How Has This Been Tested?

  • Web (desktop)
  • Web (mobile)
  • Mobile (iOS)
  • Mobile (Android) by running ANDROID_HOME=~/Library/Android/sdk npx expo prebuild --platform android --clean
  • TV (Android)
  • TV (Apple)

📦 Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

✅ Checklist (copied from README)

  • Squash your changes into a single clear and thoroughly descriptive commit, split changes into multiple commits only when it contributes to readability
  • Reference the GitHub issue that you are contributing on in your commit title or body
  • Sign your commits, as this is required by the automated GitHub PR checks
  • Ensure that the changes adhere to the project code style and formatting rules by running npx eslint . and npx prettier --check ../ from the ./OwnTube.tv/ directory (without errors/warnings)
  • Include links and illustrations in your pull request to make it easy to review
  • Request a review by @mykhailodanilenko, @ar9708 and @mblomdahl

Google released `play-services-cast-framework` 22.3.0 compiled with Kotlin 2.2.0 metadata, which is incompatible with the project's Kotlin 2.0.21 compiler. Pin to 22.2.0 (the latest compatible version) using the react-native-google-cast plugin's built-in version prop.

Closes OwnTube-tv#486
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a critical Android build failure caused by a Kotlin metadata version incompatibility. Google released play-services-cast-framework version 22.3.0 compiled with Kotlin 2.2.0 metadata, but the project uses Kotlin 2.0.21 (bundled with Expo SDK 52 / React Native 0.76). The fix pins the Google Cast framework to version 22.2.0, the latest version compiled with a compatible Kotlin version, using the react-native-google-cast plugin's built-in configuration option.

Changes:

  • Configured react-native-google-cast plugin to pin play-services-cast-framework to version 22.2.0
  • Updated CLAUDE.md documentation to explain the Kotlin version constraints and Google Cast dependency pinning strategy

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
OwnTube.tv/app.config.ts Added androidPlayServicesCastFrameworkVersion: "22.2.0" configuration to the react-native-google-cast plugin
CLAUDE.md Added documentation explaining Kotlin version (2.0.21) constraints and Google Cast library version pinning rationale

@mblomdahl mblomdahl merged commit 230cb67 into OwnTube-tv:main Feb 24, 2026
5 checks passed
@mblomdahl mblomdahl deleted the fix/pin-cast-framework-version branch February 24, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android builds fail due to Kotlin metadata version mismatch with play-services-cast-framework 22.3.0

3 participants