question

��ngel Luis Jim��nez Mart��nez avatar image

Proguard config

Hi, We are trying to enable Proguard in our app with Amazon mobile ads (using admob mediation) but they are not working in the generated APK. Can anyone paste their Proguard config? Thanks!
mobile ads
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Ross@Amazon avatar image
Ross@Amazon answered
ProGuard can be integrated with Amazon Mobile Ads. Just make sure to exclude any libraries provided by Amazon from code obfuscation or else they will not work properly. More information can be found here: https://developer.amazon.com/public/apis/earn/mobile-associates/docs/obfuscating-your-code http://developer.android.com/tools/help/proguard.html
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Andrew@Amazon avatar image
Andrew@Amazon answered
The Amazon Mobile Ads SDK should not require any special Proguard configuration to work. Are you receiving errors in the build related to Amazon classes, or are you just not receiving any ads? If you enable logging via AdRegistration.enableLogging(true), do you see any AmazonMobileAds logs in the logcat? Since you're using our ads through Admob, it may be an issue with how Admob accesses our SDK. For instance, some forms of reflection are not recognized by Proguard and could result in Proguard removing classes or methods because it assumes they are never used.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.