Skip to content

refactor: internal classes#19

Merged
andreydobrikov merged 2 commits intomainfrom
refactor/internal-classes
Mar 13, 2026
Merged

refactor: internal classes#19
andreydobrikov merged 2 commits intomainfrom
refactor/internal-classes

Conversation

@andreydobrikov
Copy link
Collaborator

This pull request makes a broad set of access modifier changes across the SDK, changing many classes, interfaces, enums, and static classes from public to internal. This restricts their visibility to within the assembly, which is a common practice to encapsulate implementation details and reduce the public API surface area. Additionally, there is a minor import addition in BrowserDomIframeHandler.cs to include a utility namespace.

The most important changes are:

Access Modifier Restriction (Encapsulation):

  • Changed numerous classes, interfaces, enums, and static classes across files such as ClientAnalyticsIdRepository.cs, IClientAnalyticsIdRepository.cs, AuthDelegator.cs, PKCE.cs, WebGLPopupMessageInterceptor.cs, IWebviewHandler.cs, PrivyEventType.cs, WebViewHandlerForUnsupportedPlatform.cs, and PrivyLogger.cs from public to internal, restricting their visibility to within the assembly. This includes all request/response and data model classes in WebView.cs. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30]

Dependency Update:

  • Added a using Privy.Utils; import to BrowserDomIframeHandler.cs to enable usage of utilities in that file.

These changes help enforce encapsulation and clarify which types are intended for internal use versus public consumption, making the SDK's API surface more intentional and maintainable.

@andreydobrikov andreydobrikov merged commit f6d819a into main Mar 13, 2026
4 checks passed
@andreydobrikov andreydobrikov deleted the refactor/internal-classes branch March 13, 2026 17:14
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.

2 participants