How to Allow Common Code for 4.2 and 5.0 API

Version "resources" folder in Fitbit Studio/CLI using major OS build numbers, ex. "resources/4" and "resources/5". Support one prior MAJOR version (not minor) in tools. Allow tools to dynamically select resource folder based on the build target. Allow JavaScript to query for device capabilities (4.2 returns false for new 5.0 features).
2 Comments
TigerPointe
Base Runner

The basic ideas is that most of the high-level JavaScript will not change and is still compatible no matter which API is used..  For most projects, it's only the "resources" that change (different sized icons, images, styles, etc.) or get renamed.  Plus, versioning the resources folder allows for compatibly with future platforms, like API 6.0 and beyond.

Status changed to: Reviewed By Moderator
YojanaFitbit
Moderator Alum
Moderator Alum

Hi @TigerPointe, and thanks for taking the time to share this suggestion about allowing tools to dynamically select resource folder based on the build target. We rely on feedback like yours to help us develop products and features that we know our community wants to see. If this suggestion receives votes from other customers and gains popularity, it will be shared internally with various teams at Fitbit. To learn more about how Fitbit decides which suggestions get developed, visit our FAQs.

Watch this space for status updates. In the meantime, try visiting Health & Wellness to talk with other members about all things health and fitness.

To comment, you must first accept the terms of the Idea and Feedback Submission policy.