Jesse Wilson
a2b9c0cf24
Prepare for release .
parent-
2025-05-29 08:27:38 -04:00
renovate[bot]
b70841f56a
Update dependency com.android.tools.build:gradle to v8.10.1 ( #8819 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-28 20:21:15 -04:00
Jesse Wilson
90d3a6b7c1
Be consistent about syntax to lock, wait, and notify ( #8818 )
...
The Dispatcher class is an outlier here as it cannot implement
the Lockable interface without that leaking into its public API.
We do without in that case.
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-28 19:28:25 -04:00
Jesse Wilson
acd192ade5
Change the locking mechanism to 'synchronized' ( #8817 )
...
* Change the locking mechanism to 'synchronized'
We migrated to ReentrantReadWriteLock to better support Loom,
but now we can use synchronized and still support Loom.
This old mechanism may be faster than ReentrantReadWriteLock.
* Update okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/Lockable.kt
Co-authored-by: Yuri Schimke <yuri@schimke.ee >
---------
Co-authored-by: Jesse Wilson <jesse@swank.ca >
Co-authored-by: Yuri Schimke <yuri@schimke.ee >
2025-05-28 13:15:47 -04:00
renovate[bot]
1ae04ad8ba
Update dependency com.diffplug.spotless:spotless-plugin-gradle to v7.0.4 ( #8814 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-27 22:21:56 -04:00
Jesse Wilson
7e83c84f50
Start using BufferedSource.indexOf() with a toIndex ( #8813 )
...
* Upgrade Okio to 3.12.0
* Start using BufferedSource.indexOf() with a toIndex
This avoids the need for the new FixedLengthSource class.
---------
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 22:11:14 -04:00
Jesse Wilson
82a37936be
Upgrade Okio to 3.12.0 ( #8812 )
...
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 22:10:54 -04:00
Jesse Wilson
dbf1047ae1
Stop double-compressing the PublicSuffixDatabase ( #8797 )
...
* Stop double-compressing the PublicSuffixDatabase
It's compressed as a .gz file that's also in a .jar file.
Previously the compressed size was 42,502 bytes, and the
total okhttp.jar file was 884,193.
With this change, the total okhttp.jar file is 884,154 bytes.
* PR feedback
* Spotless
2025-05-27 18:00:49 -04:00
Jesse Wilson
cad304afe7
Fix native image tests' build ( #8811 )
...
* Fix native image tests' build
They need friendsImplementation to test internal APIs
* Also fix the package name
---------
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 17:44:11 -04:00
Jesse Wilson
7513e02567
Fix a failing test by adding a FollowUpDecision event ( #8809 )
...
* Fix a failing test by adding a FollowUpDecision event
* Fix up the other events list
---------
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 14:52:42 -04:00
Jesse Wilson
f046fa258a
Inline RequestCommon ( #8806 )
...
* Inline RequestCommon
This is an artifact of our multiplatform exploration.
* Fixup null tags
* Spotless
---------
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 14:34:18 -04:00
Jesse Wilson
6f0b54f08e
Get the OSGi plugin to work with Kotlin/Multiplatform ( #8810 )
...
* Get the OSGi plugin to work with Kotlin/Multiplatform
This introduces a hacky workaround to a BND bug:
https://github.com/bndtools/bnd/issues/6590
* Fix build issues
---------
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 14:34:03 -04:00
Jesse Wilson
d53f069ee0
Inline ResponseCommon ( #8808 )
...
This is an artifact of our multiplatform exploration.
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 11:19:53 -04:00
Jesse Wilson
18632a3227
Inline ChallengeCommon ( #8803 )
...
* Inline ChallengeCommon
This is an artifact of our multiplatform exploration.
* Spotless
2025-05-27 11:01:35 -04:00
Jesse Wilson
2f6a27f048
Split EventListener.retryDecision into retryDecision and followUpDecision ( #8796 )
...
* Split EventListener.retryDecision into retryDecision and followUpDecision
retryDecision has an exception, and is related to
connectivity failures.
followUpDecision has an intermediate response, and is
related to redirects and auth challenges.
This drops the reason strings, which have 'logging brain'
and I want to push our users towards 'metrics brain'.
* Spotless
* apiDump
* Fix another test
---------
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 10:58:02 -04:00
Jesse Wilson
5818ff81e4
Inline RequestBodyCommon ( #8805 )
...
This is an artifact of our multiplatform exploration.
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 10:51:38 -04:00
Jesse Wilson
5e2ac5c8c1
Revert a pessimization in Response.headersContentLength ( #8801 )
...
We don't want to allocate unless we need to.
2025-05-27 10:51:32 -04:00
Jesse Wilson
2bc0b0f25d
Use SHOUTY_CASE for static constants ( #8802 )
...
OkHttp has lots of constants defined from before it was a
Kotlin library, and I'd rather the library be self-consistent
than consistent with Kotlin idioms.
As a bonus we get to remain consistent with Java idioms.
I'd love a Kotlin mechanism to use @JvmField and @JvmName
at the same time, but I can't figure out how.
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 10:51:25 -04:00
Jesse Wilson
dfec824077
Inline ResponseBodyCommon ( #8807 )
...
This is an artifact of our multiplatform exploration.
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 10:51:17 -04:00
Jesse Wilson
45a84f9d8e
Inline MediaTypeCommon ( #8804 )
...
* Inline MediaTypeCommon
This is an artifact of our multiplatform exploration.
* Spotless
---------
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-27 10:51:08 -04:00
Jesse Wilson
66671ed4bd
Use an expect function in BaseJavaTest ( #8791 )
...
* Use an expect function in BaseJavaTest
* Typealias a test runner too
2025-05-23 12:58:05 -04:00
renovate[bot]
ca80fb4767
Update dependency org.apache.httpcomponents.client5:httpclient5 to v5.5 ( #8795 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-22 17:21:46 +02:00
renovate[bot]
56608e28c7
Update dependency gradle to v8.14.1 ( #8794 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-22 17:01:50 +02:00
Jesse Wilson
0e7ec0bc1c
Fix some missing copyright statements ( #8789 )
2025-05-22 10:39:30 -04:00
Jesse Wilson
e9db9cc56b
Don't use uppercase letters in package names ( #8790 )
2025-05-22 10:39:14 -04:00
Jake Wharton
eacd330a8a
Remove Renovate schedule ( #8793 )
...
We're fully caught up, and I do not like that these come in at like 9pm at night rather than just when noticed like every other repo.
2025-05-22 10:38:52 -04:00
Yuri Schimke
50774ca8b9
Remove JDK 8 ALPN runs of module-specific tests ( #8785 )
...
* Remove JDK 8 ALPN runs of module-specific tests
For ALPN and other niche workflows, run only the core tests.
* update osgi comment
* cleanup
2025-05-22 10:38:08 -04:00
renovate[bot]
23821a9848
Update dependency com.puppycrawl.tools:checkstyle to v10.24.0 ( #8792 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-21 23:29:39 -04:00
renovate[bot]
84f86922ed
Update dependency androidx.lint:lint-gradle to v1.0.0-alpha05 ( #8788 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-20 22:35:53 -04:00
renovate[bot]
8ac05d415e
Update plugin org.gradle.toolchains.foojay-resolver-convention to v1 ( #8787 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-19 22:33:57 -04:00
renovate[bot]
18d3a9ea8e
Update dependency de.mannodermaus.gradle.plugins:android-junit5 to v1.12.2.0 ( #8784 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-19 01:00:30 -04:00
renovate[bot]
9556ebb014
Update dependency com.gradleup.shadow:shadow-gradle-plugin to v8.3.6 ( #8783 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-17 23:03:12 -04:00
renovate[bot]
21ec657a79
Update dependency com.google.devtools.ksp:symbol-processing-gradle-plugin to v2.1.21-2.0.1 ( #8782 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-17 22:25:17 -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
renovate[bot]
697e691d51
Update dependency com.squareup:kotlinpoet to v2.2.0 ( #8777 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-16 21:41:32 -04:00
renovate[bot]
c133418cd9
Update retrofit monorepo to v3 ( #8775 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-15 23:44:19 -04:00
renovate[bot]
be2cf97d43
Update dependency com.vanniktech:gradle-maven-publish-plugin to v0.32.0 ( #8773 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-14 22:23:50 -04:00
renovate[bot]
46cf0d2d6b
Update kotlin monorepo to v2.1.21 ( #8770 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-13 21:47:00 -04:00
Jesse Wilson
27ddd2c286
Drop the findbugs dependency ( #8769 )
...
We don't need it.
Co-authored-by: Jesse Wilson <jwilson@squareup.com >
2025-05-13 20:51:50 -04:00
Jesse Wilson
e72cfb12f7
Strengthen the docs on Response.body ( #8768 )
...
Be very explicit about what's allowed and what's not.
2025-05-12 21:45:52 -04:00
Yuri Schimke
e7b86fed23
Fix test with latest JDKs ( #8765 )
...
* Fix test with latest JDKs
Change in https://bugs.openjdk.org/browse/JDK-8335135
> HttpInputStream does not throw IOException when response is truncated
* Update mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
Co-authored-by: Jake Wharton <github@jakewharton.com >
---------
Co-authored-by: Jake Wharton <github@jakewharton.com >
2025-05-10 21:11:56 +01:00
Yuri Schimke
262d7020f2
Cleanup github workflows add latest JDK ( #8652 )
...
* Cleanup github workflows add latest JDK
Co-authored-by: Jake Wharton <github@jakewharton.com >
2025-05-10 14:39:47 +01: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]
889bb7b009
Update dependency com.android.tools.build:gradle to v8.10.0 ( #8764 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-06 22:25:42 -04:00
renovate[bot]
613e17c93f
Update bnd to v7 (major) ( #8725 )
...
* Update bnd to v7
* Avoid tests on JDK < 17
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yuri Schimke <yuri@schimke.ee >
2025-05-05 23:02:57 +01:00
Yuri Schimke
584a46bcf4
Add test for multiple 100 responses ( #8762 )
...
* Add test for multiple 100 responses
* reformat
2025-05-05 22:36:03 +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
木葉 Scarlet
16606fd157
Modify the implementation of readonly list/set ( #8754 )
...
* Modify the implementation of readonly list/set
2025-05-05 17:01:00 +01:00
renovate[bot]
8c7371abd5
Update graalvm ( #8669 )
...
* Update graalvm
* Update path for graal resources
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yuri Schimke <yuri@schimke.ee >
2025-05-05 14:58:58 +01:00