4 ms·
Show HN: libphone – Cross-platform library supports iOS/Android development in C
- cosmie 10y agoGoogle has a library called libphonenumber[1] that does phone number parsing, namely for Android. Just a heads up. It's got ports in a half dozen languages, and the names and platforms are similar enough I mistook this title for a C port at first glance. [1] https://github.com/googlei18n/libphonenumber https://github.com/googlei18n/libphonenumber
- huxingyi 10y agoHi, cosmile, Thank you for addressing this issue, though it's a little bit later to change the repository name, because I also use the "phone" as all the apis prefix. I am not native english speaker, I just think this library is for the mobile phone app development, so I name it as libphone.
- biokoda 10y agoThe description lacks one thing. What it actually does...
- huxingyi 10y agoThanks for point out this, I can explain more details here: It's easy to write apps in C language to support both android and ios platform if using libphone. Write once, target both. There is a similar project xamarin but it use C# and it is IDE, libphone is just a library though with also some tools for platform resources generating and layout.
- biokoda 10y agoso this is a GUI library for iOS/Android?
- huxingyi 10y agoYes, and not just GUI, there are also other fundamental apis provided like timer, work queue.
- biokoda 10y agoHave you thought about integrating with https://github.com/andlabs/libui https://github.com/andlabs/libui edit: What about maybe as an optional backend? That way one could develop on a desktop easier.
- huxingyi 10y agoIt's turely an optional backend for just DEBUG purpose, like preview layout on desktop. I'll think about it, thank you. Welcome to post more ideas. It' realy helpful for me.
- huxingyi 10y agolibui is a nice work, thank you for this information. But no, It's hard to unify the behavior of desktop and mobile app. And I want keep libphone native, jut use or extend the native ui elements, and simple, and easy to integrate other Java or Object-C modules into it.
- biokoda 10y agoI would not limit it to DEBUG. Lots of apps have separate layouts for tablets. Tablet views while not ideal, can work as desktop apps.
- huxingyi 10y agoYes, you are right, tablet views can work as desktop apps. But if I am not misunderstood, the tablet view and mobile view share the same native ui apis. Maybe there is no need to implement another backend for tablet seperatly in the library?
- 10y ago
- huxingyi 10y agoPS. for mobile game developers: I made a RPG game render example[1] last night to verify if is this library enough for supports a MMORPG game development. [1] https://github.com/huxingyi/libphone/tree/master/samples/rpggame https://github.com/huxingyi/libphone/tree/master/samples/rpg...