-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Closed
Labels
enhancementFeature not a bugFeature not a bug
Milestone
Description
For the release OkHttp 3.13 I’d like to change our requirements from this:
- Android 2.3+ (released December 6, 2010)
- Java 7+ (released July 2011)
To this:
- Android 5.0+ (released November 12, 2014)
- Java 8+ (released March 2014)
These minimums ensure our TLS stack supports both TLSv1.2 and ALPN. Requiring TLSv1.2 is important because we’re soon going to disable TLSv1.0 and TLSv1.1 by default!
I think we want to ship Java 8 bytecode and use lambas and method references. Downstream Android applications may need to enable desugaring in D8 when building APKs.
We should avoid hard requirements on Java 8 APIs (java.time). We will instead continue to offer them as convenience overloads. Java 8 APIs aren’t available until API 26 (released August 2017).
JayNewstrom, connyduck, yschimke, charlag, Virgiel and 94 moreTolriq, PromanSEW, rubengees, YassinAJDI, rsrsaa and 22 moresharukhmohammed
Metadata
Metadata
Assignees
Labels
enhancementFeature not a bugFeature not a bug