Fix lint warnings

parent 47541c16
......@@ -17,6 +17,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
disable 'AllowBackup'
disable 'InvalidPackage'
}
}
dependencies {
......
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /home/rfc2822/opt/android-sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
......@@ -50,7 +50,7 @@ public class DavResourceTest extends TestCase {
public void testOptions() throws InterruptedException, IOException, HttpException, DavException {
HttpUrl url = sampleUrl();
DavResource dav = new DavResource(httpClient, url);
DavResource dav = new DavResource(null, httpClient, url);
mockServer.enqueue(new MockResponse()
.setResponseCode(HttpURLConnection.HTTP_OK)
......@@ -69,7 +69,7 @@ public class DavResourceTest extends TestCase {
public void testGet() throws InterruptedException, IOException, HttpException, DavException {
HttpUrl url = sampleUrl();
DavResource dav = new DavResource(httpClient, url);
DavResource dav = new DavResource(null, httpClient, url);
/* POSITIVE TEST CASES */
......@@ -122,7 +122,7 @@ public class DavResourceTest extends TestCase {
public void testPut() throws InterruptedException, IOException, HttpException, DavException {
HttpUrl url = sampleUrl();
DavResource dav = new DavResource(httpClient, url);
DavResource dav = new DavResource(null, httpClient, url);
/* POSITIVE TEST CASES */
......@@ -169,7 +169,7 @@ public class DavResourceTest extends TestCase {
public void testDelete() throws InterruptedException, IOException, HttpException {
HttpUrl url = sampleUrl();
DavResource dav = new DavResource(httpClient, url);
DavResource dav = new DavResource(null, httpClient, url);
/* POSITIVE TEST CASES */
......@@ -207,7 +207,7 @@ public class DavResourceTest extends TestCase {
public void testPropfindAndMultiStatus() throws IOException, HttpException, DavException {
HttpUrl url = sampleUrl();
DavResource dav = new DavResource(httpClient, url);
DavResource dav = new DavResource(null, httpClient, url);
/*** NEGATIVE TESTS ***/
......@@ -474,7 +474,7 @@ public class DavResourceTest extends TestCase {
public void testPropfindUpdateProperties() throws IOException, HttpException, DavException {
HttpUrl url = sampleUrl();
DavResource dav = new DavResource(httpClient, url);
DavResource dav = new DavResource(null, httpClient, url);
mockServer.enqueue(new MockResponse()
.setResponseCode(207)
......
......@@ -3,9 +3,6 @@
<uses-permission android:name="android.permission.INTERNET"/>
<application android:allowBackup="true"
android:label="@string/app_name">
</application>
<application android:label="@string/app_name"/>
</manifest>
......@@ -14,6 +14,7 @@ import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.util.Locale;
import at.bitfire.dav4android.Constants;
import at.bitfire.dav4android.Property;
......@@ -56,7 +57,7 @@ public class SupportedCalendarComponentSet implements Property {
case "comp":
String compName = parser.getAttributeValue(null, "name");
if (compName != null)
switch (compName.toUpperCase()) {
switch (compName.toUpperCase(Locale.US)) {
case "VEVENT":
components.supportsEvents = true;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment