Skip to content

Commit

Permalink
chore: update proguard rules
Browse files Browse the repository at this point in the history
  • Loading branch information
quanquan1 committed Nov 21, 2024
1 parent f8de626 commit e48ea4f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion affirm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {
targetSdkVersion rootProject.ext.compileSdkVersion
versionCode VERSION_CODE.toInteger()
versionName project.VERSION_NAME

consumerProguardFiles 'consumer-rules.pro'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
23 changes: 23 additions & 0 deletions affirm/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Affirm SDK
-keep class com.affirm.android.** { *; }

# --- AutoValue ---
-dontwarn com.google.auto.value.**
-dontwarn com.ryanharter.auto.value.**

## --- OkHttp ---
# JSR 305 annotations are for embedding nullability information.
-dontwarn javax.annotation.**

# A resource is loaded with a relative path so the package of this class must be preserved.
-keeppackagenames okhttp3.internal.publicsuffix.*
-adaptresourcefilenames okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz

# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
-dontwarn org.codehaus.mojo.animal_sniffer.*

# OkHttp platform used only on JVM and when Conscrypt and other security providers are available.
-dontwarn okhttp3.internal.platform.**
-dontwarn org.conscrypt.**
-dontwarn org.bouncycastle.**
-dontwarn org.openjsse.**
22 changes: 0 additions & 22 deletions affirm/proguard-rules.pro

This file was deleted.

0 comments on commit e48ea4f

Please sign in to comment.