Repository navigation
FIX: Point the examples at contact-us when a key lacks a paid property - #303
Merged
Merged
Conversation
…y, and start every example from the repository root
…the key's properties are known
…urns A free resource key returns IsMobile and DeviceType. It does not return PlatformName, PlatformVersion, BrowserName, BrowserVersion, HardwareVendor, or HardwareName, which start with the lowest paid plan. The examples had this the wrong way around in two places. They called DeviceType paid, and GettingStartedCloud read the platform and browser values straight off the result, so with a free key it stopped with an error before it reached the paid note. GettingStartedCloud now gives the six paid properties the same handling the hardware ones had, so a free key prints "needs a paid Resource Key" for each and the note lists them, and it prints Device Type as an ordinary value. The paid list in DataFileHelper, which MetadataCloud also uses, is now those six. MinimalExample goes back to printing IsMobile only, as it did before this pull request. Its DeviceType check was only there because DeviceType was thought to be paid. The javadoc of the configuration page constant, the class comment of GettingStartedCloud, and the message for a missing test key no longer say the page gives a free key with every property the examples use. The javadoc also says that the paid ones need a License Key. The stand-in's free key now lists IsMobile and DeviceType, and the tests check the new output.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The examples now meet the examples' rules for a key, a paid property, and the closing section.
_51DEGREES_RESOURCE_KEYrather than a placeholder in their configuration file, start with no key and say how to get one, run from the repository root, and end with Find out more. The location console examples give the same paid property message. Their pages label Country and County correctly and no longer fail on empty location data.New tests check each message and link, using stand-in cloud answers for a free and a paid key, and that nothing is said about paid properties when the key's property list could not be read. Every example link now carries the five campaign tags. Everything builds with JDK 17 with every warning as an error, the changed tests pass, and the link lint passes.