WIP: Update project dependencies and address build issues. #2
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.
This commit includes the following changes:
Updated Dependency Versions:
gradle/libs.versions.tomlto their latest stable versions. This includes Android Gradle Plugin, Hilt, Jetpack Compose (UI components), Kotlin (initially to 2.1.21), AndroidX libraries, and testing libraries.javax.injecttojakarta.inject, and JUnit was updated from version 4 to 5 (Jupiter).Build Configuration Updates:
8.11.1.MaxPermSizeJVM argument fromgradle.properties.buildSrccustom plugins and extensions (enableCompose.kt,ProjectConfigurationPlugin.kt,ProjectExtensions.kt) for compatibility with AGP 8.x APIs.app,feed/ui, anduimodules.:ui,:feed/ui) to useandroidTarget()and new test configurations.Code Modifications:
javax.inject.Injectimports tojakarta.inject.Inject(e.g., inDataModuleClass.kt).@Testannotations to JUnit 5'sorg.junit.jupiter.api.Test.Work-in-Progress / Stuck Point:
The primary unresolved issue is a build failure related to the Jetpack Compose Compiler plugin (
org.jetbrains.kotlin.plugin.compose) for the:appmodule. The versions ingradle/libs.versions.tomlwere:kotlin = "2.1.21"composeCompiler = "1.5.15"This combination is incompatible, as Compose Compiler
1.5.15officially supports Kotlin2.0.0. My immediate next step planned was to downgrade the Kotlin version ingradle/libs.versions.tomlto2.0.0to align with thecomposeCompilerversion. I have not yet implemented or tested this change.Further work would involve:
2.0.0.settings.gradle.ktsandapp/build.gradle.kts.