The Artima Developer Community
Sponsored Link

Java Buzz Forum
Proguard settings for Android

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Fred Grott

Posts: 4361
Nickname: shareme
Registered: Jan, 2003

Fred Grott is Lead Developer-CEO of ShareMe Technologies LLC -The Mobile Future
Proguard settings for Android Posted: May 26, 2009 7:51 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Fred Grott.
Original Post: Proguard settings for Android
Feed Title: ShareMe Technologies LLC-The Mobile Future
Feed URL: http://www.jroller.com/shareme/feed/entries/rss
Feed Description: A Weblog about Java programming and digital convergence on mobile devices in such areas as P2P and collaborative technology.
Latest Java Buzz Posts
Latest Java Buzz Posts by Fred Grott
Latest Posts From ShareMe Technologies LLC-The Mobile Future

Advertisement

Issue 965 in the Android Bug DB indicates at the end in comments a Proguard setting that you should be using when including 3rd party jars and obfuscating with Proguard for Android applications. For this to work you need Proguad 4.4 beta and you switch off peephole optimizations in the Proguard configuration paramters.  If a 3rd party jar is obfuscated using an obfuscator with peephole optimization it will fail in Android DVM.

From SDK 1.0 forward we have not been able to use obfuscation because we did not have a no peephole switch on obfuscators to deal with the difference in bytecode verifiers between JVMs and the DVM, now we do. Proguard however has had the feature turned off from version 4 to about 4.3 due to conflicts with other JVMs(has had the optimization, ie pephole tuned off not the swtich itself). Its just one of the many details I have had to go through and anlayze so that the AndCooper build tool has some effectiveness for developers.

Once agian to use obfuscation and otimizers with Android 1.0 through Andorid 1.5 you should be using Proguard 4.4. beta and turn off peephole optimizations. or any previous version as the peephole optimization is not enabled in versions prior to 4.4, ie version 4.0 through version 4.3.

Read: Proguard settings for Android

Topic: AndCooper Build System Progress Previous Topic   Next Topic Topic: Fabiane Nardon at Java.net Community Corner 2009

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use