Merge pull request #3568 from vector-im/dependabot/gradle/kotlin_version-1.5.20
Bump kotlin_version from 1.5.10 to 1.5.20
This commit is contained in:
commit
060e9d7a7e
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
// Ref: https://kotlinlang.org/releases.html
|
// Ref: https://kotlinlang.org/releases.html
|
||||||
ext.kotlin_version = '1.5.10'
|
ext.kotlin_version = '1.5.20'
|
||||||
ext.kotlin_coroutines_version = "1.5.0"
|
ext.kotlin_coroutines_version = "1.5.0"
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|
|
@ -46,7 +46,7 @@ internal object WorkerParamsFactory {
|
||||||
|
|
||||||
inline fun <reified T> fromData(data: Data) = fromData(T::class.java, data)
|
inline fun <reified T> fromData(data: Data) = fromData(T::class.java, data)
|
||||||
|
|
||||||
fun <T> fromData(clazz: Class<T>, data: Data): T? = tryOrNull("Unable to parse work parameters") {
|
fun <T> fromData(clazz: Class<T>, data: Data): T? = tryOrNull<T?>("Unable to parse work parameters") {
|
||||||
val json = data.getString(KEY)
|
val json = data.getString(KEY)
|
||||||
return if (json == null) {
|
return if (json == null) {
|
||||||
null
|
null
|
||||||
|
|
Loading…
Reference in New Issue