|
1 | 1 | // |
2 | 2 | // Leanplum.h |
3 | | -// Leanplum iOS SDK Version 1.2.8 |
| 3 | +// Leanplum iOS SDK Version 1.2.9 |
4 | 4 | // |
5 | 5 | // Copyright (c) 2014 Leanplum. All rights reserved. |
6 | 6 | // |
@@ -64,10 +64,14 @@ name = [LPVar define:[@#name stringByReplacingOccurrencesOfString:@"_" withStrin |
64 | 64 | // It's useful in development mode so that we remember your device even if you reinstall your app. |
65 | 65 | // Since it's a MACRO, this won't get compiled into your app in production, and will be safe |
66 | 66 | // to submit to Apple. |
67 | | -#define LEANPLUM_USE_ADVERTISING_ID [Leanplum setDeviceId:[[[NSClassFromString(@"ASIdentifierManager") \ |
68 | | - performSelector:NSSelectorFromString(@"sharedManager")] \ |
69 | | - performSelector:NSSelectorFromString(@"advertisingIdentifier")] \ |
70 | | - performSelector:NSSelectorFromString(@"UUIDString")]] |
| 67 | +#define LEANPLUM_USE_ADVERTISING_ID \ |
| 68 | + _Pragma("clang diagnostic push") \ |
| 69 | + _Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \ |
| 70 | + [Leanplum setDeviceId:[[[NSClassFromString(@"ASIdentifierManager") \ |
| 71 | + performSelector:NSSelectorFromString(@"sharedManager")] \ |
| 72 | + performSelector:NSSelectorFromString(@"advertisingIdentifier")] \ |
| 73 | + performSelector:NSSelectorFromString(@"UUIDString")]] \ |
| 74 | + _Pragma("clang diagnostic pop") |
71 | 75 |
|
72 | 76 | @class LPActionContext; |
73 | 77 |
|
@@ -258,6 +262,11 @@ typedef enum { |
258 | 262 | // Resumes the current state. |
259 | 263 | + (void)resumeState; |
260 | 264 |
|
| 265 | +// Automatically tracks all of the screens in the app as states. |
| 266 | +// You should not use this in conjunction with advanceTo as the user can only be in |
| 267 | +// 1 state at a time. |
| 268 | ++ (void)trackAllAppScreens; |
| 269 | + |
261 | 270 | // Logs a particular event in your application. The string can be |
262 | 271 | // any value of your choosing, and will show up in the dashboard. |
263 | 272 | + (void)track:(NSString *)event; |
|
0 commit comments