remove unneeded config
This commit is contained in:
parent
307b114947
commit
e632769d65
1 changed files with 0 additions and 15 deletions
15
build.gradle
15
build.gradle
|
@ -123,18 +123,3 @@ subprojects {
|
||||||
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
|
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is necessary to prevent Gradle build errors like:
|
|
||||||
//
|
|
||||||
// Duplicate class androidx.lifecycle.ViewModelLazy found in modules jetified-lifecycle-viewmodel-ktx-2.3.1-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1) and lifecycle-viewmodel-2.5.0-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.0)
|
|
||||||
//
|
|
||||||
// By explicitly adding these dependencies, the jetifier
|
|
||||||
// is forced to use the correct lifecycle version instead
|
|
||||||
// of automatically picking 2.3.1.
|
|
||||||
//
|
|
||||||
// See: https://stackoverflow.com/a/69832319/560774
|
|
||||||
configurations {
|
|
||||||
all {
|
|
||||||
exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue