Hi Christopher,
Thank you for contacting the Mobile Ads SDK support team.
I have reviewed your concern and understand that you are inquiring about whether or not you must add proguard rules when minification is enabled.
Yes, it is a good practice to add proguard rules to your app's ProGuard configuration file when you use the "minifyEnabled" option in your Android app. This will ensure that the UMP SDK functions properly. If you are using the Adaptive Banner with "minifyEnabled=true", you can use the following proguard rules for Adaptive Banner. If you are using the Banner with "minifyEnabled=true", you can use the following proguard rules for Banner.
I hope this information is helpful. Please let me know if you have any other questions.
![]() |
Mobile Ads SDK Team |
Hi,
Thank you for getting back to us.
Yes, using the User Messaging Platform (UMP) library for Android requires proguard configuration if you use minifyEnabled in your Android app. This is because UMP uses some classes that are not used by other parts of your app, and these classes need to be kept in the final APK file. To do this, you need to add the following lines to your proguard.txt file:
class com.google.firebase.messaging.** { *; }
class com.google.firebase.iid.** { *; }
These lines will tell proguard to keep all classes in the com.google.firebase.messaging and com.google.firebase.iid packages. This will ensure that UMP can function properly in your app.
Please reach out to us, if you need any further assistance.