Skip to content

highmobility/hmkit-oem-migration-sample

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages