Skip to content

getRuntimeDescription ​

Get the Runtime Version Description ​

getRuntimeDescription returns detailed build information about the currently loaded SUD Runtime SDK. Unlike the plain numeric version number from getRuntimeVersion, the information provided by this interface usually includes the build time, Git commit hash (Commit ID), or other internal identifiers, used for more precise performance analysis and troubleshooting.


Method Declaration ​

java
/**
 * Return the version description of the Runtime SDK module
 * * @return A description string containing the version number and build details
 */
String getRuntimeDescription();

Runtime Behavior ​

  1. Detail: This method returns a descriptive text, not just a three-part version number.
  2. Diagnostic use: When a developer encounters a bug that only appears in a specific build version, this description is the most effective way to provide environment context to SUD technical support.
  3. Zero latency: This method directly reads memory-resident information and incurs no disk I/O or network overhead.

Example ​

java
// Get the detailed description
String desc = runtime.getRuntimeDescription();
Log.d("SUDOP", "Runtime Build Description: " + desc);

// A sample output might be:
// "1.2.30.build20240520.c0ffee8"

getRuntimeVersion vs getRuntimeDescription ​

CharacteristicgetRuntimeVersiongetRuntimeDescription
Return contentStandard version number only (e.g. 1.2.30)Full build details (including date/hash)
Main useBusiness logic decisions, feature detectionError logging, technical troubleshooting
ReadabilitySuitable for programmatic parsingSuitable for human reading

Notes ​

  • Non-standard format: Because the description string contains build details, its format may change as the SDK version evolves. It is not recommended to forcibly parse specific fields inside it with regular expressions.
  • Log collection: When integrating a crash collection system (such as Bugly or Firebase), it is recommended to upload this description as a custom tag.