Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Proxies using NSProxy and Objc #177

Open
wants to merge 7 commits into
base: release/6.8.1
Choose a base branch
from

Conversation

ArielDemarco
Copy link
Collaborator

@ArielDemarco ArielDemarco commented Feb 7, 2025

Overview

We discovered several issues when relying on manually created proxies using NSObject and overriding certain methods, such as responds(to:) and forwardingTarget(for:). While most of these issues can be (and were) resolved, we encountered problems with optional protocols being called from Swift, which could lead to unexpected behavior.

Based on this and other internal discussions, we decided to move forward with a proper proxy by inheriting from NSProxy, allowing us to fully control the messaging chain.

Copy link

github-actions bot commented Feb 7, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link

github-actions bot commented Feb 7, 2025

Warnings
⚠️ Please provide a description for the changes in this Pull Request.

Generated by 🚫 Danger Swift against 71a4d58

@ArielDemarco ArielDemarco changed the base branch from main to release/6.8.1 February 7, 2025 18:25
@ArielDemarco ArielDemarco marked this pull request as ready for review February 7, 2025 20:43
@ArielDemarco ArielDemarco requested a review from a team as a code owner February 7, 2025 20:43
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