Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
04/02/13 06:58 AM (12 years ago)

Remove Scringo From Packages

Hi All, For apps that do not need Scringo, how do we remove the code? Jake
 
Nick Langley
Apple Fan
Profile
Posts: 288
Reg: May 08, 2012
Birmingham, Uni...
11,580
like
04/02/13 08:25 AM (12 years ago)
How come you want to do this?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/02/13 01:22 PM (12 years ago)
Seems like a fair question to me...as awesome as scringo is, there's all kinds of different apps that may not necessarily require social features To disable Scringo, all you really need to do is remove this line of code from your appDelegate.m..you can find it in the configureEnvironmentUsingAppData method around line 518 - [ScringoAgent startSession:@"YOUR-SCRINGO-APP-ID" locationManager:nil]; If for some reason you want to completely nuke all Scringo code & files from your app to clear up some space, that might be a little more complicated...you could start by typing "scringo" into the xcode search tool to find where all the code is hiding. I know the Scringo folder itself can be found in BT_Core
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
04/02/13 01:28 PM (12 years ago)
Would the Scringo code in the xcode project effect the Socialize integration if Socialize is what I want to use?
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
04/02/13 03:28 PM (12 years ago)
@Absentia: Thank you for your reply. In the future, I wonder if there will be a control panel option of disabling Scringo? Jake
 
Nick Langley
Apple Fan
Profile
Posts: 288
Reg: May 08, 2012
Birmingham, Uni...
11,580
like
04/03/13 12:54 AM (12 years ago)
But if you haven't added an App ID and replaced the "YOUR-SCRINGO-APP-ID". Surely theres no trace of it in the forefront of your app anyway? So why delete [ScringoAgent startSession:@"YOUR-SCRINGO-APP-ID" locationManager:nil]; ? Just interested. Im still learning.
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/03/13 12:59 AM (12 years ago)
If I remember correctly, even with a blank or made-up app ID the screen still respond to swipes to open Scringo. It will just show a scringo sidebar with no options
 
Nick Langley
Apple Fan
Profile
Posts: 288
Reg: May 08, 2012
Birmingham, Uni...
11,580
like
04/03/13 01:13 AM (12 years ago)
Oh, how come David has added it into the source code without any CP Options seems like a strange thing to do...
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/09/13 05:18 PM (12 years ago)
Hi Nick, It's added in the download (without control panel modifications) for a few reasons. Getting back to the "delete" Scringo idea. Yup, if you're not using it you could easily just... 1) Delete the entire Scringo folder. Blow it out. All the Scringo code is in one folder. 2) Remove this line in your app's delegate file. [ScringoAgent startSession:@"YOUR-SCRINGO-APP-ID" locationManager:nil]; 3) Remove the #import <Scringo/ScringoAgent.h> line in your app's delegate file. 4) Remove the #import <Scringo/ScringoAgent.h> from the BT_viewController.m file. That's it, your app is now "Scringo Free" and weighs a whole lot less :-) Getting back to the control panel. Yup, it makes sense that the control panel would allow you to do a few Scringo things, like grab a new Scringo app id. We've been working on some cool integration things like this. Today, it's a matter of adding a Scringo ID or not after you download the package. It's been about a week and we're getting lots of useful info so we can now make some decisions about the best way to move forward. It could be that Scringo is added "after" you download the project to lighten up downloads and help clarify a few things. Not sure. Either way, it's a step in the right direction.
 
arun_s
Aspiring developer
Profile
Posts: 7
Reg: Jan 19, 2013
Dallas
1,720
like
04/10/13 04:09 PM (12 years ago)
Just a quick addition to David's steps is that you also have to remove the lines: //listen for Scringo commands... [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(myCommandClicked:) name:kScringoCustomButtonClicked object:nil]; from the BT_viewController.m file
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.