Compiling Netbird to use as library

Am trying to compile Netbird as an .aar file to add to another application to allow it to connect to a self-hosted server and compiling with go mobile doesn’t work so far. Is there anything in particular to look out for?