Crossplatform iPhone / Android code sharing

前端 未结 11 1462
北海茫月
北海茫月 2020-12-01 01:51

Simply put: What is the most effective way to share / reuse code between iPhone and Android builds?

The two most common scenarios I think would be:

  1. Bla
相关标签:
11条回答
  • 2020-12-01 02:41

    You could have a go with Marmalade SDK... Compile once to native ARM and deploy to both Android and iPhone with the same binary, standard C/C++, develop on windows or mac, lots of (optional) middleware tech included.

    0 讨论(0)
  • 2020-12-01 02:42

    XMLVM looks worth a try.

    0 讨论(0)
  • 2020-12-01 02:42

    If you have an existing iOS code base in Objective C, you can use the GNUstep Android toolchain to use your existing model code based on Foundation and CoreFoundation in an Android app, and then write a new UI layer that interacts with the Objective C model via native NDK calls on top of that (e.g. in Android Studio).

    0 讨论(0)
  • 2020-12-01 02:45

    Moai is free for smaller projects, and used by big studios as well. I run homebrew myself, but if I didn't I would probably use Moai myself as it looks very promising. They claim it ports to Mac, PC, iOS, Android and I think even Kindle Fire.

    You'd want to write the bulk of the code in Lua I guess, but you'd have access to all the code, so you can use C++ when you need it.

    0 讨论(0)
  • 2020-12-01 02:48

    You could also have a look at Titanium. The say with their tool you can write your app in abstract web code and they will help you web app interface with all those gps, accelerometer sensors etc.

    0 讨论(0)
提交回复
热议问题