Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
Is there any way to write classes that interact with web-services and compile it in a library (*.so shared lib probably)?
The purpose is to attach that lib to Android app in the future.
0 •
Replies
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Disagree Dislike Like 1Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeHere's a link to an iOS static library tutorial. It's just over a year old so won't be up to date with the latest Xcode and iOS, but the principles should still apply. As you can see, the sample code makes calls to NSMutableArray, implying that access to standard iOS objects and methods is possible.
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Disagree Dislike Like 1Awesome- Spam
- Abuse
- Troll
1 • Off Topic Insightful Disagree Dislike Like 1AwesomeBut to make it able to run both on Android and iOS I need to go lower, on Unix level and write the lib on C/C++, without calling any obj-c related code. Then I can wrap it with JNI and use in Java code.
So it looks to me, that writing services-layer twice (both for Android and iOS) will be easier than to go down to unix-programming.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeAnd I agree, that writing it twice using a higher-level language is probably more straightforward, though others may disagree.
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Disagree Dislike 1Like AwesomeCan anybody suggest if it is possible?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeWith regard to the "hybrid frameworks" you mention, they probably just use shared libraries which happen to have been ported to several platforms (think SDL). If the code you write around that library is portable (e.g. C++) then it's more likely that your classes will cross compile. At that point in time, your classes' ability to function correctly relies on the library's ability to interact appropriately with the OS on which it is running.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome