3 ms·
> I made applications with Nuklear that runs on Android, iOS, macOS, Windows and share the same main C code. How do you even compile C code for Android / PlayS
by amelius 7y ago
> I made applications with Nuklear that runs on Android, iOS, macOS, Windows and share the same main C code.
How do you even compile C code for Android / PlayStore?
- asdf10 7y agoYou use the Android Native Development Kit (NDK) https://developer.android.com/ndk https://developer.android.com/ndk
- wjbr 7y agohttps://developer.android.com/ndk https://developer.android.com/ndk Android NDK The Android NDK is a toolset that lets you implement parts of your app in native code, using languages such as C and C++. For certain types of apps, this can help you reuse code libraries written in those languages.
- amelius 7y agoInteresting. I was under the impression that all apps on Android would run inside a Java sandbox, but apparently this is not the case. However, now I'm wondering how safe it is to run apps that might contain native code.
- FraKtus 7y agoI use Visual Studio on Windows with Android (NDK) integration. Debugging is working smoothly, I was surprised how good the experience was. My setup is that Window run in a VM (Parallels) from macOS. I can then open the iOS code from XCode and the Android from Visual studio and switch very quickly between the targets. In that way, I always commit versions that I already tested and debugged on all the targets I need to support.