-
Notifications
You must be signed in to change notification settings - Fork 138
Drive by cleanup #149
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
base: main
Are you sure you want to change the base?
Drive by cleanup #149
Conversation
* Sort dependencies
Summary of ChangesHello @keyboardsurfer, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on a comprehensive cleanup and modernization of the project's build infrastructure and codebase. The changes aim to improve build efficiency, enable release optimizations, and introduce performance benchmarking capabilities. By updating core dependencies and standardizing project structure, the PR sets a stronger foundation for future development and maintenance. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
The pull request introduces several positive changes aimed at improving the project's overall health. Key updates include modernizing Gradle configurations, updating dependencies, and migrating to LocalResources for accessing string resources in Compose, which aligns with best practices. The addition of a dedicated benchmark module is a valuable step towards performance monitoring. The removal of proguard-rules.pro files from library modules is appropriate if minification is handled at the app level or if those rules were no longer necessary. Overall, these changes contribute to a more maintainable and performant codebase.
58b2bc8 to
4fe2c46
Compare
ksemenova
left a comment
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.
LGTM overall. I would suggest next time to have separate atomic prs for each refactoring (lint errors, sorting dependencies, adding release builds, benchmarking).
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.
The path changes from /main/java to /main/kotlin in the samples is breaking the links in dedicated ReadMe files. I tried to point out the broken ones, but I might have missed some.
Before we merge it, can we book time to discuss the benefits of adding the benchmark to the catalog.
...ni-live-todo/src/main/kotlin/com/android/ai/samples/geminilivetodo/ui/TodoScreenViewModel.kt
Show resolved
Hide resolved
...-multimodal/src/main/kotlin/com/android/ai/samples/geminimultimodal/data/GeminiDataSource.kt
Show resolved
Hide resolved
...on/src/main/kotlin/com/android/ai/samples/geminivideometadatacreation/GenerateDescription.kt
Show resolved
Hide resolved
...ion/src/main/kotlin/com/android/ai/samples/geminivideosummary/ui/VideoSummarizationScreen.kt
Show resolved
Hide resolved
...on/src/main/kotlin/com/android/ai/samples/genai_summarization/GenAISummarizationViewModel.kt
Show resolved
Hide resolved
...editing/src/main/kotlin/com/android/ai/samples/imagenediting/data/ImagenEditingDataSource.kt
Show resolved
Hide resolved
...in/kotlin/com/android/ai/samples/genai_writing_assistance/GenAIWritingAssistanceViewModel.kt
Show resolved
Hide resolved
| target("gradle/libs.versions.toml") | ||
| prettier(mapOf("prettier" to "3.2.5", "prettier-plugin-toml" to "2.0.1")) | ||
| .config(mapOf("plugins" to listOf("prettier-plugin-toml"))) | ||
| } |
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.
👌
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.
Can we remove this, if we don't need it.
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.
Even without manual content the AndroidManifest will be populated by tools. As part of that the empty file needs to exist.
| alias(libs.plugins.google.gms.google.services) | ||
| alias(libs.plugins.hilt.plugin) | ||
| alias(libs.plugins.jetbrains.kotlin.android) | ||
| alias(libs.plugins.jetbrains.kotlin.serialization) |
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.
I am curious why this import re-ordering isn't something that Detekt in the github action picked up. Did you run manually?
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.
This should be a pre-push or even pre-commit hook. For now its manual.
7845fdd to
08e7560
Compare
Several clean up actions with the goal to completely remove lint errors, enable release builds, add basic benchmarking and enable optimizations.