From 3c599767610faa94ca4ac6eac3fa5c253dde0fb5 Mon Sep 17 00:00:00 2001 From: David Black Date: Sun, 28 Apr 2013 22:29:14 +0100 Subject: [PATCH] update ro.weednet.contactssync to 1.2.0 --- metadata/ro.weednet.contactssync.txt | 19 ++++---- .../ro.weednet.contactssync/appbrain.patch | 45 +++++++++++++++++++ 2 files changed, 55 insertions(+), 9 deletions(-) create mode 100644 metadata/ro.weednet.contactssync/appbrain.patch diff --git a/metadata/ro.weednet.contactssync.txt b/metadata/ro.weednet.contactssync.txt index d830646028..6d21874f93 100644 --- a/metadata/ro.weednet.contactssync.txt +++ b/metadata/ro.weednet.contactssync.txt @@ -1,19 +1,19 @@ Category:Office License:GPLv3 -Web Site:https://github.com/loadrunner/Facebook-Contact-Sync +Web Site: Source Code:https://github.com/loadrunner/Facebook-Contact-Sync Issue Tracker:https://github.com/loadrunner/Facebook-Contact-Sync/issues Summary:Sync your Facebook Contacts Description: To configure, go to "Settings => Accounts & Sync => Add Account". -Depending on how many friends you have, the first import might take a while, so be patient. +Depending on how many friends you have, the first import might take a while, +so be patient. -* Facebook does not allow to export phone numbers or emails. Only names, pictures and statuses are synced. -* Facebook users have the option to block one or all apps. If they opt for that, they will be EXCLUDED from your friends list. -* Does NOT work on Samsung Galaxy SIII +* Facebook does not allow to export phone numbers or emails: only names, pictures and statuses are synced. +* Facebook users have the option to block one or all apps: if they opt for that, they will be EXCLUDED from your friends list. -Status: The most recent versions use a proprietary library and have build problems. +Appbrain SDK was removed before building. . Repo Type:git @@ -21,9 +21,10 @@ Repo:https://github.com/loadrunner/Facebook-Contact-Sync.git Build Version:1.0.0,32,b3879c973e7cac3a3319 Build Version:1.0.1,33,252c8dd4c9 -Build Version:1.2.0,39,!Appbrain SDK can be patched but still FacebookSDK errors (at v1.2.0),\ -srclibs=FacebookSDK@master,\ -prebuild=sed -i 's@\(android.library.reference.1=\).*@\1$$FacebookSDK$$@' project.properties +Build Version:1.2.0,39,v1.2.0,rm=libs/appbrain-sdk-android.jar,\ +srclibs=FacebookSDK@sdk-version-3.0.1,patch=appbrain.patch,prebuild=\ +sed -i 's@\(reference.1=\).*@\1$$FacebookSDK$$@' project.properties && \ +sed -i 's/Class\[\]/Class\\[\]/g' $$FacebookSDK$$/src/com/facebook/model/GraphObject.java Auto Update Mode:None Update Check Mode:Tags diff --git a/metadata/ro.weednet.contactssync/appbrain.patch b/metadata/ro.weednet.contactssync/appbrain.patch new file mode 100644 index 0000000000..2bad15a22a --- /dev/null +++ b/metadata/ro.weednet.contactssync/appbrain.patch @@ -0,0 +1,45 @@ +diff --git a/src/ro/weednet/ContactsSync.java b/src/ro/weednet/ContactsSync.java +index 7c62c2b..90e57a2 100644 +--- a/src/ro/weednet/ContactsSync.java ++++ b/src/ro/weednet/ContactsSync.java +@@ -22,8 +22,6 @@ + */ + package ro.weednet; + +-import com.appbrain.AppBrain; +- + import ro.weednet.contactssync.Constants; + import ro.weednet.contactssync.activities.Preferences; + import ro.weednet.contactssync.client.RawContact; +@@ -83,7 +81,6 @@ public class ContactsSync extends Application { + reloadPreferences(); + mMaxPhotoSize = ContactManager.getPhotoPickSize(this); + +- AppBrain.initApp(this); + } + + public SyncType getSyncType() { +diff --git a/src/ro/weednet/contactssync/activities/Preferences.java b/src/ro/weednet/contactssync/activities/Preferences.java +index 294c64f..2ccc59e 100644 +--- a/src/ro/weednet/contactssync/activities/Preferences.java ++++ b/src/ro/weednet/contactssync/activities/Preferences.java +@@ -22,8 +22,6 @@ + */ + package ro.weednet.contactssync.activities; + +-import com.appbrain.AppBrain; +- + import ro.weednet.ContactsSync; + import ro.weednet.contactssync.R; + import ro.weednet.contactssync.authenticator.AuthenticatorActivity; +@@ -170,10 +168,6 @@ public class Preferences extends Activity { + public void onBackPressed() { + ContactsSync app = ContactsSync.getInstance(); + +- if (!app.getDisableAds()) { +- AppBrain.getAds().maybeShowInterstitial(this); +- } +- + finish(); + } +