where do we find XMPP framework for iphone? - iphone

I want to develop an chat application, in which I successfully added files of DDXML, DDXMLElement, DXMLElementAddition etc., now I need to add XMPP framework files and its libraries, where do i find these files, is there any open source of these files?
I checked the site http://code.google.com/p/xmppframework/wiki/iPhone in which they mentioned which files to be added, but I didnt find those files to include in my project,
if anyone knows please tell me..
Thans in advance...

I think the google repo is officially moved to git at https://github.com/robbiehanson/XMPPFramework

Do you mean the XMPP sources?
Here they are:
http://code.google.com/p/xmppframework/source/checkout
You have to checkout the sources manually, that is the easiest way, or you browse the repository and save all files:
http://code.google.com/p/xmppframework/source/browse/
Other libs are described. AsyncSocket is this one:
http://code.google.com/p/cocoaasyncsocket/source/checkout

Here are their files for the project:
http://code.google.com/p/xmppframework/source/browse/?r=default#hg%2FXcode%2FiPhoneXMPP
And in your XCode project the framework you need to add is CFNetwork
So right click on your Frameworks folder in XCode
Add > Existing Frameworks > Select "CFNetwork"
and everything should be ready to run their iPhone XMPP example.

Related

Handle external not-cocoapods-framework in a cocoapods project

I fell in love with Cocoapods and I want to migrate all my projects with it.
Before doing it, I've a few questions on how to handle external not-cocoapods frameworks in my projects.
1) Let's say that I'm using Cocoapods and I've included only AFNetworking framework.
At some point, I need to use some CoreGraphic animation and I need to use QuartzCore: AFNetworking is not using this framework, so QuartzCore is not included in my Pods project.
What's the best way to handle this situation?
Is better to think "I put all the frameworks in my Pods project, so in my "app project" I've only the code necessary to my app"? And if yes, how? Adding in my Pods.xconfig this code
OTHER_LDFLAGS = -ObjC ... -framework QuartzCore
? Or there are other (better) ways?
Or is better to think "this is not a Pod, so I add the framework on my "app project" as I've always done before"?
2) I've a library (saved in my HD) that is not on the main repository of Cocoapods and there is no Podspec file: what's the best way to include it on my project?
I create a podspec for that library and I link it using :local attribute on my Podfile
I add that library in my "app project" as I've always done
Of course every way works fine, so I'm not asking "How to add an external framework", I'm asking what's the best way to do it :)
Framework
CocoaPods tries, to the possible extent, to separate its files from your work. This is also needed because CocoaPods needs to control some files. For example the Pods.xcconfig is assumed to be under CocoaPods control and it is recreated during each installation. In other words any change that you make to it is lost.
So if you need a framework you should add it to your app project. In principle you should do it even if the framework is included by some Pods because they might be updated removing the dependency and your project would break.
Custom library
Both alternatives work, if you plan to reuse the library creating the podspec might come handy in future. You could also create a custom repo (see the wiki) so you don't need to use the :local option.

Single Development for Blackberry and Nokia Java enabled device with J2ME

I have 1+ years development with iOS and now looking for work with Blackberry and Nokia Java enabled devices. Just started work with Netbeans 7.1 IDE with LWUIT.
Issue
Can I Use the file created by Resource Editor (ect.res) in both projects?
if Yes - then please provide some information.
if No - then is there any way for this and which one should be better?
I created one file with Resource Editor (etc.res) then how I can use this resource file with Netbeans in my project? Because after adding the file project showing same as it was without adding.
Yes you can use the same res file to both platforms using lwuit in both apps. Be carefull in BB with the http connections, they need some parameters more than j2me normal app.
To use the res file from the code tou will need to open the res using the Resource object
To do that:
Resources res = Resources.open("path of your res");
later you can use many things of your resource (Containers, fonts, localization...)
I think that you can use for some projects. When you build the project the res file write into binary code that save in dist file. but you need to add the files to project. In my lwuit projects is added under source packages or Resources and is working.
Resources defaultTheme = Resources.open(DEFAULT_THEME_NAME);

ShareKit Integration

I was doing FB and Twitter integration of my application using the ShareKit. Which seems to be an awesome framework which reduces the development time a lot. However there seems to be lots of bugs/issues on the framework and looking on to that I discovered that there's a separate version maintained by the Open source community which is called ShareKit 2.0.
It available thorough the git repo and I download the framework as a ZIP bundle. But I can't compile this bundle the culprit seems to be it lacks FBConnect and JSON Kit files. AnyIdea why they haven't included these files ? / Will any version of FB would work with the latest Sharekit Framework?
Reading the installation wiki it looks like ShareKit includes it's dependencies as git submodules.
Since you are just downloading the zipped archive - this does not include these submodules, nor does it contain the information required to download them.
Your best bet is not to use the zipped archive, but to install it through git as the documentation says. Alternatively, you can download these dependencies yourself and add them to your project.
Don't bother with ShareKit, you'll encounter too many problems and their code will be out-of-date very quickly. use Facebook's mobile api for Facebook. HA!
https://github.com/facebook/facebook-ios-sdk

How to install Facebook Ignited in a codeigniter app?

Trying to install https://github.com/Necromnius/Facebook-Ignited/ into codeigniter.
I'm new to the framework, how should I go about installing this, copying the files into
my project seems a bit heavy handed, is there another way?
Unless your installing a Spark (http://getsparks.org/), you'll need to manually copy the files into your project. The instructions for installation don't list the created/modified files so you'll have to browse through the repository to see which files need to be copied to your project.
Facebook Ignited has minimum package downloads which include only the files that you need to upgrade Facebook Ignited. You can find them in the Downloads Page with the latest version v1.1.2. I haven't created a Spark for it but that may be something worth looking into later on if interest is high enough. Hope that helps!

subversioning ipad app project

I am currently looking at setting up an Ipad app project into subversion.
Ive had a lot of experience with windows based development and .net. With this we have just created a repository in a network folder (by just right clicking -> TortiseSVN -> create repository) , than all we have done is our developers have checked out from this directory.
How do we go about doing this in xcode. I know subversion is integrated with xcode and I am pretty confident of doing everything (from tutorials) except for the creation of the repository.
Just wondering how we go about creating a repository in a folder based up on network folder?
Thanks in advance
Google for the svn book.
It should have everything you need to know with the exception of Xcode specifics.
Honestly, you probably don't want to create a repository on someone's development machine, especially if you are giving people network access.
You should setup an actual SVN server or use an online service.
Here is a question posted in 2009: SVN server for the Mac that's easy to set up?
Here is the "official" Ubuntu guide if you chose to run the SVN server on top of Ubuntu (which is my recommendation). Google for "install svn ubuntu".
Sorry I can't post multiple links yet.
Not 100% sure since I mainly use the terminal for svn operations on mac but
if you go in XCode to the scm you can configure the repositories for your project
once that is set up (I guess you know how to do this form your question), you simply you can go scm->repositories
select the one you want and you can then modify it