Skip to content

Add Android no-op stub for preventUniversalLinks#12

Merged
artemlitch merged 1 commit intomasterfrom
artem/prevent-universal-links-v2
May 8, 2026
Merged

Add Android no-op stub for preventUniversalLinks#12
artemlitch merged 1 commit intomasterfrom
artem/prevent-universal-links-v2

Conversation

@artemlitch
Copy link
Copy Markdown
Collaborator

Summary

PR #10 added preventUniversalLinks to the codegen spec (src/RNCWebViewNativeComponent.ts) with iOS-only implementation. RN codegen emits a single RNCWebViewManagerInterface for both platforms, so Android fails to compile:

error: RNCWebViewManager is not abstract and does not override
abstract method setPreventUniversalLinks(RNCWebViewWrapper, ReadableArray)
in RNCWebViewManagerInterface

This adds a no-op stub in the newarch Android manager, mirroring the existing pattern (b3919a9: setBounces, setLimitsNavigationsToAppBoundDomains, setTintColor, setScrollsToTop, setDragInteractionEnabled).

Test plan

  • Bookwise Android EAS build succeeds at :react-native-webview:compileReleaseJavaWithJavac

🤖 Generated with Claude Code

Commit 588534c added preventUniversalLinks to the codegen spec
(src/RNCWebViewNativeComponent.ts) but only implemented iOS. Codegen
generates a single Java interface for all platforms, so Android fails
to compile (RNCWebViewManager is not abstract and does not override
setPreventUniversalLinks) without a stub. Mirrors b3919a9.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@artemlitch artemlitch merged commit b822f81 into master May 8, 2026
10 of 18 checks passed
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.

1 participant