-
Notifications
You must be signed in to change notification settings - Fork 564
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: remove conscrypt lib, use own trust manager, refine networking #1319
base: master
Are you sure you want to change the base?
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.
This needs testing before merge, however before that I want to ask why you restrict the API to hashmap when Map is the interface all maps implement. This allows for HashMap
, LinkedHashMap
, and TreeMap
to share the implementation.
not any special reason, hashmap is not necessary, i can revert to map if you want , only thing that can be said it looks consistent or more like strict way of managing headers |
This is still a draft, what are you plans? |
I will upstream it and resolve conflicts this weekend. |
# Conflicts: # app/build.gradle.kts # app/src/main/java/com/lagradost/cloudstream3/network/RequestsHelper.kt
val settingsManager = PreferenceManager.getDefaultSharedPreferences(context) | ||
val dns = settingsManager.getInt(context.getString(R.string.dns_pref), 0) | ||
|
||
val builder = OkHttpClient.Builder() |
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.
I do not understand, you never use this builder anywhere? Are you sure you dont mean val baseClient = builder.
...
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.
we building the base client only right with custom dns ?
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.
Yes, but where exactly is builder
variable used below this line? It looks like it is garbage collected after the return, as it is not used or returned.
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.
Merged into a single builder and returned as one base client
problem in 5.2.3 version crash in main act