Created
October 23, 2011 03:33
-
-
Save doronkatz/1306836 to your computer and use it in GitHub Desktop.
Constants in Objective-C Header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Constants.m | |
// myApp | |
// | |
// Created by Doron Katz on 15/06/11. | |
// Copyright 2011 doronkatz.com. All rights reserved. | |
// | |
//URLS | |
extern NSString* const kDBRestKitBaseURL; | |
extern NSString* const kDBCategoryResource; | |
extern NSString* const kDBSubCategoryResource; | |
extern NSString* const kDBBrandResource; | |
extern NSString* const kDBProductsResource; | |
//TestFlight ID | |
extern NSString* const kTestFlightID; | |
//MailChimp settings | |
extern NSString* const kMailChimpAPIKey; | |
extern NSString* const kMailChimpListId; | |
#ifdef TESTING | |
NSString* const kDBRestKitBaseURL = @"http://localhost:8888/myApp"; | |
#else | |
NSString* const kDBRestKitBaseURL = @"http://www.myserver.org.au"; | |
#endif | |
NSString* const kDBCategoryResource = @"/WebServices/myApp_categories.php"; | |
NSString* const kDBSubCategoryResource = @"/WebServices/myApp_subcategories.php"; | |
NSString* const kDBBrandResource = @"/WebServices/myApp_brands.php"; | |
NSString* const kDBProductsResource = @"/WebServices/myApp_products.php"; | |
//TestFlight ID | |
NSString* const kTestFlightID = @"12345"; | |
//Mailchimp | |
NSString* const kMailChimpListId = @"222"; | |
NSString* const kMailChimpAPIKey = @"333-us2"; | |
//Priv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment