forked from dart-lang/http
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjnigen.yaml
110 lines (103 loc) · 4.4 KB
/
jnigen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Regenerate the JNI Bindings using: dart run jnigen --config jnigen.yaml
summarizer:
backend: asm
output:
dart:
path: "lib/src/jni/bindings.dart"
structure: single_file
android_sdk_config:
add_gradle_deps: true
android_example: "example/"
enable_experiment:
- "interface_implementation"
classes:
- "okhttp3.Request"
- "okhttp3.RequestBody"
- "okhttp3.Response"
- "okhttp3.ResponseBody"
- "okhttp3.OkHttpClient"
- "okhttp3.Call"
- "okhttp3.Headers"
- "okhttp3.Callback"
- "okhttp3.ConnectionPool"
- "okhttp3.Dispatcher"
- "java.util.concurrent.ExecutorService"
- "okhttp3.Cache"
- "com.example.ok_http.RedirectReceivedCallback"
- "com.example.ok_http.RedirectInterceptor"
- "com.example.ok_http.AsyncInputStreamReader"
- "com.example.ok_http.DataCallback"
- "okhttp3.WebSocket"
- "com.example.ok_http.WebSocketListenerProxy"
- "okio.ByteString"
- "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