Skip to content

Commit

Permalink
[HB-6347] Vungle 7.0.0 (#43)
Browse files Browse the repository at this point in the history
* [HB-6347] Vungle 7.0.0
- Updated Vungle SDK version to 7.0.0.
- Updated Changelog, README, build script to 4.7.0.0.0

* Remove unused Vungle settings and added docs to new methods.

* A few reformats.

* PR feedback.

* More PR feedback.

* Added commas and removed unused imports

* Updated Proguard

* Use reference and not a lambda fun

* More PR feedback.
  • Loading branch information
cb-jpadilla authored Sep 19, 2023
1 parent 348f854 commit cc99fe7
Show file tree
Hide file tree
Showing 5 changed files with 352 additions and 403 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.7.0.0.0
- This version of the adapter has been certified with Vungle SDK 7.0.0.

### 4.6.12.1.6
- Updated to handle recent AdFormat changes.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.6"
implementation "com.chartboost:chartboost-mediation-adapter-vungle:4.7.0.0.0"
```

## Contributions
Expand Down
4 changes: 2 additions & 2 deletions VungleAdapter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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.6"
android.defaultConfig.versionName = System.getenv("VERSION_OVERRIDE") ?: "4.7.0.0.0"
buildConfigField("String", "CHARTBOOST_MEDIATION_VUNGLE_ADAPTER_VERSION", "\"${android.defaultConfig.versionName}\"")

consumerProguardFiles("proguard-rules.pro")
Expand Down Expand Up @@ -72,7 +72,7 @@ dependencies {
"remoteImplementation"("com.chartboost:chartboost-mediation-sdk:4.0.0")

// Partner SDK
implementation("com.vungle:publisher-sdk-android:6.12.1")
implementation("com.vungle:vungle-ads:7.0.0")

// Adapter Dependencies
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4")
Expand Down
44 changes: 30 additions & 14 deletions VungleAdapter/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,41 @@
#-renamesourcefileattribute SourceFile

# Vungle
-dontwarn com.vungle.warren.downloader.DownloadRequestMediator$Status
-dontwarn com.vungle.warren.error.VungleError$ErrorCode
-dontwarn com.vungle.ads.**
-keepclassmembers class com.vungle.ads.** {
*;
}

# 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 <fields>;
}

# OkHttp + Okio
# START OkHttp + Okio
# JSR 305 annotations are for embedding nullability information.
-dontwarn javax.annotation.**
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase

# A resource is loaded with a relative path so the package of this class must be preserved.
-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.*
-dontwarn okhttp3.internal.platform.ConscryptPlatform

-dontwarn module-info
# 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.**

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

# END OkHttp + Okio

# START Protobuf
-dontwarn com.google.protobuf.**
-keepclassmembers class com.google.protobuf.** {
*;
}
-keep class * extends com.google.protobuf.GeneratedMessageLite { *; }

# END Protobuf
Loading

0 comments on commit cc99fe7

Please sign in to comment.