Aztec (which extends EditText) is a rich-text editor component for writing HTML documents in Android.
Supports Android 4.1+ (API 16 - Jelly Bean)
Build the library, build the example project and run unit tests:
$ ./gradlew build
Run unit tests only:
$ ./gradlew test
Espresso advises disabling system animations on devices used for testing:
On your device, under Settings->Developer options disable the following 3 settings:
- Window animation scale
- Transition animation scale
- Animator duration scale
One additional setup step is also required to handle an Espresso issue with clicks (see the caveats below):
On your device, under Settings -> Accessibility -> Touch & hold delay, set the delay to Long
.
Run the instrumentation tests:
$ adb shell am instrument -w -r -e package org.wordpress.aztec.demo -e debug false org.wordpress.aztec.test/android.support.test.runner.AndroidJUnitRunner
The library is not ready for prime time yet, so it's not published on Maven Central. Currently the library is distributed as an alpha build.
Brave developers can either use the project as a source distribution or have fun with JitPack at their own risk:
compile ('com.github.wordpress-mobile.WordPress-Aztec-Android:aztec:develop-SNAPSHOT')
When Aztec is ready, we'll publish the artifact in Maven.
- Spans, a Powerful Concept.
- Spanned, Android Reference Documentation.
- Aztec was inspired by Knife.
Aztec is an Open Source project covered by the GNU General Public License version 2.