Permalink
Browse files

added UDID for debug builds

  • Loading branch information...
1 parent a6bf1bd commit bba7d1cd10448bf8ae6518fec65e11dcb1f0df3f @calebd calebd committed Jun 6, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 hoptoadnotifier/HTNotifier.m
@@ -76,6 +76,12 @@ - (id)initWithAPIKey:(NSString *)key environmentName:(NSString *)name {
_environmentName = [HTStringByReplacingHoptoadVariablesInString(name) retain];
_environmentInfo = [[NSMutableDictionary alloc] init];
self.useSSL = NO;
+#if TARGET_OS_IPHONE && DEBUG
+ NSString *UDID = [[UIDevice currentDevice] uniqueIdentifier];
+ [self
+ setEnvironmentValue:UDID
+ forKey:@"UDID"];
+#endif
// register defaults
[[NSUserDefaults standardUserDefaults] registerDefaults:

0 comments on commit bba7d1c

Please sign in to comment.