From 63ceeff6debb7aaa5a390ca917ea1cf0a1ebc04b Mon Sep 17 00:00:00 2001 From: Ryan McCormick Date: Tue, 23 May 2023 11:44:25 -0500 Subject: [PATCH 1/3] Add proguard rules --- VungleAdapter/proguard-rules.pro | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 From 2b114bb9d5dc87c8ff5ca9782455245a9f5a0c91 Mon Sep 17 00:00:00 2001 From: Ryan McCormick Date: Tue, 30 May 2023 11:24:21 -0500 Subject: [PATCH 2/3] Update docs. --- CHANGELOG.md | 3 +++ README.md | 2 +- VungleAdapter/build.gradle.kts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) 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..21b5ff2 100644 --- a/VungleAdapter/build.gradle.kts +++ b/VungleAdapter/build.gradle.kts @@ -35,7 +35,7 @@ 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}\"") testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" From 467aba6b38ff4b6d7bd2c24d7c9f192f19c1c857 Mon Sep 17 00:00:00 2001 From: Ryan McCormick Date: Tue, 30 May 2023 12:47:09 -0500 Subject: [PATCH 3/3] Include rules in AAR --- VungleAdapter/build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VungleAdapter/build.gradle.kts b/VungleAdapter/build.gradle.kts index 21b5ff2..24ea446 100644 --- a/VungleAdapter/build.gradle.kts +++ b/VungleAdapter/build.gradle.kts @@ -38,6 +38,8 @@ android { 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" }