Pin play-services-cast-framework to 22.2.0 to fix Android builds#487
Merged
mblomdahl merged 1 commit intoOwnTube-tv:mainfrom Feb 24, 2026
Merged
Conversation
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
Contributor
There was a problem hiding this comment.
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-castplugin to pinplay-services-cast-frameworkto 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 |
ar9708
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Description
Google released
play-services-cast-framework22.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?
ANDROID_HOME=~/Library/Android/sdk npx expo prebuild --platform android --clean📦 Types of changes
✅ Checklist (copied from README)
npx eslint .andnpx prettier --check ../from the./OwnTube.tv/directory (without errors/warnings)