CsabaConsulting / VFDWatchFace

A WearOS watch face mimicking digital display also sporting numerous complication slots
https://play.google.com/store/apps/details?id=dev.csaba.vfdwatchface
MIT License
2 stars 0 forks source link

android.support.wearable.complications.ComplicationHelperActivity is deprecated #2

Open MrCsabaToth opened 2 years ago

MrCsabaToth commented 2 years ago

See https://developer.android.com/jetpack/androidx/releases/wear#complications-watchface-1.0.0-alpha18 (July 21, 2021): "moved ComplicationHelperActivity to androidx.wear:wear-watchface library." In general it'd be good to use androidx.* wherever possible.

MrCsabaToth commented 2 years ago

Also note https://developer.android.com/jetpack/androidx/releases/wear#wear_complications_and_watchface_100_2 "As of 1.0.0-alpha23, the watchface and complications libraries have been moved to a unified androidx.wear.watchface group. Please see the Wear Watchface release note page for more details."

MrCsabaToth commented 9 months ago

EVERYTHING is deprecated:

There's not a bit which is not deprecated. The work was based on https://codelabs.developers.google.com/codelabs/watchface/index.html: Screenshot_2023-10-07_10-46-54

In the https://github.com/android/wear-os-samples repo maybe we can start off with the https://github.com/android/wear-os-samples/tree/main/WatchFaceKotlin The current code is Java, so essentially we'd need to rewrite the whole shebang! Our current "code" code consists of two java files, the Kotlin example is about a dozen+ Kotlin files. So we'll need some simplification and surely heavy lifting to marry the concept into that example.

It'd be great to migrate to Jetpack Compose right away, but neither the basic or the advanced Compose example seems to have complications, and it'll be enough to tackle the whole rewrite in itself, so I'd go with the traditional (XML UI) Kotlin.

Also note that I've seen some Flutter Wear OS app articles and plugins (form VGV (Very Good Ventures) for example), but those seem to be not watch faces but apps. I'd be happy to go to Flutter, although that may affect battery life and app size, however I also won't tackle that right now.

MrCsabaToth commented 6 months ago

https://www.reddit.com/r/androiddev/comments/sysaxp/new_android_studio_warning/