Permalink
Browse files

Added external definition file for Simperium API key.

Copy SimperiumConfig-example.h to SimperiumConfig.h and edit your API key to build with Simplenote sync support through the Simperium API.
  • Loading branch information...
1 parent d8f1dd1 commit f98aa68c89dbbe866faaf8da0d4b6c4436b5c0d4 @ttscoff committed Mar 19, 2013
Showing with 9 additions and 7 deletions.
  1. +1 −5 .gitignore
  2. +3 −0 SimperiumConfig-example.h
  3. +5 −2 SimplenoteSession.m
View
@@ -50,9 +50,5 @@ Portuguese.lproj/*.nvhelp
Italian.lproj/*.nvhelp
French.lproj/*.nvhelp
*.pbxproj
-
-*.pbxproj
-
-*.pbxproj
-
*.xcscheme
+SimperiumConfig.h
@@ -0,0 +1,3 @@
+// If you're building from source and want to sync with Simplenote, you can request your own API key
+// For now, please email: fred@simperium.com
+#define kSimperiumAPIKeyString @"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
View
@@ -15,7 +15,9 @@
- Neither the name of Notational Velocity nor the names of its contributors may be used to endorse
or promote products derived from this software without specific prior written permission. */
-
+// SimplenoteConfig.h should be copied from SimplenoteConfig-example.h and set up with your Simperium API key
+// If you choose not to use Simperium, just include an empty string in the file.
+#import "SimperiumConfig.h"
#import "SimplenoteSession.h"
#import "SyncResponseFetcher.h"
#import "SimplenoteEntryCollector.h"
@@ -38,9 +40,10 @@
NSString *SimplenoteSeparatorKey = @"SepStr";
#define kSimplenoteSessionIndexBatchSize 100
+// Set in SimperiumConfig.h
// If you're building from source and want to sync with Simplenote, you can request your own API key
// For now, please email: fred@simperium.com
-NSString * const kSimperiumAPIKey = @"your simplenote-simperium api key";
+NSString * const kSimperiumAPIKey = kSimperiumAPIKeyString;
@implementation SimplenoteSession

0 comments on commit f98aa68

Please sign in to comment.