-
Notifications
You must be signed in to change notification settings - Fork 11
Remove conscrypt #77
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
Remove conscrypt #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes the Conscrypt dependency from the main library implementation and moves it to test scope only. The main changes replace the direct usage of Conscrypt's default trust manager with the standard Java TrustManagerFactory API for retrieving the system trust manager.
- Replaced
Conscrypt.getDefaultX509TrustManager()with standardTrustManagerFactoryAPI - Moved Conscrypt dependency from
implementationtoandroidTestImplementation - Reorganized test files to consolidate Conscrypt-related tests
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| CustomCertStore.kt | Replaced Conscrypt-specific trust manager retrieval with standard Java TrustManagerFactory API |
| CustomCertManager.kt | Removed Conscrypt initialization from companion object |
| OkhttpTest.kt | Moved Conscrypt initialization to @Before method and removed Conscrypt-specific test |
| ConscryptTest.kt | Deleted file (tests moved to ConscryptIntegrationTest.kt) |
| ConscryptIntegrationTest.kt | New file consolidating Conscrypt-related tests from other files |
| ConscryptIntegration.kt | New test utility file for initializing Conscrypt in tests |
| build.gradle.kts | Moved Conscrypt from implementation to androidTestImplementation dependency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
rfc2822
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
ArnyminerZ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Feel free to merge :)
Remove conscrypt but keep it in integration tests. Projects using cert4android should themselves decide whether they want to use conscrypt or not.