Converting Arduino Compatible library to work with ESP32

I dont really know how to make the compatibility layer that you are talking abouy