Skip to content

Commit 88b39f9

Browse files
authored
Add okhttp3 settings to Functions proguard. (#259)
1 parent dde601d commit 88b39f9

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

firebase-functions/proguard.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
-dontwarn okio.**
2+
3+
# These rules come from:
4+
# https://github.com/square/okhttp/blob/master/okhttp/src/main/resources/META-INF/proguard/okhttp3.pro
5+
6+
# JSR 305 annotations are for embedding nullability information.
7+
-dontwarn javax.annotation.**
8+
9+
# A resource is loaded with a relative path so the package of this class must be preserved.
10+
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
11+
12+
# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
13+
-dontwarn org.codehaus.mojo.animal_sniffer.*
14+
15+
# OkHttp platform used only on JVM and when Conscrypt dependency is available.
16+
-dontwarn okhttp3.internal.platform.ConscryptPlatform
17+

test-apps/functions-test-app/proguard-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
-keep class android.support.test.espresso.IdlingResource { *; }
44
-keep class android.support.test.espresso.IdlingRegistry { *; }
5+

0 commit comments

Comments
 (0)