Hello, I made a custom module and it’s working great, but when I install on the gateway the the License shown is trial: I tried to figure out how to set the kind of license inside the code, but I can’t really understand how it’s done. Looking at the classes and the documentation, the objects that are retrievable from the custom ModuleHook class can only get informations regarding the state of the license, but I cannot find a way to set the state of the license. In this page:
are listed some of the basic classes representing basic kinds of licenses: there’s a FreeLicenseState that I guess is what I need, but how to use it?
For example, I tried to override the startup method in my ModuleHook class:
@Override
public void startup(@NotNull LicenseState activationState) {
super.startup(new FreeLicenseState());
}
but it’s now working. Anyone knows how to do it?
Thanks in advance,
Francesco