profile: load vcard and display image in call frag
This patch retrieves the vcard from the disk and displays its content
in the call fragment.
It also crops the image to a circled one. This behaviour is extracted
from the ContactPictureTask and factorized in a dedicated class
We use an external library for vCard parsing, ez-vcard licensed under
the BSD 3-Clause License. The transitive dependency freemarker is
optionnal and not necessary for us (it was causing warnings during
compilation)
Change-Id: I293fc75ae4c2ba7394f194a61ec5e791dffaa5c7
Tuleap: #857
diff --git a/ring-android/app/build.gradle b/ring-android/app/build.gradle
index c5bce5e..fdf1a76 100644
--- a/ring-android/app/build.gradle
+++ b/ring-android/app/build.gradle
@@ -7,8 +7,7 @@
dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
- compile 'com.j256.ormlite:ormlite-core:4.48'
- compile 'com.j256.ormlite:ormlite-android:4.48'
+
compile 'com.android.support:support-v13:24.2.+'
compile 'com.android.support:design:24.2.+'
compile 'com.android.support:cardview-v7:24.2.+'
@@ -16,10 +15,27 @@
compile 'com.android.support:recyclerview-v7:24.2.+'
compile 'com.jayway.android.robotium:robotium-solo:5.4.1'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
+
+ // ORM
+ compile 'com.j256.ormlite:ormlite-core:4.48'
+ compile 'com.j256.ormlite:ormlite-android:4.48'
+
+ // Parsing, formatting, and validating international phone numbers
compile 'com.googlecode.libphonenumber:libphonenumber:7.0.11'
+
+ // Library for listview headers
compile 'se.emilsjolander:stickylistheaders:2.7.0'
+
+ // Barcode scanning
compile 'com.google.zxing:core:3.2.1'
compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
+
+ // VCard parsing
+ compile('com.googlecode.ez-vcard:ez-vcard:0.9.10') {
+ exclude module: 'freemarker'
+ }
+
+ // Butterknife
compile 'com.jakewharton:butterknife:8.1.0'
compile 'com.skyfishjy.ripplebackground:library:1.0.1'
apt 'com.jakewharton:butterknife-compiler:8.1.0'