I am looking at the source code for Glance Widgets on Android Code Search. I would like to replicate the code used for CheckBoxTest.kt but running into an issue. The problem is the code uses a version of GlanceAppWidget.kt which differs from GlanceAppWidget used in the official api release.
How can I replicate CheckBoxTest.kt in Android Studio so that it works with the Glance API provided in the official release.
For context, I am following the answer in this post.