Yuri Schimke
95cb15ab4d
Disable javadoc ( #8025 )
2023-09-16 10:38:35 +01:00
Yuri Schimke
248b0e6318
Update Release version ( #7792 )
2023-05-01 11:27:57 +01:00
Yuri Schimke
505f06dd68
Retry flaky test ( #7632 )
2023-01-05 22:00:05 +10:00
Jesse Wilson
3ca2e64744
Clean up some Mockwebserver3 internals ( #7582 )
2022-12-29 06:27:59 +10:00
Jesse Wilson
fe15ccda5b
Switch to a Builder for mockwebserver3.MockResponse ( #7578 )
...
* Switch to a Builder for mockwebserver3.MockResponse
* Migrate lots of tests to MockResponse.Builder
* Improve some code style
* Follow naming conventions in MockResponse.Builder
* Apply side-effects for inTunnel=true
* Update the API
2022-12-28 10:13:49 -05:00
Yuri Schimke
58ee1ce170
Revert downgrade to 1.4 for gradle reasons ( #7391 )
...
* Revert "Downgrade to kotlin apiVersion 1.4 (#7267 )"
* Revert "Improve runtime compatibility with kotlin 1.5.31 (#7343 )"
* Revert "Remove usage of toDuration() (#7329 )"
2022-07-25 17:57:09 +01:00
Yuri Schimke
68c36fd5b6
Fix android tests ( #7374 )
2022-07-16 12:36:06 +01:00
Jesse Wilson
e9a3ad3d94
4.10.0 is out
2022-06-12 10:09:53 -04:00
Yuri Schimke
6ad9fb12b6
Downgrade to kotlin apiVersion 1.4 ( #7267 )
...
* Test against kotlin 1.4
* Compile down to Kotlin 1.4
* Fix to use the invariant locale for lowercase
* Fix to use the invariant locale for lowercase
2022-06-08 10:44:30 -04:00
Jesse Wilson
b9267b0ce7
Make Response.body non-null ( #7205 )
...
This is a source-incompatible API change. In particular, Response.body(null)
is no longer source-compatible for Kotlin source.
The upside is tremendous: no need for callers to use !! on Response.body
on every single API call. In the rare cases where a Response doesn't have
a body we use a runtime error. This is unlikely to cause problems in
practice; users don't have reason to read the response body on supporting
responses.
2022-04-02 13:17:00 -04:00
Jesse Wilson
bdc213f180
Remove japicmp ( #7118 )
...
This plugin served us very well for a long time. But the binary
compatibility plugin is better suited for our current situation.
2022-02-27 10:20:06 -05:00
Jesse Wilson
3e16ec28fe
Adopt Kotlin's binary compatibility validator ( #7112 )
2022-02-26 14:17:33 -05:00
Yuri Schimke
362f53546d
Adopt Version Catalog and Updates plugin ( #7075 )
2022-02-15 23:38:32 +00:00
Goooler
f5758b7f26
Enable Gradle's type-safe project accessors ( #7069 )
2022-02-08 20:01:28 +00:00
Goooler
8debc78b00
Simplify gradle kts ( #6931 )
2021-11-27 12:31:27 +00:00
Jesse Wilson
d9a65a85c5
Switch to Vanniktech for Maven publishing ( #6929 )
...
* Switch to Vanniktech for Maven publishing
Steal configuration from Okio, which already works nicely.
* Update mockwebserver-junit5/build.gradle.kts
Co-authored-by: Benoît Quenaudon <bquenaudon@squareup.com >
Co-authored-by: Benoît Quenaudon <bquenaudon@squareup.com >
2021-11-26 06:58:00 -05:00
Goooler
d0759a7907
Simplify kts ( #6926 )
...
* Simplify kts
* Use extensions
* Use extensions
* Simplify kts
2021-11-25 19:41:08 -05:00
Goooler
3417fd0e78
Update README files to 4.9.3 ( #6927 )
2021-11-24 09:34:33 -05:00
Jesse Wilson
35bb1740a4
Convert the main build.gradle file to KTS ( #6925 )
...
I attempted to do a literal translation as much as possible.
Subprojects now need plugins to be configured directly so they
can use the appropriate syntax.
2021-11-24 07:19:39 +00:00
Jesse Wilson
192f05dace
Make EventSource.cancel() fail the call immediately ( #6924 )
...
EventSource.cancel() did nothing if it was created by EventSources.processResponse.
All EventSources would continue to process buffered events rather than
breaking out sooner.
2021-11-23 08:14:55 +00:00
Yuri Schimke
4b8880aa29
Android 12 Build Dependency ( #6892 )
...
* Android 12 Build Dependency
* Add extension required for android junit5 runner
2021-11-14 09:35:27 +00:00
Jim Hurne
bcfdb4f2eb
Fix EventSources.processResponse to not throw UninitializedPropertyAccessException ( #6887 )
2021-10-22 17:51:49 +01:00
Jesse Wilson
a87f4b4585
Changelog for OkHttp 4.9.2
2021-09-30 21:13:35 -04:00
Goooler
e016350e5a
Convert module gradle builds files to kts ( #6830 )
2021-08-12 08:36:23 +01:00
Goooler
90f8a7d26f
Refactor applyOsgi & baselineJar to kotlin ( #6823 )
2021-08-12 07:52:29 +01:00
Goooler
b668b75f11
Replace deprecated methods ( #6776 )
2021-07-29 10:08:34 +03:00
Goooler
ef5d0c83f7
Update README files to 4.9.1 ( #6617 )
2021-04-10 07:42:40 +01:00
Yuri Schimke
b607bb0aa8
Partial move to gradle kotlin ( #6532 )
2021-02-06 14:57:47 +00:00
Yuri Schimke
083315a473
Launcher for quick tests ( #6437 )
2020-11-21 13:28:45 +00:00
Yuri Schimke
ff959f8fd5
Android Additional Tests ( #6420 )
2020-11-15 06:42:22 +00:00
Yuri Schimke
4036fa55b7
Update remaining junit4 tests ( #6421 )
2020-11-14 12:21:04 -05:00
Jesse Wilson
59ae0c138d
Convert more tests to JUnit 5 ( #6366 )
2020-11-01 05:46:35 +00:00
Jesse Wilson
963c768643
Migrate all OkHttpClientTestRule uses to JUnit 5 ( #6365 )
2020-10-31 18:51:34 -04:00
Yuri Schimke
e2b868c538
Migrate Logging tests to Junit5 ( #6356 )
2020-10-31 08:10:34 -04:00
Jesse Wilson
8438e360de
Rename mockwebserverwrapper to mockwebserver-deprecated ( #6328 )
2020-10-18 08:55:43 -04:00
Jesse Wilson
3e331c1089
Rename okhttp3.mockwebserver to mockwebserver3 ( #6327 )
...
Also rename okhttp3.mockwebserverwrapper to okhttp3.mockwebserver
Directories are not renamed to minimize the git diff. That'll follow
in a separate commit.
Most users of the API are not impacted. The ones that are:
- CallTest subclasses QueueDispatcher
- DuplexTest uses duplex APIs
- HttpOverHttp2Test subclasses QueueDispatcher
This is part 2 of the plan described here:
https://github.com/square/okhttp/pull/6326
2020-10-18 08:13:09 -04:00
Simon Wimmesberger
b4d66af1da
Publish OSGi metadata for OkHttp
2020-10-06 22:40:28 -04:00
Jesse Wilson
334eb00725
Rename okhttp3.internal.sse to okhttp3.sse.internal ( #6284 )
...
I think this is slightly neater from an OSGi/JPMS perspective.
2020-10-01 21:46:58 -04:00
Jesse Wilson
cbeaf8f955
Prepare for release 4.9.0.
2020-09-11 17:08:20 -04:00
Yuri Schimke
a76c40a935
Kotlin 1.4 dependency upgrade and language features ( #5947 )
2020-09-06 16:36:12 +01:00
Jesse Wilson
96a2118dd4
Release OkHttp 4.8.1.
2020-08-06 10:07:13 -04:00
Jesse Wilson
a70e992c3f
Prepare for release 4.8.0.
2020-07-11 14:01:06 -04:00
Jesse Wilson
4c595553fb
Prepare for release 4.7.2.
2020-05-20 09:06:47 -04:00
Jesse Wilson
186ec88aff
Prepare for release 4.7.1.
2020-05-18 17:46:48 -04:00
Jesse Wilson
ef7c5f358e
Prepare for release 4.7.0.
2020-05-17 13:52:53 -04:00
Yuri Schimke
5f67bd1e5b
Set implicit Accept for EventSource ( #6044 )
2020-05-13 07:33:03 +01:00
Jesse Wilson
0deadd5611
Prepare for release 4.6.0.
2020-04-29 00:52:51 -04:00
Yuri Schimke
86b7ba5f2a
Enable BouncyCastle on Android and add some testing ( #5936 )
2020-04-11 17:35:27 +01:00
Yuri Schimke
19771365f2
Rename to src/main/kotlin ( #5938 )
...
Follows the default path logic for kotlin classes.
2020-04-11 17:15:25 +01:00
Jesse Wilson
ca0c8d6a1a
Prepare for release 4.5.0.
2020-04-06 10:54:10 -04:00