This repository shows on how to migrate from hmkit-oem to hmkit-crypto-telematics.
Use the new dependencies
Use implementation("com.high-mobility:hmkit-crypto-telematics:0.1")
instead of hmkit-oem
and hmkit-crypto
We add the main HMKit.java
and ContentType.java
classes from hmkit-oem
manually to our project.
Check out the HMKit.java/ContentType.java classes that were copied to this project
Check out the Main.java. It uses hmkit-oem
interface as usual
import com.highmobility.hmkit.HMKit;
class Main {
public static void main(String[] args) {
HMKit hmkit = HMKit.getInstance();
hmkit.decrypt(...)
hmkit.encrypt(...)
}
}
hmkit-crypto-telematics
is written in pure Java, and therefore doesn't need to use the previous JNI libraries.