Configure Gradle
To use iris mock you need to add its dependency to your gradle files. You can choose to configure iris mock for entire project or just for a specific build variant:
Configuring on entire project¶
Using legacy plugin application - older gradle
Configuring in a specific build variant¶
You are now ready to create your own interceptors
Since iris mock uses the new Transform API
, it only works on AGP 4.2.0+