farhan678 / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 0 forks source link

CustomAdapters doesn't handle click events correctly with proguard #227

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make an application with ads from MillennialMedia in Adwhirl
2. Set up Proguard
3. Export application to apk
4. Install application
5. Try to click on an ad

What is the expected output? What do you see instead?
Expected output: Open browser/market to handle the ad correctly.
What did I see?
Nothing, it just ignores it. House ads work fine though. 

What version of the product are you using? On what operating system?
I'm using the latest source of Adwhirl, with MillennialMedia SDK 4.2.3. It's on 
Android 2.2.1, although same results are on Android 2.1 and Android 2.3.3

Please provide any additional information below.
Logcat tells:
D/AdWhirl SDK(14403): Intercepted ACTION_DOWN event
E/MillennialMediaAdSDK(14403): No ad returned, no new browser launched
I modified the code a little bit, and I know the problem is located in the 
if(activeRation.type == 9), in method onInterceptTouchEvent in class 
AdWhirlLayout. The activeRation.type == 6.
Changing the if-statement to if(activeRation.type == 9 || activeRation.type == 
6) works, but then it shows "Application not found", although without proguard 
the application is found. 

When disabling proguard it works well. I googled for Adwhirl and Proguard, and 
those configs doesn't work for me. 

Original issue reported on code.google.com by vdesme...@gmail.com on 7 Jun 2011 at 6:21

Attachments:

GoogleCodeExporter commented 9 years ago
using this:
-keep class com.millennialmedia.android.*
{
    <init>(...);
    public void *(...);
    public com.millennialmedia.android.MMJSResponse *(...);
}

Original comment by lih...@gmail.com on 16 Oct 2012 at 12:05