My app is working great on debug build variant, but when I put on release, that the only difference is the obfuscation, the app doesn't work well
fun upsertPatient(patient: Patient, onCompletion: (Patient) -> Unit) {
val px = PatSecHelper.patToN(patient, SecHelper.genKey())
if (px != null) {
val subscription = Single.fromCallable {
val id = patientDao?.insertPatient(px)
px.id = id
px
}
?.subscribeOn(Schedulers.io())
?.subscribe({
onCompletion(it!!)
}, {
BleLogHelper.writeError("Error inserting patient into database", it)
})
subscriptions.add(subscription)
}
}
On debug mode works fine, but on release its raising a exception on this method above.
Unable to find generated Parcelable class for io.b4c.myapp.a.f, verify that your class is configured properly and that the Parcelable class io.b4c.myapp.a.f$$Parcelable is generated by Parceler.