Closed typelogic closed 3 years ago
What is this about? Can you describe it?
The current codebase is not yet 100% exactly the Android aar
codebase. At the moment, a slight modification is needed by removing code blocks that uses BufferedImage
to build the Android aar
binary.
Findings is that, Card::open(BufferedImage bufferedImage)
may not be part of the Card
method and can be removed. The outer system (either Android or Desktop) already has the byte[]
array after the outer system invoke its QR scanning
.
As for BufferedImage Card::asQRCode()
method is only used in unit tests. In mosip-idpass-print
, the method String Card::asQRCodeSVG()
is the one that is really used.
In summary, my current findings is that:
idpass-lite-java
consumes image input as byte[]
idpass-lite-java
produces an image output in SVG
format. Update notes:
BufferedImage
was a straight-forward. What was not straight-forward was the encounter of Android protobuf-lite
not supporting reflection. Therefore, I added merge_CardDetails
inside libidpasslite.so
libidpasslite.so
under jniLibs
folder and this means I should not bundle it in the jar. Furthermore, the idpasslite.dll
and libidpasslite.so
comes with the jar which Android does not need.
This is a long-term improvement initiatives to have a common code base. The Android cobedase is a slightly modified version due to the use of
BufferedImage
in this codebase.