Apparently, Yandex changed something, but they didn't specify it in the documentation. The problem has been solved. In the Build settings, the dead code stripping flag must be set to true.