I currently have an app on both Android and iOS, with lots of shared business logic. The business logic is in Java and developed in Android Studio on Windows (alongside the Android-specific code). I currently copy the Java files to XCode on a Mac, and use J2ObjC to incorporate them in my XCode project. Edit: I'm already using Kotlin in Android Studio for a few classes that are not shared with iOS.
What's the easiest way to do the same with Kotlin classes/files? I'd like to continue to develop first in Windows/AndroidStudio, then get the files/framework/pod to XCode/Mac to use there.
All the tutorials I've come across appear to assume that all the development is being done on a Mac, with Android Studio running there. There are blogs talking about Gradle Plugins, and I don't understand how they apply in this case. There are also pages like this one here on StackOverflow, but again I don't see how that applies. I'm not aware that I'm using Gradle in XCode, so I guess things have to happen on the Windows/AndroidStudio end.
How do I either copy the source to Mac/XCode and compile it or (I suspect) create a framework or Pod on Windows/AndroidStudio that I can copy to Mac/XCode. Or have I misunderstood altogether!