Skip to content

Commit b2c2b1f

Browse files
authored
fix(all): Add additional consumer proguard rules for missing classes (#3000)
1 parent 95e7353 commit b2c2b1f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

configuration/consumer-rules.pro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@
44
-keep class com.amplifyframework.** { *; }
55

66
# We check for specific engine classes on the classpath to determine whether Amplify should use OkHttp4 instead of OkHttp5
7-
-keepnames class aws.smithy.kotlin.runtime.http.engine.okhttp4.*
7+
-keepnames class aws.smithy.kotlin.runtime.http.engine.okhttp4.*
8+
9+
# OkHttp4 will not be present if not explicitly added by the customer, don't warn if it's missing
10+
-dontwarn aws.smithy.kotlin.runtime.http.engine.okhttp4.OkHttp4Engine
11+
12+
# This Tink annotation is missing from an upstream dependency
13+
-dontwarn com.google.errorprone.annotations.Immutable

0 commit comments

Comments
 (0)