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

Gradle up to date #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

amenayari6000
Copy link

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.

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.

2 participants