Download page Exclude Classes from Being Instrumented.
Exclude Classes from Being Instrumented
You can exclude one or more class names from being instrumented, using the "adeum" excludeClasses snippet.
Class names can contain wildcards:
'?' for a single character
'*' for any number of characters, but not the package separator
'**' for any number of (any) characters
'$' prefix for an inner class name
To exclude named classes from instrumentation, add the class names to the excludeClasses array, using matching patterns where needed:
...
adeum {
// Excludes all the classes in the android.support.multidex and okio packages.
excludeClasses = ['android.support.multidex.*', 'okio.**']
}
...