Skip to content

Commit

Permalink
Add proguard rules (#41)
Browse files Browse the repository at this point in the history
* Add proguard rules

* Update docs.

* Include rules in AAR
  • Loading branch information
CB-RyanMcCormick authored May 30, 2023
1 parent ba7686d commit 7ec1a3c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 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.9.3.0.1
- Added ProGuard rules.

### 4.9.3.0.0
- This version of the adapter has been certified with Chartboost SDK 9.3.0.

Expand Down
4 changes: 3 additions & 1 deletion ChartboostAdapter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,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.9.3.0.0"
android.defaultConfig.versionName = System.getenv("VERSION_OVERRIDE") ?: "4.9.3.0.1"
buildConfigField("String", "CHARTBOOST_MEDIATION_CHARTBOOST_ADAPTER_VERSION", "\"${android.defaultConfig.versionName}\"")

consumerProguardFiles("proguard-rules.pro")

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
2 changes: 2 additions & 0 deletions ChartboostAdapter/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-keep class com.chartboost.** { *; }
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 Chartboost adapter mediates Chartboost via the Chartboo

In your `build.gradle`, add the following entry:
```
implementation "com.chartboost:chartboost-mediation-adapter-chartboost:4.9.3.0.0"
implementation "com.chartboost:chartboost-mediation-adapter-chartboost:4.9.3.0.1"
```

## Contributions
Expand Down

0 comments on commit 7ec1a3c

Please sign in to comment.