diff --git a/affirm/build.gradle b/affirm/build.gradle index 6734762e..df4d45e0 100755 --- a/affirm/build.gradle +++ b/affirm/build.gradle @@ -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" } diff --git a/affirm/consumer-rules.pro b/affirm/consumer-rules.pro new file mode 100644 index 00000000..c080922a --- /dev/null +++ b/affirm/consumer-rules.pro @@ -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.** \ No newline at end of file diff --git a/affirm/proguard-rules.pro b/affirm/proguard-rules.pro deleted file mode 100755 index 5ef721a0..00000000 --- a/affirm/proguard-rules.pro +++ /dev/null @@ -1,22 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile --keepclassmembers enum com.affirm.android.model.** { *; } \ No newline at end of file