NewsBlur/media/ios/ShareKit/SHKConfig.h

171 lines
7.4 KiB
C
Raw Normal View History

// PLEASE SEE INSTALL/CONFIG INSTRUCTIONS:
// http://getsharekit.com/install
// App Description
// These values are used by any service that shows 'shared from XYZ'
#define SHKMyAppName @"NewsBlur"
#define SHKMyAppURL @"http://www.newsblur.com"
/*
API Keys
--------
This is the longest step to getting set up, it involves filling in API keys for the supported services.
It should be pretty painless though and should hopefully take no more than a few minutes.
Each key below as a link to a page where you can generate an api key. Fill in the key for each service below.
A note on services you don't need:
If, for example, your app only shares URLs then you probably won't need image services like Flickr.
In these cases it is safe to leave an API key blank.
However, it is STRONGLY recommended that you do your best to support all services for the types of sharing you support.
The core principle behind ShareKit is to leave the service choices up to the user. Thus, you should not remove any services,
leaving that decision up to the user.
*/
// Delicious - https://developer.apps.yahoo.com/projects
#define SHKDeliciousConsumerKey @""
#define SHKDeliciousSecretKey @""
// Facebook - https://developers.facebook.com/
// SHKFacebookAppID is the Application ID provided by Facebook
// SHKFacebookLocalAppID is used if you need to differentiate between several iOS apps running against a single Facebook app. Leave it blank unless you are sure of what you are doing.
// The CFBundleURLSchemes in your App-Info.plist should be "fb" + the concatenation of these two IDs.
// Example:
// SHKFacebookAppID = 555
// SHKFacebookLocalAppID = funk
//
// Your CFBundleURLSchemes entry: fb555funk
#define SHKFacebookUseSessionProxy NO
2011-12-06 17:57:02 -08:00
#define SHKFacebookAppID @"230426707030569"
#define SHKFacebookLocalAppID @""
#define SHKFacebookSessionProxyURL @""
// Read It Later - http://readitlaterlist.com/api/?shk
2011-12-06 17:57:02 -08:00
#define SHKReadItLaterKey @"c23d9HbTT2a8fma098AfIr9zQTgcF0l9"
// Twitter - http://dev.twitter.com/apps/new
/*
Important Twitter settings to get right:
Differences between OAuth and xAuth
--
There are two types of authentication provided for Twitter, OAuth and xAuth. OAuth is the default and will
present a web view to log the user in. xAuth presents a native entry form but requires Twitter to add xAuth to your app (you have to request it from them).
If your app has been approved for xAuth, set SHKTwitterUseXAuth to 1.
Callback URL (important to get right for OAuth users)
--
1. Open your application settings at http://dev.twitter.com/apps/
2. 'Application Type' should be set to BROWSER (not client)
3. 'Callback URL' should match whatever you enter in SHKTwitterCallbackUrl. The callback url doesn't have to be an actual existing url. The user will never get to it because ShareKit intercepts it before the user is redirected. It just needs to match.
*/
2011-12-06 17:57:02 -08:00
#define SHKTwitterConsumerKey @"oLLSBFQ7iuObz6VHCNQsw"
#define SHKTwitterSecret @"DEf5AFMNo49XyPQCMtK46txTLdqQsWgJC7yRanGtcg"
#define SHKTwitterCallbackUrl @"http://www.newsblur.com" // You need to set this if using OAuth, see note above (xAuth users can skip it)
#define SHKTwitterUseXAuth 0 // To use xAuth, set to 1
2011-12-06 17:57:02 -08:00
#define SHKTwitterUsername @"newsblur" // Enter your app's twitter account if you'd like to ask the user to follow it when logging in. (Only for xAuth)
// Evernote - http://www.evernote.com/about/developer/api/
/* You need to set to sandbox until you get approved by evernote
// Sandbox
#define SHKEvernoteUserStoreURL @"https://sandbox.evernote.com/edam/user"
#define SHKEvernoteNetStoreURLBase @"http://sandbox.evernote.com/edam/note/"
// Or production
#define SHKEvernoteUserStoreURL @"https://www.evernote.com/edam/user"
#define SHKEvernoteNetStoreURLBase @"http://www.evernote.com/edam/note/"
*/
#define SHKEvernoteUserStoreURL @""
#define SHKEvernoteSecretKey @""
#define SHKEvernoteConsumerKey @""
#define SHKEvernoteNetStoreURLBase @""
// Bit.ly (for shortening URLs on Twitter) - http://bit.ly/account/register - after signup: http://bit.ly/a/your_api_key
2011-12-06 17:57:02 -08:00
#define SHKBitLyLogin @"samuelclay"
#define SHKBitLyKey @"R_0b9169c480c4616a6118bdb8e08a5c71"
// Flickr - http://www.flickr.com/services/apps/create/
/*
1 - This requires the CFNetwork.framework
2 - One needs to setup the flickr app as a "web service" on the flickr authentication flow settings, and enter in your app's custom callback URL scheme.
3 - make sure you define and create the same URL scheme in your apps info.plist. It can be as simple as yourapp://flickr */
#define SHKFlickrConsumerKey @"" // The consumer key
#define SHKFlickrSecretKey @"" // The secret key
#define SHKFlickrCallbackUrl @"app://flickr" // The user defined callback url
/*
UI Configuration : Basic
------
These provide controls for basic UI settings. For more advanced configuration see below.
*/
// Toolbars
#define SHKBarStyle @"UIBarStyleDefault" // See: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIKitDataTypesReference/Reference/reference.html#//apple_ref/c/econst/UIBarStyleDefault
#define SHKBarTintColorRed 24 // Value between 0-255, set all to -1 for default
#define SHKBarTintColorGreen 51 // Value between 0-255, set all to -1 for default
#define SHKBarTintColorBlue 83 // Value between 0-255, set all to -1 for default
// Forms
#define SHKFormFontColorRed -1 // Value between 0-255, set all to -1 for default
#define SHKFormFontColorGreen -1 // Value between 0-255, set all to -1 for default
#define SHKFormFontColorBlue -1 // Value between 0-255, set all to -1 for default
#define SHKFormBgColorRed -1 // Value between 0-255, set all to -1 for default
#define SHKFormBgColorGreen -1 // Value between 0-255, set all to -1 for default
#define SHKFormBgColorBlue -1 // Value between 0-255, set all to -1 for default
// iPad views
#define SHKModalPresentationStyle @"UIModalPresentationFormSheet" // See: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalPresentationStyle
#define SHKModalTransitionStyle @"UIModalTransitionStyleCoverVertical" // See: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalTransitionStyle
// ShareMenu Ordering
#define SHKShareMenuAlphabeticalOrder 1 // Setting this to 1 will show list in Alphabetical Order, setting to 0 will follow the order in SHKShares.plist
// Append 'Shared With 'Signature to Email (and related forms)
#define SHKSharedWithSignature 1
// Name of the plist file that defines the class names of the sharers to use. Usually should not be changed, but
// this allows you to subclass a sharer and have the subclass be used.
#define SHKSSharersPlistName @"SHKSharers.plist"
/*
UI Configuration : Advanced
------
If you'd like to do more advanced customization of the ShareKit UI, like background images and more,
check out http://getsharekit.com/customize
*/
// turn on to use placeholders in edit fields instead of labels to the left for input fields.
#define SHKUsePlaceholders 0
/*
Advanced Configuration
------
These settings can be left as is. This only need to be changed for uber custom installs.
*/
#define SHK_MAX_FAV_COUNT 3
#define SHK_FAVS_PREFIX_KEY @"SHK_FAVS_"
#define SHK_AUTH_PREFIX @"SHK_AUTH_"
#define SHK_ALLOW_OFFLINE 1
#define SHK_ALLOW_AUTOSHARE 1