1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-24 18:41:06 +03:00
Commit Graph

50 Commits

Author SHA1 Message Date
Yuri Schimke
d1490698a3 Make the Android tests pass on <= 23 2020-05-19 18:41:09 +01:00
Yuri Schimke
67f77be6b0 Fix for insecureHost on Android (#6063) 2020-05-18 20:23:00 +01:00
Yuri Schimke
198900de0b Fix isAndroid check (#6055)
Fix for OkHttp platform issues in AndroidStudio (e.g. when running as a plugin)

square/retrofit#3389
2020-05-16 09:09:46 +01:00
Yuri Schimke
80bee1afdd Confirm android logging disabled (#6008) 2020-05-02 09:12:41 -04:00
Yuri Schimke
93ac4fa3b9 Android Cache Test (#6010) 2020-05-01 18:47:29 +01:00
Yuri Schimke
5c10006e0a Centralise logging behind JUL (#6005)
Use JUL, but wire up to the Android Log.

Use `adb shell setprop log.tag.okhttp.Http2 DEBUG` to enable logging for known levels.
2020-04-30 19:04:19 +01:00
Jesse Wilson
f4859c763b Merge pull request #5987 from yschimke/android_fix
Fix for android test
2020-04-25 20:47:22 -04:00
Yuri Schimke
27c78a7a47 Fix for android 2020-04-25 10:16:52 +01:00
Yuri Schimke
d56eb776e5 Android docs for selecting devices 2020-04-25 08:17:28 +01:00
Yuri Schimke
20812ac497 Simpler emulator instructions (#5962) 2020-04-19 08:26:31 +01:00
Yuri Schimke
27454cdec7 Test which TrustManager method called on Android 2020-04-18 10:08:30 +01:00
Yuri Schimke
474b13f86b Workaround bouncycastle random issue (#5942)
* Workaround bouncycastle random issue

* Cleanup
2020-04-12 18:46:48 -04:00
Yuri Schimke
86b7ba5f2a Enable BouncyCastle on Android and add some testing (#5936) 2020-04-11 17:35:27 +01:00
Yuri Schimke
27dbedca9d Migrate to AndroidX for tests 2020-04-09 08:29:13 +01:00
Yuri Schimke
1a07f49bcb Kotlin 1.3.71 and misc dep upgrades (#5925) 2020-04-08 17:52:33 +01:00
Yuri Schimke
3414fe42b7 Close Android test properly in case it passes (#5905)
* Close test properly in case it passes

* Fix
2020-03-29 22:21:49 -04:00
Yuri Schimke
e8cfef759f Force cancel all events on client (#5901) 2020-03-26 06:45:34 +00:00
Yuri Schimke
5a9c5a151c Android comparison of client APIs (#5886) 2020-03-24 22:05:44 +00:00
Yuri Schimke
b022927d13 Dependency Upgrades 2020-03-21 14:04:43 +00:00
Jesse Wilson
0b2c4cca9e Catch IllegalArgumentException from Android internals (#5841)
* Catch IllegalArgumentException from Android internals

* import order
2020-03-04 14:54:21 -05:00
Yuri Schimke
2cba455e37 Fixes for Android Test (including R) (#5817) 2020-02-23 08:11:06 +00:00
Jesse Wilson
93efc26a15 Merge pull request #5703 from yschimke/cleaner_fix
Allow Handshake.toString() for debugging, even when CertificateCleaner will fail
2020-01-11 16:57:03 -05:00
Jesse Wilson
fd0919cfa4 OkHttp 4.3.1 is released 2020-01-07 13:44:16 -05:00
Yuri Schimke
15339353c1 Set hostname on Android 5.0 (#5702)
* Set hostname on Android 5.0

Android 5.0 requires explicit call to set the hostname.

* Fix test

* Fix
2020-01-06 21:54:52 -05:00
Yuri Schimke
ff856abe91 Allow toString() for debugging, even when cert cleaner will fail 2020-01-06 06:43:30 +00:00
Yuri Schimke
c0f0df0345 Fix missing import in Android Test (#5697) 2020-01-05 07:52:47 +00:00
Yuri Schimke
ed9af27531 Android 10 support for X509TrustManager (#5688) 2020-01-05 07:51:53 +00:00
Yuri Schimke
c7b7b6dcb1 Google Play assumption failures handled (#5692)
* Google Play assumption failures handled

* import fixes
2020-01-04 15:08:57 -05:00
Jesse Wilson
fb8fb0fd31 Merge pull request #5691 from yschimke/kitkat
Handle Android 5.0 socket type in tests
2020-01-04 14:47:21 -05:00
Yuri Schimke
f04e415515 Fix tests for Android 5.0 2020-01-04 11:07:00 +00:00
Yuri Schimke
0d82da6311 Handle Android 5.0 socket type in tests 2020-01-04 10:46:16 +00:00
Yuri Schimke
3e61ce3cf0 Test Android with Play provider (#5679) 2020-01-02 07:04:58 +00:00
Yuri Schimke
f675c9ebf1 Android Test Readme (#5677)
* Android Test Readme

* less docs

* More logging

* Comments
2020-01-01 09:37:34 -05:00
Jesse Wilson
a815093721 Document debug logging.
Also refine the formatting of TaskRunner logging.

Before:

    [2019-12-30 16:43:19] Q1 starting: OkHttp ConnectionPool
    [2019-12-30 16:43:19] Q1 scheduled after 300 s: OkHttp ConnectionPool
    [2019-12-30 16:43:19] Q1 finished in 94 µs: OkHttp ConnectionPool
    [2019-12-30 16:43:19] Q359 scheduled after 0 µs: OkHttp www.youtube.com applyAndAckSettings
    [2019-12-30 16:43:19] Q359 starting: OkHttp www.youtube.com applyAndAckSettings
    [2019-12-30 16:43:19] Q361 schedule canceled (queue is shutdown): OkHttp www.youtube.com onSettings
    [2019-12-30 16:43:19] Q359 finished in 382 µs: OkHttp www.youtube.com applyAndAckSettings
    [2019-12-30 16:43:20] Q1 scheduled after 0 µs: OkHttp ConnectionPool
    [2019-12-30 16:43:20] Q365 scheduled after 0 µs: OkHttp android-developers.googleblog.com applyAndAckSettings
    [2019-12-30 16:43:20] Q1 starting: OkHttp ConnectionPool
    [2019-12-30 16:43:20] Q365 starting: OkHttp android-developers.googleblog.com applyAndAckSettings
    [2019-12-30 16:43:20] Q1 scheduled after 300 s: OkHttp ConnectionPool
    [2019-12-30 16:43:20] Q1 finished in 151 µs: OkHttp ConnectionPool

After:

    [2019-12-30 16:43:19] Q10001 starting              : OkHttp ConnectionPool
    [2019-12-30 16:43:19] Q10001 run again after 300 s : OkHttp ConnectionPool
    [2019-12-30 16:43:19] Q10001 finished run in  94 µs: OkHttp ConnectionPool
    [2019-12-30 16:43:19] Q10359 scheduled after   0 µs: OkHttp www.youtube.com applyAndAckSettings
    [2019-12-30 16:43:19] Q10359 starting              : OkHttp www.youtube.com applyAndAckSettings
    [2019-12-30 16:43:19] Q10361 schedule canceled (queue is shutdown): OkHttp www.youtube.com onSettings
    [2019-12-30 16:43:19] Q10359 finished run in 382 µs: OkHttp www.youtube.com applyAndAckSettings
    [2019-12-30 16:43:20] Q10001 scheduled after   0 µs: OkHttp ConnectionPool
    [2019-12-30 16:43:20] Q10365 scheduled after   0 µs: OkHttp android-developers.googleblog.com applyAndAckSettings
    [2019-12-30 16:43:20] Q10001 starting              : OkHttp ConnectionPool
    [2019-12-30 16:43:20] Q10365 starting              : OkHttp android-developers.googleblog.com applyAndAckSettings
    [2019-12-30 16:43:20] Q10001 run again after 300 s : OkHttp ConnectionPool
    [2019-12-30 16:43:20] Q10001 finished run in 151 µs: OkHttp ConnectionPool
2019-12-31 14:21:05 -05:00
Yuri Schimke
8e3420c4ff Avoid Corretto and R8 incompatibility in tests 2019-11-10 15:39:58 +00:00
Yuri Schimke
880a41dec4 Fix Android Certificate Check with localhost certificates (#5511) 2019-10-07 15:02:26 +11:00
Yuri Schimke
16173e2af9 Make Platform.log exception parameter optional (#5482)
Make Platform.log exception parameters optional, and reorders to allow level defaulting to INFO.
2019-09-29 16:59:58 +10:00
Yuri Schimke
e23d44ecc2 Fix Android test 2019-09-22 14:01:05 +01:00
Yuri Schimke
dcc552db52 Fix Android Q with Conscrypt or Session Tickets (#5483) 2019-09-22 13:55:41 +01:00
Yuri Schimke
fba438fbb6 Minor Platform cleanup 2019-09-22 07:13:48 +01:00
Yuri Schimke
a41361efcb Compile against JDK11 API, run tests down to JDK8 (#5429)
Avoids most reflection usage on Jdk9+ and Android Q+.  Builds against JDK11, but tests down to Jdk8.
2019-09-21 21:42:40 +01:00
Jesse Wilson
059048b12e Merge pull request #5465 from yschimke/doh_android
DoH Android test
2019-09-21 12:01:55 -04:00
Yuri Schimke
f92f484337 Add Conscrypt specific test for Android (#5473)
* Add Conscrypt specific test for Android

* Fix
2019-09-21 12:00:02 -04:00
Yuri Schimke
3b5f0f937a DoH Android test 2019-09-16 20:36:12 +01:00
Yuri Schimke
2cdbbda64a Hows My Ssl test for Android (#5428) 2019-09-09 12:01:08 +01:00
Yuri Schimke
3d95c4b1f7 Android Test Fixes for OpenJSSE (#5407)
* Android Test Fixes for OpenJSSE

* Specific fixes
2019-09-03 22:24:29 -04:00
Yuri Schimke
1b60e3739c Test Android session reuse 2019-08-11 10:48:43 +01:00
Yuri Schimke
1994136a24 Update test host to squareup (#5343) 2019-08-10 17:20:43 +01:00
Yuri Schimke
cf0042b208 Extended Android tests (#5298)
Added tests related to certificate pinning, mockwebserver and cleartext blocking on legacy Android.
2019-08-10 15:28:50 +01:00
Yuri Schimke
ed25f41e48 Basic Android Instrumentation Test (#5253)
Runnable with 

```
ANDROID_SDK_ROOT=... ./gradlew connectedCheck
```
2019-07-16 23:15:20 +01:00