I added a contentDescription to the major UI components for the SDK so that my UI tests of DiagnosticApp could discern when the main view was being shown.
Currently, the SDK allows system log level to override the log level set in code in the Playhaven SDK. The idea is to allow support developers to "turn on" the verbose logs when debugging an app that is "mute" in production and the flag can be set via adb setprop log.tag.[APP NAME] [LOG LEVEL]
. Unfortunately, this flag defaults to INFO even if the support developer never calls setprop. This means that the code level setting can never restrict the logs below a level of INFO because the device setting takes precedence.
The system property concept as a whole seemed problematic and unreliable so I switched to a small configuration file placed in /sdcard/loglevel.prop that simply listed the appropriate log level. If this file does not exist, the SDK defaults to the code level setting but