I'm building an app in Titanium in node.js. For my targets I have Android and iOS but I want my iOS target to output native iOS in Swift and not in objective-c.
How can I do this? Is this possible at all?
Thanks a lot.
Titanium used Node.js for the compiler, you wouldn't use much node in your actual app. Also Titanium compiles to a native format but it doesn't literally convert your code in to objective-c / Java and then compile that, at least not directly. The best explanation I've seen is How Does Appcelerator Titanium Mobile Work?
So no, there is no way for this to convert to Swift and if you're looking for a Javascript->Swift converter I cannot imagine it exists. Maybe if you let me know what you are actually trying to achieve, I may be able to help further.
Related
I come from an Android native background and have recently started using Flutter more frequently, but I have no ReactNative experience whatsoever.
Is it at all possible to port an existing RN (npm-package) for use with a Flutter application? My understanding is that a RN compliant package exposes a JS API. Is there any way to implement a form of JS interop to achieve this, or is it not possible, and it would be better to ask the package vendor for Android and iOS specific native library / SDK releases (which were probably used to create the npm-package initially)?
My initial outlook was that it was not possible, but then I saw this article;
https://www.thesmythgroup.com/in-development/how-to-use-npm-packages-in-native-ios-apps/
I would say it is better to use only dart packages, you don't have support for dart in npm, in some months you would have very big problems with that because of the lack of support, take that in mind...
I created application with mvvmcross and I want to target WPF, andoid and ios.
I used task and async/await in my core PCL library.
It works with WPF and Android because I use Microsoft.Bcl.Async and AsyncBridge.Portable from Daniel Plaisted.
My problem is with ios version because Daniel not implemented AsyncBridge.Portable for ios.
I would like to know if someone maked it or if someone know where I can find source code of AsyncBridge.Portable of Daniel ?
If Daniel, you sees this post, can you explained me how can I make ios version ? :)
Thank you
You can find the source code here. From that, you may be able to just adapt the Android code to work on iOS.
However, official Xamarin PCL support is coming soon (-ish), and that may change how you need to do this (or make it so you don't need to do it at all).
I make small investigation how good is monotouch and mono for android comparing with native code? What I need is numbers and maybe some other info about advantages and disadvantages of monotouch and mono for android...
Thank you!
I don't have comparison figures but I have used both MonoTouch and MonoDroid for an OpenGL application.
The type of application your making may make the difference to you.
If you want to create a cross platform application I personally would go with Mono as its probably going to be more productive in the end.
I have must say MonoTouch outperforms MonoDroid, probably because of the .NET to java interop that must take place on Android (and the Java on Android seams to be slow)[At least android 2.2+ devices].
There is also Mono.Simd if you need speed optimizations.
UPDATE: "Mono.Simd" is not available on MonoTouch or MonoDroid.
I know this is not a real answer, but in my opinion, it is the best. You can get both a native app as well as lots of code re-use. There are lots of things out there that could help you make a decision, but also look at the Xamarin blog.
here a link that may help you :
http://www.koushikdutta.com/2009/01/dalvik-vs-mono.html
based on that mono is way faster than java dalvik!
I have followed http://wiki.appcelerator.org/display/guides/iOS+Module+Development+Guide and created a ios module and integrated it to titanium application. Now kindly help me how to convert an existing iOS4 (iPhone) application into iOS module for titanium.
My question might be very sily, kindly help me :)
Titanium mobile uses its native javascript to develop modules. At compile time it translates the source code into native code.
And as per your situation you have a native application in iOS 4, so in order to convert it to titanium you got to create the application from scratch in titanium using its native javascript.
I don't think there is any trick or application that converts a native iOS application to titanium.
One suggestion would be by creating an empty module and putting your existing code inside it. The tricky part is getting rid of your own Appdelegate and attching the Modules delegate to your source.
You can show any of your view controllers as follows
[[TiApp app] showModalController:myViewController animated:YES];
I have a game written in C/C++ for iOS (using only obj-c for the GLES initialization) and I would like to port it to Android, I saw that it was possible using the NDK by creating a dynamic library (.so).
I install the Android SDK and NDK compile a simple library load it run, no problem, but I simply can't debug it... I can only debug the Java part (where my GLES context is created etc...) Am I missing something or? how can I debug my dynamic library?
It doesn't seems to have no support for debugging anything created with the NDK for Eclipse... so how am I suppose to debug my C/C++ then?
Anybody have experience with this? Any help would be greatly appreciated!
You have to use ndk-gdb. Take a look at this articles:
http://groups.google.com/group/android-ndk/web/debugging-through-the-jni-with-android-2-2
http://www.eclipse.org/sequoyah/documentation/native_debug.php