-
Notifications
You must be signed in to change notification settings - Fork 39
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
fix: support datafile download and events upload for API-16 #373
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.
overall looks good to me. Just one comment and all headers needs to get updated.
} | ||
|
||
private Socket enableTLSOnSocket(Socket socket) { | ||
if(socket != null && (socket instanceof SSLSocket)) { |
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.
socket != null is not required before instanceof check. So I think we can remove it
@@ -0,0 +1,72 @@ | |||
package com.optimizely.ab.android.shared; |
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.
Add header
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.
LGTM
Summary
Android devices with API-19 and lower is set by default to use SSL lower than the our server requirements (TLS1.2+).
With this fix, those low-API devices will be set to use TLS1.2 for both datafile download and event upload.
Test plan
Issues