Jesse Wilson
3ad1912f78
Introduce basic multiplatform features to the okhttp build ( #6959 )
...
* Introduce basic multiplatform features to the okhttp build
This PR is mostly about moving files from src/main/kotlin to src/jvmMain/kotlin.
Still to do:
- promote some classes from jvmMain to commonMain
- enable CI to build different platforms independently
* Fix OSGi for multiplatform
2021-12-16 08:22:02 +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
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
Goooler
7d9ea7de2c
Code cleanups ( #6923 )
2021-11-23 20:30:03 -05:00
Jared Burrows
eccd716285
Apply application plugin to crawler sample ( #6847 )
2021-09-12 14:33:23 +01:00
Goooler
e016350e5a
Convert module gradle builds files to kts ( #6830 )
2021-08-12 08:36:23 +01:00
Goooler
8e8c2a6037
Code cleanup ( #6831 )
2021-08-12 08:26:27 +01:00
Goooler
cc3ce11fc4
Code cleanup and imports ( #6822 )
2021-08-03 14:52:10 +03:00
Goooler
c1e4765cec
Extract dependencies to Dependencies ( #6799 )
2021-07-31 15:50:52 +03:00
Goooler
e4c5542e02
Convert part of gradle to kts ( #6775 )
2021-07-29 09:40:27 +03: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
4036fa55b7
Update remaining junit4 tests ( #6421 )
2020-11-14 12:21:04 -05:00
Yuri Schimke
8914698acf
Migrate samples/compare to junit 5 ( #6369 )
2020-11-01 11:57:56 +00:00
Jesse Wilson
59ae0c138d
Convert more tests to JUnit 5 ( #6366 )
2020-11-01 05:46:35 +00: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
Yuri Schimke
190e071283
Java Toolchain for splitting compile and CI test runner ( #6320 )
2020-10-18 06:02:56 +01:00
Yuri Schimke
c7bd25ff21
Yubikey sample ( #6120 )
2020-06-10 22:03:20 -04:00
Yuri Schimke
cfbca0e311
Simplify running the wireshark demo ( #6101 )
...
* Simplify running the wireshark demo
* Better filtering
* Cleanup
* Comments
2020-05-31 15:38:02 -04:00
Yuri Schimke
72227dfb7a
Wireshark Testing sample ( #6060 )
2020-05-29 08:16:56 +01:00
Jesse Wilson
482f88300f
Merge pull request #6040 from square/jwilson.0509.insecureHost
...
HandshakeCertificates.Builder.addInsecureHost()
2020-05-11 18:04:02 -04:00
Jesse Wilson
1364ea44ae
HandshakeCertificates.Builder.addInsecureHost()
...
This API continues the work started here:
https://github.com/square/okhttp/pull/5872
2020-05-11 17:35:02 -04:00
Yuri Schimke
2d21be1184
Custom trust example & API for certificate decoding ( #6032 )
2020-05-09 14:40:15 +01:00
Yuri Schimke
86b7ba5f2a
Enable BouncyCastle on Android and add some testing ( #5936 )
2020-04-11 17:35:27 +01:00
Jesse Wilson
c90b12d78b
Merge pull request #5873 from square/jwilson.0315.compare_others
...
Compare OkHttp vs. other popular HTTP clients
2020-03-17 22:46:46 -04:00
Jesse Wilson
75a3ef97a4
Compare OkHttp vs. other popular HTTP clients
2020-03-17 22:40:50 -04:00
Yuri Schimke
0ea6ca0faa
Allowlist Sample for connecting to Dev servers ( #5868 )
2020-03-16 09:09:22 +00:00
Jesse Wilson
08e23fcd02
Add a canceled event to EventListener
2020-02-16 18:20:49 -05:00
Jesse Wilson
c1d50e371f
Upgrade Okio and some build dependencies
...
The new ktlint sorts imports which makes this diff large.
The new japicmp ignores 'final' modifier changes in final classes.
We adopt the Google style for checkstyle.xml.
Okio readByteString() now uses segments more aggressively, so we
need to mitigate that to avoid tracking those segments in a test.
2020-01-11 22:24:12 -05:00
Yuri Schimke
b2168ceb73
Fixup samples ( #5699 )
2020-01-05 15:14:58 +00:00
Yuri Schimke
b9d30d67ac
Samples cleanup
2019-12-08 21:30:01 +00:00
Jesse Wilson
7c802961af
Add Kotlin listings for OkHttp recipes doc
2019-09-28 14:00:26 -04:00
Yuri Schimke
2a1f328d58
Add proxy event logging ( #5300 )
2019-07-25 05:42:32 +01: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
Jesse Wilson
911c5bf5b2
Prepare for release 4.0.0.
2019-06-26 19:30:33 -07:00
Jesse Wilson
eb7a0839ab
Suppress AllMainsTest.
...
It won't work in CI
2019-06-24 14:28:12 -07:00
Yuri Schimke
26949cf478
Fix samples and add test ( #5228 )
...
* Fix samples
* support different paths
* Simplify
2019-06-24 05:59:42 -07:00
Jesse Wilson
8bb58332db
Extension Functions toRequestBody(), toResponseBody()
2019-05-25 14:02:55 -04:00
Jesse Wilson
fd4c5a6632
Replace NamedRunnable.java with a threadName function
2019-05-12 10:41:54 -04:00
Jesse Wilson
11805c14a4
Put apply plugin at the top of the build
2019-04-07 16:55:52 -04:00
Jesse Wilson
dc1e870d24
Basic Gradle support
2019-03-17 00:16:26 -04:00
Jesse Wilson
dedc6ecd5b
Use more AssertJ features
2019-03-14 17:57:42 -04:00
Jesse Wilson
695b46cb2e
[maven-release-plugin] prepare for next development iteration
2019-03-13 23:42:40 -04:00
Jesse Wilson
44d51d0ceb
[maven-release-plugin] prepare release parent-3.14.0
2019-03-13 23:42:33 -04:00
Jesse Wilson
aac6c8da07
Introduce EventListener.requestFailed, responseFailed events
...
These replace requestBodyEnd() / responseBodyEnd() in some failure scenarios.
They may also be issued in cases where no event was published previously.
2019-02-23 18:39:11 -05:00
Jesse Wilson
89ca799ac5
Upgrade to jnr-unixsocket 0.22
2019-02-12 11:33:52 -05:00
Jesse Wilson
0a59e68b16
[maven-release-plugin] prepare for next development iteration
2019-02-05 12:15:46 -05:00
Jesse Wilson
d28d2cec21
[maven-release-plugin] prepare release parent-3.13.1
2019-02-05 12:15:39 -05:00
Jesse Wilson
5ecd590c8c
[maven-release-plugin] prepare for next development iteration
2019-02-04 23:32:52 -05:00