Hello,
I built an iOS app (got approved by Apple today) using Swift. The app uses native iOS Swift libraries. What is the best approach to port my app to Android?
Hello,
I built an iOS app (got approved by Apple today) using Swift. The app uses native iOS Swift libraries. What is the best approach to port my app to Android?
I don’t know what kind of a state your code is in, but if you haven’t done it yet, seperate the code for the app’s logic from the code that interfaces with the iOS APIs as much as possible. The code that handles the logic is the code you’ll be able to reuse (at least I would be surprised if there wouldn’t be a way to compile swift code for Android). Side Bonus: this makes it much easier to write proper tests. Then you can work on adapting the code that uses the iOS APIs to use the Android APIs. Either there’s a direct way to call the APIs from swift, or someone will have made a library somewhere that you can use.
My views, services (which do iOS api calls), and models are already separated.
I found this project: https://skip.tools/ :-)