Loading build.gradle +0 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ dependencies { compile 'org.parceler:parceler-api:1.1.6' annotationProcessor 'org.parceler:parceler:1.1.6' compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0' } android { Loading src/com/owncloud/android/lib/resources/activities/GetRemoteActivitiesOperation.java +2 −15 Original line number Diff line number Diff line /* Nextcloud Android Library is available under MIT license * Copyright (C) 2017 Alejandro Bautista /** Nextcloud Android Library is available under MIT license * * Copyright (C) 2017 Alejandro Bautista * @author Alejandro Bautista * * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights Loading Loading @@ -54,10 +53,8 @@ import java.util.List; * accessible via the activities endpoint at {@value OCS_ROUTE_V12_AND_UP}, specified at * {@link "https://github.com/nextcloud/activity/blob/master/docs/endpoint-v2.md"}. */ public class GetRemoteActivitiesOperation extends RemoteOperation{ private static final String TAG = GetRemoteActivitiesOperation.class.getSimpleName(); // OCS Routes Loading @@ -69,14 +66,6 @@ public class GetRemoteActivitiesOperation extends RemoteOperation{ private static final String NODE_DATA = "data"; /** * Date pattern according to * http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html * for "2004-02-12T15:19:21+00:00" */ private static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX"); @Override protected RemoteOperationResult run(OwnCloudClient client) { RemoteOperationResult result = null; Loading @@ -92,7 +81,6 @@ public class GetRemoteActivitiesOperation extends RemoteOperation{ Log_OC.d(TAG, "URL: " + url); try { get = new GetMethod(url); get.addRequestHeader(OCS_API_HEADER, OCS_API_HEADER_VALUE); Loading Loading @@ -140,5 +128,4 @@ public class GetRemoteActivitiesOperation extends RemoteOperation{ private boolean isSuccess(int status) { return (status == HttpStatus.SC_OK); } } Loading
build.gradle +0 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ dependencies { compile 'org.parceler:parceler-api:1.1.6' annotationProcessor 'org.parceler:parceler:1.1.6' compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0' } android { Loading
src/com/owncloud/android/lib/resources/activities/GetRemoteActivitiesOperation.java +2 −15 Original line number Diff line number Diff line /* Nextcloud Android Library is available under MIT license * Copyright (C) 2017 Alejandro Bautista /** Nextcloud Android Library is available under MIT license * * Copyright (C) 2017 Alejandro Bautista * @author Alejandro Bautista * * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights Loading Loading @@ -54,10 +53,8 @@ import java.util.List; * accessible via the activities endpoint at {@value OCS_ROUTE_V12_AND_UP}, specified at * {@link "https://github.com/nextcloud/activity/blob/master/docs/endpoint-v2.md"}. */ public class GetRemoteActivitiesOperation extends RemoteOperation{ private static final String TAG = GetRemoteActivitiesOperation.class.getSimpleName(); // OCS Routes Loading @@ -69,14 +66,6 @@ public class GetRemoteActivitiesOperation extends RemoteOperation{ private static final String NODE_DATA = "data"; /** * Date pattern according to * http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html * for "2004-02-12T15:19:21+00:00" */ private static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX"); @Override protected RemoteOperationResult run(OwnCloudClient client) { RemoteOperationResult result = null; Loading @@ -92,7 +81,6 @@ public class GetRemoteActivitiesOperation extends RemoteOperation{ Log_OC.d(TAG, "URL: " + url); try { get = new GetMethod(url); get.addRequestHeader(OCS_API_HEADER, OCS_API_HEADER_VALUE); Loading Loading @@ -140,5 +128,4 @@ public class GetRemoteActivitiesOperation extends RemoteOperation{ private boolean isSuccess(int status) { return (status == HttpStatus.SC_OK); } }