flipt-io / flipt-client-sdks

Flipt Client-Side Evaluation SDKs
https://www.flipt.io/docs/integration/client
MIT License
5 stars 6 forks source link

[FLI-963] java: only try to load engine for supported hosts #248

Open markphelps opened 2 months ago

markphelps commented 2 months ago

https://github.com/flipt-io/flipt-client-sdks/blob/6281e5ef6054b80221156bd9df8f342ef02f5a4b/flipt-client-java/src/main/java/io/flipt/client/FliptEvaluationClient.java#L23

In our other client side SDKs we check the OS/Arch before loading the engine.

A user has gotten the following error when trying to use the Java client SDK on an Intel Mac:

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed: java.lang.UnsatisfiedLinkError: Unable to load library 'fliptengine':

Acceptance Critera:

FLI-963

markphelps commented 2 months ago

Discussion: https://discord.com/channels/960634591000014878/1232106900670382160