Developer Area

root/apps/iphone/superbook/trunk/ShareKit/SHKConfig.h

Revision 893, 6.3 kB (checked in by henri, 3 years ago)

Fixed issues related to adding ShareKit?

Line 
1
2
3
4
5
6// PLEASE SEE INSTALL/CONFIG INSTRUCTIONS:
7// http://getsharekit.com/install
8
9
10
11
12
13
14// App Description
15// These values are used by any service that shows 'shared from XYZ'
16
17#define SHKMyAppName                    @".tel Superbook"
18#define SHKMyAppURL                             @"http://superbook.tel"
19
20
21
22/*
23 API Keys
24 --------
25 This is the longest step to getting set up, it involves filling in API keys for the supported services.
26 It should be pretty painless though and should hopefully take no more than a few minutes.
27 
28 Each key below as a link to a page where you can generate an api key.  Fill in the key for each service below.
29 
30 A note on services you don't need:
31 If, for example, your app only shares URLs then you probably won't need image services like Flickr.
32 In these cases it is safe to leave an API key blank.
33 
34 However, it is STRONGLY recommended that you do your best to support all services for the types of sharing you support.
35 The core principle behind ShareKit is to leave the service choices up to the user.  Thus, you should not remove any services,
36 leaving that decision up to the user.
37 */
38
39
40
41// Delicious - https://developer.apps.yahoo.com/projects
42#define SHKDeliciousConsumerKey         @"dj0yJmk9MTRGOEJSajBJeTVxJmQ9WVdrOVIxbzFPRFJ5TldrbWNHbzlNVGczT1RBNU9UTTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD1kOQ--"
43#define SHKDeliciousSecretKey           @"be654a8b9cb2e924f6e0f41d4b1a7adf26556659"
44
45// Facebook - http://www.facebook.com/developers
46// If SHKFacebookUseSessionProxy is enabled then SHKFacebookSecret is ignored and should be left blank
47
48#define SHKFacebookUseSessionProxy  NO
49#define SHKFacebookKey                          @"229935623724063"
50#define SHKFacebookSecret                       @"f85078fbd65b42735a3830ec4ce4ecf0"
51#define SHKFacebookSessionProxyURL  @""
52
53// Read It Later - http://readitlaterlist.com/api/?shk
54#define SHKReadItLaterKey                       @""
55
56// Twitter - http://dev.twitter.com/apps/new
57/*
58 Important Twitter settings to get right:
59 
60 Differences between OAuth and xAuth
61 --
62 There are two types of authentication provided for Twitter, OAuth and xAuth.  OAuth is the default and will
63 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).
64 If your app has been approved for xAuth, set SHKTwitterUseXAuth to 1.
65 
66 Callback URL (important to get right for OAuth users)
67 --
68 1. Open your application settings at http://dev.twitter.com/apps/
69 2. 'Application Type' should be set to BROWSER (not client)
70 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.
71 */
72#define SHKTwitterConsumerKey           @"1TBbNewsuXHCpEA2Euah8w"
73#define SHKTwitterSecret                        @"kkKPsqkOogu4SyVcafgugCGXyOXsSymqDcbX7co90"
74#define SHKTwitterCallbackUrl           @"http://superbook.tel/twittercallback" // You need to set this if using OAuth, see note above (xAuth users can skip it)
75#define SHKTwitterUseXAuth                      0 // To use xAuth, set to 1
76#define SHKTwitterUsername                      @"" // Enter your app's twitter account if you'd like to ask the user to follow it when logging in. (Only for xAuth)
77
78// Bit.ly (for shortening URLs on Twitter) - http://bit.ly/account/register - after signup: http://bit.ly/a/your_api_key
79#define SHKBitLyLogin                           @""
80#define SHKBitLyKey                                     @""
81
82// ShareMenu Ordering
83#define SHKShareMenuAlphabeticalOrder 1 // Setting this to 1 will show list in Alphabetical Order, setting to 0 will follow the order in SHKShares.plist
84
85// Append 'Shared With 'Signature to Email (and related forms)
86#define SHKSharedWithSignature          1
87
88
89
90/*
91 UI Configuration : Basic
92 ------
93 These provide controls for basic UI settings.  For more advanced configuration see below.
94 */
95
96// Toolbars
97#define SHKBarStyle                                     @"UIBarStyleDefault" // See: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIKitDataTypesReference/Reference/reference.html#//apple_ref/c/econst/UIBarStyleDefault
98#define SHKBarTintColorRed                      -1 // Value between 0-255, set all to -1 for default
99#define SHKBarTintColorGreen            -1 // Value between 0-255, set all to -1 for default
100#define SHKBarTintColorBlue                     -1 // Value between 0-255, set all to -1 for default
101
102// Forms
103#define SHKFormFontColorRed                     -1 // Value between 0-255, set all to -1 for default
104#define SHKFormFontColorGreen           -1 // Value between 0-255, set all to -1 for default
105#define SHKFormFontColorBlue            -1 // Value between 0-255, set all to -1 for default
106
107#define SHKFormBgColorRed                       -1 // Value between 0-255, set all to -1 for default
108#define SHKFormBgColorGreen                     -1 // Value between 0-255, set all to -1 for default
109#define SHKFormBgColorBlue                      -1 // Value between 0-255, set all to -1 for default
110
111// iPad views
112#define SHKModalPresentationStyle       @"UIModalPresentationFormSheet" // See: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalPresentationStyle
113#define SHKModalTransitionStyle         @"UIModalTransitionStyleCoverVertical" // See: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalTransitionStyle
114
115// ShareMenu Ordering
116#define SHKShareMenuAlphabeticalOrder 1 // Setting this to 1 will show list in Alphabetical Order, setting to 0 will follow the order in SHKShares.plist
117
118/*
119 UI Configuration : Advanced
120 ------
121 If you'd like to do more advanced customization of the ShareKit UI, like background images and more,
122 check out http://getsharekit.com/customize
123 */
124
125
126
127/*
128 Debugging
129 ------
130 To show debug output in the console:
131 1. uncomment section A below
132 2. comment out section B below
133 
134 To hide debug output in the console:
135 1. uncomment section B below
136 2. comment out section A below
137 */
138
139// A : show debug output
140//#define SHKDebugShowLogs                      1
141//#define SHKLog( s, ... ) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
142
143// B : hide debug output
144#define SHKDebugShowLogs                        0
145#define SHKLog( s, ... )
146
147
148
149/*
150 Advanced Configuration
151 ------
152 These settings can be left as is.  This only need to be changed for uber custom installs.
153 */
154
155#define SHK_MAX_FAV_COUNT                       3
156#define SHK_FAVS_PREFIX_KEY                     @"SHK_FAVS_"
157#define SHK_AUTH_PREFIX                         @"SHK_AUTH_"
Note: See TracBrowser for help on using the browser.
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us