Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of Changes:
This pull request includes substantial updates and optimizations to both the build.gradle ,app/build.gradle, gradle.properties
and stings,gradel files for the eCommerce app. The key changes are as follows:
Plugin Optimization:
Reordered the plugins in the build.gradle for proper initialization, ensuring com.android.application and kotlin-android are declared first.
Migrated from KAPT to KSP for annotation processing, improving build performance and reducing processing time.
Source Sets Configuration:
Included generated source directories for navigation arguments, enabling type-safe navigation.
SDK Version Updates:
Updated compileSdk to 35 and targetSdk to 34, allowing the app to utilize the latest Android features while maintaining a minSdk of 27.
Build Features:
Enabled viewBinding and dataBinding to simplify layout management and improve data handling within the app.
Java and Kotlin Compatibility:
Dependencies Update:
Updated all dependencies to their latest stable versions to ensure the application benefits from security updates and library improvements.
Custom Clean Task:
Update the depracted task, a custom clean task to delete the build directory, facilitating a cleaner development environment.
Gradle Properties Optimization:
Enabled Parallel Execution: Set org.gradle.parallel=true to allow parallel project execution, resulting in faster builds.
Build Caching: Enabled org.gradle.caching=true to reuse outputs from previous builds, improving efficiency.
Daemon Process: Configured org.gradle.daemon=true to run Gradle in a background daemon process, which enhances build speed.
Removed Deprecated Repositories: Deleted the deprecated jcenter() repository from the configuration, ensuring that only the recommended mavenCentral() repository is used.
Android Koala Configuration:
Prepared a TOML file for managing Android Koala dependencies to streamline version management and enhance project organization.
Conclusion:
These changes collectively improve the build process, ensure compatibility with the latest Android features, and enhance code maintainability. The updates to the gradle.properties file further optimize build performance and clean up deprecated settings. I recommend reviewing these updates for integration into the main branch.