uap-java icon indicating copy to clipboard operation
uap-java copied to clipboard

Migrate yaml parsing to compile phase

Open Sineaggi opened this issue 2 years ago • 2 comments
trafficstars

In order to remove yaml parsers from the uap-java library, we could pre-process the yaml file from uap-core and generate a Map at compile-time. This would remove the dependency on snakeyaml, and increase the first-start time of the library.

Sineaggi avatar Jan 31 '23 18:01 Sineaggi

This is really a good idea, I have created https://github.com/ua-parser/uap-java/pull/83 for that.

jmini avatar Apr 07 '23 07:04 jmini

If you are interested by this idea, I have released this version on maven central:

<dependency>
  <groupId>com.unblu.ua-parser</groupId>
  <artifactId>uap-java</artifactId>
  <version>2.0.0</version>
</dependency>

From the fork https://github.com/unblu/uap-java

jmini avatar May 17 '23 06:05 jmini