Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.15 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.15 KB

Watch Face Format specification

Overview

The watch face format specifcation allows you to validate your watch faces and operation of watch face generating tools. The specification is
provided as XSD files.

There are different versions of the specification, which have different capabilities and compatibilities. Please see this guide for more details.

Format validator

In addition to the XSD files, a validator is provided that can be used to check specific watch face XML files.

Building the validator

cd third_party/wff
./gradlew :specification:validator:build

The resulting JAR file can then be found at: specification/validator/build/libs/dwf-format-2-validator-1.0.jar

Usage

To check whether a watch face is valid, invoke the validator as follows:

java -jar dwf-format-2-validator-1.0.jar <format-version> <any options> <your-watchface.xml> <more-watchface.xml>

For example:

java -jar dwf-format-2-validator-1.0.jar 2 ~/MyWatchface/res/raw/watchface.xml