From 48a495ae86de22fe5d61e03468db30869711b597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=A3=D8=AD=D9=85=D8=AF=20=D8=A7=D9=84=D9=85=D8=AD=D9=85?= =?UTF-8?q?=D9=88=D8=AF=D9=8A=20=28Ahmed=20El-Mahmoudy=29?= Date: Mon, 27 Jan 2014 14:17:43 +0200 Subject: [PATCH] Added patch from upstream [1] to fix build error cannot find symbol List [1] https://github.com/wordpress-mobile/WordPress-Android/commit/2bbe83057bbbe86010d4ca3db4722aa3806198b3 --- metadata/org.wordpress.android.txt | 2 +- metadata/org.wordpress.android/list.patch | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 metadata/org.wordpress.android/list.patch diff --git a/metadata/org.wordpress.android.txt b/metadata/org.wordpress.android.txt index d671fcd002..e99678c5e9 100644 --- a/metadata/org.wordpress.android.txt +++ b/metadata/org.wordpress.android.txt @@ -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 diff --git a/metadata/org.wordpress.android/list.patch b/metadata/org.wordpress.android/list.patch new file mode 100644 index 0000000000..65f1a143d1 --- /dev/null +++ b/metadata/org.wordpress.android/list.patch @@ -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, Void, Object> { ++ public static class GetPostFormatsTask extends HelperAsyncTask, Void, Object> { + private Blog mBlog; + + @Override +@@ -409,7 +409,7 @@ public class ApiHelper { + } + } + +- public static class SyncMediaLibraryTask extends HelperAsyncTask, Void, Integer> { ++ public static class SyncMediaLibraryTask extends HelperAsyncTask, Void, Integer> { + public interface Callback extends GenericErrorCallback { + public void onSuccess(int results); + }