Checking for device compatibility

You can include Nutrient in applications that will be distributed to devices not supported by Nutrient. In such a case, Nutrient.initialize() will throw [NutrientInitializationFailedException][], which you must catch and handle appropriately:

try {
Nutrient.initialize(context, LICENSE)
} catch (e : NutrientInitializationFailedException) {
Log.e(LOG_TAG, "Current device is not compatible with Nutrient!")
}