Multiplatform project - is it possible?

23 views
Skip to first unread message

Dimitar G

unread,
Mar 19, 2018, 9:11:27 PM3/19/18
to CodenameOne Discussions
In a standard Android Gradle project, it is possible to add multiple modules, which allows roughly different UI targets and separated data layer. For example:

- project-blah
-- ui-phone
-- ui-tv
-- ui-auto
-- ui-wear
-- data

Rumours say Apple is preparing something in a mix of:

I spent some time investigating FLutter and then React Native.
None of these allow such flexibility, it's basically a single Android target and single iOS target.
And then growing messy code where business and UI logic are making a bowl of spaghetti and cheese...

How flexible is CodenameOne?
Is it allowing similar, where multiple Android UI targets?

Shai Almog

unread,
Mar 20, 2018, 1:00:41 AM3/20/18
to CodenameOne Discussions
React native does allow that AFAIK but I'm not an expert on that. This is an inherent approach in Xamarin.

By definition a WORA project doesn't need those, "messy" OS specific code literally doesn't exist in Codename One.

E.g. if I want to do something that's desktop or tablet specific I just use an if() statement.

We don't support watch interfaces, we don't have much demand for this. We don't support TV's either although this is pretty easy to do, again no real demand.

Our build process is 100% open so you can do whatever you want in the build.xml and partition the project any way you want. So if you want to do that you can, but I think you shouldn't.
Reply all
Reply to author
Forward
0 new messages