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