user430975
user430975

Reputation: 13

Common scripting language that can be used on Android and iPhone

I've got an iphone app and I'm looking to port some of the data-layer objective-c code to a scripting language which can also run on an android phone.

Any suggestions on what to use? I'd also like to be able to push new scripts to the app for bug fixes. Not sure if this is against the iphone SDK agreement or not.

Upvotes: 1

Views: 1162

Answers (4)

If you write a domain specific language in XML and parse it that way, you could do what you want.

Both platforms can easily parse XML.

Upvotes: 0

hotpaw2
hotpaw2

Reputation: 70673

The only scripting language that Apple allows for use with downloaded scripts is Javascript.

You can execute the Javascript code inside a visible or invisible UIWebView.

Upvotes: 1

Weston C
Weston C

Reputation: 3632

JavaScript. Anything else is explicitly banned by the Apple Store Vetting process.

(You could actually serialize some Objective C objects and take advantage of some of the dynamism in the language, but that won't get you far with Android. So, JavaScript.)

Upvotes: 5

Radomir Dopieralski
Radomir Dopieralski

Reputation: 2585

As far as I know, iPhone SDK agreement forbids using any scripting languages in your apps.

On the other hand, JavaScript runs both on Android and iPhone (and a couple of other platforms) and is a very powerful language.

Upvotes: 1

Related Questions