Closed GrahamLea closed 4 years ago
I finally came to write the updated documentation page for the API: https://truelicense.namespace.global/guide/using-the-api.html#verifying-the-license-key .
Thanks!
Extra note for others who might land here from Google: to access the LicenseManager in my app while still using the Proguard-ed jar, I've added this proguard config to the keymgr's pom:
-keep class ${package}.keymgr.LicenseManager {
public *;
}
Best practice will be to also obfuscate your own app.
Thanks!
Extra note for others who might land here from Google: to access the LicenseManager in my app while still using the Proguard-ed jar, I've added this proguard config to the keymgr's pom:
-keep class ${package}.keymgr.LicenseManager { public *; }
Best practice will be to also obfuscate your own app.
Well, it's strongly encouraged to obfuscate the whole application so then you wouldn't need to "keep" the LicenseManager
class. In fact, if it's kept, an attacker can simply replace it with a dummy substitute on the class path.
Using the
keymgr
library in my app, I've gotten this far:Now I want to do logic based on the edition:
What's the logic I need to write the if condition?