In this PR, we are converting build.gradle groovy files tobuild.gradle.kts kotlin files, and we are migrating the custom dependencies file to the "new" Gradle version catalogues way. Also for hardcoded values that existed in the dependencies file, we created a buildScr module where we specify these with Kotlin object values.
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Implementation Details
Mirgated the dependencies from the dependencies.gradle file to the libs.versions.toml.
Created build.gradle.kts files for each module cloned the logic that build.gradle files were having
Verified that for each module the code runs, as well as the unit and android integration tests.
Created buildSrc module and RudderstackBuildConfig.kt file to store some permanent values
Deleted old build.gradle files.
NO VERSION CHANGES HAPPENED IN THIS PR.
Checklist:
[ ] Version upgraded (project, README, gradle, podspec etc)
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added unit tests for the code
[x] I have made corresponding changes to the documentation
Screenshots
All the modules and tests are running as expected. Also, the kotlin sample application is built like normal.
Ticket
Description
In this PR, we are converting
build.gradle
groovy files tobuild.gradle.kts
kotlin files, and we are migrating the custom dependencies file to the "new" Gradle version catalogues way. Also for hardcoded values that existed in the dependencies file, we created abuildScr
module where we specify these with Kotlin object values.Type of change
Implementation Details
dependencies.gradle
file to thelibs.versions.toml
.build.gradle.kts
files for each module cloned the logic thatbuild.gradle
files were havingbuildSrc
module andRudderstackBuildConfig.kt
file to store some permanent valuesbuild.gradle
files.Checklist:
Screenshots