The first letter of the Flavor name must be capitalized.
daroAppKey can be found in the DARO dashboard.
6
Apply the DARO plugin to build.gradle(app)
Apply the DARO plugin to build.gradle(app).
Non-Reward
Reward
Copy
Ask AI
plugins { ... id("so.daro.a") ...}
Copy
Ask AI
plugins { ... id("so.daro.m") ...}
7
Apply ProGuard rules if needed
The daro SDK includes the following obfuscation rules in consumer-rules.pro, which are automatically merged during app build when adding the AAR via Gradle.
If you want to modify the obfuscation rules, please refer to the content below and apply them to your proguard-rules.pro file.
Non-Reward
Reward
Copy
Ask AI
# Pangle (ByteDance)-keep class com.bytedance.sdk.** { *; }# Verve (PubNative)-keepattributes Signature-keep class net.pubnative.** { *; }-keep class com.iab.omid.library.pubnativenet.** { *; }# Amazon APS-keep class com.amazon.** { *; }-keep public class com.google.android.gms.ads.** { public *; }-keep class com.iabtcf.** { *; }# IronSource-keepclassmembers class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *;}-keep class com.ironsource.adapters.** { *; }-dontwarn com.ironsource.**-dontwarn com.ironsource.adapters.**-keepclassmembers class com.ironsource.** { public *; }-keep public class com.ironsource.**-keep class com.ironsource.adapters.** { *; }# IronSource - AppLovin integration-keepclassmembers class com.applovin.sdk.AppLovinSdk { static *; }-keep public interface com.applovin.sdk.** { *; }-keep public interface com.applovin.adview.** { *; }-keep public interface com.applovin.mediation.** { *; }-keep public interface com.applovin.communicator.** { *; }# IronSource - AndroidX-keep class androidx.localbroadcastmanager.content.LocalBroadcastManager { *; }-keep class androidx.recyclerview.widget.RecyclerView { *; }-keep class androidx.recyclerview.widget.RecyclerView$OnScrollListener { *; }# IronSource - Android-keep class * extends android.app.Activity# Retrofit-keep,allowobfuscation,allowshrinking interface retrofit2.Call-keep,allowobfuscation,allowshrinking class retrofit2.Response# Gson-keepattributes Signature-keepattributes *Annotation*-dontwarn sun.misc.**-keep class com.google.gson.** { *; }-keep class * implements com.google.gson.TypeAdapterFactory-keep class * implements com.google.gson.JsonSerializer-keep class * implements com.google.gson.JsonDeserializer# Kotlin Coroutines-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
For Reward Apps, you do not need to configure proguard separately.
For app open, banner, interstitial, rewarded, and rewarded interstitial ad formats, you can use the setAppMute(...) method to inform the Daro SDK that the app volume has been muted.
App Mute Usage PrecautionsMuting the app can reduce video ad eligibility, which may decrease your app’s ad revenue. Only use this API when your app provides custom mute controls to users and the user’s mute decision is properly reflected in the API.