CloudServices/NativeSync: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 51: Line 51:
android-sync has the following dependencies:
android-sync has the following dependencies:


* sync-crypto, described below.
* httpclientandroidlib, which provides a working modern version of the Apache HTTPClient under a different Java package.
* httpclientandroidlib, which provides a working modern version of the Apache HTTPClient under a different Java package.
* json-simple 1.1 and commons-codec 1.2, which ship with Android.
* json-simple 1.1 and commons-codec 1.2, which ship with Android.
Line 61: Line 60:
* Tiny “un-stub” packages for android.util.Log, android.util.Base64, and android.content.SharedPreferences.
* Tiny “un-stub” packages for android.util.Log, android.util.Base64, and android.content.SharedPreferences.


These live on github, and must be built and installed.
These live on github, and *must be built and installed*.


** https://github.com/rnewman/base64-unstub
** https://github.com/rnewman/base64-unstub
** https://github.com/rnewman/log-unstub
** https://github.com/rnewman/log-unstub
** https://github.com/rnewman/sharedpreferences-stub
** https://github.com/rnewman/sharedpreferences-stub
=== sync-crypto dependencies ===
sync-crypto relies on Apache commons-codec 1.5, which includes Base32. The Android system libraries include the 8-year-old version 1.2. As a result, sync-crypto is packaged as an assembly jar (aka über jar).


=== What you need to do ===
=== What you need to do ===
Line 89: Line 84:
To do real Android development and testing, you need to import android-sync as a project in Eclipse with the ADT installed.
To do real Android development and testing, you need to import android-sync as a project in Eclipse with the ADT installed.


Note that both android-sync and sync-crypto have JUnit 4 tests that run in both Eclipse and Maven.  The subdirectory android-sync/test includes Android JUnit 3 tests for activity and store testing.  This is to avoid the mammoth annoyance of testing in a VM without introducing robolectric.
Note that android-sync has JUnit 4 tests that run in both Eclipse and Maven.  The subdirectory android-sync/test includes Android JUnit 3 tests for activity and store testing.  This is to avoid the mammoth annoyance of testing in a VM without introducing robolectric.


=== Running Fennec ===
=== Running Fennec ===
canmove, Confirmed users
640

edits

Navigation menu