Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade ok_http to jnigen 0.12.2 #1405

Merged
merged 5 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkgs/ok_http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- `OkHttpClient` now receives an `OkHttpClientConfiguration` to configure the client on a per-call basis.
- `OkHttpClient` supports setting four types of timeouts: [`connectTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/connect-timeout.html), [`readTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/read-timeout.html), [`writeTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/write-timeout.html), and [`callTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/call-timeout.html), using the `OkHttpClientConfiguration`.
- Update to `jnigen` 0.12.2

## 0.1.0

Expand Down
71 changes: 0 additions & 71 deletions pkgs/ok_http/jnigen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ android_sdk_config:
add_gradle_deps: true
android_example: "example/"

enable_experiment:
- "interface_implementation"

classes:
- "okhttp3.Request"
- "okhttp3.RequestBody"
Expand All @@ -38,73 +35,5 @@ classes:
- "com.example.ok_http.WebSocketInterceptor"
- "java.util.concurrent.TimeUnit"

# Exclude the deprecated methods listed below
# They cause syntax errors during the `dart format` step of JNIGen.
exclude:
methods:
- "okhttp3.Request#-deprecated_url"
- "okhttp3.Request#-deprecated_method"
- "okhttp3.Request#-deprecated_headers"
- "okhttp3.Request#-deprecated_body"
- "okhttp3.Request#-deprecated_cacheControl"
- "okhttp3.Response#-deprecated_request"
- "okhttp3.Response#-deprecated_protocol"
- "okhttp3.Response#-deprecated_code"
- "okhttp3.Response#-deprecated_message"
- "okhttp3.Response#-deprecated_handshake"
- "okhttp3.Response#-deprecated_headers"
- "okhttp3.Response#-deprecated_body"
- "okhttp3.Response#-deprecated_networkResponse"
- "okhttp3.Response#-deprecated_priorResponse"
- "okhttp3.Response#-deprecated_cacheResponse"
- "okhttp3.Response#-deprecated_cacheControl"
- "okhttp3.Response#-deprecated_sentRequestAtMillis"
- "okhttp3.Response#-deprecated_receivedResponseAtMillis"
- "okhttp3.OkHttpClient#-deprecated_dispatcher"
- "okhttp3.OkHttpClient#-deprecated_connectionPool"
- "okhttp3.OkHttpClient#-deprecated_interceptors"
- "okhttp3.OkHttpClient#-deprecated_networkInterceptors"
- "okhttp3.OkHttpClient#-deprecated_eventListenerFactory"
- "okhttp3.OkHttpClient#-deprecated_retryOnConnectionFailure"
- "okhttp3.OkHttpClient#-deprecated_authenticator"
- "okhttp3.OkHttpClient#-deprecated_followRedirects"
- "okhttp3.OkHttpClient#-deprecated_followSslRedirects"
- "okhttp3.OkHttpClient#-deprecated_cookieJar"
- "okhttp3.OkHttpClient#-deprecated_cache"
- "okhttp3.OkHttpClient#-deprecated_dns"
- "okhttp3.OkHttpClient#-deprecated_proxy"
- "okhttp3.OkHttpClient#-deprecated_proxySelector"
- "okhttp3.OkHttpClient#-deprecated_proxyAuthenticator"
- "okhttp3.OkHttpClient#-deprecated_socketFactory"
- "okhttp3.OkHttpClient#-deprecated_sslSocketFactory"
- "okhttp3.OkHttpClient#-deprecated_connectionSpecs"
- "okhttp3.OkHttpClient#-deprecated_hostnameVerifier"
- "okhttp3.OkHttpClient#-deprecated_certificatePinner"
- "okhttp3.OkHttpClient#-deprecated_callTimeoutMillis"
- "okhttp3.OkHttpClient#-deprecated_connectTimeoutMillis"
- "okhttp3.OkHttpClient#-deprecated_readTimeoutMillis"
- "okhttp3.OkHttpClient#-deprecated_writeTimeoutMillis"
- "okhttp3.OkHttpClient#-deprecated_pingIntervalMillis"
- "okhttp3.OkHttpClient#-deprecated_protocols"
- 'okhttp3.OkHttpClient\$Builder#-addInterceptor'
- 'okhttp3.OkHttpClient\$Builder#-addNetworkInterceptor'
- 'okhttp3.Headers\$Companion#-deprecated_of'
- "okhttp3.Headers#-deprecated_size"
- "okhttp3.Dispatcher#-deprecated_executorService"
- "okhttp3.Cache#-deprecated_directory"
- "java.util.concurrent.ExecutorService#invokeAll"
- "java.util.concurrent.ExecutorService#invokeAny"
- "java.util.concurrent.ExecutorService#submit"
- "okio.ByteString$Companion#-deprecated_getByte"
- "okio.ByteString$Companion#-deprecated_size"
- 'okio.ByteString\$Companion#-deprecated_decodeBase64'
- 'okio.ByteString\$Companion#-deprecated_decodeHex'
- 'okio.ByteString\$Companion#-deprecated_encodeString'
- 'okio.ByteString\$Companion#-deprecated_encodeUtf8'
- 'okio.ByteString\$Companion#-deprecated_of'
- 'okio.ByteString\$Companion#-deprecated_read'
- "okio.ByteString#-deprecated_getByte"
- "okio.ByteString#-deprecated_size"

preamble: |
// ignore_for_file: prefer_expression_function_bodies
Loading
Loading