Skip to content

Commit e48ea4f

Browse files
committed
chore: update proguard rules
1 parent f8de626 commit e48ea4f

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

affirm/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ android {
3333
targetSdkVersion rootProject.ext.compileSdkVersion
3434
versionCode VERSION_CODE.toInteger()
3535
versionName project.VERSION_NAME
36-
36+
consumerProguardFiles 'consumer-rules.pro'
3737
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3838
}
3939

affirm/consumer-rules.pro

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Affirm SDK
2+
-keep class com.affirm.android.** { *; }
3+
4+
# --- AutoValue ---
5+
-dontwarn com.google.auto.value.**
6+
-dontwarn com.ryanharter.auto.value.**
7+
8+
## --- OkHttp ---
9+
# JSR 305 annotations are for embedding nullability information.
10+
-dontwarn javax.annotation.**
11+
12+
# A resource is loaded with a relative path so the package of this class must be preserved.
13+
-keeppackagenames okhttp3.internal.publicsuffix.*
14+
-adaptresourcefilenames okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz
15+
16+
# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
17+
-dontwarn org.codehaus.mojo.animal_sniffer.*
18+
19+
# OkHttp platform used only on JVM and when Conscrypt and other security providers are available.
20+
-dontwarn okhttp3.internal.platform.**
21+
-dontwarn org.conscrypt.**
22+
-dontwarn org.bouncycastle.**
23+
-dontwarn org.openjsse.**

affirm/proguard-rules.pro

-22
This file was deleted.

0 commit comments

Comments
 (0)