bug crash with release (obfuscate) + license library

andrewmp

Member
Licensed User
Longtime User
I'm using the LicenseChecker library.

If you use the SetVariableAndValue("txrx", "test") function and use the compile as release (obfuscate) the application will crash because it won't find the txrx string as it's been obfuscated.

I've also noticed that compiling as release (obfuscate) the java files contain these lines:

BA.debugLineNum

I can't figure out how to not make these lines show up

Thanks in advance
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is not a bug. It is a limitation of obfuscation. It is mentioned in the tutorial about the licensing library. You should include an underscore in the name to prevent the variable from being obfuscated.

The java lines are comments. They are stripped out during Java compilation. You should not be bothered by these comments.
 

andrewmp

Member
Licensed User
Longtime User
obfuscate + license library

I looked around could not find the note , I'd add here in bold

Basic4android - Licensing

otherwise others may fall in the same trap.

Missed also skipping var obfuscation using "_" - very useful

Thanks sorry for the false alarm works ok now

The other note was just to keep obfuscated code and normal code separate that all.
 
Top