CloudServices/NativeSync: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 15: Line 15:


After installation, fennec would crash on installation (unable to locate mozutils library, although it's in the apk). Possibly related to emulator failing to run NDK applications?
After installation, fennec would crash on installation (unable to locate mozutils library, although it's in the apk). Possibly related to emulator failing to run NDK applications?
== Running everything ==
You'll be wanting to run test-android-sync:
* https://github.com/mozilla-services/test-android-sync
This depends on the android-sync project, as described in [http://developer.android.com/guide/topics/testing/testing_android.html the Android testing docs]:
* https://github.com/mozilla-services/android-sync
=== android-sync 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.
* json-simple 1.1 and commons-codec 1.2, which ship with Android.
* Android 2.3.3.
For testing it requires:
* JUnit 4.1.
* org.simpleframework.simple, for HTTP testing.
* Tiny “un-stub” packages for android.util.Log and android.util.Base64. These live on GitHub, and must be built and installed.
** https://github.com/rnewman/base64-unstub
** https://github.com/rnewman/log-unstub
=== 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). Simply run <tt>build.sh</tt> to instruct Maven to do the right thing.
An up-to-date version is checked in to the <tt>libs</tt> directory in <tt>android-sync</tt>, with the <tt>mvnify</tt> script in that directory taking care of installing it in your local repository.
=== What you need to do ===
git clone https://github.com/rnewman/base64-unstub
git clone https://github.com/rnewman/log-unstub
git clone https://github.com/mozilla-services/android-sync
git clone https://github.com/mozilla-services/test-android-sync
pushd base64-unstub; mvn install; popd
pushd log-unstub;    mvn install; popd
pushd android-sync/libs; ./mvnify; popd
pushd android-sync
mvn test
To do real Android development and testing, you need to import both android-sync and test-android-sync as projects in Eclipse with the ADT installed.


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

edits

Navigation menu