Skip to content

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

Description

@velu-deepholistics

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions