You are correct. But since we’re doing this coding in the dark (without being able to test against an actual license), I just followed the example in the licensing tutorial which mentions only the “if ext_lic.licensed?” test.
A link to this tutorial still exists but is dead at “Module: Sketchup::Licensing — SketchUp Ruby API Documentation”.
It showed an example where it recommended that you load your extension to SU but then do a “if ext_lic.licensed?” to decide whether to add your toolbars. I pointed out to Chris Fulmer at the time that any knowlegeable rubyist could use the console to discover your module name and method and load the toolbars himself, and bypass the need for a license! Which is why you MUST use the test elsewhere in your code.
So this leaves the following questions:
If a trial license exists (expired or unexpired) why does the extension manager show “license missing”?
Does “if ext_lic.licensed?” return TRUE for an expired trial license"; for an unexpired trial license?
Do I need to make any of these distinctions in my code? Or can I rely on SketchUp handling all this at load time? And if SketchUp can handles all licensing at load time, why have any licensing calls in the API?