MultiScreenSDK / sample-trailmix-android

Trailmix is a sample video app using Samsug Multiscreen SDK
1 stars 0 forks source link

How run proguard for multiScreenSDK ? #2

Open hadifar opened 8 years ago

hadifar commented 8 years ago

When I run proguard it shows some warning as bellow and when launch app it's crash ( has some problem with proguard ) do you know how to fix this ?

<Warning:com.samsung.multiscreen.ApplicationInfo: can't find referenced class lombok.NonNull Warning:com.samsung.multiscreen.Message: can't find referenced class lombok.NonNull>

sharebooks commented 8 years ago

You need lombok to compile the source code. Check the website about how to integrate lombok into your IDE.

https://projectlombok.org/

hadifar commented 8 years ago

Thanks for you answer but I don't have problem with Compiling , when I run proguard that contains _sumsung multiscreen sdk _ jar file it show warning and not let sign application. I google but didnt find anything about useful. could you please help me to resolve this issue ? (if I didnt sign application everything is ok)

hadifar commented 8 years ago

@sharebooks Can you sign your Hello-World example in your repository ? I stuck on this for 6 hours today but I couldn't sign APK . I found that problem with some method in your HelloWorldWebApplicationHelper ( 'Service.search(app)' ) But I can't solve that. This issue is not happen in debug mode just when you sign app it crash when you launch the application. It's really hard to me to fix this issue Could you please help me to solve this ?

sharebooks commented 8 years ago

This is about how to run proguard. Try to add proguard-rules.txt file under app folder with the following content.

-dontwarn com.samsung.**

Then try to rebuild and sign the apk

sunilr1 commented 8 years ago

Thanks Bin for taking care of this. Let me know if anything else is required from our end.

-sunil

From: Bin Liu notifications@github.com<mailto:notifications@github.com> Reply-To: MultiScreenSDK/sample-trailmix-android reply@reply.github.com<mailto:reply@reply.github.com> Date: Monday, January 18, 2016 at 3:19 PM To: MultiScreenSDK/sample-trailmix-android sample-trailmix-android@noreply.github.com<mailto:sample-trailmix-android@noreply.github.com> Subject: Re: [sample-trailmix-android] How run proguard for multiScreenSDK ? (#2)

This is about how to run proguard. Try to add proguard-rules.txt file under app folder with the following content.

-dontwarn com.samsung.**

Then try to rebuild and sign the apk

Reply to this email directly or view it on GitHubhttps://github.com/MultiScreenSDK/sample-trailmix-android/issues/2#issuecomment-172678962.

hadifar commented 8 years ago

@sharebooks Thanks for your reply. But nothing changed and still have issue. following link is my proguard but still my app crash when obfuscate :(

https://gist.github.com/AmirHadifar/96c4f3a66b54b1c82892