From 0f3ba0737b121e9eb10d40d4841663d144998a0d Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 24 Jul 2014 18:37:28 +0200 Subject: [PATCH] Fixed gradle warnings. --- app/build.gradle | 2 +- .../java/com/nutomic/zertman/MovedCertificatesStorage.java | 4 +++- app/src/main/res/values-w820dp/dimens.xml | 6 ------ app/src/main/res/values/dimens.xml | 5 ----- 4 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 app/src/main/res/values-w820dp/dimens.xml delete mode 100644 app/src/main/res/values/dimens.xml diff --git a/app/build.gradle b/app/build.gradle index f901441..1b2a897 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'android' +apply plugin: 'com.android.application' android { compileSdkVersion 19 buildToolsVersion '19.1.0' diff --git a/app/src/main/java/com/nutomic/zertman/MovedCertificatesStorage.java b/app/src/main/java/com/nutomic/zertman/MovedCertificatesStorage.java index 5e381f1..8b68b85 100644 --- a/app/src/main/java/com/nutomic/zertman/MovedCertificatesStorage.java +++ b/app/src/main/java/com/nutomic/zertman/MovedCertificatesStorage.java @@ -33,7 +33,9 @@ public class MovedCertificatesStorage implements Closeable { } public boolean insert(Certificate cert) { - assert(cert.isSystemCertificate()); + if (BuildConfig.DEBUG && !cert.isSystemCertificate()) { + throw new InvalidParameterException("Only system certificates can be inserted"); + } ContentValues cv = new ContentValues(); cv.put(Table.COLUMN_NAME_FILE_NAME, cert.getFile().getName()); diff --git a/app/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml deleted file mode 100644 index 63fc816..0000000 --- a/app/src/main/res/values-w820dp/dimens.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - 64dp - diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml deleted file mode 100644 index 47c8224..0000000 --- a/app/src/main/res/values/dimens.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 16dp - 16dp -