Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic widget support #398

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

diasDominik
Copy link
Contributor

Add Glance dependency, export common Res strings
The common Res strings are added as sourceSets and can be imported but
when using them in non common Code it gives a compile error that it
can not find them. Exposing them as public solves this.

Add basic Glance Widget
This adds a Widget using jetpack compose glance instead of xml.
This is the basic implementation updating the Widget does not work jet.
Replicating the common UpcomingPaymentsViewModel as with glance we can't
use ViewModels. Also we only have a small amount of basic composables
there is no e.g. Card with this reducing the information and style shown
in the Widget to a minimum.
The configuration of the Widget is also not yet there but prepared to be
also able to use Grid or List mode.

Configure Glance Theme

The common Res strings are added as sourceSets and can be imported but
when using them in non common Code it gives a compile error that it
can not find them. Exposing them as public solves this.

Signed-off-by: Dominik Dias <[email protected]>
This adds a Widget using jetpack compose glance instead of xml.
This is the basic implementation updating the Widget does not work jet.
Replicating the common UpcomingPaymentsViewModel as with glance we can't
use ViewModels. Also we only have a small amount of basic composables
there is no e.g. Card with this reducing the information and style shown
in the Widget to a minimum.
The configuration of the Widget is also not yet there but prepared to be
also able to use Grid or List mode.

Signed-off-by: Dominik Dias <[email protected]>
Signed-off-by: Dominik Dias <[email protected]>
@diasDominik diasDominik force-pushed the add-basic-widget-support branch from 1ef91d9 to 73bab09 Compare December 29, 2024 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant