Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.18 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.18 KB

hmkit-oem migration to hmkit-crypto-telematics

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

Add hmkit-oem classes manually

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

Run the sample

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(...)
  }
}

Benefits

hmkit-crypto-telematics is written in pure Java, and therefore doesn't need to use the previous JNI libraries.