Fixed gradle warnings.

This commit is contained in:
Felix Ableitner 2014-07-24 18:37:28 +02:00
parent 73d6e1de7c
commit 0f3ba0737b
4 changed files with 4 additions and 13 deletions

View file

@ -1,4 +1,4 @@
apply plugin: 'android' apply plugin: 'com.android.application'
android { android {
compileSdkVersion 19 compileSdkVersion 19
buildToolsVersion '19.1.0' buildToolsVersion '19.1.0'

View file

@ -33,7 +33,9 @@ public class MovedCertificatesStorage implements Closeable {
} }
public boolean insert(Certificate cert) { 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(); ContentValues cv = new ContentValues();
cv.put(Table.COLUMN_NAME_FILE_NAME, cert.getFile().getName()); cv.put(Table.COLUMN_NAME_FILE_NAME, cert.getFile().getName());

View file

@ -1,6 +0,0 @@
<resources>
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
<dimen name="activity_horizontal_margin">64dp</dimen>
</resources>

View file

@ -1,5 +0,0 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
</resources>