Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Proguard - When should you use it - alternatives?

 
Ranch Hand
Posts: 105
Android Mac Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Satya / Dave,

Does the book cover the use of Proguard? I've heard good and bad stories on the use of Proguard. Is it workable in your opinion? When do you suggest using it. I mean, it might not matter that much for open source project, but do you recommend using Proguard in any commercial app? Are there any good alternatives to Proguard?

Thanks in advance for the answer!

Cheers,

Johan
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ProGuard can be still useful in OS-projects because:

http://proguard.sourceforge.net/index.html#/FAQ.html wrote:By preprocessing the original jar files, ProGuard can significantly reduce the file sizes and boost the run-time performance of the code.



You can also find a list of alternatives to ProGuard on their official site: http://proguard.sourceforge.net/index.html#/alternatives.html
 
Johan Pelgrim
Ranch Hand
Posts: 105
Android Mac Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joachim!
 
author
Posts: 51
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, Proguard was not a feature we covered in the book. We wanted to but just couldn't fit it in. We mention it briefly but don't get into the details.

I know what you mean about the good and the bad. The tool does a decent job of obfuscating but sometimes can go too far, which is where it gets difficult to use. You have to go in and tweak the settings so it won't muck up stuff that you need left alone. But it can help you fight piracy of your app. Sometimes the reason for this is that users want to buy your app but they can't get it from their country's Google Android Market. So they look for some other way to get it. This is one reason why you should always consider alternate means of distributing your apps. You can sell through Android Market and also through other sites. We discuss the legalities of Android Market in chapter 28 and this is definitely okay. That way you could make it easier for users to find it so there's less reason for piracy.

- dave
 
Johan Pelgrim
Ranch Hand
Posts: 105
Android Mac Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dave!
 
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!