[FEATURE] Update Views-Hilt Project to API Level 34 with Gradle 8.4 #1003
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.
Description
This pull request updates the Views-Hilt project to API level 34 and uses Gradle version 8.4. The changes include updates to the AndroidManifest, build.gradle files, and some Kotlin code.
Changes
AndroidManifest.xml
to addandroid:exported="true"
attribute to theTasksActivity
declaration.TasksViewModel.kt
to replaceTransformations.map
withmap
extension function.build.gradle
files to use newer versions of dependencies, including Kotlin, Navigation, Hilt, and other libraries.multiDexEnabled true
in thedefaultConfig
block of the app-levelbuild.gradle
to enable multidex support.TodoApplication.kt
to importBuildConfig
fromandroidx.multidex
package.Event.kt
to fix the method signature foronChanged
to match the interface.HiltExt.kt
to useR.style.AppTheme
instead ofR.style.FragmentScenarioEmptyFragmentActivityTheme
forthemeResId
parameter.Purpose
This PR aims to update the Views-Hilt project to support API level 34 and use the latest version of Gradle, enabling compatibility with newer Android features and libraries. It resolves build errors and ensures the project can be built and run successfully.
Notes
Without this PR, the Views-Hilt project is not able to build and run due to compatibility issues with API level 34 and Gradle 8.4. This PR resolves those issues and ensures the project can be built and run smoothly.