Open MaiHeu opened 1 year ago
Hello, are you're suggesting updating dependencies? The library module already depends on 2.6.1: https://github.com/NordicSemiconductor/Android-BLE-Library/blob/004e6645dfb391c253c13a8b75d38a86b0aeacc2/ble-livedata/build.gradle#L32
I rather thought it's due to an implementation error, but digging further into it it seems the issue is a java <-> kotlin one. I can reproduce said problem when exchanging the ble-livedata with androidx.lifecycle:lifecycle-livedata:2.6.1
Internally, the package androidx.lifecycle:lifecycle-livedata-core-ktx seems to ensure and enforce the null safety.
This issue would probably fit with #483 for a kotlin specific package :)
I have the following piece of code:
It compiles and runs, though it would add the possibility of a NPE where it isn't expected. With the current androidx.lifecycle:lifecycle-livedata-core-ktx:2.6.1 package it rightfully gets marked by Android Studio as error and thus does not compile.