Debug and release build variants of the app to build and compile successfully.
In the release build variant the app does not compile due to the androidx.fragment:fragment-testing
library.
build.gradle (:app)
debugImplementation "androidx.fragment:fragment-testing:1.2.2"
The full implementation can be found in the GitHub repository for Coinverse.
The build fails due to unresolved references to androidx
libraries.
i.e. import androidx.activity.viewModels
, import androidx.lifecycle.AbstractSavedStateViewModelFactory
, import androidx.lifecycle.SavedStateHandle
, import androidx.lifecycle.lifecycleScope
, import androidx.fragment.app.activityViewModels
, and etc.
The app builds and compiles as expected in the release build variant when adding the following library.
implementation "androidx.fragment:fragment-ktx:$fragment_version"
This library was present in earlier releases, but recently removed as everything was working as expected in the debug build variant without it.
Now fragment-testing
may be edited to use debugImplementation
.
debugImplementation "androidx.fragment:fragment-testing:1.2.2"