I am developing a project that requires business logic calculations based on a relative complex rule set. The calucations are to be executed on the following platforms:
- Android app
- iOS app
- Java EE application container
The business logic does not depend on any platform specific details but is strictly about "number crunching".
To avoid double implementation for Java and Objective C, which would require elaborate testing and so forth, I would like to create a Java library cotaining the implementation and use it within the iOS app.
What would be the best way to do this? Would it be better to do a native port for Objective C? Would it be better to do it the other way around and write the library in Objective C and use it on Android/Java?