Added patch from upstream [1] to fix build error cannot find symbol List<?>

[1] 2bbe83057b
This commit is contained in:
أحمد المحمودي (Ahmed El-Mahmoudy) 2014-01-27 14:17:43 +02:00
parent 11c1cccc3e
commit 48a495ae86
2 changed files with 23 additions and 1 deletions

View file

@ -111,9 +111,9 @@ Build:2.5.1,85
echo wp.GCM_ID="wordpress" >> local.properties
Build:2.6 RC 2,90
disable=Doesn't build - ApiHelper.java:412: cannot find symbol List<?>, see: https://github.com/wordpress-mobile/WordPress-Android/issues/678
commit=2.6-rc-2
gradle=yes
patch=list.patch
prebuild=cp local.properties-example local.properties && \
sed -e "/sdk.dir/ s#.*#sdk.dir=$$SDK$$#" -i local.properties

View file

@ -0,0 +1,22 @@
diff --git a/src/org/xmlrpc/android/ApiHelper.java b/src/org/xmlrpc/android/ApiHelper.java
index fcdd0b3..44e88a9 100644
--- a/src/org/xmlrpc/android/ApiHelper.java
+++ b/src/org/xmlrpc/android/ApiHelper.java
@@ -144,7 +144,7 @@ public class ApiHelper {
public void onSuccess();
}
- public static class GetPostFormatsTask extends HelperAsyncTask<List<?>, Void, Object> {
+ public static class GetPostFormatsTask extends HelperAsyncTask<java.util.List<?>, Void, Object> {
private Blog mBlog;
@Override
@@ -409,7 +409,7 @@ public class ApiHelper {
}
}
- public static class SyncMediaLibraryTask extends HelperAsyncTask<List<?>, Void, Integer> {
+ public static class SyncMediaLibraryTask extends HelperAsyncTask<java.util.List<?>, Void, Integer> {
public interface Callback extends GenericErrorCallback {
public void onSuccess(int results);
}