Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (527)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (594)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Proguard GUI - don't obfuscate 1 class  (Read 4731 times)
0 Members and 2 Guests are viewing this topic.
Offline roland
« Posted 2012-01-30 03:19:37 »

Hi, I am trying to obfuscate my code, all of it except for one class inside one package.
I just want this class's methods not to be renamed.

I clicked "add" on keep additional classes and member names, (in obfuscate section)
then set the class name to mypackage.myclass, changed all access to required,
then went add "method", kept that as default except changed all access to required again.

But it still renames all the methods.
What am I doing wrong?

thanks,
roland

Offline dezzroy

Senior Newbie


Exp: 10 years



« Reply #1 - Posted 2012-01-30 05:04:17 »

Uh, what software are you using?

[edit: oops, reading fail--Proguard GUI it is]
Offline ra4king

JGO Kernel


Medals: 355
Projects: 3
Exp: 5 years


I'm the King!


« Reply #2 - Posted 2012-01-30 06:02:21 »

Does that class extend/implement another class that was obfuscated?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline roland
« Reply #3 - Posted 2012-01-30 06:41:25 »

nope, its a simple class, although it does import a class that is obfuscated and a member variable that is obfuscated if that changes anything.
e.g.
1  
2  
3  
4  
5  
6  
7  
8  
import someobfuscatedpackage.SomeObfuscatedClass;

public class SimpleClassNoObfuscation
{
      private static SomeObfuscatedClass something;
      private SimpleClassNoObfuscation(){}
      public static void doSomething(SomeObfuscatedClass a){something = a;}
}



Online pjt33
« Reply #4 - Posted 2012-01-30 10:46:13 »

changed all access to required
Doesn't this mean that you only want to keep the existing names of public final abstract enum annotation interfaces? What happens if you leave all those as "Don't care"?
Offline roland
« Reply #5 - Posted 2012-01-31 01:36:11 »

changed all access to required
Doesn't this mean that you only want to keep the existing names of public final abstract enum annotation interfaces? What happens if you leave all those as "Don't care"?

You are right. It's quite confusing. In the classes, I have to put "Don't care" for all, but in the methods, I had to tick keep all. ALSO, in shrinking i had to do the same thing (I didn't do this before and it moves methods somewhere else and renamed them anyway)

Thanks pjt33 Smiley
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

PocketCrafter7 (12 views)
2014-11-28 16:25:35

PocketCrafter7 (8 views)
2014-11-28 16:25:09

PocketCrafter7 (9 views)
2014-11-28 16:24:29

toopeicgaming1999 (76 views)
2014-11-26 15:22:04

toopeicgaming1999 (66 views)
2014-11-26 15:20:36

toopeicgaming1999 (15 views)
2014-11-26 15:20:08

SHC (29 views)
2014-11-25 12:00:59

SHC (27 views)
2014-11-25 11:53:45

Norakomi (32 views)
2014-11-25 11:26:43

Gibbo3771 (28 views)
2014-11-24 19:59:16
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!