-
Notifications
You must be signed in to change notification settings - Fork 346
Fix build errors due to library and tool updates #152
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?
Conversation
-. Minimal changes to maintain compatibility with Android Studio 4.x
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Summary of ChangesHello @HakimNB, 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 addresses build errors by performing essential updates to the project's dependencies and configurations. It modernizes the Android build environment by upgrading SDK versions, migrating to the latest Play Asset Delivery library via Maven, and adjusting native code to reflect API changes, ensuring compatibility with Android Studio 4.x. 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
This PR successfully addresses build errors by updating dependencies and tool versions for Android Studio 4.x compatibility. The changes, like updating SDK versions and migrating to a Maven dependency for Play Core, are positive. My review includes a high-priority recommendation to update the targetSdkVersion to match the compileSdkVersion to maintain compatibility and adhere to Google Play policies. I also have a medium-priority suggestion to refactor a function name in the C++ code for consistency after an API update.
|
|
||
| android { | ||
| compileSdkVersion 28 | ||
| compileSdkVersion 34 |
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.
While you've correctly updated compileSdkVersion to 34, the targetSdkVersion on line 29 remains at 28. It is highly recommended to set targetSdkVersion to the same value as compileSdkVersion. Targeting a recent API level is a Google Play requirement for new apps and updates, and it ensures your app can leverage the latest platform features, security enhancements, and behavior changes. Failing to update it can lead to compatibility issues on newer Android devices.
| AssetPackErrorCode error_code1 = | ||
| AssetPackManager_showCellularDataConfirmation(app->activity->clazz); | ||
| ShowCellularDataConfirmationStatus status; | ||
| AssetPackManager_showConfirmationDialog(app->activity->clazz); | ||
| ShowConfirmationDialogStatus status; | ||
| AssetPackErrorCode error_code2 = | ||
| AssetPackManager_getShowCellularDataConfirmationStatus(&status); | ||
| AssetPackManager_getShowConfirmationDialogStatus(&status); |
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.
You've updated the code to use the newer AssetPackManager_showConfirmationDialog API, which is great. However, the containing function is still named ShowCellularDataConfirmation (line 224), and the log message on line 232 also refers to the old name. This creates an inconsistency that can be confusing for future maintenance. For better code clarity, I recommend renaming the function to ShowConfirmationDialog and updating the log message. This would also require updating the function declaration in PlayAssetDeliveryUtil.h and any places where it's called.
-. Minimal changes to maintain compatibility with Android Studio 4.x