Skip to content

Commit

Permalink
Merge pull request #140 from wangdaliu/proguard
Browse files Browse the repository at this point in the history
chore: update proguard rules
  • Loading branch information
sergiomarinocongosto authored Dec 4, 2024
2 parents 2e537e3 + da533c1 commit 71cec25
Show file tree
Hide file tree
Showing 3 changed files with 27 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
26 changes: 26 additions & 0 deletions affirm/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## 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.**

# Joda
-dontwarn org.joda.**
22 changes: 0 additions & 22 deletions affirm/proguard-rules.pro

This file was deleted.

0 comments on commit 71cec25

Please sign in to comment.