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
Updated AndroidManifest.xml to add android:exported="true" attribute to the TasksActivity declaration.
Updated TasksViewModel.kt to replace Transformations.map with map extension function.
Updated build.gradle files to use newer versions of dependencies, including Kotlin, Navigation, Hilt, and other libraries.
Added multiDexEnabled true in the defaultConfig block of the app-level build.gradle to enable multidex support.
Updated TodoApplication.kt to import BuildConfig from androidx.multidex package.
Updated Event.kt to fix the method signature for onChanged to match the interface.
Updated HiltExt.kt to use R.style.AppTheme instead of R.style.FragmentScenarioEmptyFragmentActivityTheme for themeResId 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.
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.