Disable cert checking for ant debug builds

This commit is contained in:
Alibek Omarov (a1batross) 2017-11-01 17:26:41 +03:00
parent 8ec0283c06
commit 0213d3be89

View file

@ -17,7 +17,8 @@ import java.lang.*;
import java.util.List;
import java.security.MessageDigest;
import in.celest.xash3d.XashConfig;
import in.celest.xash3d.XashConfig; // change pkgname if needed
import in.celest.xash3d.hl.BuildConfig; // change pkgname if needed
public class CertCheck
{
@ -29,7 +30,7 @@ public class CertCheck
public static boolean dumbAntiPDALifeCheck( Context context )
{
if( !XashConfig.CHECK_SIGNATURES )
if( !XashConfig.CHECK_SIGNATURES || BuildConfig.DEBUG )
return false; // disable checking for debug builds
final String sig;