assertWhenLegacyArchitectureMinifyingEnabled

fun assertWhenLegacyArchitectureMinifyingEnabled(name: String, logLevel: LegacyArchitectureLogLevel = LegacyArchitectureLogLevel.WARNING)

Asserts and logs when legacy architecture components are being used in new architecture. This method will throw an exception if the app is running on the new architecture and the logLevel received by parameter is LegacyArchitectureLogLevel.ERROR.

Parameters

name

The name of the legacy component being used

logLevel

The severity level of the log (ERROR or WARNING, defaults to WARNING)