Fixing the reference id for stats reporting on v2 certs, was using badge.id, should be using id.
with that we maintain "legacy" certs (read certs that were already imported in the app) to seamlessly update their id in the database, as well as the filename saved locally.
had to shuffle around a few items to accommodate with the new id for existing files.
some commits have been brought over from https://github.com/blockchain-certificates/wallet-android/tree/feat/v3 branch, as they were fixing and preparing tests for v2 too. I am consciously leaving the BlockCertV30 test and class files as I don't want to have conflicts when merging master back into feat/v3 branch once this is merged.
Fixing the reference id for stats reporting on v2 certs, was using
badge.id
, should be usingid
.