ViewPump icon indicating copy to clipboard operation
ViewPump copied to clipboard

Using 'init(ViewPump): Unit' is an error.

Open rethinavelsmitch opened this issue 1 year ago • 0 comments

Global singletons are bad for testing, scoping, and composition. Use local ViewPump instances instead.

private fun initCustomFont() { val calligraphyBuilder = CalligraphyConfig.Builder().setDefaultFontPath("fonts/ft_regular.ttf") .setFontAttrId(R.attr.fontPath).build() val viewPumpInterceptor = CalligraphyInterceptor(calligraphyBuilder) val viewPumpBuilder = ViewPump.builder().addInterceptor(viewPumpInterceptor).build() ViewPump.init(viewPumpBuilder) }

After upgrading to AGP 8.0.1. I am getting this exception. 
Attached screenshot for reference. 
image

rethinavelsmitch avatar May 10 '23 07:05 rethinavelsmitch