Highly recommended to create a separate library/module for architecture, code distribution and reusability reasons.
Now, either way, a separate library or direct integration into your App. The easiest way I have found so far is defining a common kotlin interface in commonMain main and implementing it in each platform language.