hoding
d84edae945
add Kotlin version and update UploadProgress recipe ( #9033 )
...
* add Kotlin version and update UploadProgress recipe
2025-08-30 18:01:12 +01:00
Jesse Wilson
0984bc3fc5
Improve operability of the crawler sample ( #8964 )
...
I was using it to exercise zstd and the queue
grows unbounded. Putting a limit on it doesn't
harm it.
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-07-22 20:58:06 -04:00
Jesse Wilson
5f3ec584f7
Switch to @StartStop for JUnit 5 tests ( #8863 )
...
* New @StartStop extension for JUnit 5
This is a new take on our JUnit 5 extension. Rather than creating and managing
the MockWebServer instance in the extension, we let the user create it and all
the extension does is manage the lifecycle.
Note that this annotation doesn't require any external configuration - it doesn't
need a system-property to opt-into 'automatic' extensions, and it doesn't require
a class-level extension either.
* apiDump
* Switch to @StartStop for JUnit 5 tests
* Fixup visibility
---------
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-06-18 08:28:21 -04:00
Jesse Wilson
71a759f77e
Move gzip() from RequestBody to Request.Builder ( #8838 )
...
On Request.Builder the one function can add the header
and apply compression. Otherwise the caller needs to
keep those calls in sync.
One severe drawback of this approach is the calls to
Request.Builder are now ordered. If you call gzip()
before you call post(), it'll crash. Worse, if you
call post() and then gzip() and then post() again
with a different body, it'll silently not compress
the new body. I don't love this drawback but I think
the mitigations aren't worth the effort.
2025-06-04 13:43:43 -04:00
Jake Wharton
55d846a7d8
Allow Renovate to update KSP by specifying it correctly ( #8778 )
2025-05-17 01:15:32 -04:00
Jake Wharton
6c12fa18fa
Switch to maintained Shadow plugin ( #8779 )
2025-05-17 01:15:23 -04:00
Yuri Schimke
f2640e0b08
Create a friends configuration to use internals. ( #8651 )
...
* Create a friends configuration to use internals.
From https://www.liutikas.net/2025/01/12/Kotlin-Library-Friends.html we should avoid using
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
So instead lets just be friends.
2025-05-10 12:15:14 +01:00
renovate[bot]
4b1dff6c3f
Update kotlin monorepo to v2.1.20 ( #8708 )
...
* Update kotlin monorepo to v2.1.20
* Update KSP
* Fix osgi
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <jw@squareup.com >
Co-authored-by: Yuri Schimke <yuri@schimke.ee >
2025-05-05 22:16:41 +01:00
renovate[bot]
a51cfbf841
Update dependency com.diffplug.spotless:spotless-plugin-gradle to v7 ( #8702 )
...
* Update dependency com.diffplug.spotless:spotless-plugin-gradle to v7
* Reformat
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <jw@squareup.com >
2025-03-19 15:25:20 -04:00
renovate[bot]
daab95ebff
Update dependency org.apache.httpcomponents.client5:httpclient5 to v5.4.1 ( #8542 )
...
* Update dependency org.apache.httpcomponents.client5:httpclient5 to v5.4.1
* loosen tests
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yuri Schimke <yuri@schimke.ee >
2024-12-28 15:39:03 +00:00
hoding
a88c5d37f8
Upload progress recipe ( #8493 )
2024-12-24 10:35:34 +00:00
Yuri Schimke
ad4c4f0286
Maven dependency checks ( #8431 )
...
* Testing maven dependency checks
* Bump to 1.9.24
2024-06-23 18:02:02 +01:00
Jesse Wilson
d6613810ee
Move coroutines extensions to okhttp3.coroutines ( #8372 )
...
* Move coroutines extensions to okhttp3.coroutines
This has the side-effect of fixing our packaging of this module.
Previously the okhttp-coroutines.jar contained the code from the
:okhttp artifact, not the :okhttp-coroutines artifact. I suspect
something in one of our build steps is incorrectly using the
package names (only) as a cache key, and it should instead be
using the package contents.
* apiDump
2024-04-17 21:24:38 -04:00
Jesse Wilson
6bc0862e4e
Improve some code comments ( #8361 )
2024-04-15 10:55:09 -04:00
Jesse Wilson
d2e91f7cb4
Change parameter order for Cache constructor ( #8338 )
...
* Change parameter order for Cache constructor
Put FileSystem before Path, as is convention.
Also put this new constructor in the public API.
* apiDump
* Track the change in RunSurvey
* Track signature change
2024-04-10 15:46:48 -04:00
renovate[bot]
f4af7f2033
Update plugin com.google.devtools.ksp to v1.9.23-1.0.20 ( #8351 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-07 22:48:17 -04:00
Jesse Wilson
4becb22672
Make sure we have copyright headers ( #8329 )
2024-04-04 23:30:42 -04:00
Jesse Wilson
5b27ba7e82
Clarify a comment on shutting down the dispatcher ( #8328 )
2024-04-04 07:40:21 -04:00
Jesse Wilson
4c62401373
Tidy the tls survey code ( #8324 )
...
* Tidy the tls survey code
* Spotless
2024-04-01 21:44:15 -04:00
Jesse Wilson
6874f11814
Don't depend on external OkHttp from within OkHttp ( #8323 )
...
IntelliJ grabs the wrong one which is quite confusing.
2024-04-01 10:20:08 -04:00
renovate[bot]
368d53742e
Update dependency com.squareup.retrofit2:converter-moshi to v2.11.0 ( #8312 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-30 12:36:30 +00:00
renovate[bot]
475ca1d37e
Update dependency com.squareup.retrofit2:retrofit to v2.11.0 ( #8313 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-30 12:34:45 +00:00
renovate[bot]
b8c6f6283d
Update dependency com.squareup.retrofit2:converter-moshi to v2.10.0 ( #8293 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-18 20:31:48 -04:00
renovate[bot]
49bcdc5be0
Update dependency com.squareup.retrofit2:retrofit to v2.10.0 ( #8294 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-18 20:30:52 -04:00
renovate[bot]
639abfe4f2
Update plugin com.google.devtools.ksp to v1.9.23-1.0.19 ( #8280 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-10 23:44:38 -04:00
renovate[bot]
5369d5b2e7
Update plugin com.google.devtools.ksp to v1.9.22-1.0.18 ( #8272 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-04 06:14:14 +00:00
renovate[bot]
02df2bbe05
Update dependency com.squareup.moshi:moshi-kotlin-codegen to v1.15.1 ( #8237 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-04 21:42:58 -05:00
renovate[bot]
f57bf7d916
Update plugin com.google.devtools.ksp to v1.9.22-1.0.17 ( #8212 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-21 21:52:32 -05:00
renovate[bot]
d1b4734b20
Update plugin com.google.devtools.ksp to v1.9.22-1.0.16 ( #8182 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-08 08:47:38 -05:00
Jesse Wilson
a228fd64cc
Reformat with Spotless ( #8180 )
...
* Enable spotless
* Run spotlessApply
* Fixup trimMargin
* Re-run spotlessApply
2024-01-07 20:13:22 -05:00
Jesse Wilson
0e312d7804
Prepare to enable Spotless ( #8179 )
...
* Prepare to enable Spotless
I'm not super keen on any of these changes, but I am very
keen on having automatic formatting.
* Don't actually enable Spotless yet
2024-01-07 11:05:34 -05:00
Jesse Wilson
eb6c016f6f
Stop using AssertJ ( #8174 )
...
* Stop using AssertJ
This completes the migration to assertk.
* Fix a missing import
* Fix some type issues
2024-01-04 00:32:07 -05:00
Jesse Wilson
e285d4e68b
Even more assertk ( #8151 )
...
* Even more assertk
When we split tests into multiplatform we switched them
from AssertJ to assertk. I'm migrating everything over to
assertk so that I can merge tests back together without
changing assertion APIs.
* Fixup some type conversion problems
2023-12-20 20:54:49 -05:00
renovate[bot]
6185d47a71
Update dependency com.squareup.okhttp3:okhttp-coroutines to v5.0.0-alpha.12 ( #8144 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-18 05:35:08 -05:00
Jesse Wilson
6ba49ad099
Upgrade Kotlin to 1.9.21, Okio to 3.7.0 ( #8140 )
...
* Upgrade Kotlin to 1.9.21, Okio to 3.7.0
* Suppress Boolean.hashCode warning
* call the right cancel
* More AnimalSniffer ignores
2023-12-17 09:19:21 -05:00
罗震宇
60d2a545bc
Close the socket when an exception is thrown ( #8105 )
2023-12-03 16:33:52 -05:00
renovate[bot]
789bb0273b
Update plugin com.google.devtools.ksp to v1.9.0-1.0.13 ( #7972 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-06 21:42:17 -04:00
Yuri Schimke
d03decd45a
Kotlin 1.9 ( #7952 )
2023-07-22 13:28:51 +01:00
renovate[bot]
fe7a0b6201
Update kotlin monorepo to v1.8.21 ( #7858 )
...
* Update kotlin monorepo to v1.8.21
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yuri Schimke <yuri@schimke.ee >
2023-05-27 16:05:49 +01:00
renovate[bot]
0f11240445
Update dependency com.squareup.moshi:moshi-kotlin-codegen to v1.15.0 ( #7835 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-20 20:59:09 +01:00
Yuri Schimke
f408411ff9
Avoid exposing internal methods ( #7734 )
2023-04-23 08:05:59 +01:00
renovate[bot]
64a9c8e4db
Update plugin com.google.devtools.ksp to v1.8.10-1.0.9 ( #7683 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-10 19:27:01 +00:00
Jesse Wilson
585e3c22f7
Restore AnimalSniffer support ( #7672 )
...
It wasn't working because we weren't configuring the dependency type
correctly.
https://github.com/xvik/gradle-animalsniffer-plugin/issues/64
2023-01-29 22:38:07 -05:00
renovate[bot]
1b7360e30a
Update plugin com.google.devtools.ksp to v1.8.0-1.0.9 ( #7669 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-26 15:58:17 +00:00
Jesse Wilson
847b5af240
Avoid InetAddress.getCanonicalHostName(). ( #7607 )
...
Just hard-coding 'localhost' is simpler and avoids problems where
the host machine's IP address has additional DNS registrations.
Closes: https://github.com/square/okhttp/issues/7603
2023-01-02 09:04:37 -05:00
Yuri Schimke
eba89ae4a0
Fix JavaHttpClientTest tests on JDK 19 ( #7618 )
2023-01-02 21:25:57 +10:00
Yuri Schimke
7287352b26
Add a CI build for JDK 19 ( #7614 )
2023-01-02 20:09:35 +10:00
Jesse Wilson
fe6db78647
Get more TLS stuff passing on BouncyCastle ( #7602 )
...
There's something up with ECDSA on BouncyCastle, and rather
than figuring it out I've just switched to RSA signatures
with that provider.
2022-12-31 20:39:55 -05:00
Yuri Schimke
1406944e1c
Kotlin 1.8 ( #7575 )
...
* Kotlin 1.8 testing
* Kotlin 1.8 testing
* fix api
* Updates
* Updates
* Workaround build issue
2022-12-30 09:41:51 -05:00
Jesse Wilson
3ca2e64744
Clean up some Mockwebserver3 internals ( #7582 )
2022-12-29 06:27:59 +10:00