Skip to content

Commit

Permalink
generate bindings for cache related classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anikate-De committed Oct 3, 2024
1 parent 7890d4e commit 828257a
Show file tree
Hide file tree
Showing 2 changed files with 2,319 additions and 13 deletions.
13 changes: 13 additions & 0 deletions pkgs/ok_http/jnigen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ classes:
- "okio.ByteString"
- "com.example.ok_http.WebSocketInterceptor"
- "java.util.concurrent.TimeUnit"
- "okhttp3.Cache"
- "okhttp3.CacheControl"
- "java.io.File"

# Exclude the deprecated methods listed below
# They cause syntax errors during the `dart format` step of JNIGen.
Expand Down Expand Up @@ -105,6 +108,16 @@ exclude:
- 'okio.ByteString\$Companion#-deprecated_read'
- "okio.ByteString#-deprecated_getByte"
- "okio.ByteString#-deprecated_size"
- "okhttp3.CacheControl#-deprecated_noCache"
- "okhttp3.CacheControl#-deprecated_noStore"
- "okhttp3.CacheControl#-deprecated_maxAgeSeconds"
- "okhttp3.CacheControl#-deprecated_sMaxAgeSeconds"
- "okhttp3.CacheControl#-deprecated_mustRevalidate"
- "okhttp3.CacheControl#-deprecated_maxStaleSeconds"
- "okhttp3.CacheControl#-deprecated_minFreshSeconds"
- "okhttp3.CacheControl#-deprecated_onlyIfCached"
- "okhttp3.CacheControl#-deprecated_noTransform"
- "okhttp3.CacheControl#-deprecated_immutable"

preamble: |
// ignore_for_file: prefer_expression_function_bodies
Loading

0 comments on commit 828257a

Please sign in to comment.