1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-14 07:22:20 +03:00
Commit Graph

25 Commits

Author SHA1 Message Date
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
Yuri Schimke
3bed816c91 Add a configurable AndroidLogging API (#7844) 2024-04-01 12:07:32 +01:00
Yuri Schimke
1ede680245 Comment on AndroidAsyncDns errors (#8322) 2024-04-01 11:07:48 +01:00
Jesse Wilson
373822e239 Mechanically tag all new APIs as @ExperimentalOkHttpApi (#8216)
* Mechanically tag all new APIs as @ExperimentalOkHttpApi

In a follow-up PR I intend to remove the annotation on any
API that we're willing to commit to for OkHttp 5.0.0.

In a follow-up PR I'd also like to hide all remaining
APIs from Java langauge callers.

* Opt-in ExperimentalOkHttpApi for Android projects too

---------

Co-authored-by: Benoit Quenaudon <benoit@quenaudon.com>
2024-01-23 09:31:42 -05:00
Yuri Schimke
296baa5918 Handle DnsResolver direct exception on API 34 (#8190) 2024-01-22 20:07:09 +00: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
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
Yuri Schimke
a696d4d333 Fix android test targetSdk (#8158) 2023-12-24 06:39:41 +00:00
Jesse Wilson
c056530682 Switch back to the kotlin JVM plugin (#8149)
* Switch back to the kotlin JVM plugin

This does a ton of file moves from jvmMain to main, and jvmTest to test.

* Don't use AnimalSniffer on okcurl

* Use assertk more (#8150)
2023-12-20 18:27:07 -05:00
Jesse Wilson
c9f62b501a Advertise 4.12.0 in docs 2023-12-17 10:34:10 -05:00
Yuri Schimke
c309709dbd AGP 8 (#7918) 2023-07-09 12:08:42 +01:00
Yuri Schimke
a05ee927eb Fix Android instrumentation tests on API 21 (#7871) 2023-05-28 09:30:27 +01:00
Yuri Schimke
b14b129a3f Run okhttp-android unit tests (#7865) 2023-05-27 19:24:38 +01:00
Yuri Schimke
7e7f1b3943 Add a robolectric test to android-test (#7847) 2023-05-27 16:21:51 +01:00
Yuri Schimke
248b0e6318 Update Release version (#7792) 2023-05-01 11:27:57 +01:00
TangHuaiZhe
d7c3cedd67 Refine doc and comments about android test (#7694) 2023-02-14 10:26:50 +02: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
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
Yuri Schimke
37c1001453 Fix android tests (#7464) 2022-09-24 17:28:22 +01:00
renovate[bot]
04d142972d Update dependency com.vanniktech:gradle-maven-publish-plugin to v0.22.0 (#7442)
* Update dependency com.vanniktech:gradle-maven-publish-plugin to v0.22.0

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yuri Schimke <yuri@schimke.ee>
2022-09-10 11:21:57 +01:00
Jesse Wilson
e9a3ad3d94 4.10.0 is out 2022-06-12 10:09:53 -04:00
Jesse Wilson
afc7fa3700 Delete the unused tunnelProxy argument (#7317)
* Delete the unused tunnelProxy argument

* Update API spec
2022-06-09 13:14:05 -04:00
Jesse Wilson
79f50e1911 Add a proper Kotlin constructor for Request (#7208)
* Add a proper Kotlin constructor for Request

This turns out to be very useful throughout our test suite.

* Dump updated API

* Fix multipleTags Kotlin conversion
2022-04-04 09:44:43 -04:00
Yuri Schimke
7b40b33c33 Include an okhttp-android baseline. (#7172)
Evaluating the benefit of a baseline profile for okhttp.

Apps that use baseline profiles, but test the activities rather than network requests would benefit.
2022-03-21 11:22:00 +00:00
Yuri Schimke
fc77503303 Android module and Async Dns (#7157)
Adds an android module as an aar file.  The first functionality is an AsyncDns implementation for Android DnsResolver.
2022-03-20 06:48:45 +00:00