However, I never called setDefaultDataSourceType(ComplicationType.SHORT_TEXT), which meant that my complication would never get any data from the system data source.
It would be nice if there was a Lint warning if a developer uses a non-empty DefaultComplicationDataSourcePolicy and forgets to call setDefaultDataSourceType.
Description
Component used: Wear Watchface
Version used: 1.0.0
I was writing a complication that used one of the
SystemDataSources
. For example:However, I never called
setDefaultDataSourceType(ComplicationType.SHORT_TEXT)
, which meant that my complication would never get any data from the system data source.It would be nice if there was a Lint warning if a developer uses a non-empty
DefaultComplicationDataSourcePolicy
and forgets to callsetDefaultDataSourceType
.There's a guide for adding Lint checks to AndroidX libraries that might be a useful starting point for creating the artifact needed to bundle Lint checks with Wear Watchface.