スキップしてメイン コンテンツに移動

Versa 3 および Senseへの対応

SDK 5.0で、Versa 3 および Senseへの対応がなされた。

https://dev.fitbit.com/blog/2020-09-24-announcing-fitbit-os-sdk-5.0/

予想とは異なり、SDK5.0でVersa 2の作成ができる見込みは現状ないらしい。SDK4.2が利用できなくなるとVersa 2用の公開が難しくなる。(Fitbit Studioではなくコマンドラインに移行する必要あり?シュミレータはどうなる?)

Q: Will Fitbit OS 5.0 be coming to Fitbit Ionic, Fitbit Versa, Fitbit Versa Lite, or Fitbit Versa 2? 
A: Fitbit OS 5.0 has been developed exclusively for Versa 3 and Sense, and there are no plans to bring this to older devices. Fitbit OS 5.0 includes UI enhancements and new experiences that are optimized for the new custom display and speaker on Fitbit Sense and Fitbit Versa 3.


Compatibility Modeというものがあるらしいが、DCLancher,ACLancherでは有効でないようにみえる。(SDK5.0で削除されたUIコンポーネントを使用しているためと想定)

Where possible existing apps and clock faces built using previous versions of the Fitbit OS SDK will run in compatibility mode on the new Fitbit OS 5.0 devices. This works by dynamically scaling them from 300x300 to 336x336. Unfortunately this means that some of the existing designs were negatively affected by the loss of pixels in the corners of the screen due to the enhanced "squircle" shape.

As with previous new device releases we have analyzed existing clock faces and apps to determine which were forward compatible with the new devices without requiring any modification. Those deemed compatible were automatically added to an allow-list, with developers having the option to "opt-out" of support within the Gallery App Manager by clicking the X on unsupported devices.


SDK4.2からSDK 5.0への移行は、SDK5.0で削除されたUIコンポーネントを使用しているため手間がかかりそう。

https://dev.fitbit.com/build/guides/migration/#sdk-4-x-to-5-0

また、一度のビルドでSDK4.2とSDK 5.0の両方に対応させることはできない。

https://dev.fitbit.com/build/guides/publishing/

If your app or clock wasn't added to the allow-list then you will need to update their design and resubmit a new version that specifically supports Fitbit OS 5.0 and the new devices.

同一のUUIDで、SDK4.2とSDK 5.0の両方のバージョンを登録することもできそうなのだが...具体的な方法がわかっていない。
まずはSDK5.0用に一度移植してみて考える。

Multiple Devices Guide
  • Versa, Versa Lite, and Versa 2 are square shaped. 300x300 pixels.
  • Versa 3, and Sense are squircle shaped. 336x336 pixels.
SDK 4.x to 5.0
  • /resources/index.gui renamed to /resources/index.view.
  • /resources/widgets.gui renamed to /resources/widget.defs.
  • The import /mnt/sysassets/widgets_common.gui has been renamed to /mnt/sysassets/system_widget.defs.
  • Imported UI components renamed from *.gui to *.defs. e.g. /mnt/sysassets/widgets/baseview_widget.gui becomes /mnt/sysassets/widgets/baseview_widget.defs.
  • The following UI components have been removed: 
    • panoramaview_widget
    • combo_button_widget
    • square_button_widget
    • push_button_widget
    • mixed_text_widget
  • document.replaceSync() has deprecated in favor of two asynchronous promise based methods: document.location.replace() and document.location.assign().


SDK5.0で、combo_buttonをicon-buttonに置き換えてみたがイメージが変わってしまいimageに置き換えた。
ディスプレイが正方形でなくSquircleなので四隅のアイコンげ欠けてしまった。
Versa3,Sense用にデザインを微調整する必要がありそう。

SDK4.2で、Compatibility Modeが有効になることを期待して、combo_buttonをimageに置き換えてみる。Compatibility Modeが有効とならないなら、要望があれば別のプロジェクトとしてリリースか。
ただ、combo_button_widgetを削除してみたが、GAMで登録しただけでは互換モードが有効にならず、レビュー申請を通してと推測する。見通しは立っていない。

https://dev.fitbit.com/build/guides/user-interface/svg-components/buttons/#icon-button

Compatibility Mode
As with previous new device releases we have analyzed existing clock faces and apps to determine which were forward compatible with the new devices without requiring any modification. Those deemed compatible were automatically added to an allow-list, with developers having the option to "opt-out" of support within the Gallery App Manager by clicking the X on unsupported devices.

If your app or clock wasn't added to the allow-list then you will need to update their design and resubmit a new version that specifically supports Fitbit OS 5.0 and the new devices.

SDK4.2でCompatibility Modeが有効になることを期待できるものをとりあえず作成。
現状、2つのClockfaceでコードを共用しているのでJavaScriptで20行ほどの書き換えと300x300,336x336で破綻しないようにデザインの微調整ですませている。
準備はおわったので、もう少し様子をみるか、プレビュー版でテストしようか迷い中。

プレビュー版でテスト開始。
順調にいくだろうと思ってたら、imageの反応が安定せず重たいこともあって、circle+imageに変更。
ボタンを押下時のフィードバックは不要なので中止。
問題ないかしばらくプレビュー版で使用。

問題ないようなので、fitbitにレビュー申請した。
Compatibility Modeが利用できるようになるのか...

Fitbitレビュー承認を経たが、Compatibility Modeをどのようにすると有効になるか把握できていない。

Compatibility ModeでなくSDK5.0用のアプリを作成してみる。
コード自体は同じでファイル名を変更したのみ。

Versa 3を持っている方がテストしてくださったが、バッテリーの減少が早いようだ。
「Run in background
 Companion may run even when the application is not actively in use」
をOFFにしてみる。この権限はSDK4.2のころか追加された記憶がある。Versa 2では不思議な動作。Batteryの時間経過にともなう減少を取得するアプリではONにしてもバックグラウンドでは動作してないようにみえる。このClockfaceでは、OFFにしても動作はかわらない。Versa 3では動作が異なるかもしれない。今のところVersa 3での効果は聞けていない。


コメント

このブログの人気の投稿

Firefox拡張機能 SakuraCheckerPlus 0.50

  0.30から0.50の変更点 要望によりプライベートウィンドウでも実行できるよう変更 サービス変更したDELTAtracer(https://delta-tracer.com/item/detail/jp/)を削除 Manifest V3に移行( Firefox 109~) 説明 Firefox拡張機能 SakuraCheckerPlus https://addons.mozilla.org/ja/firefox/addon/sakuracheckerplus/ 概要(Firefox) 操作 Amazon.co.jpの商品掲載ページでツールバーに表示されているアイコンを選択する 開くサイト(サクラチェッカー,Keepa)を選択する 新たなタブに選択したサイトが開かれる。 Amazon.co.jpの商品表示だけでなく、開いたサイトからでも操作可能 Amazon.co.jpの商品検索結果でツールバーに表示されているアイコンを選択する RemoveMarketplaceを選択する 検索結果からマーケットプレイス業者を除いた結果が表示される。 こちらのブログ で詳しく説明されている 設定 設定は不要です。 アドオンでの情報取得と保持 アドオンでは、Amazonの商品掲載ページのアドレスを取得し新たなタブを開きますが、取得した情報を保持あるいは転送することはありません。 アドオンでは、ローカルストレージに情報を保存しません、また、転送することはありません。 アドオンでは、Firefoxのコンソールに指定されたログレベルでデバックのための情報を表示しますが、転送することはありません。 作者は、Mozillaから提供されるダウンロード数等の情報以外に、アドオンを使用して情報を取得していません。 開くサイト Saukra Checker( https://sakura-checker.jp/ ) Keepa( https://keepa.com/ ) Keepaの使い方は、https://aqcg.jp/chinakeepa/ などに掲載されている 備考 Android版はあいもかわらず推奨のみしかインストールできない?

Fitbit Clockface DCLancher 0.5.4

  DCの変更 時計の日付をタップすることで秒を表示できるようにした。 秒の色指定はSmartPhone。秒の表示・非表示を切り替えは、日付のタップとした。 あわせて、0.5.3において起動時のSmartPhoneとの通信表示が不自然な問題を修正。 DC2のSDKは6.0を使用 03/19 申請、審査待ち シミュレーターでもVersa2でも動作に異常はないのだが... https://community.fitbit.com/t5/SDK-Development/Announcing-SDK-6-0-for-Fitbit-Versa-3-and-Sense/td-p/4913010 は気になるところ...

Fitbit Clockface DCLancher/ACLancher/SCLancher 0.5.1

    0.5.0のリリースからしばらくたったが、最近、(1)SCLancher3でのバッテリー消費、(2)DCLancher3での心拍数表示不可という問い合わせがあったため対応。シュミレーターでもVersa2でも事象を確認できず原因ははっきりしていない。Versa3の実機もないため、 (1)については振動と利用が少ないであろう情報取得(Present,Geolocation,Sleep)を削除し若干コードを見直す、(2)についてはセンサーからの通知がない場合は通知をまたずに値を取得することで対応。機能を削除したことでファイルサイズも若干小さくなっている。 電池の消費量は、振動もしくはスマートフォンとの通信料でかなり左右されているように感じる。(Bluetoothや振動オフで客観的なデータをとればおおよそはわかりそう) (2021/07/10) 画面ON時・設定受信時に、Statsで、即時表示とワンテンポおくれて表示されるものがある。この時に、取得値をクリアするようにしたため、時間指定で取得する情報で違和感が指摘された。最新の値を取得したことが認識できるためクリアまでとしていたが、初回実行させたほうが違和感もなさそう。次回リリースで対応か。 仕様 アプリケーションをワンタッチで起動できる時計 Versa 2,Versa,Versa Lite,Versa 3,Senseをサポート 特徴 ⌚時間 デジタル(12/24時間形式)、アナログ https://www.fitbit.com/settings/profile 「時計ディスプレイの時刻」で設定する。 📅日付 英語(デフォルト),日本語,フランス語,イタリア語,ドイツ語,スペイン語,オランダ語,スウェーデン語,韓国語,中国語 https://www.fitbit.com/settings/profile 「地域/国ごとの言語」で設定する。 🔋充電レベル 35%未満で赤表示 SmaartPhoneの設定受信時の点滅 と振動 💙情報 HeartRate,Steps,Calories,Distance,ElevationGain/floors(Versa Lite displays 0),ActiveMinutes/AZM,Pressure, (Present,Geolocation,Sleep) , Mem...