-
Notifications
You must be signed in to change notification settings - Fork 348
Remove Casa framework & simplify samples structure #275
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
Conversation
- "rv" is not recommended and "glance" is the preferred widget framework. - Sizing on those widgets is off. The new canonical layouts are recommended.
- "rv" is not recommended and "glance" is the preferred widget framework. - Sizing on those widgets is off. The new canonical layout contain example of lists and are recommended.
- Glance library's demo directory has code samples for individual components. Here is example of Image widget: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/ImageAppWidget.kt;bpv=1
…t samples. The main "AppWidgets" page now displays link to the canonical layout showcase page and then below it, demonstrates the functionality to pin and show widget information.
- 4x2 is the recommended size for such widget - avoid 3x? sizes - Uses glance loading layout resource instead of the local xml - Update the preview image
- To closely match the appWidgetBackground color used in glance.
- The Scaffold component in glance handles the background color, widget radius for you. - For the inner content, calculate widget radius based on the padding and system radius.
…t samples. The main "AppWidgets" page now displays link to the canonical layout showcase page and then below it, demonstrates the functionality to pin and show widget information.
- accessibility - camera2 - connectivity call notification - graphics pdf - graphics ultrahdr - privacy transparency - storage
- connectivity - location - media - privacy
Change to upload-artifact@v4
Add various lint ignore checks on minSdk
/gemini summary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ran project, looks nice!
Replaced the `Area` data class with `ApiSurface` to more accurately represent the categories of samples in the app. Updated all references in `NavGraph`, `SampleDemo`, and `CatalogScreen` to reflect this change. The update introduces the `ApiSurface` interface and its implementations to categorize the different areas of platform features and functionality demonstrated by the samples.
Disables unit tests in the CI build workflow.
- accessibility - camera2 - connectivity call notification - graphics pdf - graphics ultrahdr - privacy transparency - storage
- connectivity - location - media - privacy
Add various lint ignore checks on minSdk
- Remove samples README.md as it has been unreliably generated recently - We may reinvest in the idea later on
Replaced the `Area` data class with `ApiSurface` to more accurately represent the categories of samples in the app. Updated all references in `NavGraph`, `SampleDemo`, and `CatalogScreen` to reflect this change. The update introduces the `ApiSurface` interface and its implementations to categorize the different areas of platform features and functionality demonstrated by the samples.
Disables unit tests in the CI build workflow.
…refresh # Conflicts: # app/src/main/java/com/example/platform/app/SampleDemo.kt
…)" This reverts commit 9722476.
* Delete the outdated button widget demo code. - "rv" is not recommended and "glance" is the preferred widget framework. - Sizing on those widgets is off. The new canonical layouts are recommended. * Delete the outdated list widget demo code. - "rv" is not recommended and "glance" is the preferred widget framework. - Sizing on those widgets is off. The new canonical layout contain example of lists and are recommended. * Delete the outdated image widget demo code. - Glance library's demo directory has code samples for individual components. Here is example of Image widget: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/ImageAppWidget.kt;bpv=1 * Align the AppWidgets showcase entrypoint to highlight canonical layout samples. The main "AppWidgets" page now displays link to the canonical layout showcase page and then below it, demonstrates the functionality to pin and show widget information. * Adjust size and preview of the weather widget in platform samples. - 4x2 is the recommended size for such widget - avoid 3x? sizes - Uses glance loading layout resource instead of the local xml - Update the preview image * Update background color of the xml based weather widget - To closely match the appWidgetBackground color used in glance. * Update Glance weather widget to use Scaffold. - The Scaffold component in glance handles the background color, widget radius for you. - For the inner content, calculate widget radius based on the padding and system radius. * Align the AppWidgets showcase entrypoint to highlight canonical layout samples. The main "AppWidgets" page now displays link to the canonical layout showcase page and then below it, demonstrates the functionality to pin and show widget information. * fixup! Update Glance weather widget to use Scaffold. * Update the readMe section with screenshots of canonical widget layouts * Update the readMe section with screenshots of canonical widget layouts * Update the readMe section with screenshots of canonical widget layouts * Replace Casa framework with a lighter structure * Remove Casa from these following modules: - accessibility - camera2 - connectivity call notification - graphics pdf - graphics ultrahdr - privacy transparency - storage * Remove Casa from these following modules: - connectivity - location - media - privacy * Fix permissions module * Add appwidgets & constraintlayout samples * Add more user interface samples * Add last samples * Update build.yml (#277) Change to upload-artifact@v4 * Add MinSdkBox composable to wrap samples using recent APIs * Fix Activity insets * Add missing test dependencies Add various lint ignore checks on minSdk * Update README.md - Remove samples README.md as it has been unreliably generated recently - We may reinvest in the idea later on * Remove duplicate MAIN/LAUNCHER intent filters from samples * Temporarily ignore a flaky test in PiPMovieActivityTest * Refactor: Replace `Area` with `ApiSurface` for better context Replaced the `Area` data class with `ApiSurface` to more accurately represent the categories of samples in the app. Updated all references in `NavGraph`, `SampleDemo`, and `CatalogScreen` to reflect this change. The update introduces the `ApiSurface` interface and its implementations to categorize the different areas of platform features and functionality demonstrated by the samples. * Temporarily disable unit tests in CI Disables unit tests in the CI build workflow. * Replace Casa framework with a lighter structure * Remove Casa from these following modules: - accessibility - camera2 - connectivity call notification - graphics pdf - graphics ultrahdr - privacy transparency - storage * Remove Casa from these following modules: - connectivity - location - media - privacy * Fix permissions module * Add appwidgets & constraintlayout samples * Add more user interface samples * Add last samples * Add MinSdkBox composable to wrap samples using recent APIs * Fix Activity insets * Add missing test dependencies Add various lint ignore checks on minSdk * Update README.md - Remove samples README.md as it has been unreliably generated recently - We may reinvest in the idea later on * Remove duplicate MAIN/LAUNCHER intent filters from samples * Temporarily ignore a flaky test in PiPMovieActivityTest * Refactor: Replace `Area` with `ApiSurface` for better context Replaced the `Area` data class with `ApiSurface` to more accurately represent the categories of samples in the app. Updated all references in `NavGraph`, `SampleDemo`, and `CatalogScreen` to reflect this change. The update introduces the `ApiSurface` interface and its implementations to categorize the different areas of platform features and functionality demonstrated by the samples. * Temporarily disable unit tests in CI Disables unit tests in the CI build workflow. * Rebase app widgets description from main branch --------- Co-authored-by: Shamali P <shamalip@google.com> Co-authored-by: Scott Stanchfield <scott@javadude.com> Co-authored-by: Hoyt Summers Pittman <secondsun@gmail.com>
/gemini summarize |
Summary of ChangesThis pull request aims to modernize the Android platform samples by removing the Casa framework, simplifying the project structure, and migrating the UI to Jetpack Compose. It involves updating dependencies, reorganizing sample modules, and addressing code compatibility issues. The primary goal is to streamline the project, improve maintainability, and adopt modern Android development practices. Highlights
ChangelogClick here to see the changelog
Activity
|
Read the summary below made by Gemini: #275 (comment)