diff --git a/CHANGELOG.md b/CHANGELOG.md index ec8ee2c..11f6ce4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ Note the first digit of every adapter version corresponds to the major version of the Chartboost Mediation SDK compatible with that adapter. Adapters are compatible with any Chartboost Mediation SDK version within that major version. +### 4.6.12.1.3 +- Added ProGuard rules. + ### 4.6.12.1.2 - Added support for rewarded interstitial ad format. diff --git a/README.md b/README.md index bdecc42..9986885 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The Chartboost Mediation Vungle adapter mediates Vungle via the Chartboost Media In your `build.gradle`, add the following entry: ``` - implementation "com.chartboost:chartboost-mediation-adapter-vungle:4.6.12.1.2" + implementation "com.chartboost:chartboost-mediation-adapter-vungle:4.6.12.1.3" ``` ## Contributions diff --git a/VungleAdapter/build.gradle.kts b/VungleAdapter/build.gradle.kts index 32ca76e..24ea446 100644 --- a/VungleAdapter/build.gradle.kts +++ b/VungleAdapter/build.gradle.kts @@ -35,9 +35,11 @@ android { minSdk = 21 targetSdk = 33 // If you touch the following line, don't forget to update scripts/get_rc_version.zsh - android.defaultConfig.versionName = System.getenv("VERSION_OVERRIDE") ?: "4.6.12.1.2" + android.defaultConfig.versionName = System.getenv("VERSION_OVERRIDE") ?: "4.6.12.1.3" buildConfigField("String", "CHARTBOOST_MEDIATION_VUNGLE_ADAPTER_VERSION", "\"${android.defaultConfig.versionName}\"") + consumerProguardFiles("proguard-rules.pro") + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } diff --git a/VungleAdapter/proguard-rules.pro b/VungleAdapter/proguard-rules.pro index 2f9dc5a..4ac280d 100644 --- a/VungleAdapter/proguard-rules.pro +++ b/VungleAdapter/proguard-rules.pro @@ -19,3 +19,27 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile + +# Vungle +-dontwarn com.vungle.warren.downloader.DownloadRequestMediator$Status +-dontwarn com.vungle.warren.error.VungleError$ErrorCode + +# Google +-keep class com.google.android.gms.** { *; } +-dontwarn com.google.android.gms.** + +# GSON +-keepattributes *Annotation* +-keepattributes Signature +# Prevent R8 from leaving Data object members always null +-keepclassmembers,allowobfuscation class * { + @com.google.gson.annotations.SerializedName ; +} + +# OkHttp + Okio +-dontwarn javax.annotation.** +-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase +-dontwarn org.codehaus.mojo.animal_sniffer.* +-dontwarn okhttp3.internal.platform.ConscryptPlatform + +-dontwarn module-info