Yuri Schimke
24c7d54ecb
Handle localhost as ipv6 without bracket quoting ( #5297 )
...
* Handle ipv6 hostnames without bracket quoting
* simplify
* Add ipv4 localhost test
* Update RecordedRequest.kt
2019-07-23 23:15:53 -04:00
Yuri Schimke
076e976c10
Picocli ( #5207 )
...
Switch from airline to picocli, which is more graal compatible and has nicer default output.
2019-07-19 15:15:05 +01:00
Yuri Schimke
ed25f41e48
Basic Android Instrumentation Test ( #5253 )
...
Runnable with
```
ANDROID_SDK_ROOT=... ./gradlew connectedCheck
```
2019-07-16 23:15:20 +01:00
Yuri Schimke
2c7811a64a
Move flaky issues to comments ( #5289 )
2019-07-16 22:50:51 +01:00
Yuri Schimke
a6c4ff6e44
Output client events after tagged @Flaky tests or failures ( #5217 )
...
Collect additional debugging info for know problem tests or after unplanned failures.
2019-07-16 22:34:32 +01:00
Yuri Schimke
daf49ff1ce
Document kotlin library dependency ( #5273 )
2019-07-16 06:43:43 +01:00
Jesse Wilson
5c5038a87e
Merge pull request #5283 from square/avoid-using-non-null-assertion-20190712
...
Avoid using non-null assertion in ConnectionSpec
2019-07-15 21:45:44 -04:00
Yuri Schimke
6903b89e0b
Cleanup of error prone and warnings ( #5268 )
...
* Comment some warnings
* Wrap
* Disable warnings
2019-07-15 21:11:35 -04:00
Masaru Nomura
2712ac83cd
Avoid using non-null assertion in ConnectionSpec
...
To be compatible with OkHttp3, OkHttp4.0 doesn't use non-null assertion.
2019-07-14 21:50:38 -04:00
Jesse Wilson
2d2a9c43af
Merge pull request #5279 from square/jwilson.0710.401_changelog
...
Update the changelog for OkHttp 4.0.1
2019-07-10 11:41:16 -04:00
Jesse Wilson
7292e54a63
Update the changelog for OkHttp 4.0.1
2019-07-10 11:40:44 -04:00
Jesse Wilson
c3fc1d2755
Merge pull request #5276 from square/jakew/new-ws-close-codes/2019-07-08
...
Support new IANA WS close codes
2019-07-08 19:04:58 -04:00
Jake Wharton
a70f33635b
Support new IANA WS close codes
...
https://www.iana.org/assignments/websocket/websocket.txt
2019-07-08 13:49:54 -04:00
Yuri Schimke
f2be5c3465
Check gzip response in brotli interceptor ( #5274 )
...
* Check gzip response in brotli interceptor
* Update BrotliInterceptorTest.kt
2019-07-07 11:08:36 -04:00
Jesse Wilson
1f8d27ca9f
Merge pull request #5272 from yschimke/kotlin_upgrade
...
Kotlin upgrade to 1.3.41
2019-07-06 16:07:12 -04:00
Yuri Schimke
5430948211
Gradle Wrapper 5.5 ( #5271 )
...
* Gradle Wrapper 5.5
* Binary
2019-07-06 16:04:32 -04:00
Yuri Schimke
fad620526f
Kotlin upgrade to 1.3.41
...
Automatically prompted by IDE
2019-07-06 19:58:33 +01:00
Yuri Schimke
3abc3e597f
Brotli Interceptor ( #5088 )
...
Brotli compression Interceptor that also supports gzip, as transparent handling is disabled.
2019-07-06 11:46:31 +01:00
Yuri Schimke
930d4d07d8
Passing conscrypt test ( #5270 )
2019-07-06 09:03:50 +01:00
Jesse Wilson
fdbffbfebf
Merge pull request #5267 from square/add-null-protocol-test
...
Add test: OkHttpClient.Builder.protocols(...) doesn't accept null
2019-07-04 17:24:51 -04:00
Masaru Nomura
f346acaa42
Add test: OkHttpClient.Builder.protocols(...) doesn't accept null
2019-07-04 01:40:50 -04:00
Yuri Schimke
97abbec6c0
Java internal compatibility e.g. HttpHeaders.hasBody ( #5251 )
2019-07-03 22:00:52 +01:00
Yuri Schimke
7bba4a0e36
Bouncy castle upgrade ( #5264 )
...
* Bouncy castle upgrade
* Testing on more platforms
* Revert CI change
2019-07-03 12:19:41 -04:00
Yuri Schimke
16b7e36968
Fix for conscrypt tests ( #5263 )
2019-07-03 07:20:28 +01:00
Jesse Wilson
83361312e8
Merge pull request #5256 from square/jwilson.0701.java8
...
Add a note on Java 8 to the upgrade guide
2019-07-02 17:34:21 -04:00
Jesse Wilson
447d74d954
Merge pull request #5260 from square/jakew/null-hostile-list/2019-07-02
...
Tolerate null-hostile lists in public API
2019-07-02 17:33:28 -04:00
Jesse Wilson
752fcd8218
Add a note on Java 8 to the upgrade guide
2019-07-02 11:24:39 -04:00
Jake Wharton
675cb843ce
Tolerate null-hostile lists in public API
2019-07-02 09:25:42 -04:00
Yuri Schimke
bdd6c3944f
Testing with JDK 12 and latest 11.0.3 ( #5212 )
...
JDK 12 and be more specific about when we expect failures, e.g. 11.0.3 has fixes we should take into account.
2019-07-02 07:21:58 +01:00
Zac Sweers
81b0feeea9
Parallelize tests based on available processors ( #4902 )
...
* Parallelize tests based on available processors
This brings down `:okhttp:test` (the biggest bottle neck) time on my local machine from ~2m11s to ~39s.
Build scans:
* Without parallelization: https://scans.gradle.com/s/nmjkdjflng4o4
* With parallelization: https://scans.gradle.com/s/3oebsmkfwetiy
2019-06-30 07:38:12 +01:00
marcinbak
c6c7ce7dad
DiskLruCache snapshot() method removing entries that are being cached ( #3905 )
...
Fixed a bug I found.
When using DiskLruCache, hasNext() method of Iterator<Snapshot> returned by snapshot() method iterates through lruEntries, however if entry is not completed yet, it is removed (together with dirtyFiles) as cleanFiles don't exist yet - during saving response to disk. This caused sometimes file not being cached at all.
2019-06-29 20:08:31 +01:00
Galder Zamarreño
070301d164
Bind temporary socket to loopback address #4682 ( #4693 )
2019-06-29 20:02:21 +01:00
Jake Wharton
d0ea471d18
Add ResponseBody.byteString convenience function ( #5141 )
2019-06-27 07:51:06 +01:00
Jesse Wilson
9998dbc2a3
Prepare next development version.
2019-06-26 19:30:41 -07:00
Jesse Wilson
911c5bf5b2
Prepare for release 4.0.0.
parent-4.0.0
2019-06-26 19:30:33 -07:00
Jesse Wilson
fafcf4b822
Merge pull request #5242 from yschimke/prefer_jdk11
...
Prefer JDK 11 for tests
2019-06-26 18:28:22 -07:00
Yuri Schimke
c88f9a9ed3
Prefer JDK 11 for tests
2019-06-26 21:45:30 +01:00
Yuri Schimke
b7e6f4fc85
Fix conscrypt tests ( #5241 )
2019-06-26 19:59:04 +01:00
Yuri Schimke
d81ec0f23b
OkHttpClientTestRule check connectionCount instead of idle ( #5226 )
...
* OkHttpClientTestRule check connectionCount instead of idle
Clients should be clean after use, not just from idle connections.
* Abandon unclean clients
* Simplify logic
2019-06-25 22:34:51 -07:00
Jesse Wilson
d1b99e6925
Merge pull request #5239 from square/jakew/eleven/2019-06-25
...
Run error-prone on JDK 11
2019-06-26 00:20:28 -04:00
Jesse Wilson
24c05751d8
Merge pull request #5238 from square/jakew/eight/2019-06-25
...
Target Java 8 bytecode for Java and Kotlin
2019-06-26 00:13:55 -04:00
Jake Wharton
4607fe8768
Run error-prone on JDK 11
...
JDK 12+ is where it currently is unsupported.
2019-06-25 22:56:36 -04:00
Jake Wharton
0bdd6790f4
Target Java 8 bytecode for Java and Kotlin
2019-06-25 21:09:33 -04:00
Yuri Schimke
321791908a
Allow nullable on Util.close ( #5224 )
...
Enforce null check in java with any mutable nullable closable
2019-06-25 07:24:40 +01:00
Yuri Schimke
b16b63fa4a
Enable additional passing tests for conscrypt ( #5227 )
...
* Testing conscrypt
* Revert circleci
2019-06-24 19:27:27 -07:00
Jesse Wilson
abe49cf435
Merge pull request #5235 from square/jwilson.0624.coc
...
Import Square's Open Source Code of Conduct
2019-06-24 19:13:03 -07:00
Jesse Wilson
644a104570
Merge pull request #5233 from adrw/patch-1
...
Add favicon to docs site
2019-06-24 19:03:50 -07:00
Jesse Wilson
2bb4572ed6
Merge pull request #5234 from square/jwilson.0624.suppress_tests
...
Suppress AllMainsTest.
2019-06-24 19:03:31 -07:00
Jesse Wilson
eee8f6e5b9
Import Square's Open Source Code of Conduct
...
Source:
https://medium.com/square-corner-blog/open-source-code-of-conduct-e5c4dc56229e
2019-06-24 18:59:06 -07:00
Jesse Wilson
510b911aea
Prepare next development version.
2019-06-24 16:44:26 -07:00