目录

How do I determine whether the current application is a debug package or a release package?

During build, Hvigor generates the BuildProfile class, which can be used to obtain build parameters at runtime. BuildProfile.BUILD_MODE_NAME indicates the build mode, that is, a debug package. If the build mode is debug, the package is a debug package. If the build mode is release, the package is a release package.

Reference

Obtaining Custom Build Parameters