Skip to content

Commit

Permalink
Merge pull request #987 from garanj/main
Browse files Browse the repository at this point in the history
Updates messaging to recommend use of Watch Face Format
  • Loading branch information
garanj authored Jan 12, 2024
2 parents ac67dfe + a313704 commit 5e509be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions WatchFaceKotlin/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
WatchFace Sample (Kotlin)
===============================
Demonstrates watch faces using the new androidX libraries (Kotlin).
Demonstrates watch faces using the androidX libraries (Kotlin). **The newer [Watch Face Format][1]
(WFF) is recommended in preference to using these libraries.**

Introduction
------------
With the release of the androidX watch face libraries (late 2020), Wear OS has simplified
watch face development.

This sample gives you an early preview of how you can simplify your development with the new 100%
Kotlin libraries.
The AndroidX watch face libraries allow you to develop a watch face service in Kotlin. However,
[WFF][1] is strongly recommended in preference to this approach.

Steps to build in Android Studio
--------------------------------
Expand Down Expand Up @@ -46,3 +44,5 @@ https://github.com/android/wear-os-samples

Patches are encouraged, and may be submitted by forking this project and
submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.

[1]: https://developer.android.com/training/wearables/wff
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fun createComplicationSlotManager(
canvasComplicationFactory = defaultCanvasComplicationFactory,
supportedTypes = ComplicationConfig.Right.supportedTypes,
defaultDataSourcePolicy = DefaultComplicationDataSourcePolicy(
SystemDataSources.DATA_SOURCE_STEP_COUNT,
SystemDataSources.DATA_SOURCE_WATCH_BATTERY,
ComplicationType.SHORT_TEXT
),
bounds = ComplicationSlotBounds(
Expand Down

0 comments on commit 5e509be

Please sign in to comment.