chore(expo): Revert iOS Google Sign-In Expo module registration#8908
chore(expo): Revert iOS Google Sign-In Expo module registration#8908wobsoriano wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: 909702b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThe iOS ChangesiOS Google Sign-In RCTBridgeModule Revert
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Comment |
|
!snapshot |
API Changes Report
Summary
No API Changes DetectedAll packages have stable APIs with no detected changes. Report generated by Break Check Last ran on |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/expo/ios/ClerkGoogleSignInModule.swift (1)
20-33:⚠️ Potential issue | 🟠 Major | ⚡ Quick win
hostedDomainis currently a no-op in iOS configuration.Line 24 stores
hostedDomain, but the value is never applied when building the sign-in configuration (Lines 27-30). This breaks theconfigure({ hostedDomain })behavior contract and makes domain restriction ineffective on iOS.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/expo/ios/ClerkGoogleSignInModule.swift` around lines 20 - 33, The configure method in ClerkGoogleSignInModule is storing the hostedDomain parameter in self.hostedDomain but never applying it to the GIDConfiguration object. To fix this, when creating the GIDConfiguration instance (between the opening and closing of the GIDConfiguration initializer), include the hostedDomain value that was extracted earlier. Set the hostedDomain property on the config object or pass it as a parameter to GIDConfiguration if supported, ensuring that the domain restriction is actually applied to the sign-in configuration before assigning it to GIDSignIn.sharedInstance.configuration.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@packages/expo/ios/ClerkGoogleSignInModule.swift`:
- Around line 20-33: The configure method in ClerkGoogleSignInModule is storing
the hostedDomain parameter in self.hostedDomain but never applying it to the
GIDConfiguration object. To fix this, when creating the GIDConfiguration
instance (between the opening and closing of the GIDConfiguration initializer),
include the hostedDomain value that was extracted earlier. Set the hostedDomain
property on the config object or pass it as a parameter to GIDConfiguration if
supported, ensuring that the domain restriction is actually applied to the
sign-in configuration before assigning it to
GIDSignIn.sharedInstance.configuration.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Repository UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: ed41306b-49a1-4a12-a0d3-b56764ffd0d0
📒 Files selected for processing (6)
.changeset/tall-cameras-laugh.mdpackages/expo/expo-module.config.jsonpackages/expo/ios/ClerkGoogleSignIn.podspecpackages/expo/ios/ClerkGoogleSignInModule.mpackages/expo/ios/ClerkGoogleSignInModule.swiftpackages/expo/src/specs/NativeClerkGoogleSignIn.ts
💤 Files with no reviewable changes (1)
- packages/expo/expo-module.config.json
Description
Reverts the iOS Google Sign-In module registration added in #8901
The Expo module registration caused iOS builds to compile
ClerkGoogleSignInModule.swiftas an Expo module, which introduced build failures for apps that do not use native Google Sign-In:This restores the previous React bridge setup for the iOS Google Sign-In module and removes
the added Google pod dependencies that were part of the Expo module registration change.
The follow-up behavior fixes from #8903/#8905 are intentionally kept.
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit
Bug Fixes
Chores
@clerk/expopackage.