Disable cert checking for ant debug builds
This commit is contained in:
parent
8ec0283c06
commit
0213d3be89
1 changed files with 3 additions and 2 deletions
|
@ -17,7 +17,8 @@ import java.lang.*;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.security.MessageDigest;
|
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
|
public class CertCheck
|
||||||
{
|
{
|
||||||
|
@ -29,7 +30,7 @@ public class CertCheck
|
||||||
|
|
||||||
public static boolean dumbAntiPDALifeCheck( Context context )
|
public static boolean dumbAntiPDALifeCheck( Context context )
|
||||||
{
|
{
|
||||||
if( !XashConfig.CHECK_SIGNATURES )
|
if( !XashConfig.CHECK_SIGNATURES || BuildConfig.DEBUG )
|
||||||
return false; // disable checking for debug builds
|
return false; // disable checking for debug builds
|
||||||
|
|
||||||
final String sig;
|
final String sig;
|
||||||
|
|
Loading…
Add table
Reference in a new issue