diff --git a/.gitignore b/.gitignore index 79bb553..c71ef4d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ build.log .DS_Store android/build.properties parse.jar -cloudcode/config/local.json \ No newline at end of file +cloudcode/config/local.json +iphone/build \ No newline at end of file diff --git a/android/src/eu/rebelcorp/parse/ParseModule.java b/android/src/eu/rebelcorp/parse/ParseModule.java index 54936fa..721d2f7 100644 --- a/android/src/eu/rebelcorp/parse/ParseModule.java +++ b/android/src/eu/rebelcorp/parse/ParseModule.java @@ -73,6 +73,17 @@ public void onStart(Activity activity) { super.onStart(activity); setState(STATE_RUNNING); + + // Track app opens + ParseAnalytics.trackAppOpened(TiApplication.getAppRootOrCurrentActivity().getIntent()); + ParseInstallation.getCurrentInstallation().put("androidId", getAndroidId()); + ParseInstallation.getCurrentInstallation().saveInBackground(new SaveCallback() { + public void done(ParseException e) { + if (e != null) { + Log.e(TAG, "Installation initialization failed: " + e.getMessage()); + } + } + }); } public void onResume(Activity activity) @@ -116,40 +127,6 @@ public static ParseModule getInstance() { } // Methods - @Kroll.method - public void start() - { - setState(STATE_RUNNING); - // Track Push opens - ParseAnalytics.trackAppOpened(TiApplication.getAppRootOrCurrentActivity().getIntent()); - ParseInstallation.getCurrentInstallation().put("androidId", getAndroidId()); - ParseInstallation.getCurrentInstallation().saveInBackground(new SaveCallback() { - public void done(ParseException e) { - if (e != null) { - Log.e(TAG, "Installation initialization failed: " + e.getMessage()); - } - } - }); - } - - @Kroll.method - public void enablePush() { - // Deprecated. Now happens automatically - } - - @Kroll.method - public void authenticate(@Kroll.argument String sessionToken) { - ParseUser.becomeInBackground(sessionToken, new LogInCallback() { - public void done(ParseUser user, ParseException e) { - if (user != null) { - // Hooray! The user is logged in. - } else { - // Signup failed. Look at the ParseException to see what happened. - } - } - }); - } - @Kroll.method public void subscribeChannel(@Kroll.argument String channel) { ParsePush.subscribeInBackground(channel); diff --git a/iphone/Classes/RebelParseModule.h b/iphone/Classes/EuRebelcorpParseModule.h similarity index 58% rename from iphone/Classes/RebelParseModule.h rename to iphone/Classes/EuRebelcorpParseModule.h index fc23a4f..123ee52 100644 --- a/iphone/Classes/RebelParseModule.h +++ b/iphone/Classes/EuRebelcorpParseModule.h @@ -8,23 +8,15 @@ #import "TiModule.h" #import "RebelParseUserProxy.h" -#import -#import #import -@interface RebelParseModule : TiModule { +@interface EuRebelcorpParseModule : TiModule { @private RebelParseUserProxy* currentUser; } - - --(void)signup:(id)args; -(void)login:(id)args; -(void)logout; -(void)resetPassword:(id)args; --(void)loginWithFacebook:(id)args; --(void)callFunction:(id)args; - @end diff --git a/iphone/Classes/EuRebelcorpParseModule.m b/iphone/Classes/EuRebelcorpParseModule.m new file mode 100644 index 0000000..6c41e33 --- /dev/null +++ b/iphone/Classes/EuRebelcorpParseModule.m @@ -0,0 +1,196 @@ +/** + * Parse + * + * Created by Timan Rebel + * Copyright (c) 2014 Your Company. All rights reserved. + */ + +#import "EuRebelcorpParseModule.h" +#import "TiBase.h" +#import "TiHost.h" +#import "TiUtils.h" +#import "TiApp.h" + +@implementation EuRebelcorpParseModule + +#pragma mark Internal + +// this is generated for your module, please do not change it +-(id)moduleGUID +{ + return @"e700fd13-7783-4f1c-9201-1442922524fc"; +} + +// this is generated for your module, please do not change it +-(NSString*)moduleId +{ + return @"eu.rebelcorp.parse"; +} + +#pragma mark Lifecycle + +-(void)load +{ + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(notificationOpened:) name:@"UIApplicationDidFinishLaunchingNotification" object:nil]; +} + +-(void)startup +{ + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSDictionary *launchOptions = [[TiApp app] launchOptions]; + + NSString *applicationId = [[TiApp tiAppProperties] objectForKey:@"Parse_AppId"]; + NSString *clientKey = [[TiApp tiAppProperties] objectForKey:@"Parse_ClientKey"]; + + NSLog(@"Initializing with: %@, %@", applicationId, clientKey); + + [Parse setApplicationId:applicationId + clientKey:clientKey]; + + [PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions]; + + // this method is called when the module is first loaded + // you *must* call the superclass + [super startup]; +} + +#pragma mark Cleanup + +-(void)dealloc +{ + // release any resources that have been retained by the module + [super dealloc]; +} + +#pragma mark Internal Memory Management + +-(void)didReceiveMemoryWarning:(NSNotification*)notification +{ + // optionally release any resources that can be dynamically + // reloaded once memory is available - such as caches + [super didReceiveMemoryWarning:notification]; +} + + +#pragma User + +-(void)login:(id)args +{ + NSString *username = [args objectAtIndex:0]; + NSString *password = [args objectAtIndex:1]; + + [PFUser logInWithUsernameInBackground:username password:password block:^(PFUser *user, NSError *error) { + if (user) { + // Do stuff after successful login. + } else { + // The login failed. Check error to see why. + } + }]; +} + +-(void)logout +{ + [PFUser logOut]; +} + +-(void)resetPassword:(id)email +{ + ENSURE_SINGLE_ARG(email, NSString); + + [PFUser requestPasswordResetForEmailInBackground:email]; +} + +-(id)currentUser +{ + if(currentUser == nil && [PFUser currentUser] != nil) { + currentUser = [[RebelParseUserProxy alloc]init]; + currentUser.pfObject = [[PFUser currentUser] retain]; + } + + return currentUser; +} + +#pragma Push Notifications +-(void)notificationOpened:(NSNotification *)userInfo { + NSLog(@"Notification opened"); + [PFAnalytics trackAppOpenedWithRemoteNotificationPayload:[userInfo userInfo]]; +} + +-(void)registerDeviceToken:(id)deviceToken +{ + ENSURE_SINGLE_ARG(deviceToken, NSString); + + // Store the deviceToken in the current Installation and save it to Parse. + PFInstallation *currentInstallation = [PFInstallation currentInstallation]; + [currentInstallation setDeviceTokenFromData:[deviceToken dataUsingEncoding:NSUTF8StringEncoding]]; + [currentInstallation saveInBackground]; +} + +-(void)registerForPush:(id)args { + ENSURE_ARG_COUNT(args, 3); + + NSString *deviceToken = [args objectAtIndex:0]; + NSString *channel = [args objectAtIndex:1]; + KrollCallback *callback = [args objectAtIndex:2]; + + NSLog(@"Register for push notification on channel %@ with device token %@", channel, deviceToken); + + // Store the deviceToken in the current Installation and save it to Parse. + PFInstallation *currentInstallation = [PFInstallation currentInstallation]; + [currentInstallation setDeviceToken:deviceToken]; + [currentInstallation addUniqueObject:channel forKey:@"channels"]; + + [currentInstallation saveInBackgroundWithBlock:^(BOOL success, NSError *error) { + if (callback) { + NSDictionary *result = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:success], @"success", [error userInfo], @"error", nil]; + [self _fireEventToListener:@"completed" withObject:result listener:callback thisObject:nil]; + } + }]; +} + +-(void)subscribeChannel:(id)channel +{ + ENSURE_SINGLE_ARG(channel, NSString); + + PFInstallation *currentInstallation = [PFInstallation currentInstallation]; + [currentInstallation addUniqueObject:channel forKey:@"channels"]; + [currentInstallation saveInBackground]; +} + +-(void)unsubscribeChannel:(id)channel +{ + ENSURE_SINGLE_ARG(channel, NSString); + + PFInstallation *currentInstallation = [PFInstallation currentInstallation]; + [currentInstallation removeObject:channel forKey:@"channels"]; + [currentInstallation saveInBackground]; +} + +-(void)putValue:(id)args +{ + ENSURE_ARG_COUNT(args, 2); + ENSURE_TYPE([args objectAtIndex:0], NSString); + ENSURE_TYPE([args objectAtIndex:1], NSObject); + + PFInstallation *currentInstallation = [PFInstallation currentInstallation]; + [currentInstallation addObject:[args objectAtIndex:1] forKey:[args objectAtIndex:0]]; + [currentInstallation saveInBackground]; +} + +#pragma Property getter +-(NSString *)currentInstallationId +{ + return [PFInstallation currentInstallation].installationId; +} + +-(NSString *)objectId +{ + return [PFInstallation currentInstallation].objectId; +} + +-(NSArray *)channels:(id)args +{ + return [PFInstallation currentInstallation].channels; +} + +@end diff --git a/iphone/Classes/RebelParseModuleAssets.h b/iphone/Classes/EuRebelcorpParseModuleAssets.h similarity index 100% rename from iphone/Classes/RebelParseModuleAssets.h rename to iphone/Classes/EuRebelcorpParseModuleAssets.h diff --git a/iphone/Classes/RebelParseModuleAssets.m b/iphone/Classes/EuRebelcorpParseModuleAssets.m similarity index 93% rename from iphone/Classes/RebelParseModuleAssets.m rename to iphone/Classes/EuRebelcorpParseModuleAssets.m index da365c2..c1d728e 100644 --- a/iphone/Classes/RebelParseModuleAssets.m +++ b/iphone/Classes/EuRebelcorpParseModuleAssets.m @@ -1,7 +1,7 @@ /** * This is a generated file. Do not edit or your changes will be lost */ -#import "RebelParseModuleAssets.h" +#import "EuRebelcorpParseModuleAssets.h" extern NSData* filterDataInRange(NSData* thedata, NSRange range); diff --git a/iphone/Classes/RebelParseModule.m b/iphone/Classes/RebelParseModule.m deleted file mode 100644 index 52d4f83..0000000 --- a/iphone/Classes/RebelParseModule.m +++ /dev/null @@ -1,396 +0,0 @@ -/** - * Parse - * - * Created by Timan Rebel - * Copyright (c) 2014 Your Company. All rights reserved. - */ - -#import "RebelParseModule.h" -#import "TiBase.h" -#import "TiHost.h" -#import "TiUtils.h" -#import "TiApp.h" - -#import "JRSwizzle.h" - -// Create a category which adds new methods to TiApp -@implementation TiApp (Facebook) - -- (void)parseApplicationDidBecomeActive:(UIApplication *)application -{ - // If you're successful, you should see the following output from titanium - NSLog(@"[DEBUG] RebelParseModule#applicationDidBecomeActive"); - - // be sure to call the original method - // note: swizzle will 'swap' implementations, so this is calling the original method, - // not the current method... so this will not infinitely recurse. promise. - [self parseApplicationDidBecomeActive:application]; - - // Add your custom code here... - // Handle the user leaving the app while the Facebook login dialog is being shown - // For example: when the user presses the iOS "home" button while the login dialog is active - [FBAppCall handleDidBecomeActiveWithSession:[PFFacebookUtils session]]; - - // Call the 'activateApp' method to log an app event for use in analytics and advertising reporting. - [FBAppEvents activateApp]; -} - -@end - -@implementation RebelParseModule - -// This is the magic bit... Method Swizzling -// important that this happens in the 'load' method, otherwise the methods -// don't get swizzled early enough to actually hook into app startup. -+ (void)load { - NSError *error = nil; - - [TiApp jr_swizzleMethod:@selector(applicationDidBecomeActive:) - withMethod:@selector(parseApplicationDidBecomeActive:) - error:&error]; - if(error) - NSLog(@"[ERROR] Cannot swizzle application:openURL:sourceApplication:annotation: %@", error); -} - -#pragma mark Internal - -// this is generated for your module, please do not change it --(id)moduleGUID -{ - return @"e700fd13-7783-4f1c-9201-1442922524fc"; -} - -// this is generated for your module, please do not change it --(NSString*)moduleId -{ - return @"rebel.Parse"; -} - -#pragma mark Lifecycle - --(void)startup -{ - NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - NSDictionary *launchOptions = [[TiApp app] launchOptions]; - - NSString *applicationId = [[TiApp tiAppProperties] objectForKey:@"rebel.parse.appId"]; - NSString *clientKey = [[TiApp tiAppProperties] objectForKey:@"rebel.parse.clientKey"]; - - NSLog(@"appId: %@", applicationId); - NSLog(@"clientKey: %@", clientKey); - - [Parse setApplicationId:applicationId - clientKey:clientKey]; - - [PFFacebookUtils initializeFacebook]; - - [PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions]; - - // Set default ACL - PFACL *defaultACL = [PFACL ACL]; - [defaultACL setPublicReadAccess:YES]; - [PFACL setDefaultACL:defaultACL withAccessForCurrentUser:YES]; - - // this method is called when the module is first loaded - // you *must* call the superclass - [super startup]; -} - --(void)shutdown:(id)sender -{ - // this method is called when the module is being unloaded - // typically this is during shutdown. make sure you don't do too - // much processing here or the app will be quit forceably - - // you *must* call the superclass - [super shutdown:sender]; - - [[PFFacebookUtils session] close]; -} - --(void)resumed:(id)note -{ - NSLog(@"[DEBUG] facebook resumed"); - - NSDictionary *launchOptions = [[TiApp app] launchOptions]; - if (launchOptions != nil) - { - NSString *urlString = [launchOptions objectForKey:@"url"]; - NSString *sourceApplication = [launchOptions objectForKey:@"source"]; - - if (urlString != nil) { - return [FBAppCall handleOpenURL:[NSURL URLWithString:urlString] - sourceApplication:sourceApplication - withSession:[PFFacebookUtils session]]; - } - } - - return NO; -} - -#pragma mark Cleanup - --(void)dealloc -{ - // release any resources that have been retained by the module - [super dealloc]; -} - -#pragma mark Internal Memory Management - --(void)didReceiveMemoryWarning:(NSNotification*)notification -{ - // optionally release any resources that can be dynamically - // reloaded once memory is available - such as caches - [super didReceiveMemoryWarning:notification]; -} - -#pragma mark Listener Notifications - --(void)_listenerAdded:(NSString *)type count:(int)count -{ - if (count == 1 && [type isEqualToString:@"my_event"]) - { - // the first (of potentially many) listener is being added - // for event named 'my_event' - } -} - --(void)_listenerRemoved:(NSString *)type count:(int)count -{ - if (count == 0 && [type isEqualToString:@"my_event"]) - { - // the last listener called for event named 'my_event' has - // been removed, we can optionally clean up any resources - // since no body is listening at this point for that event - } -} - -#pragma Authentication -- (void)signup:(id)args -{ - PFUser *user = [PFUser user]; - user.username = @"my name"; - user.password = @"my pass"; - user.email = @"email@example.com"; - - // other fields can be set just like with PFObject - user[@"phone"] = @"415-392-0202"; - - [user signUpInBackgroundWithBlock:^(BOOL succeeded, NSError *error) { - if (!error) { - // Hooray! Let them use the app now. - } else { - NSString *errorString = [error userInfo][@"error"]; - // Show the errorString somewhere and let the user try again. - } - }]; -} - --(void)login:(id)args -{ - [PFUser logInWithUsernameInBackground:@"myname" password:@"mypass" - block:^(PFUser *user, NSError *error) { - if (user) { - // Do stuff after successful login. - } else { - // The login failed. Check error to see why. - } - }]; -} - --(void)logout:(id)args -{ - [PFUser logOut]; -} - --(void)resetPassword:(id)email -{ - ENSURE_SINGLE_ARG(email, NSString); - - [PFUser requestPasswordResetForEmailInBackground:email]; -} - --(id)currentUser -{ - if(currentUser == nil && [PFUser currentUser] != nil) { - currentUser = [[RebelParseUserProxy alloc]init]; - currentUser.pfObject = [[PFUser currentUser] retain]; - } - - return currentUser; -} - -#pragma Facebook -// Login PFUser using Facebook --(void)loginWithFacebook:(id)args -{ - NSArray *permissions; - KrollCallback *callback; - - ENSURE_ARG_AT_INDEX(permissions, args, 0, NSArray); - ENSURE_ARG_OR_NIL_AT_INDEX(callback, args, 1, KrollCallback); - - [PFFacebookUtils logInWithPermissions:permissions block:^(PFUser *user, NSError *error) { - - if (!user) { - NSString *errorMessage = nil; - if (!error) { - NSLog(@"Uh oh. The user cancelled the Facebook login."); - - } else { - NSLog(@"Uh oh. An error occurred: %@", error); - errorMessage = [error localizedDescription]; - - UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Log In Error" - message:errorMessage - delegate:nil - cancelButtonTitle:nil - otherButtonTitles:@"Dismiss", nil]; - [alert show]; - } - } else { - if (user.isNew) { - NSLog(@"User with facebook signed up and logged in!"); - } else { - NSLog(@"User with facebook logged in!"); - } - - RebelParseUserProxy *currentUser = [[RebelParseUserProxy alloc]init]; - currentUser.pfObject = [user retain]; - - if(callback) { - NSDictionary* result = [NSDictionary dictionaryWithObjectsAndKeys:currentUser, @"user", nil]; - - [self _fireEventToListener:@"completed" withObject:result listener:callback thisObject:self]; - } - } - }]; -} - --(void)loginWithFacebookAccessTokenData:(id)args -{ - NSDictionary *accessTokenData; - - ENSURE_ARG_AT_INDEX(accessTokenData, args, 0, NSDictionary); - - [PFFacebookUtils logInWithFacebookId:[accessTokenData objectForKey:@"facebookId"] - accessToken:[accessTokenData objectForKey:@"accessToken"] - expirationDate:[accessTokenData objectForKey:@"expirationDate"] - block: ^(PFUser *user, NSError *error) { - - if (!user) { - NSString *errorMessage = nil; - if (!error) { - NSLog(@"Uh oh. The user cancelled the Facebook login."); - - } else { - NSLog(@"Uh oh. An error occurred: %@", error); - errorMessage = [error localizedDescription]; - - UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Log In Error" - message:errorMessage - delegate:nil - cancelButtonTitle:nil - otherButtonTitles:@"Dismiss", nil]; - [alert show]; - } - } else { - if (user.isNew) { - NSLog(@"User with facebook signed up and logged in!"); - } else { - NSLog(@"User with facebook logged in!"); - } - } - }]; -} - -#pragma Cloud functions --(void)callFunction:(id)args -{ - ENSURE_SINGLE_ARG(args, NSDictionary); - - NSString *function = [args objectForKey:@"function"]; - NSDictionary *params = [args objectForKey:@"params"]; - KrollCallback *callback = [args objectForKey:@"callback"]; - - [PFCloud callFunctionInBackground:function - withParameters:@{} - block:^(id result, NSError *error) { - if([result isKindOfClass:[PFObject class]]) { -// result = [self convertPFObjectToNSDictionary:object]; - } - - NSMutableArray *objects = [[NSMutableArray alloc] init]; - for (id object in result) { - RebelParseObjectProxy *pfObject = [[RebelParseObjectProxy alloc]init]; - pfObject.pfObject = [object retain]; - - [objects addObject:pfObject]; - } - - if (!error) { - NSDictionary* result = [NSDictionary dictionaryWithObjectsAndKeys:objects, @"result", nil]; - - [self _fireEventToListener:@"completed" withObject:result listener:callback thisObject:self]; - } - }]; -} - -#pragma Location --(void)getLocation:(id)args -{ - [PFGeoPoint geoPointForCurrentLocationInBackground:^(PFGeoPoint *geoPoint, NSError *error) { - if (!error) { - // do something with the new geoPoint - } - }]; -} - -#pragma Events --(void)trackEvent:(id)args -{ - NSString *event; - NSDictionary *properties; - - ENSURE_ARG_AT_INDEX(event, args, 0, NSString); - ENSURE_ARG_OR_NIL_AT_INDEX(properties, args, 1, NSDictionary); - - [PFAnalytics trackEvent:event dimensions:properties]; -} - -#pragma Push Notifications --(void)registerDeviceToken:(id)deviceToken -{ - ENSURE_SINGLE_ARG(deviceToken, NSString); - - // Store the deviceToken in the current Installation and save it to Parse. - PFInstallation *currentInstallation = [PFInstallation currentInstallation]; - [currentInstallation setDeviceTokenFromData:[deviceToken dataUsingEncoding:NSUTF8StringEncoding]]; - [currentInstallation saveInBackground]; -} - --(void)subscribeChannel:(id)channel -{ - ENSURE_SINGLE_ARG(channel, NSString); - - PFInstallation *currentInstallation = [PFInstallation currentInstallation]; - [currentInstallation addUniqueObject:channel forKey:@"channels"]; - [currentInstallation saveInBackground]; -} - --(void)unsubscribeChannel:(id)channel -{ - ENSURE_SINGLE_ARG(channel, NSString); - - PFInstallation *currentInstallation = [PFInstallation currentInstallation]; - [currentInstallation removeObject:channel forKey:@"channels"]; - [currentInstallation saveInBackground]; -} - --(NSArray *)getChannels:(id)args -{ - return [PFInstallation currentInstallation].channels; -} - -@end diff --git a/iphone/Parse.xcodeproj/project.pbxproj b/iphone/Parse.xcodeproj/project.pbxproj index 1803296..fbad660 100644 --- a/iphone/Parse.xcodeproj/project.pbxproj +++ b/iphone/Parse.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 45; + objectVersion = 47; objects = { /* Begin PBXAggregateTarget section */ @@ -22,34 +22,29 @@ /* End PBXAggregateTarget section */ /* Begin PBXBuildFile section */ - 24DD6CF91134B3F500162E58 /* RebelParseModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 24DD6CF71134B3F500162E58 /* RebelParseModule.h */; }; - 24DD6CFA1134B3F500162E58 /* RebelParseModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 24DD6CF81134B3F500162E58 /* RebelParseModule.m */; }; - 24DE9E1111C5FE74003F90F6 /* RebelParseModuleAssets.h in Headers */ = {isa = PBXBuildFile; fileRef = 24DE9E0F11C5FE74003F90F6 /* RebelParseModuleAssets.h */; }; - 24DE9E1211C5FE74003F90F6 /* RebelParseModuleAssets.m in Sources */ = {isa = PBXBuildFile; fileRef = 24DE9E1011C5FE74003F90F6 /* RebelParseModuleAssets.m */; }; + 24DD6CF91134B3F500162E58 /* EuRebelcorpParseModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 24DD6CF71134B3F500162E58 /* EuRebelcorpParseModule.h */; }; + 24DD6CFA1134B3F500162E58 /* EuRebelcorpParseModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 24DD6CF81134B3F500162E58 /* EuRebelcorpParseModule.m */; }; + 24DE9E1111C5FE74003F90F6 /* EuRebelcorpParseModuleAssets.h in Headers */ = {isa = PBXBuildFile; fileRef = 24DE9E0F11C5FE74003F90F6 /* EuRebelcorpParseModuleAssets.h */; }; + 24DE9E1211C5FE74003F90F6 /* EuRebelcorpParseModuleAssets.m in Sources */ = {isa = PBXBuildFile; fileRef = 24DE9E1011C5FE74003F90F6 /* EuRebelcorpParseModuleAssets.m */; }; AA747D9F0F9514B9006C5449 /* RebelParse_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = AA747D9E0F9514B9006C5449 /* RebelParse_Prefix.pch */; }; AACBBE4A0F95108600F1A2B1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AACBBE490F95108600F1A2B1 /* Foundation.framework */; }; BC1255FB19BDE9AC00CA272D /* RebelParseUserProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = BC1255F919BDE9AC00CA272D /* RebelParseUserProxy.h */; }; BC1255FC19BDE9AC00CA272D /* RebelParseUserProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = BC1255FA19BDE9AC00CA272D /* RebelParseUserProxy.m */; }; - BCB03F7919B78B8000DED4EA /* FacebookSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCB03F7819B78B8000DED4EA /* FacebookSDK.framework */; }; - BCB03F7D19B78BD600DED4EA /* JRSwizzle.h in Headers */ = {isa = PBXBuildFile; fileRef = BCB03F7B19B78BD600DED4EA /* JRSwizzle.h */; }; - BCB03F7E19B78BD600DED4EA /* JRSwizzle.m in Sources */ = {isa = PBXBuildFile; fileRef = BCB03F7C19B78BD600DED4EA /* JRSwizzle.m */; }; BCE1EBCF19B5C00100ECF758 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBCE19B5C00100ECF758 /* AudioToolbox.framework */; }; BCE1EBD119B5C00700ECF758 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBD019B5C00700ECF758 /* CFNetwork.framework */; }; BCE1EBD319B5C00D00ECF758 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBD219B5C00D00ECF758 /* CoreGraphics.framework */; }; BCE1EBD519B5C01200ECF758 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBD419B5C01200ECF758 /* CoreLocation.framework */; }; - BCE1EBD719B5C01A00ECF758 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBD619B5C01A00ECF758 /* libz.dylib */; }; BCE1EBD919B5C02000ECF758 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBD819B5C02000ECF758 /* MobileCoreServices.framework */; }; BCE1EBDB19B5C02500ECF758 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBDA19B5C02500ECF758 /* QuartzCore.framework */; }; BCE1EBDD19B5C02B00ECF758 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBDC19B5C02B00ECF758 /* Security.framework */; }; BCE1EBDF19B5C02F00ECF758 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBDE19B5C02F00ECF758 /* StoreKit.framework */; }; BCE1EBE119B5C03400ECF758 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBE019B5C03400ECF758 /* SystemConfiguration.framework */; }; - BCE1EBE519B5C05000ECF758 /* Bolts.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBE219B5C05000ECF758 /* Bolts.framework */; }; - BCE1EBE719B5C05000ECF758 /* ParseFacebookUtils.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBE419B5C05000ECF758 /* ParseFacebookUtils.framework */; }; - BCE1EBF119B5D47D00ECF758 /* Parse.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCE1EBF019B5D47D00ECF758 /* Parse.framework */; }; BCE1EBF819B5E72D00ECF758 /* RebelParseObjectProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = BCE1EBF619B5E72D00ECF758 /* RebelParseObjectProxy.h */; }; BCE1EBF919B5E72D00ECF758 /* RebelParseObjectProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = BCE1EBF719B5E72D00ECF758 /* RebelParseObjectProxy.m */; }; BCE1EBFE19B61A2000ECF758 /* RebelParseQueryProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = BCE1EBFC19B61A2000ECF758 /* RebelParseQueryProxy.h */; }; BCE1EBFF19B61A2000ECF758 /* RebelParseQueryProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = BCE1EBFD19B61A2000ECF758 /* RebelParseQueryProxy.m */; }; + C26447251BE782EB00FDD5E8 /* Bolts.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C26447231BE782EB00FDD5E8 /* Bolts.framework */; }; + C26447261BE782EB00FDD5E8 /* Parse.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C26447241BE782EB00FDD5E8 /* Parse.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -63,36 +58,31 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 24DD6CF71134B3F500162E58 /* RebelParseModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RebelParseModule.h; path = Classes/RebelParseModule.h; sourceTree = ""; }; - 24DD6CF81134B3F500162E58 /* RebelParseModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RebelParseModule.m; path = Classes/RebelParseModule.m; sourceTree = ""; }; + 24DD6CF71134B3F500162E58 /* EuRebelcorpParseModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EuRebelcorpParseModule.h; path = Classes/EuRebelcorpParseModule.h; sourceTree = ""; }; + 24DD6CF81134B3F500162E58 /* EuRebelcorpParseModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = EuRebelcorpParseModule.m; path = Classes/EuRebelcorpParseModule.m; sourceTree = ""; }; 24DD6D1B1134B66800162E58 /* titanium.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = titanium.xcconfig; sourceTree = ""; }; - 24DE9E0F11C5FE74003F90F6 /* RebelParseModuleAssets.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RebelParseModuleAssets.h; path = Classes/RebelParseModuleAssets.h; sourceTree = ""; }; - 24DE9E1011C5FE74003F90F6 /* RebelParseModuleAssets.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RebelParseModuleAssets.m; path = Classes/RebelParseModuleAssets.m; sourceTree = ""; }; + 24DE9E0F11C5FE74003F90F6 /* EuRebelcorpParseModuleAssets.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EuRebelcorpParseModuleAssets.h; path = Classes/EuRebelcorpParseModuleAssets.h; sourceTree = ""; }; + 24DE9E1011C5FE74003F90F6 /* EuRebelcorpParseModuleAssets.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = EuRebelcorpParseModuleAssets.m; path = Classes/EuRebelcorpParseModuleAssets.m; sourceTree = ""; }; AA747D9E0F9514B9006C5449 /* RebelParse_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RebelParse_Prefix.pch; sourceTree = SOURCE_ROOT; }; AACBBE490F95108600F1A2B1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; BC1255F919BDE9AC00CA272D /* RebelParseUserProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RebelParseUserProxy.h; path = Classes/RebelParseUserProxy.h; sourceTree = ""; }; BC1255FA19BDE9AC00CA272D /* RebelParseUserProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RebelParseUserProxy.m; path = Classes/RebelParseUserProxy.m; sourceTree = ""; }; - BCB03F7819B78B8000DED4EA /* FacebookSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FacebookSDK.framework; path = assets/Frameworks/FacebookSDK.framework; sourceTree = ""; }; - BCB03F7B19B78BD600DED4EA /* JRSwizzle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JRSwizzle.h; sourceTree = ""; }; - BCB03F7C19B78BD600DED4EA /* JRSwizzle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JRSwizzle.m; sourceTree = ""; }; BCE1EBCE19B5C00100ECF758 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; BCE1EBD019B5C00700ECF758 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; BCE1EBD219B5C00D00ECF758 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; BCE1EBD419B5C01200ECF758 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; }; - BCE1EBD619B5C01A00ECF758 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; BCE1EBD819B5C02000ECF758 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; BCE1EBDA19B5C02500ECF758 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; BCE1EBDC19B5C02B00ECF758 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; }; BCE1EBDE19B5C02F00ECF758 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; }; BCE1EBE019B5C03400ECF758 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; - BCE1EBE219B5C05000ECF758 /* Bolts.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Bolts.framework; path = assets/Frameworks/Bolts.framework; sourceTree = ""; }; - BCE1EBE419B5C05000ECF758 /* ParseFacebookUtils.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ParseFacebookUtils.framework; path = assets/Frameworks/ParseFacebookUtils.framework; sourceTree = ""; }; - BCE1EBF019B5D47D00ECF758 /* Parse.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Parse.framework; path = assets/Frameworks/Parse.framework; sourceTree = ""; }; BCE1EBF619B5E72D00ECF758 /* RebelParseObjectProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RebelParseObjectProxy.h; path = Classes/RebelParseObjectProxy.h; sourceTree = ""; }; BCE1EBF719B5E72D00ECF758 /* RebelParseObjectProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RebelParseObjectProxy.m; path = Classes/RebelParseObjectProxy.m; sourceTree = ""; }; BCE1EBFC19B61A2000ECF758 /* RebelParseQueryProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RebelParseQueryProxy.h; path = Classes/RebelParseQueryProxy.h; sourceTree = ""; }; BCE1EBFD19B61A2000ECF758 /* RebelParseQueryProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RebelParseQueryProxy.m; path = Classes/RebelParseQueryProxy.m; sourceTree = ""; }; - D2AAC07E0554694100DB518D /* libRebelParse.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRebelParse.a; sourceTree = BUILT_PRODUCTS_DIR; }; + C26447231BE782EB00FDD5E8 /* Bolts.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Bolts.framework; path = assets/Frameworks/Bolts.framework; sourceTree = ""; }; + C26447241BE782EB00FDD5E8 /* Parse.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Parse.framework; path = assets/Frameworks/Parse.framework; sourceTree = ""; }; + D2AAC07E0554694100DB518D /* libeu.rebelcorp.parse.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libeu.rebelcorp.parse.a; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -100,20 +90,17 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - BCE1EBE719B5C05000ECF758 /* ParseFacebookUtils.framework in Frameworks */, BCE1EBE119B5C03400ECF758 /* SystemConfiguration.framework in Frameworks */, BCE1EBDF19B5C02F00ECF758 /* StoreKit.framework in Frameworks */, BCE1EBDD19B5C02B00ECF758 /* Security.framework in Frameworks */, - BCE1EBE519B5C05000ECF758 /* Bolts.framework in Frameworks */, BCE1EBDB19B5C02500ECF758 /* QuartzCore.framework in Frameworks */, BCE1EBD919B5C02000ECF758 /* MobileCoreServices.framework in Frameworks */, - BCE1EBD719B5C01A00ECF758 /* libz.dylib in Frameworks */, BCE1EBD519B5C01200ECF758 /* CoreLocation.framework in Frameworks */, BCE1EBD319B5C00D00ECF758 /* CoreGraphics.framework in Frameworks */, - BCE1EBF119B5D47D00ECF758 /* Parse.framework in Frameworks */, - BCB03F7919B78B8000DED4EA /* FacebookSDK.framework in Frameworks */, BCE1EBD119B5C00700ECF758 /* CFNetwork.framework in Frameworks */, + C26447251BE782EB00FDD5E8 /* Bolts.framework in Frameworks */, BCE1EBCF19B5C00100ECF758 /* AudioToolbox.framework in Frameworks */, + C26447261BE782EB00FDD5E8 /* Parse.framework in Frameworks */, AACBBE4A0F95108600F1A2B1 /* Foundation.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -124,7 +111,7 @@ 034768DFFF38A50411DB9C8B /* Products */ = { isa = PBXGroup; children = ( - D2AAC07E0554694100DB518D /* libRebelParse.a */, + D2AAC07E0554694100DB518D /* libeu.rebelcorp.parse.a */, ); name = Products; sourceTree = ""; @@ -132,7 +119,6 @@ 0867D691FE84028FC02AAC07 /* Parse */ = { isa = PBXGroup; children = ( - BCB03F7A19B78BD600DED4EA /* JRSwizzle */, 08FB77AEFE84172EC02AAC07 /* Classes */, 32C88DFF0371C24200C91783 /* Other Sources */, 0867D69AFE84028FC02AAC07 /* Frameworks */, @@ -144,16 +130,13 @@ 0867D69AFE84028FC02AAC07 /* Frameworks */ = { isa = PBXGroup; children = ( - BCB03F7819B78B8000DED4EA /* FacebookSDK.framework */, - BCE1EBF019B5D47D00ECF758 /* Parse.framework */, - BCE1EBE219B5C05000ECF758 /* Bolts.framework */, - BCE1EBE419B5C05000ECF758 /* ParseFacebookUtils.framework */, + C26447231BE782EB00FDD5E8 /* Bolts.framework */, + C26447241BE782EB00FDD5E8 /* Parse.framework */, BCE1EBE019B5C03400ECF758 /* SystemConfiguration.framework */, BCE1EBDE19B5C02F00ECF758 /* StoreKit.framework */, BCE1EBDC19B5C02B00ECF758 /* Security.framework */, BCE1EBDA19B5C02500ECF758 /* QuartzCore.framework */, BCE1EBD819B5C02000ECF758 /* MobileCoreServices.framework */, - BCE1EBD619B5C01A00ECF758 /* libz.dylib */, BCE1EBD419B5C01200ECF758 /* CoreLocation.framework */, BCE1EBD219B5C00D00ECF758 /* CoreGraphics.framework */, BCE1EBD019B5C00700ECF758 /* CFNetwork.framework */, @@ -169,10 +152,10 @@ BCDD78AA19B9DC950090CCFB /* User */, BCE1EBFB19B619FC00ECF758 /* Query */, BCE1EBFA19B619ED00ECF758 /* Object */, - 24DE9E0F11C5FE74003F90F6 /* RebelParseModuleAssets.h */, - 24DE9E1011C5FE74003F90F6 /* RebelParseModuleAssets.m */, - 24DD6CF71134B3F500162E58 /* RebelParseModule.h */, - 24DD6CF81134B3F500162E58 /* RebelParseModule.m */, + 24DE9E0F11C5FE74003F90F6 /* EuRebelcorpParseModuleAssets.h */, + 24DE9E1011C5FE74003F90F6 /* EuRebelcorpParseModuleAssets.m */, + 24DD6CF71134B3F500162E58 /* EuRebelcorpParseModule.h */, + 24DD6CF81134B3F500162E58 /* EuRebelcorpParseModule.m */, ); name = Classes; sourceTree = ""; @@ -186,16 +169,6 @@ name = "Other Sources"; sourceTree = ""; }; - BCB03F7A19B78BD600DED4EA /* JRSwizzle */ = { - isa = PBXGroup; - children = ( - BCB03F7B19B78BD600DED4EA /* JRSwizzle.h */, - BCB03F7C19B78BD600DED4EA /* JRSwizzle.m */, - ); - name = JRSwizzle; - path = Vendor/JRSwizzle; - sourceTree = ""; - }; BCDD78AA19B9DC950090CCFB /* User */ = { isa = PBXGroup; children = ( @@ -231,11 +204,10 @@ buildActionMask = 2147483647; files = ( BCE1EBFE19B61A2000ECF758 /* RebelParseQueryProxy.h in Headers */, - BCB03F7D19B78BD600DED4EA /* JRSwizzle.h in Headers */, BC1255FB19BDE9AC00CA272D /* RebelParseUserProxy.h in Headers */, AA747D9F0F9514B9006C5449 /* RebelParse_Prefix.pch in Headers */, - 24DD6CF91134B3F500162E58 /* RebelParseModule.h in Headers */, - 24DE9E1111C5FE74003F90F6 /* RebelParseModuleAssets.h in Headers */, + 24DD6CF91134B3F500162E58 /* EuRebelcorpParseModule.h in Headers */, + 24DE9E1111C5FE74003F90F6 /* EuRebelcorpParseModuleAssets.h in Headers */, BCE1EBF819B5E72D00ECF758 /* RebelParseObjectProxy.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; @@ -257,7 +229,7 @@ ); name = Parse; productName = Parse; - productReference = D2AAC07E0554694100DB518D /* libRebelParse.a */; + productReference = D2AAC07E0554694100DB518D /* libeu.rebelcorp.parse.a */; productType = "com.apple.product-type.library.static"; }; /* End PBXNativeTarget section */ @@ -266,9 +238,10 @@ 0867D690FE84028FC02AAC07 /* Project object */ = { isa = PBXProject; attributes = { + LastUpgradeCheck = 0710; }; buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "Parse" */; - compatibilityVersion = "Xcode 3.1"; + compatibilityVersion = "Xcode 6.3"; developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( @@ -309,12 +282,11 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 24DD6CFA1134B3F500162E58 /* RebelParseModule.m in Sources */, + 24DD6CFA1134B3F500162E58 /* EuRebelcorpParseModule.m in Sources */, BCE1EBF919B5E72D00ECF758 /* RebelParseObjectProxy.m in Sources */, BCE1EBFF19B61A2000ECF758 /* RebelParseQueryProxy.m in Sources */, - 24DE9E1211C5FE74003F90F6 /* RebelParseModuleAssets.m in Sources */, + 24DE9E1211C5FE74003F90F6 /* EuRebelcorpParseModuleAssets.m in Sources */, BC1255FC19BDE9AC00CA272D /* RebelParseUserProxy.m in Sources */, - BCB03F7E19B78BD600DED4EA /* JRSwizzle.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -335,16 +307,17 @@ buildSettings = { CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - DSTROOT = /tmp/RebelParse.dst; + DSTROOT = /tmp/eu.rebelcorp.parse.dst; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/assets/Frameworks", "$(PROJECT_DIR)/assets", + "$(PROJECT_DIR)", ); GCC_C_LANGUAGE_STANDARD = c99; GCC_OPTIMIZATION_LEVEL = 0; GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = RebelParse_Prefix.pch; + GCC_PREFIX_HEADER = eu.rebelcorp.parse_Prefix.pch; GCC_PREPROCESSOR_DEFINITIONS = "TI_VERSION=$(TI_VERSION)"; GCC_TREAT_WARNINGS_AS_ERRORS = NO; GCC_VERSION = ""; @@ -357,13 +330,14 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; LIBRARY_SEARCH_PATHS = ""; OTHER_CFLAGS = ( "-DDEBUG", "-DTI_POST_1_2", ); OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = RebelParse; + PRODUCT_NAME = eu.rebelcorp.parse; PROVISIONING_PROFILE = ""; "PROVISIONING_PROFILE[sdk=iphoneos*]" = ""; RUN_CLANG_STATIC_ANALYZER = NO; @@ -377,16 +351,17 @@ baseConfigurationReference = 24DD6D1B1134B66800162E58 /* titanium.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - DSTROOT = /tmp/RebelParse.dst; + DSTROOT = /tmp/eu.rebelcorp.parse.dst; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/assets/Frameworks", "$(PROJECT_DIR)/assets", + "$(PROJECT_DIR)", ); GCC_C_LANGUAGE_STANDARD = c99; GCC_MODEL_TUNING = G5; GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = RebelParse_Prefix.pch; + GCC_PREFIX_HEADER = eu.rebelcorp.parse_Prefix.pch; GCC_PREPROCESSOR_DEFINITIONS = "TI_VERSION=$(TI_VERSION)"; GCC_TREAT_WARNINGS_AS_ERRORS = NO; GCC_VERSION = ""; @@ -399,11 +374,11 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; - IPHONEOS_DEPLOYMENT_TARGET = 4.0; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; LIBRARY_SEARCH_PATHS = ""; OTHER_CFLAGS = "-DTI_POST_1_2"; OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = RebelParse; + PRODUCT_NAME = eu.rebelcorp.parse; RUN_CLANG_STATIC_ANALYZER = NO; SDKROOT = iphoneos; USER_HEADER_SEARCH_PATHS = ""; @@ -418,6 +393,7 @@ CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; DSTROOT = /tmp/RebelParse.dst; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = c99; GCC_OPTIMIZATION_LEVEL = 0; GCC_PRECOMPILE_PREFIX_HEADER = YES; @@ -434,6 +410,8 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = ( "-DDEBUG", "-DTI_POST_1_2", @@ -445,6 +423,7 @@ RUN_CLANG_STATIC_ANALYZER = NO; SDKROOT = iphoneos; USER_HEADER_SEARCH_PATHS = ""; + VALID_ARCHS = "x86_64 i386 arm64 armv7"; }; name = Debug; }; @@ -471,13 +450,14 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; - IPHONEOS_DEPLOYMENT_TARGET = 4.0; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; OTHER_CFLAGS = "-DTI_POST_1_2"; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = RebelParse; RUN_CLANG_STATIC_ANALYZER = NO; SDKROOT = iphoneos; USER_HEADER_SEARCH_PATHS = ""; + VALID_ARCHS = "x86_64 i386 arm64 armv7"; }; name = Release; }; diff --git a/iphone/Parse.xcodeproj/project.xcworkspace/xcshareddata/Parse.xccheckout b/iphone/Parse.xcodeproj/project.xcworkspace/xcshareddata/Parse.xccheckout index 5dcd272..b78f581 100644 --- a/iphone/Parse.xcodeproj/project.xcworkspace/xcshareddata/Parse.xccheckout +++ b/iphone/Parse.xcodeproj/project.xcworkspace/xcshareddata/Parse.xccheckout @@ -11,17 +11,17 @@ IDESourceControlProjectOriginsDictionary 4A68C81231DBE1023F4A971B8F98AF3B8A129847 - ssh://github.com/Rebelic/Parse.git + https://github.com/timanrebel/Parse.git IDESourceControlProjectPath - iphone/Parse.xcodeproj/project.xcworkspace + iphone/Parse.xcodeproj IDESourceControlProjectRelativeInstallPathDictionary 4A68C81231DBE1023F4A971B8F98AF3B8A129847 ../../.. IDESourceControlProjectURL - ssh://github.com/Rebelic/Parse.git + https://github.com/timanrebel/Parse.git IDESourceControlProjectVersion 111 IDESourceControlProjectWCCIdentifier diff --git a/iphone/Vendor/JRSwizzle/JRSwizzle.h b/iphone/Vendor/JRSwizzle/JRSwizzle.h deleted file mode 100755 index 7d29bc2..0000000 --- a/iphone/Vendor/JRSwizzle/JRSwizzle.h +++ /dev/null @@ -1,13 +0,0 @@ -// JRSwizzle.h semver:1.0 -// Copyright (c) 2007-2011 Jonathan 'Wolf' Rentzsch: http://rentzsch.com -// Some rights reserved: http://opensource.org/licenses/MIT -// https://github.com/rentzsch/jrswizzle - -#import - -@interface NSObject (JRSwizzle) - -+ (BOOL)jr_swizzleMethod:(SEL)origSel_ withMethod:(SEL)altSel_ error:(NSError**)error_; -+ (BOOL)jr_swizzleClassMethod:(SEL)origSel_ withClassMethod:(SEL)altSel_ error:(NSError**)error_; - -@end diff --git a/iphone/Vendor/JRSwizzle/JRSwizzle.m b/iphone/Vendor/JRSwizzle/JRSwizzle.m deleted file mode 100755 index 4e582bf..0000000 --- a/iphone/Vendor/JRSwizzle/JRSwizzle.m +++ /dev/null @@ -1,134 +0,0 @@ -// JRSwizzle.m semver:1.0 -// Copyright (c) 2007-2011 Jonathan 'Wolf' Rentzsch: http://rentzsch.com -// Some rights reserved: http://opensource.org/licenses/MIT -// https://github.com/rentzsch/jrswizzle - -#import "JRSwizzle.h" - -#if TARGET_OS_IPHONE - #import - #import -#else - #import -#endif - -#define SetNSErrorFor(FUNC, ERROR_VAR, FORMAT,...) \ - if (ERROR_VAR) { \ - NSString *errStr = [NSString stringWithFormat:@"%s: " FORMAT,FUNC,##__VA_ARGS__]; \ - *ERROR_VAR = [NSError errorWithDomain:@"NSCocoaErrorDomain" \ - code:-1 \ - userInfo:[NSDictionary dictionaryWithObject:errStr forKey:NSLocalizedDescriptionKey]]; \ - } -#define SetNSError(ERROR_VAR, FORMAT,...) SetNSErrorFor(__func__, ERROR_VAR, FORMAT, ##__VA_ARGS__) - -#if OBJC_API_VERSION >= 2 -#define GetClass(obj) object_getClass(obj) -#else -#define GetClass(obj) (obj ? obj->isa : Nil) -#endif - -@implementation NSObject (JRSwizzle) - -+ (BOOL)jr_swizzleMethod:(SEL)origSel_ withMethod:(SEL)altSel_ error:(NSError**)error_ { -#if OBJC_API_VERSION >= 2 - Method origMethod = class_getInstanceMethod(self, origSel_); - if (!origMethod) { -#if TARGET_OS_IPHONE - SetNSError(error_, @"original method %@ not found for class %@", NSStringFromSelector(origSel_), [self class]); -#else - SetNSError(error_, @"original method %@ not found for class %@", NSStringFromSelector(origSel_), [self className]); -#endif - return NO; - } - - Method altMethod = class_getInstanceMethod(self, altSel_); - if (!altMethod) { -#if TARGET_OS_IPHONE - SetNSError(error_, @"alternate method %@ not found for class %@", NSStringFromSelector(altSel_), [self class]); -#else - SetNSError(error_, @"alternate method %@ not found for class %@", NSStringFromSelector(altSel_), [self className]); -#endif - return NO; - } - - class_addMethod(self, - origSel_, - class_getMethodImplementation(self, origSel_), - method_getTypeEncoding(origMethod)); - class_addMethod(self, - altSel_, - class_getMethodImplementation(self, altSel_), - method_getTypeEncoding(altMethod)); - - method_exchangeImplementations(class_getInstanceMethod(self, origSel_), class_getInstanceMethod(self, altSel_)); - return YES; -#else - // Scan for non-inherited methods. - Method directOriginalMethod = NULL, directAlternateMethod = NULL; - - void *iterator = NULL; - struct objc_method_list *mlist = class_nextMethodList(self, &iterator); - while (mlist) { - int method_index = 0; - for (; method_index < mlist->method_count; method_index++) { - if (mlist->method_list[method_index].method_name == origSel_) { - assert(!directOriginalMethod); - directOriginalMethod = &mlist->method_list[method_index]; - } - if (mlist->method_list[method_index].method_name == altSel_) { - assert(!directAlternateMethod); - directAlternateMethod = &mlist->method_list[method_index]; - } - } - mlist = class_nextMethodList(self, &iterator); - } - - // If either method is inherited, copy it up to the target class to make it non-inherited. - if (!directOriginalMethod || !directAlternateMethod) { - Method inheritedOriginalMethod = NULL, inheritedAlternateMethod = NULL; - if (!directOriginalMethod) { - inheritedOriginalMethod = class_getInstanceMethod(self, origSel_); - if (!inheritedOriginalMethod) { - SetNSError(error_, @"original method %@ not found for class %@", NSStringFromSelector(origSel_), [self className]); - return NO; - } - } - if (!directAlternateMethod) { - inheritedAlternateMethod = class_getInstanceMethod(self, altSel_); - if (!inheritedAlternateMethod) { - SetNSError(error_, @"alternate method %@ not found for class %@", NSStringFromSelector(altSel_), [self className]); - return NO; - } - } - - int hoisted_method_count = !directOriginalMethod && !directAlternateMethod ? 2 : 1; - struct objc_method_list *hoisted_method_list = malloc(sizeof(struct objc_method_list) + (sizeof(struct objc_method)*(hoisted_method_count-1))); - hoisted_method_list->obsolete = NULL; // soothe valgrind - apparently ObjC runtime accesses this value and it shows as uninitialized in valgrind - hoisted_method_list->method_count = hoisted_method_count; - Method hoisted_method = hoisted_method_list->method_list; - - if (!directOriginalMethod) { - bcopy(inheritedOriginalMethod, hoisted_method, sizeof(struct objc_method)); - directOriginalMethod = hoisted_method++; - } - if (!directAlternateMethod) { - bcopy(inheritedAlternateMethod, hoisted_method, sizeof(struct objc_method)); - directAlternateMethod = hoisted_method; - } - class_addMethods(self, hoisted_method_list); - } - - // Swizzle. - IMP temp = directOriginalMethod->method_imp; - directOriginalMethod->method_imp = directAlternateMethod->method_imp; - directAlternateMethod->method_imp = temp; - - return YES; -#endif -} - -+ (BOOL)jr_swizzleClassMethod:(SEL)origSel_ withClassMethod:(SEL)altSel_ error:(NSError**)error_ { - return [GetClass((id)self) jr_swizzleMethod:origSel_ withMethod:altSel_ error:error_]; -} - -@end diff --git a/iphone/assets/Frameworks/Bolts.framework/Bolts b/iphone/assets/Frameworks/Bolts.framework/Bolts deleted file mode 120000 index 190cc04..0000000 --- a/iphone/assets/Frameworks/Bolts.framework/Bolts +++ /dev/null @@ -1 +0,0 @@ -./Versions/A/Bolts \ No newline at end of file diff --git a/iphone/assets/Frameworks/Bolts.framework/Bolts b/iphone/assets/Frameworks/Bolts.framework/Bolts new file mode 100644 index 0000000..9cf04d2 Binary files /dev/null and b/iphone/assets/Frameworks/Bolts.framework/Bolts differ diff --git a/iphone/assets/Frameworks/Bolts.framework/Headers b/iphone/assets/Frameworks/Bolts.framework/Headers deleted file mode 120000 index b0cc393..0000000 --- a/iphone/assets/Frameworks/Bolts.framework/Headers +++ /dev/null @@ -1 +0,0 @@ -./Versions/A/Headers \ No newline at end of file diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLink.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLink.h similarity index 99% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLink.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLink.h index 5e51acd..aa89efc 100644 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLink.h +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLink.h @@ -21,10 +21,10 @@ FOUNDATION_EXPORT NSString *const BFAppLinkVersion; /*! Creates a BFAppLink with the given list of BFAppLinkTargets and target URL. - + Generally, this will only be used by implementers of the BFAppLinkResolving protocol, as these implementers will produce App Link metadata for a given URL. - + @param sourceURL the URL from which this App Link is derived @param targets an ordered list of BFAppLinkTargets for this platform derived from App Link metadata. diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkNavigation.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkNavigation.h similarity index 99% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkNavigation.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkNavigation.h index ff3af14..d459f72 100644 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkNavigation.h +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkNavigation.h @@ -10,7 +10,7 @@ #import -#import "BFAppLink.h" +#import /*! The result of calling navigate on a BFAppLinkNavigation diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkResolving.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkResolving.h similarity index 99% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkResolving.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkResolving.h index baa1451..b67bdba 100644 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkResolving.h +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkResolving.h @@ -21,7 +21,7 @@ /*! Asynchronously resolves App Link data for a given URL. - + @param url The URL to resolve into an App Link. @returns A BFTask that will return a BFAppLink for the given URL. */ diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkReturnToRefererController.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h similarity index 96% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkReturnToRefererController.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h index e551d5b..d19465e 100644 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkReturnToRefererController.h +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h @@ -11,7 +11,7 @@ #import #import -#import "BFAppLinkReturnToRefererView.h" +#import @class BFAppLink; @class BFAppLinkReturnToRefererController; @@ -38,7 +38,7 @@ /*! A controller class that implements default behavior for a BFAppLinkReturnToRefererView, including - the ability to display the view above the navigation bar for navigation-bsaed apps. + the ability to display the view above the navigation bar for navigation-based apps. */ @interface BFAppLinkReturnToRefererController : NSObject @@ -75,7 +75,7 @@ - (void)showViewForRefererAppLink:(BFAppLink *)refererAppLink; /*! - Shows the BFAppLinkReturnToRefererView with referer information extracted from the specified URL. + Shows the BFAppLinkReturnToRefererView with referer information extracted from the specified URL. If nil or missing referer App Link data, the view will not be displayed. */ - (void)showViewForRefererURL:(NSURL *)url; diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkReturnToRefererView.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h similarity index 69% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkReturnToRefererView.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h index b4dfa76..d20f73a 100644 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkReturnToRefererView.h +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h @@ -11,16 +11,16 @@ #import #import -#import "BFAppLinkNavigation.h" +#import @class BFAppLinkReturnToRefererView; @class BFURL; -typedef enum BFIncludeStatusBarInSize { - BFIncludeStatusBarInSizeNever, - BFIncludeStatusBarInSizeIOS7AndLater, - BFIncludeStatusBarInSizeAlways, -} BFIncludeStatusBarInSize; +typedef NS_ENUM(NSUInteger, BFIncludeStatusBarInSize) { + BFIncludeStatusBarInSizeNever, + BFIncludeStatusBarInSizeIOS7AndLater, + BFIncludeStatusBarInSizeAlways, +}; /*! Protocol that a class can implement in order to be notified when the user has navigated back @@ -65,7 +65,7 @@ typedef enum BFIncludeStatusBarInSize { /*! Indicates whether to extend the size of the view to include the current status bar size, for use in scenarios where the view might extend under the status bar on iOS 7 and - above; this property has no effect on earlier versions of iOS. + above; this property has no effect on earlier versions of iOS. */ @property (nonatomic, assign) BFIncludeStatusBarInSize includeStatusBarInSize; @@ -74,18 +74,4 @@ typedef enum BFIncludeStatusBarInSize { */ @property (nonatomic, assign) BOOL closed; -/*! - For apps that use a navigation controller, this method allows for displaying the view as - a banner above the navigation bar of the navigation controller. It will listen for orientation - change and other events to ensure it stays properly positioned above the nevigation bar. - If this method is called from, e.g., viewDidAppear, its counterpart, detachFromMainWindow should - be called from, e.g., viewWillDisappear. - */ -//- (void)attachToMainWindowAboveNavigationController:(UINavigationController *)navigationController view:(UIView *)view; - -/*! - Indicates that the view should no longer position itself above a navigation bar. - */ -//- (void)detachFromMainWindow; - @end diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkTarget.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkTarget.h similarity index 100% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkTarget.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFAppLinkTarget.h diff --git a/iphone/assets/Frameworks/Bolts.framework/Headers/BFCancellationToken.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFCancellationToken.h new file mode 100644 index 0000000..90a20d7 --- /dev/null +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFCancellationToken.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2014, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + +#import + +#import + +/*! + A block that will be called when a token is cancelled. + */ +typedef void(^BFCancellationBlock)(); + +/*! + The consumer view of a CancellationToken. + Propagates notification that operations should be canceled. + A BFCancellationToken has methods to inspect whether the token has been cancelled. + */ +@interface BFCancellationToken : NSObject + +/*! + Whether cancellation has been requested for this token source. + */ +@property (nonatomic, assign, readonly, getter=isCancellationRequested) BOOL cancellationRequested; + +/*! + Register a block to be notified when the token is cancelled. + If the token is already cancelled the delegate will be notified immediately. + */ +- (BFCancellationTokenRegistration *)registerCancellationObserverWithBlock:(BFCancellationBlock)block; + +@end diff --git a/iphone/assets/Frameworks/Bolts.framework/Headers/BFCancellationTokenRegistration.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFCancellationTokenRegistration.h new file mode 100644 index 0000000..3e7b711 --- /dev/null +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFCancellationTokenRegistration.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2014, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + +#import + +/*! + Represents the registration of a cancellation observer with a cancellation token. + Can be used to unregister the observer at a later time. + */ +@interface BFCancellationTokenRegistration : NSObject + +/*! + Removes the cancellation observer registered with the token + and releases all resources associated with this registration. + */ +- (void)dispose; + +@end diff --git a/iphone/assets/Frameworks/Bolts.framework/Headers/BFCancellationTokenSource.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFCancellationTokenSource.h new file mode 100644 index 0000000..bd6e7a1 --- /dev/null +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFCancellationTokenSource.h @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2014, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + +#import + +@class BFCancellationToken; + +/*! + BFCancellationTokenSource represents the producer side of a CancellationToken. + Signals to a CancellationToken that it should be canceled. + It is a cancellation token that also has methods + for changing the state of a token by cancelling it. + */ +@interface BFCancellationTokenSource : NSObject + +/*! + Creates a new cancellation token source. + */ ++ (instancetype)cancellationTokenSource; + +/*! + The cancellation token associated with this CancellationTokenSource. + */ +@property (nonatomic, strong, readonly) BFCancellationToken *token; + +/*! + Whether cancellation has been requested for this token source. + */ +@property (nonatomic, assign, readonly, getter=isCancellationRequested) BOOL cancellationRequested; + +/*! + Cancels the token if it has not already been cancelled. + */ +- (void)cancel; + +/*! + Schedules a cancel operation on this CancellationTokenSource after the specified number of milliseconds. + @param millis The number of milliseconds to wait before completing the returned task. + If delay is `0` the cancel is executed immediately. If delay is `-1` any scheduled cancellation is stopped. + */ +- (void)cancelAfterDelay:(int)millis; + +/*! + Releases all resources associated with this token source, + including disposing of all registrations. + */ +- (void)dispose; + +@end diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkReturnToRefererView_Internal.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFDefines.h similarity index 60% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkReturnToRefererView_Internal.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFDefines.h index 2624aee..cf7dcdf 100644 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFAppLinkReturnToRefererView_Internal.h +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFDefines.h @@ -8,10 +8,11 @@ * */ -#import "BFAppLinkReturnToRefererView.h" +#import -@interface BFAppLinkReturnToRefererView (Internal) - -- (CGFloat)statusBarHeight; - -@end +#if __has_feature(objc_generics) || __has_extension(objc_generics) +# define BF_GENERIC(type) +#else +# define BF_GENERIC(type) +# define BFGenericType id +#endif diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFExecutor.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFExecutor.h similarity index 100% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFExecutor.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFExecutor.h diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFMeasurementEvent.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFMeasurementEvent.h similarity index 89% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFMeasurementEvent.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFMeasurementEvent.h index 7a9948c..b3173fc 100644 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFMeasurementEvent.h +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFMeasurementEvent.h @@ -19,15 +19,14 @@ FOUNDATION_EXPORT NSString *const BFMeasurementEventNameKey; /*! The dictionary field for the arguments of the event */ FOUNDATION_EXPORT NSString *const BFMeasurementEventArgsKey; - /*! Bolts Events raised by BFMeasurementEvent for Applink */ /*! - The name of the event posted when [BFURL URLWithURL:] is called successfully. This represents the successful parsing of an app link URL. + The name of the event posted when [BFURL URLWithURL:] is called successfully. This represents the successful parsing of an app link URL. */ FOUNDATION_EXPORT NSString *const BFAppLinkParseEventName; -/*! - The name of the event posted when [BFURL URLWithInboundURL:] is called successfully. +/*! + The name of the event posted when [BFURL URLWithInboundURL:] is called successfully. This represents parsing an inbound app link URL from a different application */ FOUNDATION_EXPORT NSString *const BFAppLinkNavigateInEventName; @@ -35,9 +34,9 @@ FOUNDATION_EXPORT NSString *const BFAppLinkNavigateInEventName; /*! The event raised when the user navigates from your app to other apps */ FOUNDATION_EXPORT NSString *const BFAppLinkNavigateOutEventName; -/*! +/*! The event raised when the user navigates out from your app and back to the referrer app. - e.g when the user leaves your app after tapping the back-to-referrer navigation bar + e.g when the user leaves your app after tapping the back-to-referrer navigation bar */ FOUNDATION_EXPORT NSString *const BFAppLinkNavigateBackToReferrerEventName; diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFTask.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFTask.h similarity index 51% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFTask.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFTask.h index 2ac84d6..827071d 100644 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFTask.h +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFTask.h @@ -10,26 +10,39 @@ #import -@class BFExecutor; -@class BFTask; +#import +#import /*! - A block that can act as a continuation for a task. + Error domain used if there was multiple errors on . + */ +extern NSString *const BFTaskErrorDomain; + +/*! + An exception that is thrown if there was multiple exceptions on . */ -typedef id(^BFContinuationBlock)(BFTask *task); +extern NSString *const BFTaskMultipleExceptionsException; + +@class BFExecutor; +@class BFTask; /*! The consumer view of a Task. A BFTask has methods to inspect the state of the task, and to add continuations to be run once the task is complete. */ -@interface BFTask : NSObject +@interface BFTask BF_GENERIC(__covariant BFGenericType) : NSObject + +/*! + A block that can act as a continuation for a task. + */ +typedef id(^BFContinuationBlock)(BFTask BF_GENERIC(BFGenericType) *task); /*! Creates a task that is already completed with the given result. @param result The result for the task. */ -+ (instancetype)taskWithResult:(id)result; ++ (instancetype)taskWithResult:(BFGenericType)result; /*! Creates a task that is already completed with the given error. @@ -55,6 +68,14 @@ typedef id(^BFContinuationBlock)(BFTask *task); */ + (instancetype)taskForCompletionOfAllTasks:(NSArray *)tasks; +/*! + Returns a task that will be completed once all of the input tasks have completed. + If all tasks complete successfully without being faulted or cancelled the result will be + an `NSArray` of all task results in the order they were provided. + @param tasks An `NSArray` of the tasks to use as an input. + */ ++ (instancetype)taskForCompletionOfAllTasksWithResults:(NSArray *)tasks; + /*! Returns a task that will be completed a certain amount of time in the future. @param millis The approximate number of milliseconds to wait before the @@ -62,6 +83,15 @@ typedef id(^BFContinuationBlock)(BFTask *task); */ + (instancetype)taskWithDelay:(int)millis; +/*! + Returns a task that will be completed a certain amount of time in the future. + @param millis The approximate number of milliseconds to wait before the + task will be finished (with result == nil). + @param token The cancellation token (optional). + */ ++ (instancetype)taskWithDelay:(int)millis + cancellationToken:(BFCancellationToken *)token; + /*! Returns a task that will be completed after the given block completes with the specified executor. @@ -80,8 +110,7 @@ typedef id(^BFContinuationBlock)(BFTask *task); /*! The result of a successful task. */ -@property (nonatomic, strong, readonly) id result; - +@property (nonatomic, strong, readonly) BFGenericType result; /*! The error of a failed task. @@ -96,12 +125,17 @@ typedef id(^BFContinuationBlock)(BFTask *task); /*! Whether this task has been cancelled. */ -@property (nonatomic, assign, readonly, getter = isCancelled) BOOL cancelled; +@property (nonatomic, assign, readonly, getter=isCancelled) BOOL cancelled; + +/*! + Whether this task has completed due to an error or exception. + */ +@property (nonatomic, assign, readonly, getter=isFaulted) BOOL faulted; /*! Whether this task has completed. */ -@property (nonatomic, assign, readonly, getter = isCompleted) BOOL completed; +@property (nonatomic, assign, readonly, getter=isCompleted) BOOL completed; /*! Enqueues the given block to be run once this task is complete. @@ -116,6 +150,21 @@ typedef id(^BFContinuationBlock)(BFTask *task); */ - (instancetype)continueWithBlock:(BFContinuationBlock)block; +/*! + Enqueues the given block to be run once this task is complete. + This method uses a default execution strategy. The block will be + run on the thread where the previous task completes, unless the + the stack depth is too deep, in which case it will be run on a + dispatch queue with default priority. + @param block The block to be run once this task is complete. + @param cancellationToken The cancellation token (optional). + @returns A task that will be completed after block has run. + If block returns a BFTask, then the task returned from + this method will not be completed until that task is completed. + */ +- (instancetype)continueWithBlock:(BFContinuationBlock)block + cancellationToken:(BFCancellationToken *)cancellationToken; + /*! Enqueues the given block to be run once this task is complete. @param executor A BFExecutor responsible for determining how the @@ -126,7 +175,20 @@ typedef id(^BFContinuationBlock)(BFTask *task); this method will not be completed until that task is completed. */ - (instancetype)continueWithExecutor:(BFExecutor *)executor - withBlock:(BFContinuationBlock)block; + withBlock:(BFContinuationBlock)block; +/*! + Enqueues the given block to be run once this task is complete. + @param executor A BFExecutor responsible for determining how the + continuation block will be run. + @param block The block to be run once this task is complete. + @param cancellationToken The cancellation token (optional). + @returns A task that will be completed after block has run. + If block returns a BFTask, then the task returned from + his method will not be completed until that task is completed. + */ +- (instancetype)continueWithExecutor:(BFExecutor *)executor + block:(BFContinuationBlock)block + cancellationToken:(BFCancellationToken *)cancellationToken; /*! Identical to continueWithBlock:, except that the block is only run @@ -140,6 +202,35 @@ typedef id(^BFContinuationBlock)(BFTask *task); */ - (instancetype)continueWithSuccessBlock:(BFContinuationBlock)block; +/*! + Identical to continueWithBlock:, except that the block is only run + if this task did not produce a cancellation, error, or exception. + If it did, then the failure will be propagated to the returned + task. + @param block The block to be run once this task is complete. + @param cancellationToken The cancellation token (optional). + @returns A task that will be completed after block has run. + If block returns a BFTask, then the task returned from + this method will not be completed until that task is completed. + */ +- (instancetype)continueWithSuccessBlock:(BFContinuationBlock)block + cancellationToken:(BFCancellationToken *)cancellationToken; + +/*! + Identical to continueWithExecutor:withBlock:, except that the block + is only run if this task did not produce a cancellation, error, or + exception. If it did, then the failure will be propagated to the + returned task. + @param executor A BFExecutor responsible for determining how the + continuation block will be run. + @param block The block to be run once this task is complete. + @returns A task that will be completed after block has run. + If block returns a BFTask, then the task returned from + this method will not be completed until that task is completed. + */ +- (instancetype)continueWithExecutor:(BFExecutor *)executor + withSuccessBlock:(BFContinuationBlock)block; + /*! Identical to continueWithExecutor:withBlock:, except that the block is only run if this task did not produce a cancellation, error, or @@ -148,12 +239,14 @@ typedef id(^BFContinuationBlock)(BFTask *task); @param executor A BFExecutor responsible for determining how the continuation block will be run. @param block The block to be run once this task is complete. + @param cancellationToken The cancellation token (optional). @returns A task that will be completed after block has run. If block returns a BFTask, then the task returned from this method will not be completed until that task is completed. */ - (instancetype)continueWithExecutor:(BFExecutor *)executor - withSuccessBlock:(BFContinuationBlock)block; + successBlock:(BFContinuationBlock)block + cancellationToken:(BFCancellationToken *)cancellationToken; /*! Waits until this operation is completed. diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFTaskCompletionSource.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFTaskCompletionSource.h similarity index 86% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFTaskCompletionSource.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFTaskCompletionSource.h index d0ea545..23366c1 100644 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFTaskCompletionSource.h +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFTaskCompletionSource.h @@ -10,14 +10,16 @@ #import -@class BFTask; +#import + +@class BFTask BF_GENERIC(BFGenericType); /*! A BFTaskCompletionSource represents the producer side of tasks. It is a task that also has methods for changing the state of the task by settings its completion values. */ -@interface BFTaskCompletionSource : NSObject +@interface BFTaskCompletionSource BF_GENERIC(__covariant BFGenericType) : NSObject /*! Creates a new unfinished task. @@ -27,14 +29,14 @@ /*! The task associated with this TaskCompletionSource. */ -@property (nonatomic, retain, readonly) BFTask *task; +@property (nonatomic, strong, readonly) BFTask BF_GENERIC(BFGenericType) *task; /*! Completes the task by setting the result. Attempting to set this for a completed task will raise an exception. @param result The result of the task. */ -- (void)setResult:(id)result; +- (void)setResult:(BFGenericType)result; /*! Completes the task by setting the error. @@ -60,7 +62,7 @@ Sets the result of the task if it wasn't already completed. @returns whether the new value was set. */ -- (BOOL)trySetResult:(id)result; +- (BOOL)trySetResult:(BFGenericType)result; /*! Sets the error of the task if it wasn't already completed. diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFURL.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFURL.h similarity index 97% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFURL.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFURL.h index f269e2d..924c91d 100644 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFURL.h +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFURL.h @@ -10,8 +10,6 @@ #import - - @class BFAppLink; /*! @@ -29,12 +27,12 @@ */ + (BFURL *)URLWithURL:(NSURL *)url; -/*! - Creates a link target from a raw URL received from an external application. This is typically called from the app delegate's +/*! + Creates a link target from a raw URL received from an external application. This is typically called from the app delegate's application:openURL:sourceApplication:annotation: and will post the BFAppLinkNavigateInEventName measurement event. @param url The instance of `NSURL` to create BFURL from. @param sourceApplication the bundle ID of the app that is requesting your app to open the URL. The same sourceApplication in application:openURL:sourceApplication:annotation: -*/ + */ + (BFURL *)URLWithInboundURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication; /*! diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFWebViewAppLinkResolver.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BFWebViewAppLinkResolver.h similarity index 84% rename from iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFWebViewAppLinkResolver.h rename to iphone/assets/Frameworks/Bolts.framework/Headers/BFWebViewAppLinkResolver.h index 5f91355..3782ae2 100644 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BFWebViewAppLinkResolver.h +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BFWebViewAppLinkResolver.h @@ -10,13 +10,13 @@ #import -#import "BFAppLinkResolving.h" +#import /*! A reference implementation for an App Link resolver that uses a hidden UIWebView to parse the HTML containing App Link metadata. */ -@interface BFWebViewAppLinkResolver : NSObject +@interface BFWebViewAppLinkResolver : NSObject /*! Gets the instance of a BFWebViewAppLinkResolver. diff --git a/iphone/assets/Frameworks/Bolts.framework/Headers/Bolts.h b/iphone/assets/Frameworks/Bolts.framework/Headers/Bolts.h new file mode 100644 index 0000000..c68df35 --- /dev/null +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/Bolts.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2014, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + +#import +#import +#import +#import +#import +#import +#import +#import + +#if __has_include() && TARGET_OS_IPHONE && !TARGET_OS_WATCH && !TARGET_OS_TV +#import +#import +#import +#import +#import +#import +#import +#import +#import +#endif + +/*! @abstract 80175001: There were multiple errors. */ +extern NSInteger const kBFMultipleErrorsError; + +@interface Bolts : NSObject + +/*! + Returns the version of the Bolts Framework as an NSString. + @returns The NSString representation of the current version. + */ ++ (NSString *)version; + +@end diff --git a/iphone/assets/Frameworks/Bolts.framework/Headers/BoltsVersion.h b/iphone/assets/Frameworks/Bolts.framework/Headers/BoltsVersion.h new file mode 100644 index 0000000..816820c --- /dev/null +++ b/iphone/assets/Frameworks/Bolts.framework/Headers/BoltsVersion.h @@ -0,0 +1 @@ +#define BOLTS_VERSION @"1.4.0" diff --git a/iphone/assets/Frameworks/Bolts.framework/Info.plist b/iphone/assets/Frameworks/Bolts.framework/Info.plist new file mode 100644 index 0000000..02dcc62 Binary files /dev/null and b/iphone/assets/Frameworks/Bolts.framework/Info.plist differ diff --git a/iphone/assets/Frameworks/Bolts.framework/Modules/module.modulemap b/iphone/assets/Frameworks/Bolts.framework/Modules/module.modulemap new file mode 100644 index 0000000..3c92a17 --- /dev/null +++ b/iphone/assets/Frameworks/Bolts.framework/Modules/module.modulemap @@ -0,0 +1,15 @@ +framework module Bolts { + umbrella header "Bolts.h" + + export * + module * { export * } + + explicit module BFAppLinkResolving { + header "BFAppLinkResolving.h" + export * + } + explicit module BFWebViewAppLinkResolver { + header "BFWebViewAppLinkResolver.h" + export * + } +} diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Bolts b/iphone/assets/Frameworks/Bolts.framework/Versions/A/Bolts deleted file mode 100644 index d190e9b..0000000 Binary files a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Bolts and /dev/null differ diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/Bolts.h b/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/Bolts.h deleted file mode 100644 index 435bb7a..0000000 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/Bolts.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2014, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - -#import "BoltsVersion.h" -#import "BFExecutor.h" -#import "BFTask.h" -#import "BFTaskCompletionSource.h" - -#if TARGET_OS_IPHONE -#import "BFAppLinkNavigation.h" -#import "BFAppLink.h" -#import "BFAppLinkTarget.h" -#import "BFURL.h" -#import "BFMeasurementEvent.h" -#import "BFAppLinkReturnToRefererController.h" -#import "BFAppLinkReturnToRefererView.h" -#endif - -/*! @abstract 80175001: There were multiple errors. */ -extern NSInteger const kBFMultipleErrorsError; - -@interface Bolts : NSObject - -/*! - Returns the version of the Bolts Framework as an NSString. - @returns The NSString representation of the current version. - */ -+ (NSString *)version; - -@end diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BoltsVersion.h b/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BoltsVersion.h deleted file mode 100644 index 683e795..0000000 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/A/Headers/BoltsVersion.h +++ /dev/null @@ -1 +0,0 @@ -#define BOLTS_VERSION @"1.1.2" diff --git a/iphone/assets/Frameworks/Bolts.framework/Versions/Current b/iphone/assets/Frameworks/Bolts.framework/Versions/Current deleted file mode 120000 index 044dcb9..0000000 --- a/iphone/assets/Frameworks/Bolts.framework/Versions/Current +++ /dev/null @@ -1 +0,0 @@ -./A \ No newline at end of file diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/FacebookSDK b/iphone/assets/Frameworks/FacebookSDK.framework/FacebookSDK deleted file mode 120000 index 77d5d31..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/FacebookSDK +++ /dev/null @@ -1 +0,0 @@ -./Versions/A/FacebookSDK \ No newline at end of file diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Headers b/iphone/assets/Frameworks/FacebookSDK.framework/Headers deleted file mode 120000 index b0cc393..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Headers +++ /dev/null @@ -1 +0,0 @@ -./Versions/A/Headers \ No newline at end of file diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Resources b/iphone/assets/Frameworks/FacebookSDK.framework/Resources deleted file mode 120000 index 3afb717..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Resources +++ /dev/null @@ -1 +0,0 @@ -./Versions/A/Resources \ No newline at end of file diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAccessTokenData.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAccessTokenData.h deleted file mode 100644 index 23aa6af..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAccessTokenData.h +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSession.h" - -/*! - @class FBAccessTokenData - - @abstract Represents an access token used for the Facebook login flow - and includes associated metadata such as expiration date and permissions. - You should use factory methods (createToken...) to construct instances - and should be treated as immutable. - - @discussion For more information, see - https://developers.facebook.com/docs/concepts/login/access-tokens-and-types/. - */ -@interface FBAccessTokenData : NSObject - -/*! - @method - - @abstract Creates an FBAccessTokenData from an App Link provided by the Facebook application - or nil if the url is not valid. - - @param url The url provided. - @param appID needed in order to verify URL format. - @param urlSchemeSuffix needed in order to verify URL format. - - */ -+ (FBAccessTokenData *)createTokenFromFacebookURL:(NSURL *)url appID:(NSString *)appID urlSchemeSuffix:(NSString *)urlSchemeSuffix; - -/*! - @method - - @abstract Creates an FBAccessTokenData from a dictionary or returns nil if required data is missing. - @param dictionary the dictionary with FBSessionTokenCachingStrategy keys. - */ -+ (FBAccessTokenData *)createTokenFromDictionary:(NSDictionary *)dictionary; - -/*! - @method - - @abstract Creates an FBAccessTokenData from existing information or returns nil if required data is missing. - - @param accessToken The token string. If nil or empty, this method will return nil. - @param permissions The permissions set. A value of nil indicates basic permissions. - @param expirationDate The expiration date. A value of nil defaults to `[NSDate distantFuture]`. - @param loginType The login source of the token. - @param refreshDate The date that token was last refreshed. A value of nil defaults to `[NSDate date]`. - */ -+ (FBAccessTokenData *)createTokenFromString:(NSString *)accessToken - permissions:(NSArray *)permissions - expirationDate:(NSDate *)expirationDate - loginType:(FBSessionLoginType)loginType - refreshDate:(NSDate *)refreshDate; - -/*! - @method - - @abstract Creates an FBAccessTokenData from existing information or returns nil if required data is missing. - - @param accessToken The token string. If nil or empty, this method will return nil. - @param permissions The permissions set. A value of nil indicates basic permissions. - @param expirationDate The expiration date. A value of nil defaults to `[NSDate distantFuture]`. - @param loginType The login source of the token. - @param refreshDate The date that token was last refreshed. A value of nil defaults to `[NSDate date]`. - @param permissionsRefreshDate The date the permissions were last refreshed. A value of nil defaults to `[NSDate distantPast]`. - */ -+ (FBAccessTokenData *)createTokenFromString:(NSString *)accessToken - permissions:(NSArray *)permissions - expirationDate:(NSDate *)expirationDate - loginType:(FBSessionLoginType)loginType - refreshDate:(NSDate *)refreshDate - permissionsRefreshDate:(NSDate *)permissionsRefreshDate; - -/*! - @method - - @abstract Creates an FBAccessTokenData from existing information or returns nil if required data is missing. - - @param accessToken The token string. If nil or empty, this method will return nil. - @param permissions The permissions set. A value of nil indicates basic permissions. - @param expirationDate The expiration date. A value of nil defaults to `[NSDate distantFuture]`. - @param loginType The login source of the token. - @param refreshDate The date that token was last refreshed. A value of nil defaults to `[NSDate date]`. - @param permissionsRefreshDate The date the permissions were last refreshed. A value of nil defaults to `[NSDate distantPast]`. - @param appID The ID string of the calling app. A value of nil defaults to `[FBSettings defaultAppID]`. - */ -+ (FBAccessTokenData *)createTokenFromString:(NSString *)accessToken - permissions:(NSArray *)permissions - expirationDate:(NSDate *)expirationDate - loginType:(FBSessionLoginType)loginType - refreshDate:(NSDate *)refreshDate - permissionsRefreshDate:(NSDate *)permissionsRefreshDate - appID:(NSString *)appID; - -/*! - @method - - @abstract Designated factory method. - Creates an FBAccessTokenData from existing information or returns nil if required data is missing. - - @param accessToken The token string. If nil or empty, this method will return nil. - @param permissions The permissions set. A value of nil indicates basic permissions. - @param declinedPermissions The declined permissions set. A value of nil indicates empty array. - @param expirationDate The expiration date. A value of nil defaults to `[NSDate distantFuture]`. - @param loginType The login source of the token. - @param refreshDate The date that token was last refreshed. A value of nil defaults to `[NSDate date]`. - @param permissionsRefreshDate The date the permissions were last refreshed. A value of nil defaults to `[NSDate distantPast]`. - @param appID The ID string of the calling app. A value of nil defaults to `[FBSettings defaultAppID]`. - */ -+ (FBAccessTokenData *)createTokenFromString:(NSString *)accessToken - permissions:(NSArray *)permissions - declinedPermissions:(NSArray *)declinedPermissions - expirationDate:(NSDate *)expirationDate - loginType:(FBSessionLoginType)loginType - refreshDate:(NSDate *)refreshDate - permissionsRefreshDate:(NSDate *)permissionsRefreshDate - appID:(NSString *)appID - userID:(NSString *)userID; - -/*! - @method - - @abstract Returns a dictionary representation of this instance. - - @discussion This is provided for backwards compatibility with previous - access token related APIs that used a NSDictionary (see `FBSessionTokenCachingStrategy`). - */ -- (NSMutableDictionary *)dictionary; - -/*! - @method - - @abstract Returns a Boolean value that indicates whether a given object is an FBAccessTokenData object and exactly equal the receiver. - - @param accessTokenData the data to compare to the receiver. - */ -- (BOOL)isEqualToAccessTokenData:(FBAccessTokenData *)accessTokenData; - -/*! - @abstract returns the access token NSString. - */ -@property (readonly, nonatomic, copy) NSString *accessToken; - -/*! - @abstract returns the app ID NSString. - */ -@property (readonly, nonatomic, copy) NSString *appID; - -/*! - @abstract returns the user ID NSString that is associated with the token,if available. - @discussion This may not be populated for login behaviours such as the iOS system account. - */ -@property (readonly, nonatomic, copy) NSString *userID; - -/*! - @abstract returns the permissions associated with the access token. - */ -@property (readonly, nonatomic, copy) NSArray *permissions; - -/*! - @abstract returns the declined permissions associated with the access token. - */ -@property (readonly, nonatomic, copy) NSArray *declinedPermissions; - -/*! - @abstract returns the expiration date of the access token. - */ -@property (readonly, nonatomic, copy) NSDate *expirationDate; - -/*! - @abstract returns the login type associated with the token. - */ -@property (readonly, nonatomic) FBSessionLoginType loginType; - -/*! - @abstract returns the date the token was last refreshed. - */ -@property (readonly, nonatomic, copy) NSDate *refreshDate; - -/*! - @abstract returns the date the permissions were last refreshed. - */ -@property (readonly, nonatomic, copy) NSDate *permissionsRefreshDate; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppCall.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppCall.h deleted file mode 100644 index e741bad..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppCall.h +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBAccessTokenData.h" -#import "FBAppLinkData.h" -#import "FBDialogsData.h" -#import "FBSession.h" - -@class FBAppCall; - -/*! - @typedef FBAppCallHandler - - @abstract - A block that is passed to performAppCall to register for a callback with the results - of that AppCall - - @discussion - Pass a block of this type when calling performAppCall. This will be called on the UI - thread, once the AppCall completes. - - @param call The `FBAppCall` that was completed. - - */ -typedef void (^FBAppCallHandler)(FBAppCall *call); - -/*! - @typedef FBAppLinkFallbackHandler - - @abstract - See `+openDeferredAppLink`. - */ -typedef void (^FBAppLinkFallbackHandler)(NSError *error); - -/*! - @class FBAppCall - - @abstract - The FBAppCall object is used to encapsulate state when the app performs an - action that requires switching over to the native Facebook app, or when the app - receives an App Link. - - @discussion - - Each FBAppCall instance will have a unique ID - - This object is passed into an FBAppCallHandler for context - - dialogData will be present if this AppCall is for a Native Dialog - - appLinkData will be present if this AppCall is for an App Link - - accessTokenData will be present if this AppCall contains an access token. - */ -@interface FBAppCall : NSObject - -/*! @abstract The ID of this FBAppCall instance */ -@property (nonatomic, readonly) NSString *ID; - -/*! @abstract Error that occurred in processing this AppCall */ -@property (nonatomic, readonly) NSError *error; - -/*! @abstract Data related to a Dialog AppCall */ -@property (nonatomic, readonly) FBDialogsData *dialogData; - -/*! @abstract Data for native app link */ -@property (nonatomic, readonly) FBAppLinkData *appLinkData; - -/*! @abstract Access Token that was returned in this AppCall */ -@property (nonatomic, readonly) FBAccessTokenData *accessTokenData; - -/*! - @abstract - Returns an FBAppCall instance from a url, if applicable. Otherwise, returns nil. - - @param url The url. - - @return an FBAppCall instance if the url is valid; nil otherwise. - - @discussion This is typically used for App Link URLs. - */ -+ (FBAppCall *)appCallFromURL:(NSURL *)url; - -/*! - @abstract - Compares the receiving FBAppCall to the passed in FBAppCall - - @param appCall the other FBAppCall to compare to. - - @return YES if the AppCalls can be considered to be the same; NO if otherwise. - */ -- (BOOL)isEqualToAppCall:(FBAppCall *)appCall; - -/*! - @abstract - Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method - of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction - with the native Facebook app or as part of SSO authorization flow. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @return YES if the url was intended for the Facebook SDK, NO if not. - */ -+ (BOOL)handleOpenURL:(NSURL *)url - sourceApplication:(NSString *)sourceApplication; - -/*! - @abstract - Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method - of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction - with the native Facebook app or as part of SSO authorization flow. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param handler Optional handler that gives the app the opportunity to do some further processing on urls - that the SDK could not completely process. A fallback handler is not a requirement for such a url to be considered - handled. The fallback handler, if specified, is only ever called sychronously, before the method returns. - - @return YES if the url was intended for the Facebook SDK, NO if not. - */ -+ (BOOL)handleOpenURL:(NSURL *)url - sourceApplication:(NSString *)sourceApplication - fallbackHandler:(FBAppCallHandler)handler; - -/*! - @abstract - Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method - of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction - with the native Facebook app or as part of SSO authorization flow. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param session If this url is being sent back to this app as part of SSO authorization flow, then pass in the - session that was being opened. A nil value defaults to FBSession.activeSession - - @return YES if the url was intended for the Facebook SDK, NO if not. - */ -+ (BOOL)handleOpenURL:(NSURL *)url - sourceApplication:(NSString *)sourceApplication - withSession:(FBSession *)session; - -/*! - @abstract - Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method - of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction - with the native Facebook app or as part of SSO authorization flow. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param session If this url is being sent back to this app as part of SSO authorization flow, then pass in the - session that was being opened. A nil value defaults to FBSession.activeSession - - @param handler Optional handler that gives the app the opportunity to do some further processing on urls - that the SDK could not completely process. A fallback handler is not a requirement for such a url to be considered - handled. The fallback handler, if specified, is only ever called sychronously, before the method returns. - - @return YES if the url was intended for the Facebook SDK, NO if not. - */ -+ (BOOL)handleOpenURL:(NSURL *)url - sourceApplication:(NSString *)sourceApplication - withSession:(FBSession *)session - fallbackHandler:(FBAppCallHandler)handler; - -/*! - @abstract - Call this method when the application's applicationDidBecomeActive: is invoked. - This ensures proper state management of any pending FBAppCalls or pending login flow for the - FBSession.activeSession. If any pending FBAppCalls are found, their registered callbacks - will be invoked with appropriate state - */ -+ (void)handleDidBecomeActive; - -/*! - @abstract - Call this method when the application's applicationDidBecomeActive: is invoked. - This ensures proper state management of any pending FBAppCalls or a pending open for the - passed in FBSession. If any pending FBAppCalls are found, their registered callbacks will - be invoked with appropriate state - - @param session Session that is currently being used. Any pending calls to open will be cancelled. - If no session is provided, then the activeSession (if present) is used. - */ -+ (void)handleDidBecomeActiveWithSession:(FBSession *)session; - -/*! - @abstract - Call this method from the main thread to fetch deferred applink data. This may require - a network round trip. If successful, [+UIApplication openURL:] is invoked with the link - data. Otherwise, the fallbackHandler will be dispatched to the main thread. - - @param fallbackHandler the handler to be invoked if applink data could not be opened. - - @discussion the fallbackHandler may contain an NSError instance to capture any errors. In the - common case where there simply was no app link data, the NSError instance will be nil. - - This method should only be called from a location that occurs after any launching URL has - been processed (e.g., you should call this method from your application delegate's applicationDidBecomeActive:) - to avoid duplicate invocations of openURL:. - - If you must call this from the delegate's didFinishLaunchingWithOptions: you should - only do so if the application is not being launched by a URL. For example, - - if (launchOptions[UIApplicationLaunchOptionsURLKey] == nil) { - [FBAppCall openDeferredAppLink:^(NSError *error) { - // .... - } - } - */ -+ (void)openDeferredAppLink:(FBAppLinkFallbackHandler)fallbackHandler; - -@end - - - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppEvents.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppEvents.h deleted file mode 100644 index 335a8bc..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppEvents.h +++ /dev/null @@ -1,494 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSDKMacros.h" -#import "FBSession.h" - -/*! - - @typedef NS_ENUM (NSUInteger, FBAppEventsFlushBehavior) - - @abstract - Control when sends log events to the server - - @discussion - - */ -typedef NS_ENUM(NSUInteger, FBAppEventsFlushBehavior) { - - /*! Flush automatically: periodically (once a minute or every 100 logged events) and always at app reactivation. */ - FBAppEventsFlushBehaviorAuto = 0, - - /*! Only flush when the `flush` method is called. When an app is moved to background/terminated, the - events are persisted and re-established at activation, but they will only be written with an - explicit call to `flush`. */ - FBAppEventsFlushBehaviorExplicitOnly, - -}; - -/* - * Constant used by NSNotificationCenter for results of flushing AppEvents event logs - */ - -/*! NSNotificationCenter name indicating a result of a failed log flush attempt */ -FBSDK_EXTERN NSString *const FBAppEventsLoggingResultNotification; - - -// Predefined event names for logging events common to many apps. Logging occurs through the `logEvent` family of methods on `FBAppEvents`. -// Common event parameters are provided in the `FBAppEventsParameterNames*` constants. - -// General purpose - -/*! Deprecated: use [FBAppEvents activateApp] instead. */ -FBSDK_EXTERN NSString *const FBAppEventNameActivatedApp __attribute__ ((deprecated("use [FBAppEvents activateApp] instead"))); - -/*! Log this event when a user has completed registration with the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameCompletedRegistration; - -/*! Log this event when a user has viewed a form of content in the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameViewedContent; - -/*! Log this event when a user has performed a search within the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameSearched; - -/*! Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating. */ -FBSDK_EXTERN NSString *const FBAppEventNameRated; - -/*! Log this event when the user has completed a tutorial in the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameCompletedTutorial; - -// Ecommerce related - -/*! Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price. */ -FBSDK_EXTERN NSString *const FBAppEventNameAddedToCart; - -/*! Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price. */ -FBSDK_EXTERN NSString *const FBAppEventNameAddedToWishlist; - -/*! Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart. */ -FBSDK_EXTERN NSString *const FBAppEventNameInitiatedCheckout; - -/*! Log this event when the user has entered their payment info. */ -FBSDK_EXTERN NSString *const FBAppEventNameAddedPaymentInfo; - -/*! Deprecated: use [FBAppEvents logPurchase:currency:] or [FBAppEvents logPurchase:currency:parameters:] instead */ -FBSDK_EXTERN NSString *const FBAppEventNamePurchased __attribute__ ((deprecated("use [FBAppEvents logPurchase:currency:] or [FBAppEvents logPurchase:currency:parameters:] instead"))); - -// Gaming related - -/*! Log this event when the user has achieved a level in the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameAchievedLevel; - -/*! Log this event when the user has unlocked an achievement in the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameUnlockedAchievement; - -/*! Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent. */ -FBSDK_EXTERN NSString *const FBAppEventNameSpentCredits; - - - -// Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family -// of methods on `FBAppEvents`. Common event names are provided in the `FBAppEventName*` constants. - -/*! Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is . */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameCurrency; - -/*! Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameRegistrationMethod; - -/*! Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameContentType; - -/*! Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameContentID; - -/*! Parameter key used to specify the string provided by the user for a search operation. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameSearchString; - -/*! Parameter key used to specify whether the activity being logged about was successful or not. `FBAppEventParameterValueYes` and `FBAppEventParameterValueNo` are good canonical values to use for this parameter. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameSuccess; - -/*! Parameter key used to specify the maximum rating available for the `FBAppEventNameRate` event. E.g., "5" or "10". */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameMaxRatingValue; - -/*! Parameter key used to specify whether payment info is available for the `FBAppEventNameInitiatedCheckout` event. `FBAppEventParameterValueYes` and `FBAppEventParameterValueNo` are good canonical values to use for this parameter. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNamePaymentInfoAvailable; - -/*! Parameter key used to specify how many items are being processed for an `FBAppEventNameInitiatedCheckout` or `FBAppEventNamePurchased` event. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameNumItems; - -/*! Parameter key used to specify the level achieved in a `FBAppEventNameAchieved` event. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameLevel; - -/*! Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the `FBAppEventNameAchievementUnlocked` event. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameDescription; - - - -// Predefined values to assign to event parameters that accompany events logged through the `logEvent` family -// of methods on `FBAppEvents`. Common event parameters are provided in the `FBAppEventParameterName*` constants. - -/*! Yes-valued parameter value to be used with parameter keys that need a Yes/No value */ -FBSDK_EXTERN NSString *const FBAppEventParameterValueYes; - -/*! No-valued parameter value to be used with parameter keys that need a Yes/No value */ -FBSDK_EXTERN NSString *const FBAppEventParameterValueNo; - - -/*! - - @class FBAppEvents - - @abstract - Client-side event logging for specialized application analytics available through Facebook App Insights - and for use with Facebook Ads conversion tracking and optimization. - - @discussion - The `FBAppEvents` static class has a few related roles: - - + Logging predefined and application-defined events to Facebook App Insights with a - numeric value to sum across a large number of events, and an optional set of key/value - parameters that define "segments" for this event (e.g., 'purchaserStatus' : 'frequent', or - 'gamerLevel' : 'intermediate') - - + Logging events to later be used for ads optimization around lifetime value. - - + Methods that control the way in which events are flushed out to the Facebook servers. - - Here are some important characteristics of the logging mechanism provided by `FBAppEvents`: - - + Events are not sent immediately when logged. They're cached and flushed out to the Facebook servers - in a number of situations: - - when an event count threshold is passed (currently 100 logged events). - - when a time threshold is passed (currently 60 seconds). - - when an app has gone to background and is then brought back to the foreground. - - + Events will be accumulated when the app is in a disconnected state, and sent when the connection is - restored and one of the above 'flush' conditions are met. - - + The `FBAppEvents` class in thread-safe in that events may be logged from any of the app's threads. - - + The developer can set the `flushBehavior` on `FBAppEvents` to force the flushing of events to only - occur on an explicit call to the `flush` method. - - + The developer can turn on console debug output for event logging and flushing to the server by using - the `FBLoggingBehaviorAppEvents` value in `[FBSettings setLoggingBehavior:]`. - - Some things to note when logging events: - - + There is a limit on the number of unique event names an app can use, on the order of 300. - + There is a limit to the number of unique parameter names in the provided parameters that can - be used per event, on the order of 25. This is not just for an individual call, but for all - invocations for that eventName. - + Event names and parameter names (the keys in the NSDictionary) must be between 2 and 40 characters, and - must consist of alphanumeric characters, _, -, or spaces. - + The length of each parameter value can be no more than on the order of 100 characters. - - */ -@interface FBAppEvents : NSObject - -/* - * Basic event logging - */ - -/*! - - @method - - @abstract - Log an event with just an eventName. - - @param eventName The name of the event to record. Limitations on number of events and name length - are given in the `FBAppEvents` documentation. - - */ -+ (void)logEvent:(NSString *)eventName; - -/*! - - @method - - @abstract - Log an event with an eventName and a numeric value to be aggregated with other events of this name. - - @param eventName The name of the event to record. Limitations on number of events and name length - are given in the `FBAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report - the cumulative and average value of this amount. - */ -+ (void)logEvent:(NSString *)eventName - valueToSum:(double)valueToSum; - - -/*! - - @method - - @abstract - Log an event with an eventName and a set of key/value pairs in the parameters dictionary. - Parameter limitations are described above. - - @param eventName The name of the event to record. Limitations on number of events and name construction - are given in the `FBAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBAppEvents` documentation. Commonly used parameter names - are provided in `FBAppEventParameterName*` constants. - */ -+ (void)logEvent:(NSString *)eventName - parameters:(NSDictionary *)parameters; - -/*! - - @method - - @abstract - Log an event with an eventName, a numeric value to be aggregated with other events of this name, - and a set of key/value pairs in the parameters dictionary. - - @param eventName The name of the event to record. Limitations on number of events and name construction - are given in the `FBAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report - the cumulative and average value of this amount. - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBAppEvents` documentation. Commonly used parameter names - are provided in `FBAppEventParameterName*` constants. - - */ -+ (void)logEvent:(NSString *)eventName - valueToSum:(double)valueToSum - parameters:(NSDictionary *)parameters; - - -/*! - - @method - - @abstract - Log an event with an eventName, a numeric value to be aggregated with other events of this name, - and a set of key/value pairs in the parameters dictionary. Providing session lets the developer - target a particular . If nil is provided, then `[FBSession activeSession]` will be used. - - @param eventName The name of the event to record. Limitations on number of events and name construction - are given in the `FBAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report - the cumulative and average value of this amount. Note that this is an NSNumber, and a value of `nil` denotes - that this event doesn't have a value associated with it for summation. - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBAppEvents` documentation. Commonly used parameter names - are provided in `FBAppEventParameterName*` constants. - - @param session to direct the event logging to, and thus be logged with whatever user (if any) - is associated with that . - */ -+ (void)logEvent:(NSString *)eventName - valueToSum:(NSNumber *)valueToSum - parameters:(NSDictionary *)parameters - session:(FBSession *)session; - - -/* - * Purchase logging - */ - -/*! - - @method - - @abstract - Log a purchase of the specified amount, in the specified currency. - - @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency. This value - will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). - - @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for - specific values. One reference for these is . - - @discussion This event immediately triggers a flush of the `FBAppEvents` event queue, unless the `flushBehavior` is set - to `FBAppEventsFlushBehaviorExplicitOnly`. - - */ -+ (void)logPurchase:(double)purchaseAmount - currency:(NSString *)currency; - -/*! - - @method - - @abstract - Log a purchase of the specified amount, in the specified currency, also providing a set of - additional characteristics describing the purchase. - - @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value - will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). - - @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for - specific values. One reference for these is . - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBAppEvents` documentation. Commonly used parameter names - are provided in `FBAppEventParameterName*` constants. - - @discussion This event immediately triggers a flush of the `FBAppEvents` event queue, unless the `flushBehavior` is set - to `FBAppEventsFlushBehaviorExplicitOnly`. - - */ -+ (void)logPurchase:(double)purchaseAmount - currency:(NSString *)currency - parameters:(NSDictionary *)parameters; - -/*! - - @method - - @abstract - Log a purchase of the specified amount, in the specified currency, also providing a set of - additional characteristics describing the purchase, as well as an to log to. - - @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value - will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). - - @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for - specific values. One reference for these is . - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBAppEvents` documentation. Commonly used parameter names - are provided in `FBAppEventParameterName*` constants. - - @param session to direct the event logging to, and thus be logged with whatever user (if any) - is associated with that . A value of `nil` will use `[FBSession activeSession]`. - - @discussion This event immediately triggers a flush of the `FBAppEvents` event queue, unless the `flushBehavior` is set - to `FBAppEventsFlushBehaviorExplicitOnly`. - - */ -+ (void)logPurchase:(double)purchaseAmount - currency:(NSString *)currency - parameters:(NSDictionary *)parameters - session:(FBSession *)session; - -/*! - @method - - @abstract This method has been replaced by [FBSettings limitEventAndDataUsage] */ -+ (BOOL)limitEventUsage __attribute__ ((deprecated("use [FBSettings limitEventAndDataUsage] instead"))); - -/*! - @method - - @abstract This method has been replaced by [FBSettings setLimitEventUsage] */ -+ (void)setLimitEventUsage:(BOOL)limitEventUsage __attribute__ ((deprecated("use [FBSettings setLimitEventAndDataUsage] instead"))); - -/*! - - @method - - @abstract - Notifies the events system that the app has launched and, when appropriate, logs an "activated app" event. Should typically be placed in the - app delegates' `applicationDidBecomeActive:` method. - - This method also takes care of logging the event indicating the first time this app has been launched, which, among other things, is used to - track user acquisition and app install ads conversions. - - @discussion - `activateApp` will not log an event on every app launch, since launches happen every time the app is backgrounded and then foregrounded. - "activated app" events will be logged when the app has not been active for more than 60 seconds. This method also causes a "deactivated app" - event to be logged when sessions are "completed", and these events are logged with the session length, with an indication of how much - time has elapsed between sessions, and with the number of background/foreground interruptions that session had. This data - is all visible in your app's App Events Insights. - */ -+ (void)activateApp; - -/* - * Control over event batching/flushing - */ - -/*! - - @method - - @abstract - Get the current event flushing behavior specifying when events are sent back to Facebook servers. - */ -+ (FBAppEventsFlushBehavior)flushBehavior; - -/*! - - @method - - @abstract - Set the current event flushing behavior specifying when events are sent back to Facebook servers. - - @param flushBehavior The desired `FBAppEventsFlushBehavior` to be used. - */ -+ (void)setFlushBehavior:(FBAppEventsFlushBehavior)flushBehavior; - -/*! - @method - - @abstract - Set the 'override' App ID for App Event logging. - - @discussion - In some cases, apps want to use one Facebook App ID for login and social presence and another - for App Event logging. (An example is if multiple apps from the same company share an app ID for login, but - want distinct logging.) By default, this value is `nil`, and defers to the `FacebookLoggingOverrideAppID` - plist value. If that's not set, the default App ID set via [FBSettings setDefaultAppID] - or in the `FacebookAppID` plist entry. - - This should be set before any other calls are made to `FBAppEvents`. Thus, you should set it in your application - delegate's `application:didFinishLaunchingWithOptions:` delegate. - - @param appID The Facebook App ID to be used for App Event logging. - */ -+ (void)setLoggingOverrideAppID:(NSString *)appID; - -/*! - @method - - @abstract - Get the 'override' App ID for App Event logging. - - @discussion - @see `setLoggingOverrideAppID:` - - */ -+ (NSString *)loggingOverrideAppID; - - -/*! - - @method - - @abstract - Explicitly kick off flushing of events to Facebook. This is an asynchronous method, but it does initiate an immediate - kick off. Server failures will be reported through the NotificationCenter with notification ID `FBAppEventsLoggingResultNotification`. - */ -+ (void)flush; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppLinkData.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppLinkData.h deleted file mode 100644 index dfdcd2e..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppLinkData.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -/*! - @abstract This class contains information that represents an App Link from Facebook. - */ -@interface FBAppLinkData : NSObject - -/*! @abstract The target */ -@property (readonly) NSURL *targetURL; - -/*! @abstract List of the types of actions for this target */ -@property (readonly) NSArray *actionTypes; - -/*! @abstract List of the ids of the actions for this target */ -@property (readonly) NSArray *actionIDs; - -/*! @abstract Reference breadcrumb provided during creation of story */ -@property (readonly) NSString *ref; - -/*! @abstract User Agent string set by the referer */ -@property (readonly) NSString *userAgent; - -/*! @abstract Referer data is a JSON object set by the referer with referer-specific content */ -@property (readonly) NSDictionary *refererData; - -/*! @abstract Full set of query parameters for this app link */ -@property (readonly) NSDictionary *originalQueryParameters; - -/*! @abstract Original url from which applinkData was extracted */ -@property (readonly) NSURL *originalURL; - -/*! @abstract Addtional arguments supplied with the App Link data. */ -@property (readonly) NSDictionary *arguments; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppLinkResolver.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppLinkResolver.h deleted file mode 100644 index 570be4a..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAppLinkResolver.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import - -/*! - @class FBAppLinkResolver - - @abstract - Provides an implementation of the BFAppLinkResolving protocol that uses the Facebook app link - index to resolve App Links given a URL. It also provides an additional helper method that can resolve - multiple App Links in a single call. - - @discussion - Usage of this type requires a client token. See `[FBSettings setClientToken:]`. - */ -@interface FBAppLinkResolver : NSObject - -/*! - @abstract Asynchronously resolves App Link data for multiple URLs. - - @param urls An array of NSURLs to resolve into App Links. - @returns A BFTask that will return dictionary mapping input NSURLs to their - corresponding BFAppLink. - - @discussion - You should set the client token before making this call. See `[FBSettings setClientToken:]` - */ -- (BFTask *)appLinksFromURLsInBackground:(NSArray *)urls; - -/*! - @abstract Allocates and initializes a new instance of FBAppLinkResolver. - */ -+ (instancetype)resolver; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBCacheDescriptor.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBCacheDescriptor.h deleted file mode 100644 index 2cea86e..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBCacheDescriptor.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSession.h" - -/*! - @class - - @abstract - Base class from which CacheDescriptors derive, provides a method to fetch data for later use - - @discussion - Cache descriptors allow your application to specify the arguments that will be - later used with another object, such as the FBFriendPickerViewController. By using a cache descriptor - instance, an application can choose to fetch data ahead of the point in time where the data is needed. - */ -@interface FBCacheDescriptor : NSObject - -/*! - @method - @abstract - Fetches and caches the data described by the cache descriptor instance, for the given session. - - @param session the to use for fetching data - */ -- (void)prefetchAndCacheForSession:(FBSession *)session; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBColor.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBColor.h deleted file mode 100644 index 2c461f1..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBColor.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -UIColor *FBUIColorWithRGBA(uint8_t r, uint8_t g, uint8_t b, CGFloat a); -UIColor *FBUIColorWithRGB(uint8_t r, uint8_t g, uint8_t b); diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBConnect.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBConnect.h deleted file mode 100644 index 2d688e9..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBConnect.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -#include "FBDialog.h" -#include "FBLoginDialog.h" -#include "FBRequest.h" -#include "Facebook.h" diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialog.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialog.h deleted file mode 100644 index d44a138..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialog.h +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -@protocol FBDialogDelegate; -@class FBFrictionlessRequestSettings; - -/** - * Do not use this interface directly, instead, use dialog in Facebook.h - * - * Facebook dialog interface for start the facebook webView UIServer Dialog. - */ - -@interface FBDialog : UIView { - id _delegate; - NSMutableDictionary *_params; - NSString *_serverURL; - NSURL *_loadingURL; - UIWebView *_webView; - UIActivityIndicatorView *_spinner; - UIButton *_closeButton; - UIInterfaceOrientation _orientation; - BOOL _showingKeyboard; - BOOL _isViewInvisible; - FBFrictionlessRequestSettings *_frictionlessSettings; - - // Ensures that UI elements behind the dialog are disabled. - UIView *_modalBackgroundView; -} - -/** - * The delegate. - */ -@property (nonatomic, assign) id delegate; - -/** - * The parameters. - */ -@property (nonatomic, retain) NSMutableDictionary *params; - -- (NSString *)getStringFromUrl:(NSString *)url needle:(NSString *)needle; - -- (id) initWithURL:(NSString *)loadingURL - params:(NSMutableDictionary *)params - isViewInvisible:(BOOL)isViewInvisible - frictionlessSettings:(FBFrictionlessRequestSettings *)frictionlessSettings - delegate:(id)delegate; - -/** - * Displays the view with an animation. - * - * The view will be added to the top of the current key window. - */ -- (void)show; - -/** - * Displays the first page of the dialog. - * - * Do not ever call this directly. It is intended to be overriden by subclasses. - */ -- (void)load; - -/** - * Displays a URL in the dialog. - */ -- (void)loadURL:(NSString *)url - get:(NSDictionary *)getParams; - -/** - * Hides the view and notifies delegates of success or cancellation. - */ -- (void)dismissWithSuccess:(BOOL)success animated:(BOOL)animated; - -/** - * Hides the view and notifies delegates of an error. - */ -- (void)dismissWithError:(NSError *)error animated:(BOOL)animated; - -/** - * Subclasses may override to perform actions just prior to showing the dialog. - */ -- (void)dialogWillAppear; - -/** - * Subclasses may override to perform actions just after the dialog is hidden. - */ -- (void)dialogWillDisappear; - -/** - * Subclasses should override to process data returned from the server in a 'fbconnect' url. - * - * Implementations must call dismissWithSuccess:YES at some point to hide the dialog. - */ -- (void)dialogDidSucceed:(NSURL *)url; - -/** - * Subclasses should override to process data returned from the server in a 'fbconnect' url. - * - * Implementations must call dismissWithSuccess:YES at some point to hide the dialog. - */ -- (void)dialogDidCancel:(NSURL *)url; -@end - -/////////////////////////////////////////////////////////////////////////////////////////////////// - -/* - *Your application should implement this delegate - */ -@protocol FBDialogDelegate - -@optional - -/** - * Called when the dialog succeeds and is about to be dismissed. - */ -- (void)dialogDidComplete:(FBDialog *)dialog; - -/** - * Called when the dialog succeeds with a returning url. - */ -- (void)dialogCompleteWithUrl:(NSURL *)url; - -/** - * Called when the dialog get canceled by the user. - */ -- (void)dialogDidNotCompleteWithUrl:(NSURL *)url; - -/** - * Called when the dialog is cancelled and is about to be dismissed. - */ -- (void)dialogDidNotComplete:(FBDialog *)dialog; - -/** - * Called when dialog failed to load due to an error. - */ -- (void)dialog:(FBDialog *)dialog didFailWithError:(NSError *)error; - -/** - * Asks if a link touched by a user should be opened in an external browser. - * - * If a user touches a link, the default behavior is to open the link in the Safari browser, - * which will cause your app to quit. You may want to prevent this from happening, open the link - * in your own internal browser, or perhaps warn the user that they are about to leave your app. - * If so, implement this method on your delegate and return NO. If you warn the user, you - * should hold onto the URL and once you have received their acknowledgement open the URL yourself - * using [[UIApplication sharedApplication] openURL:]. - */ -- (BOOL)dialog:(FBDialog *)dialog shouldOpenURLInExternalBrowser:(NSURL *)url; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialogs.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialogs.h deleted file mode 100644 index 6630552..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialogs.h +++ /dev/null @@ -1,1028 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBAppCall.h" -#import "FBLinkShareParams.h" -#import "FBOpenGraphActionParams.h" -#import "FBPhotoParams.h" - -@class FBSession; -@protocol FBOpenGraphAction; - -/*! - @typedef FBNativeDialogResult enum - - @abstract - Passed to a handler to indicate the result of a dialog being displayed to the user. - */ -typedef NS_ENUM(NSUInteger, FBOSIntegratedShareDialogResult) { - /*! Indicates that the dialog action completed successfully. */ - FBOSIntegratedShareDialogResultSucceeded = 0, - /*! Indicates that the dialog action was cancelled (either by the user or the system). */ - FBOSIntegratedShareDialogResultCancelled = 1, - /*! Indicates that the dialog could not be shown (because not on ios6 or ios6 auth was not used). */ - FBOSIntegratedShareDialogResultError = 2 -}; - -/*! - @typedef - - @abstract Defines a handler that will be called in response to the native share dialog - being displayed. - */ -typedef void (^FBOSIntegratedShareDialogHandler)(FBOSIntegratedShareDialogResult result, NSError *error); - -/*! - @typedef FBDialogAppCallCompletionHandler - - @abstract - A block that when passed to a method in FBDialogs is called back - with the results of the AppCall for that dialog. - - @discussion - This will be called on the UI thread, once the AppCall completes. - - @param call The `FBAppCall` that was completed. - - @param results The results of the AppCall for the dialog. This parameters is present - purely for convenience, and is the exact same value as call.dialogData.results. - - @param error The `NSError` representing any error that occurred. This parameters is - present purely for convenience, and is the exact same value as call.error. - - */ -typedef void (^FBDialogAppCallCompletionHandler)( - FBAppCall *call, - NSDictionary *results, - NSError *error); - -/*! - @class FBDialogs - - @abstract - Provides methods to display native (i.e., non-Web-based) dialogs to the user. - - @discussion - If you are building an app with a urlSchemeSuffix, you should also set the appropriate - plist entry. See `[FBSettings defaultUrlSchemeSuffix]`. - */ -@interface FBDialogs : NSObject - -#pragma mark - OSIntegratedShareDialog - -/*! - @abstract - Presents a dialog that allows the user to share a status update that may include - text, images, or URLs. This dialog is only available on iOS 6.0 and above. The - current active session returned by [FBSession activeSession] will be used to determine - whether the dialog will be displayed. If a session is active, it must be open and the - login method used to authenticate the user must be native iOS 6.0 authentication. - If no session active, then whether the call succeeds or not will depend on - whether Facebook integration has been configured. - - @param viewController The view controller which will present the dialog. - - @param initialText The text which will initially be populated in the dialog. The user - will have the opportunity to edit this text before posting it. May be nil. - - @param image A UIImage that will be attached to the status update. May be nil. - - @param url An NSURL that will be attached to the status update. May be nil. - - @param handler A handler that will be called when the dialog is dismissed, or if an error - occurs. May be nil. - - @return YES if the dialog was presented, NO if not (in the case of a NO result, the handler - will still be called, with an error indicating the reason the dialog was not displayed) - */ -+ (BOOL)presentOSIntegratedShareDialogModallyFrom:(UIViewController *)viewController - initialText:(NSString *)initialText - image:(UIImage *)image - url:(NSURL *)url - handler:(FBOSIntegratedShareDialogHandler)handler; - -/*! - @abstract - Presents a dialog that allows the user to share a status update that may include - text, images, or URLs. This dialog is only available on iOS 6.0 and above. The - current active session returned by [FBSession activeSession] will be used to determine - whether the dialog will be displayed. If a session is active, it must be open and the - login method used to authenticate the user must be native iOS 6.0 authentication. - If no session active, then whether the call succeeds or not will depend on - whether Facebook integration has been configured. - - @param viewController The view controller which will present the dialog. - - @param initialText The text which will initially be populated in the dialog. The user - will have the opportunity to edit this text before posting it. May be nil. - - @param images An array of UIImages that will be attached to the status update. May - be nil. - - @param urls An array of NSURLs that will be attached to the status update. May be nil. - - @param handler A handler that will be called when the dialog is dismissed, or if an error - occurs. May be nil. - - @return YES if the dialog was presented, NO if not (in the case of a NO result, the handler - will still be called, with an error indicating the reason the dialog was not displayed) - */ -+ (BOOL)presentOSIntegratedShareDialogModallyFrom:(UIViewController *)viewController - initialText:(NSString *)initialText - images:(NSArray *)images - urls:(NSArray *)urls - handler:(FBOSIntegratedShareDialogHandler)handler; - -/*! - @abstract - Presents a dialog that allows the user to share a status update that may include - text, images, or URLs. This dialog is only available on iOS 6.0 and above. An - may be specified, or nil may be passed to indicate that the current - active session should be used. If a session is specified (whether explicitly or by - virtue of being the active session), it must be open and the login method used to - authenticate the user must be native iOS 6.0 authentication. If no session is specified - (and there is no active session), then whether the call succeeds or not will depend on - whether Facebook integration has been configured. - - @param viewController The view controller which will present the dialog. - - @param session The to use to determine whether or not the user has been - authenticated with iOS native authentication. If nil, then [FBSession activeSession] - will be checked. See discussion above for the implications of nil or non-nil session. - - @param initialText The text which will initially be populated in the dialog. The user - will have the opportunity to edit this text before posting it. May be nil. - - @param images An array of UIImages that will be attached to the status update. May - be nil. - - @param urls An array of NSURLs that will be attached to the status update. May be nil. - - @param handler A handler that will be called when the dialog is dismissed, or if an error - occurs. May be nil. - - @return YES if the dialog was presented, NO if not (in the case of a NO result, the handler - will still be called, with an error indicating the reason the dialog was not displayed) - */ -+ (BOOL)presentOSIntegratedShareDialogModallyFrom:(UIViewController *)viewController - session:(FBSession *)session - initialText:(NSString *)initialText - images:(NSArray *)images - urls:(NSArray *)urls - handler:(FBOSIntegratedShareDialogHandler)handler; - -/*! - @abstract Determines if the device is capable of presenting the OS integrated share dialog. - - @discussion This is the most basic check for capability for this feature. - - @see canPresentOSIntegratedShareDialogWithSession: - */ -+ (BOOL)canPresentOSIntegratedShareDialog; - -/*! - @abstract - Determines whether a call to presentShareDialogModallyFrom: will successfully present - a dialog. This is useful for applications that need to modify the available UI controls - depending on whether the dialog is available on the current platform and for the current - user. - - @param session The to use to determine whether or not the user has been - authenticated with iOS native authentication. If nil, then [FBSession activeSession] - will be checked. See discussion above for the implications of nil or non-nil session. - - @return YES if the dialog would be presented for the session, and NO if not - */ -+ (BOOL)canPresentOSIntegratedShareDialogWithSession:(FBSession *)session; - -#pragma mark - Native Share Dialog - -/*! - @abstract Determines if the device is capable of presenting the share dialog. - - @discussion This is the most basic check for capability for this feature. - - @see canPresentShareDialogWithOpenGraphActionParams: - @see canPresentShareDialogWithParams: - @see canPresentShareDialogWithPhotos: - */ -+ (BOOL)canPresentShareDialog; - -/*! - @abstract - Determines whether a call to presentShareDialogWithOpenGraphActionParams:clientState:handler: - will successfully present a dialog in the Facebook application. This is useful for applications - that need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @param params The parameters for the FB share dialog. - - @return YES if the dialog would be presented, and NO if not - - @discussion A return value of YES here indicates that the corresponding - presentShareDialogWithOpenGraphActionParams method will return a non-nil FBAppCall for - the same params. And vice versa. -*/ -+ (BOOL)canPresentShareDialogWithOpenGraphActionParams:(FBOpenGraphActionParams *)params; - -/*! - @abstract - Determines whether a call to presentShareDialogWithTarget: will successfully - present a dialog in the Facebook application. This is useful for applications that - need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @param params The parameters for the FB share dialog. - - @return YES if the dialog would be presented, and NO if not - - @discussion A return value of YES here indicates that the corresponding - presentShareDialogWithParams method will return a non-nil FBAppCall for the same - params. And vice versa. -*/ -+ (BOOL)canPresentShareDialogWithParams:(FBLinkShareParams *)params; - -/*! - @abstract - Determines whether a call to presentShareDialogWithPhotoParams: will successfully - present a dialog in the Facebook application. This is useful for applications that - need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @return YES if the dialog would be presented, and NO if not - - @discussion A return value of YES here indicates that the corresponding - presentShareDialogWithPhotoParams method will return a non-nil FBAppCall. -*/ -+ (BOOL)canPresentShareDialogWithPhotos; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share a status - update that may include text, images, or URLs. No session is required, and the app - does not need to be authorized to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the FB share dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithParams:(FBLinkShareParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithLink:(NSURL *)link - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param name The name, or title associated with the link. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithLink:(NSURL *)link - name:(NSString *)name - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param name The name, or title associated with the link. May be nil. - - @param caption The caption to be used with the link. May be nil. - - @param description The description associated with the link. May be nil. - - @param picture The link to a thumbnail to associate with the link. May be nil. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithLink:(NSURL *)link - name:(NSString *)name - caption:(NSString *)caption - description:(NSString *)description - picture:(NSURL *)picture - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the FB share dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithPhotoParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithPhotoParams:(FBPhotoParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param photos An NSArray containing UIImages to be shared. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithPhotoParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithPhotos:(NSArray *)photos - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param photos An NSArray containing UIImages to be shared. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithPhotoParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithPhotos:(NSArray *)photos - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to publish an Open - Graph action. No session is required, and the app does not need to be authorized to call - this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the Open Graph action dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithOpenGraphActionParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithOpenGraphActionParams:(FBOpenGraphActionParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to publish the - supplied Open Graph action. No session is required, and the app does not need to be - authorized to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param action The Open Graph action to be published. May not be nil. - - @param actionType the fully-specified Open Graph action type of the action (e.g., - my_app_namespace:my_action). - - @param previewPropertyName the name of the property on the action that represents the - primary Open Graph object associated with the action; this object will be displayed in the - preview portion of the share dialog. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithOpenGraphActionParams method is also returning YES for the same params. - */+ (FBAppCall *)presentShareDialogWithOpenGraphAction:(id)action - actionType:(NSString *)actionType - previewPropertyName:(NSString *)previewPropertyName - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to publish the - supplied Open Graph action. No session is required, and the app does not need to be - authorized to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param action The Open Graph action to be published. May not be nil. - - @param actionType the fully-specified Open Graph action type of the action (e.g., - my_app_namespace:my_action). - - @param previewPropertyName the name of the property on the action that represents the - primary Open Graph object associated with the action; this object will be displayed in the - preview portion of the share dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithOpenGraphActionParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithOpenGraphAction:(id)action - actionType:(NSString *)actionType - previewPropertyName:(NSString *)previewPropertyName - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -#pragma mark - Message Dialog - -/*! - @abstract Determines if the device is capable of presenting the message dialog. - - @discussion This is the most basic check for capability for this feature. - - @see canPresentMessageDialogWithOpenGraphActionParams: - @see canPresentMessageDialogWithParams: - @see canPresentMessageDialogWithPhotos: - */ -+ (BOOL)canPresentMessageDialog; - -/*! - @abstract - Determines whether a call to `presentMessageDialogWithOpenGraphActionParams:...` will - successfully present a dialog in the Facebook Messenger app. This is useful for applications - that need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @param params the dialog parameters - - @return YES if the dialog would be presented, and NO if not -*/ -+ (BOOL)canPresentMessageDialogWithOpenGraphActionParams:(FBOpenGraphActionParams *)params; - -/*! - @abstract - Determines whether a call to `presentMessageDialogWithParams:...` will successfully - present a dialog in the Facebook Messenger app. This is useful for applications that - need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @param params the dialog parameters - - @return YES if the dialog would be presented, and NO if not -*/ -+ (BOOL)canPresentMessageDialogWithParams:(FBLinkShareParams *)params; - -/*! - @abstract - Determines whether a call to `presentMessageDialogWithPhotos:...` will successfully - present a dialog in the Facebook Messenger app. This is useful for applications that - need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @return YES if the dialog would be presented, and NO if not -*/ -+ (BOOL)canPresentMessageDialogWithPhotos; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to publish an Open - Graph action. No session is required, and the app does not need to be authorized to call - this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the Open Graph action dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - `canPresentMessageDialogWithOpenGraphActionParams:` method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithOpenGraphActionParams:(FBOpenGraphActionParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to publish the - supplied Open Graph action. No session is required, and the app does not need to be - authorized to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param action The Open Graph action to be published. May not be nil. - - @param actionType the fully-specified Open Graph action type of the action (e.g., - my_app_namespace:my_action). - - @param previewPropertyName the name of the property on the action that represents the - primary Open Graph object associated with the action; this object will be displayed in the - preview portion of the share dialog. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentMessageDialogWithOpenGraphActionParams method is also returning YES for the same params. - */+ (FBAppCall *)presentMessageDialogWithOpenGraphAction:(id)action - actionType:(NSString *)actionType - previewPropertyName:(NSString *)previewPropertyName - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to publish the - supplied Open Graph action. No session is required, and the app does not need to be - authorized to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param action The Open Graph action to be published. May not be nil. - - @param actionType the fully-specified Open Graph action type of the action (e.g., - my_app_namespace:my_action). - - @param previewPropertyName the name of the property on the action that represents the - primary Open Graph object associated with the action; this object will be displayed in the - preview portion of the share dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentMessageDialogWithOpenGraphActionParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithOpenGraphAction:(id)action - actionType:(NSString *)actionType - previewPropertyName:(NSString *)previewPropertyName - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to send the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the Message Dialog - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - `canPresentMessageDialogWithPhotos` method is also returning YES. - */ -+ (FBAppCall *)presentMessageDialogWithPhotoParams:(FBPhotoParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to send the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param photos An NSArray containing UIImages to be shared. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - `canPresentMessageDialogWithPhotos` method is also returning YES. - */ -+ (FBAppCall *)presentMessageDialogWithPhotos:(NSArray *)photos - handler:(FBDialogAppCallCompletionHandler)handler; -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to send the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param photos An NSArray containing UIImages to be shared. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - `canPresentMessageDialogWithPhotos` method is also returning YES. -*/ -+ (FBAppCall *)presentMessageDialogWithPhotos:(NSArray *)photos - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to share a status - update that may include text, images, or URLs. No session is required, and the app - does not need to be authorized to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the Message Dialog. The "friends" and "place" properties - will be ignored as the Facebook Messenger app does not support tagging. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - `canPresentMessageDialogWithParams:` method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithParams:(FBLinkShareParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentMessageDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithLink:(NSURL *)link - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param name The name, or title associated with the link. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentMessageDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithLink:(NSURL *)link - name:(NSString *)name - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param name The name, or title associated with the link. May be nil. - - @param caption The caption to be used with the link. May be nil. - - @param description The description associated with the link. May be nil. - - @param picture The link to a thumbnail to associate with the link. May be nil. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentMessageDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithLink:(NSURL *)link - name:(NSString *)name - caption:(NSString *)caption - description:(NSString *)description - picture:(NSURL *)picture - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialogsData.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialogsData.h deleted file mode 100644 index bffbc46..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialogsData.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -/*! - @abstract - This class encapsulates state and data related to the presentation and completion - of a dialog. - */ -@interface FBDialogsData : NSObject - -/*! @abstract The method being performed */ -@property (nonatomic, readonly) NSString *method; -/*! @abstract The arguments being passed to the entity that will show the dialog */ -@property (nonatomic, readonly) NSDictionary *arguments; -/*! @abstract Client JSON state that is passed through to the completion handler for context */ -@property (nonatomic, readonly) NSDictionary *clientState; -/*! @abstract Results of this FBAppCall that are only set before calling an FBAppCallHandler */ -@property (nonatomic, readonly) NSDictionary *results; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialogsParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialogsParams.h deleted file mode 100644 index 6fb76d6..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialogsParams.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -/*! - @class FBDialogsParams - - @abstract - This object is used as a base class for parameters passed to native dialogs that - open in the Facebook app. - */ -@interface FBDialogsParams : NSObject - -/*! - @abstract Validates the receiver to ensure that it is configured properly. - */ -- (NSError *)validate; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBError.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBError.h deleted file mode 100644 index ae2c3fc..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBError.h +++ /dev/null @@ -1,386 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSDKMacros.h" - -/*! - The NSError domain of all errors returned by the Facebook SDK. -*/ -FBSDK_EXTERN NSString *const FacebookSDKDomain; - -/*! - The NSError domain of all errors surfaced by the Facebook SDK that - were returned by the Facebook Application - */ -FBSDK_EXTERN NSString *const FacebookNativeApplicationDomain; - -/*! - The key in the userInfo NSDictionary of NSError where you can find - the inner NSError (if any). -*/ -FBSDK_EXTERN NSString *const FBErrorInnerErrorKey; - -/*! - The key in the userInfo NSDictionary of NSError for the parsed JSON response - from the server. In case of a batch, includes the JSON for a single FBRequest. -*/ -FBSDK_EXTERN NSString *const FBErrorParsedJSONResponseKey; - -/*! - The key in the userInfo NSDictionary of NSError indicating - the HTTP status code of the response (if any). -*/ -FBSDK_EXTERN NSString *const FBErrorHTTPStatusCodeKey; - -/*! - @typedef NS_ENUM (NSUInteger, FBErrorCode) - @abstract Error codes returned by the Facebook SDK in NSError. - - @discussion - These are valid only in the scope of FacebookSDKDomain. - */ -typedef NS_ENUM(NSInteger, FBErrorCode) { - /*! - Like nil for FBErrorCode values, represents an error code that - has not been initialized yet. - */ - FBErrorInvalid = 0, - - /*! The operation failed because it was cancelled. */ - FBErrorOperationCancelled, - - /*! A login attempt failed */ - FBErrorLoginFailedOrCancelled, - - /*! The graph API returned an error for this operation. */ - FBErrorRequestConnectionApi, - - /*! - The operation failed because the server returned an unexpected - response. You can get this error if you are not using the most - recent SDK, or if you set your application's migration settings - incorrectly for the version of the SDK you are using. - - If this occurs on the current SDK with proper app migration - settings, you may need to try changing to one request per batch. - */ - FBErrorProtocolMismatch, - - /*! Non-success HTTP status code was returned from the operation. */ - FBErrorHTTPError, - - /*! An endpoint that returns a binary response was used with FBRequestConnection. - Endpoints that return image/jpg, etc. should be accessed using NSURLRequest */ - FBErrorNonTextMimeTypeReturned, - - /*! An error occurred while trying to display a native dialog */ - FBErrorDialog, - - /*! An error occurred using the FBAppEvents class */ - FBErrorAppEvents, - - /*! An error occurred related to an iOS API call */ - FBErrorSystemAPI, - - /*! - The application had its applicationDidBecomeActive: method called while waiting - on a response from the native Facebook app for a pending FBAppCall. - */ - FBErrorAppActivatedWhilePendingAppCall, - - /*! - The application had its openURL: method called from a source that was not a - Facebook app and with a URL that was intended for the AppBridge - */ - FBErrorUntrustedURL, - - /*! - The URL passed to FBAppCall, was not able to be parsed - */ - FBErrorMalformedURL, - - /*! - The operation failed because the session is currently busy reconnecting. - */ - FBErrorSessionReconnectInProgess, - - /*! - Reserved for future use. - */ - FBErrorOperationDisallowedForRestrictedTreatment, -}; - -/*! - @typedef NS_ENUM (NSUInteger, FBNativeApplicationErrorCode) - @abstract Error codes returned by the Facebook SDK in NSError. - - @discussion - These are valid only in the scope of FacebookNativeApplicationDomain. - */ -typedef NS_ENUM(NSUInteger, FBNativeApplicationErrorCode) { - /*! A general error in processing an FBAppCall, without a known cause. Unhandled exceptions are a good example */ - FBAppCallErrorUnknown = 1, - - /*! The FBAppCall cannot be processed for some reason */ - FBAppCallErrorUnsupported = 2, - - /*! The FBAppCall is for a method that does not exist (or is turned off) */ - FBAppCallErrorUnknownMethod = 3, - - /*! The FBAppCall cannot be processed at the moment, but can be retried at a later time. */ - FBAppCallErrorServiceBusy = 4, - - /*! Share was called in the native Facebook app with incomplete or incorrect arguments */ - FBShareErrorInvalidParam = 100, - - /*! A server error occurred while calling Share in the native Facebook app. */ - FBShareErrorServer = 102, - - /*! An unknown error occurred while calling Share in the native Facebook app. */ - FBShareErrorUnknown = 103, - - /*! Disallowed from calling Share in the native Facebook app. */ - FBShareErrorDenied = 104, -}; - -/*! - @typedef NS_ENUM (NSInteger, FBErrorCategory) - - @abstract Indicates the Facebook SDK classification for the error - - @discussion - */ -typedef NS_ENUM(NSInteger, FBErrorCategory) { - /*! Indicates that the error category is invalid and likely represents an error that - is unrelated to Facebook or the Facebook SDK */ - FBErrorCategoryInvalid = 0, - /*! Indicates that the error may be authentication related but the application should retry the operation. - This case may involve user action that must be taken, and so the application should also test - the fberrorShouldNotifyUser property and if YES display fberrorUserMessage to the user before retrying.*/ - FBErrorCategoryRetry = 1, - /*! Indicates that the error is authentication related and the application should reopen the session */ - FBErrorCategoryAuthenticationReopenSession = 2, - /*! Indicates that the error is permission related */ - FBErrorCategoryPermissions = 3, - /*! Indicates that the error implies that the server had an unexpected failure or may be temporarily down */ - FBErrorCategoryServer = 4, - /*! Indicates that the error results from the server throttling the client */ - FBErrorCategoryThrottling = 5, - /*! Indicates the user cancelled the operation */ - FBErrorCategoryUserCancelled = 6, - /*! Indicates that the error is Facebook-related but is uncategorizable, and likely newer than the - current version of the SDK */ - FBErrorCategoryFacebookOther = -1, - /*! Indicates that the error is an application error resulting in a bad or malformed request to the server. */ - FBErrorCategoryBadRequest = -2, -}; - -/*! - The key in the userInfo NSDictionary of NSError where you can find - the inner NSError (if any). - */ -FBSDK_EXTERN NSString *const FBErrorInnerErrorKey; - -/*! - The key in the userInfo NSDictionary of NSError where you can find - the session associated with the error (if any). -*/ -FBSDK_EXTERN NSString *const FBErrorSessionKey; - -/*! - The key in the userInfo NSDictionary of NSError that points to the URL - that caused an error, in its processing by FBAppCall. - */ -FBSDK_EXTERN NSString *const FBErrorUnprocessedURLKey; - -/*! - The key in the userInfo NSDictionary of NSError for unsuccessful - logins (error.code equals FBErrorLoginFailedOrCancelled). If present, - the value will be one of the constants prefixed by FBErrorLoginFailedReason*. -*/ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReason; - -/*! - The key in the userInfo NSDictionary of NSError for unsuccessful - logins (error.code equals FBErrorLoginFailedOrCancelled). If present, - the value indicates an original login error code wrapped by this error. - This is only used in the web dialog login flow. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedOriginalErrorCode; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates the user - cancelled a web dialog auth. -*/ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonInlineCancelledValue; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates the user - did not cancel a web dialog auth. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonInlineNotCancelledValue; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates the user - cancelled a non-iOS 6 SSO (either Safari or Facebook App) login. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonUserCancelledValue; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates the user - cancelled an iOS system login. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonUserCancelledSystemValue; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates an error - condition. You may inspect the rest of userInfo for other data. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonOtherError; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates the app's - slider in iOS 6 (device Settings -> Privacy -> Facebook {app}) has - been disabled. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonSystemDisallowedWithoutErrorValue; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates an error - has occurred when requesting Facebook account acccess in iOS 6 that was - not `FBErrorLoginFailedReasonSystemDisallowedWithoutErrorValue` nor - a user cancellation. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonSystemError; -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonUnitTestResponseUnrecognized; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key when requesting new permissions fails. Indicates - the request for new permissions has failed because the session was closed. - */ -FBSDK_EXTERN NSString *const FBErrorReauthorizeFailedReasonSessionClosed; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key when requesting new permissions fails. Indicates - the request for new permissions has failed because the user cancelled. - */ -FBSDK_EXTERN NSString *const FBErrorReauthorizeFailedReasonUserCancelled; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key when requesting new permissions fails on - iOS 6 with the Facebook account. Indicates the request for new permissions has - failed because the user cancelled. - */ -FBSDK_EXTERN NSString *const FBErrorReauthorizeFailedReasonUserCancelledSystem; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key when requesting new permissions fails. Indicates - the request for new permissions has failed because the request was - for a different user than the original permission set. - */ -FBSDK_EXTERN NSString *const FBErrorReauthorizeFailedReasonWrongUser; - -/*! - The key in the userInfo NSDictionary of NSError for errors - encountered with `FBDialogs` operations. (error.code equals FBErrorDialog). - If present, the value will be one of the constants prefixed by FBErrorDialog *. -*/ -FBSDK_EXTERN NSString *const FBErrorDialogReasonKey; - -/*! - A value that may appear in the NSError userInfo dictionary under the -`FBErrorDialogReasonKey` key. Indicates that a native dialog is not supported - in the current OS. -*/ -FBSDK_EXTERN NSString *const FBErrorDialogNotSupported; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorDialogReasonKey` key. Indicates that a native dialog cannot be - displayed because it is not appropriate for the current session. -*/ -FBSDK_EXTERN NSString *const FBErrorDialogInvalidForSession; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorDialogReasonKey` key. Indicates that a native dialog cannot be - displayed for some other reason. - */ -FBSDK_EXTERN NSString *const FBErrorDialogCantBeDisplayed; - -/*! - A value that may appear in the NSError userInfo ditionary under the - `FBErrorDialogReasonKey` key. Indicates that a native dialog cannot be - displayed because an Open Graph object that was passed was not configured - correctly. The object must either (a) exist by having an 'id' or 'url' value; - or, (b) configured for creation (by setting the 'type' value and - provisionedForPost property) -*/ -FBSDK_EXTERN NSString *const FBErrorDialogInvalidOpenGraphObject; - -/*! - A value that may appear in the NSError userInfo ditionary under the - `FBErrorDialogReasonKey` key. Indicates that a native dialog cannot be - displayed because the parameters for sharing an Open Graph action were - not configured. The parameters must include an 'action', 'actionType', and - 'previewPropertyName'. - */ -FBSDK_EXTERN NSString *const FBErrorDialogInvalidOpenGraphActionParameters; - -/*! - A value that may appear in the NSError userInfo ditionary under the - `FBErrorDialogReasonKey` key. Indicates that a native dialog cannot be - displayed because the parameters for sharing a status update, link, or photo were - not configured. The parameters must not include both 'photos' and a 'link'. */ -FBSDK_EXTERN NSString *const FBErrorDialogInvalidShareParameters; - -/*! - A value that may appear in the NSError userInfo ditionary under the - `FBErrorDialogReasonKey` key. Indicates that a like dialog cannot be - displayed because the objectID parameter value is invalid. - */ -FBSDK_EXTERN NSString *const FBErrorDialogInvalidLikeObjectID; - -/*! - The key in the userInfo NSDictionary of NSError for errors - encountered with `FBAppEvents` operations (error.code equals FBErrorAppEvents). -*/ -FBSDK_EXTERN NSString *const FBErrorAppEventsReasonKey; - -// Exception strings raised by the Facebook SDK - -/*! - This exception is raised by methods in the Facebook SDK to indicate - that an attempted operation is invalid - */ -FBSDK_EXTERN NSString *const FBInvalidOperationException; - -// Facebook SDK also raises exceptions the following common exceptions: -// NSInvalidArgumentException - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBErrorUtility.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBErrorUtility.h deleted file mode 100644 index 76225ec..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBErrorUtility.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FBError.h" - -/*! - @class FBErrorUtility - - @abstract A utility class with methods to provide more information for Facebook - related errors if you do not want to use the NSError(FBError) category. - - */ -@interface FBErrorUtility : NSObject - -/*! - @abstract - Categorizes the error, if it is Facebook related, to simplify application mitigation behavior - - @discussion - In general, in response to an error connecting to Facebook, an application should, retry the - operation, request permissions, reconnect the application, or prompt the user to take an action. - The error category can be used to understand the class of error received from Facebook. For more infomation on this - see https://developers.facebook.com/docs/reference/api/errors/ - - @param error the error to be categorized. - */ -+ (FBErrorCategory)errorCategoryForError:(NSError *)error; - -/*! - @abstract - If YES indicates that a user action is required in order to successfully continue with the facebook operation - - @discussion - In general if this returns NO, then the application has a straightforward mitigation, such as - retry the operation or request permissions from the user, etc. In some cases it is necessary for the user to - take an action before the application continues to attempt a Facebook connection. For more infomation on this - see https://developers.facebook.com/docs/reference/api/errors/ - - @param error the error to inspect. - */ -+ (BOOL)shouldNotifyUserForError:(NSError *)error; - -/*! - @abstract - A message suitable for display to the user, describing a user action necessary to enable Facebook functionality. - Not all Facebook errors yield a message suitable for user display; however in all cases where - +shouldNotifyUserForError: returns YES, this method returns a localizable message suitable for display. - - @param error the error to inspect. - */ -+ (NSString *)userMessageForError:(NSError *)error; - -/*! - @abstract - A short summary of the error suitable for display to the user. - Not all Facebook errors yield a localized message/title suitable for user display; however in all cases when title is - available, user should be notified. - - @param error the error to inspect. - */ -+ (NSString *)userTitleForError:(NSError *)error; - -/*! - @abstract - YES if given error is transient and may succeed if the initial action is retried as-is. - Application may use this information to display a "Retry" button, if user should be notified about this error. - */ -+ (BOOL)isTransientError:(NSError *)error; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRecipientCache.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRecipientCache.h deleted file mode 100644 index cfca124..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRecipientCache.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#import - -#import "FBCacheDescriptor.h" -#import "FBRequest.h" -#import "FBWebDialogs.h" - -/*! - @class FBFrictionlessRecipientCache - - @abstract - Maintains a cache of friends that can recieve application requests from the user in - using the frictionless feature of the requests web dialog. - - This class follows the `FBCacheDescriptor` pattern used elsewhere in the SDK, and applications may call - one of the prefetchAndCacheForSession methods to fetch a friend list prior to the - point where a dialog is presented. The cache is also updated with each presentation of the request - dialog using the cache instance. - */ -@interface FBFrictionlessRecipientCache : FBCacheDescriptor - -/*! @abstract An array containing the list of known FBIDs for recipients enabled for frictionless requests */ -@property (nonatomic, readwrite, copy) NSArray *recipientIDs; - -/*! - @abstract - Checks to see if a given user or FBID for a user is known to be enabled for - frictionless requestests - - @param user An NSString, NSNumber of `FBGraphUser` representing a user to check - */ -- (BOOL)isFrictionlessRecipient:(id)user; - -/*! - @abstract - Checks to see if a collection of users or FBIDs for users are known to be enabled for - frictionless requestests - - @param users An NSArray of NSString, NSNumber of `FBGraphUser` objects - representing users to check - */ -- (BOOL)areFrictionlessRecipients:(NSArray *)users; - -/*! - @abstract - Issues a request and fills the cache with a list of users to use for frictionless requests - - @param session The session to use for the request; nil indicates that the Active Session should - be used - */ -- (void)prefetchAndCacheForSession:(FBSession *)session; - -/*! - @abstract - Issues a request and fills the cache with a list of users to use for frictionless requests - - @param session The session to use for the request; nil indicates that the Active Session should - be used - - @param handler An optional completion handler, called when the request for cached users has - completed. It can be useful to use the handler to enable UI or perform other request-related - operations, after the cache is populated. - */ -- (void)prefetchAndCacheForSession:(FBSession *)session - completionHandler:(FBRequestHandler)handler; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRequestSettings.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRequestSettings.h deleted file mode 100644 index 17ee8ec..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRequestSettings.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@class FBRequest; -@class Facebook; - -/** - * Do not use this interface directly, instead, use methods in Facebook.h - * - * Handles frictionless interaction and recipient-caching by the SDK, - * see https://developers.facebook.com/docs/reference/dialogs/requests/ - */ -@interface FBFrictionlessRequestSettings : NSObject { -@private - NSArray *_allowedRecipients; - FBRequest *_activeRequest; - BOOL _enabled; -} - -/** - * BOOL indicating whether frictionless request sending has been enabled - */ -@property (nonatomic, readonly) BOOL enabled; - -/** - * NSArray of recipients - */ -@property (nonatomic, readonly) NSArray *recipientIDs; - -/** - * Enable frictionless request sending by the sdk; this means: - * 1. query and cache the current set of frictionless recipients - * 2. flag other facets of the sdk to behave in a frictionless way - */ -- (void)enableWithFacebook:(Facebook *)facebook; - -/** - * Reload recipient cache; called by the sdk to keep the cache fresh; - * method makes graph request: me/apprequestformerrecipients - */ -- (void)reloadRecipientCacheWithFacebook:(Facebook *)facebook; - -/** - * Update the recipient cache; called by the sdk to keep the cache fresh; - */ -- (void)updateRecipientCacheWithRecipients:(NSArray *)ids; - -/** - * Update the recipient cache, using a request result - */ -- (void)updateRecipientCacheWithRequestResult:(id)result; - -/** - * Given an fbID for a user, indicates whether user is enabled for - * frictionless calls - */ -- (BOOL)isFrictionlessEnabledForRecipient:(id)fbid; - -/** - * Given an array of user fbIDs, indicates whether they are enabled for - * frictionless calls - */ -- (BOOL)isFrictionlessEnabledForRecipients:(NSArray *)fbids; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFriendPickerViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFriendPickerViewController.h deleted file mode 100644 index 29ffb5f..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFriendPickerViewController.h +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBCacheDescriptor.h" -#import "FBGraphUser.h" -#import "FBPeoplePickerViewController.h" - -@protocol FBFriendPickerDelegate; - - -/*! - @class - - @abstract - The `FBFriendPickerViewController` class creates a controller object that manages - the user interface for displaying and selecting Facebook friends. - - @discussion - When the `FBFriendPickerViewController` view loads it creates a `UITableView` object - where the friends will be displayed. You can access this view through the `tableView` - property. The friend display can be sorted by first name or last name. Friends' - names can be displayed with the first name first or the last name first. - - The friend data can be pre-fetched and cached prior to using the view controller. The - cache is setup using an object that can trigger the - data fetch. Any friend data requests will first check the cache and use that data. - If the friend picker is being displayed cached data will initially be shown before - a fresh copy is retrieved. - - The `delegate` property may be set to an object that conforms to the - protocol. The `delegate` object will receive updates related to friend selection and - data changes. The delegate can also be used to filter the friends to display in the - picker. - */ -@interface FBFriendPickerViewController : FBPeoplePickerViewController - -/*! - @abstract - The list of friends that are currently selected in the veiw. - The items in the array are objects. - - @discussion - You can set this this array to pre-select items in the picker. The objects in the array - must be complete id objects (i.e., fetched from a Graph query or from a - previous picker's selection, with id and appropriate name fields). - */ -@property (nonatomic, copy, readwrite) NSArray *selection; - -/*! - @abstract - Configures the properties used in the caching data queries. - - @discussion - Cache descriptors are used to fetch and cache the data used by the view controller. - If the view controller finds a cached copy of the data, it will - first display the cached content then fetch a fresh copy from the server. - - @param cacheDescriptor The containing the cache query properties. - */ -- (void)configureUsingCachedDescriptor:(FBCacheDescriptor *)cacheDescriptor; - -/*! - @method - - @abstract - Creates a cache descriptor based on default settings of the `FBFriendPickerViewController` object. - - @discussion - An `FBCacheDescriptor` object may be used to pre-fetch data before it is used by - the view controller. It may also be used to configure the `FBFriendPickerViewController` - object. - */ -+ (FBCacheDescriptor *)cacheDescriptor; - -/*! - @method - - @abstract - Creates a cache descriptor with additional fields and a profile ID for use with the `FBFriendPickerViewController` object. - - @discussion - An `FBCacheDescriptor` object may be used to pre-fetch data before it is used by - the view controller. It may also be used to configure the `FBFriendPickerViewController` - object. - - @param userID The profile ID of the user whose friends will be displayed. A nil value implies a "me" alias. - @param fieldsForRequest The set of additional fields to include in the request for friend data. - */ -+ (FBCacheDescriptor *)cacheDescriptorWithUserID:(NSString *)userID fieldsForRequest:(NSSet *)fieldsForRequest; - -@end - -/*! - @protocol - - @abstract - The `FBFriendPickerDelegate` protocol defines the methods used to receive event - notifications and allow for deeper control of the - view. - - The methods of correspond to . - If a pair of corresponding methods are implemented, the - method is called first. - */ -@protocol FBFriendPickerDelegate -@optional - -/*! - @abstract - Tells the delegate that data has been loaded. - - @discussion - The object's `tableView` property is automatically - reloaded when this happens. However, if another table view, for example the - `UISearchBar` is showing data, then it may also need to be reloaded. - - @param friendPicker The friend picker view controller whose data changed. - */ -- (void)friendPickerViewControllerDataDidChange:(FBFriendPickerViewController *)friendPicker; - -/*! - @abstract - Tells the delegate that the selection has changed. - - @param friendPicker The friend picker view controller whose selection changed. - */ -- (void)friendPickerViewControllerSelectionDidChange:(FBFriendPickerViewController *)friendPicker; - -/*! - @abstract - Asks the delegate whether to include a friend in the list. - - @discussion - This can be used to implement a search bar that filters the friend list. - - If -[ graphObjectPickerViewController:shouldIncludeGraphObject:] - is implemented and returns NO, this method is not called. - - @param friendPicker The friend picker view controller that is requesting this information. - @param user An object representing the friend. - */ -- (BOOL)friendPickerViewController:(FBFriendPickerViewController *)friendPicker - shouldIncludeUser:(id)user; - -/*! - @abstract - Tells the delegate that there is a communication error. - - @param friendPicker The friend picker view controller that encountered the error. - @param error An error object containing details of the error. - */ -- (void)friendPickerViewController:(FBFriendPickerViewController *)friendPicker - handleError:(NSError *)error; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphLocation.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphLocation.h deleted file mode 100644 index 7f71ce6..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphLocation.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphObject.h" - -/*! - @protocol - - @abstract - The `FBGraphLocation` protocol enables typed access to the `location` property - of a Facebook place object. - - - @discussion - The `FBGraphLocation` protocol represents the most commonly used properties of a - location object. It may be used to access an `NSDictionary` object that has - been wrapped with an facade. - */ -@protocol FBGraphLocation - -/*! - @property - @abstract Typed access to a location's street. - */ -@property (retain, nonatomic) NSString *street; - -/*! - @property - @abstract Typed access to a location's city. - */ -@property (retain, nonatomic) NSString *city; - -/*! - @property - @abstract Typed access to a location's state. - */ -@property (retain, nonatomic) NSString *state; - -/*! - @property - @abstract Typed access to a location's country. - */ -@property (retain, nonatomic) NSString *country; - -/*! - @property - @abstract Typed access to a location's zip code. - */ -@property (retain, nonatomic) NSString *zip; - -/*! - @property - @abstract Typed access to a location's latitude. - */ -@property (retain, nonatomic) NSNumber *latitude; - -/*! - @property - @abstract Typed access to a location's longitude. - */ -@property (retain, nonatomic) NSNumber *longitude; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphObject.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphObject.h deleted file mode 100644 index dfdff1c..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphObject.h +++ /dev/null @@ -1,269 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@protocol FBOpenGraphObject; -@protocol FBOpenGraphAction; - -/*! - @protocol - - @abstract - The `FBGraphObject` protocol is the base protocol which enables typed access to graph objects and - open graph objects. Inherit from this protocol or a sub-protocol in order to introduce custom types - for typed access to Facebook objects. - - @discussion - The `FBGraphObject` protocol is the core type used by the Facebook SDK for iOS to - represent objects in the Facebook Social Graph and the Facebook Open Graph (OG). - The `FBGraphObject` class implements useful default functionality, but is rarely - used directly by applications. The `FBGraphObject` protocol, in contrast is the - base protocol for all graph object access via the SDK. - - Goals of the FBGraphObject types: -
    -
  • Lightweight/maintainable/robust
  • -
  • Extensible and resilient to change, both by Facebook and third party (OG)
  • -
  • Simple and natural extension to Objective-C
  • -
- - The FBGraphObject at its core is a duck typed (if it walks/swims/quacks... - its a duck) model which supports an optional static facade. Duck-typing achieves - the flexibility necessary for Social Graph and OG uses, and the static facade - increases discoverability, maintainability, robustness and simplicity. - The following excerpt from the PlacePickerSample shows a simple use of the - a facade protocol `FBGraphPlace` by an application: - -
- ‐ (void)placePickerViewControllerSelectionDidChange:(FBPlacePickerViewController *)placePicker
- {
- id<FBGraphPlace> place = placePicker.selection;
-
- // we'll use logging to show the simple typed property access to place and location info
- NSLog(@"place=%@, city=%@, state=%@, lat long=%@ %@",
- place.name,
- place.location.city,
- place.location.state,
- place.location.latitude,
- place.location.longitude);
- }
- 
- - Note that in this example, access to common place information is available through typed property - syntax. But if at some point places in the Social Graph supported additional fields "foo" and "bar", not - reflected in the `FBGraphPlace` protocol, the application could still access the values like so: - -
- NSString *foo = [place objectForKey:@"foo"]; // perhaps located at the ... in the preceding example
- NSNumber *bar = [place objectForKey:@"bar"]; // extensibility applies to Social and Open graph uses
- 
- - In addition to untyped access, applications and future revisions of the SDK may add facade protocols by - declaring a protocol inheriting the `FBGraphObject` protocol, like so: - -
- @protocol MyGraphThing<FBGraphObject>
- @property (copy, nonatomic) NSString *objectID;
- @property (copy, nonatomic) NSString *name;
- @end
- 
- - Important: facade implementations are inferred by graph objects returned by the methods of the SDK. This - means that no explicit implementation is required by application or SDK code. Any `FBGraphObject` instance - may be cast to any `FBGraphObject` facade protocol, and accessed via properties. If a field is not present - for a given facade property, the property will return nil. - - The following layer diagram depicts some of the concepts discussed thus far: - -
-                        *-------------* *------------* *-------------**--------------------------*
- Facade -->             | FBGraphUser | |FBGraphPlace| | MyGraphThing|| MyGraphPersonExtentension| ...
-                        *-------------* *------------* *-------------**--------------------------*
-                        *------------------------------------* *--------------------------------------*
- Transparent impl -->   |     FBGraphObject (instances)      | |      CustomClass<FBGraphObject>      |
-                        *------------------------------------* *--------------------------------------*
-                        *-------------------**------------------------* *-----------------------------*
- Apparent impl -->      |NSMutableDictionary||FBGraphObject (protocol)| |FBGraphObject (class methods)|
-                        *-------------------**------------------------* *-----------------------------*
- 
- - The *Facade* layer is meant for typed access to graph objects. The *Transparent impl* layer (more - specifically, the instance capabilities of `FBGraphObject`) are used by the SDK and app logic - internally, but are not part of the public interface between application and SDK. The *Apparent impl* - layer represents the lower-level "duck-typed" use of graph objects. - - Implementation note: the SDK returns `NSMutableDictionary` derived instances with types declared like - one of the following: - -
- NSMutableDictionary<FBGraphObject> *obj;     // no facade specified (still castable by app)
- NSMutableDictionary<FBGraphPlace> *person;   // facade specified when possible
- 
- - However, when passing a graph object to the SDK, `NSMutableDictionary` is not assumed; only the - FBGraphObject protocol is assumed, like so: - -
- id<FBGraphObject> anyGraphObj;
- 
- - As such, the methods declared on the `FBGraphObject` protocol represent the methods used by the SDK to - consume graph objects. While the `FBGraphObject` class implements the full `NSMutableDictionary` and KVC - interfaces, these are not consumed directly by the SDK, and are optional for custom implementations. - */ -@protocol FBGraphObject - -/*! - @method - @abstract - Returns the number of properties on this `FBGraphObject`. - */ -- (NSUInteger)count; -/*! - @method - @abstract - Returns a property on this `FBGraphObject`. - - @param aKey name of the property to return - */ -- (id)objectForKey:(id)aKey; -/*! - @method - @abstract - Returns an enumerator of the property names on this `FBGraphObject`. - */ -- (NSEnumerator *)keyEnumerator; -/*! - @method - @abstract - Removes a property on this `FBGraphObject`. - - @param aKey name of the property to remove - */ -- (void)removeObjectForKey:(id)aKey; -/*! - @method - @abstract - Sets the value of a property on this `FBGraphObject`. - - @param anObject the new value of the property - @param aKey name of the property to set - */ -- (void)setObject:(id)anObject forKey:(id)aKey; - -@optional - -/*! - @abstract - This property signifies that the current graph object is provisioned for POST (as a definition - for a new or updated graph object), and should be posted AS-IS in its JSON encoded form, whereas - some graph objects (usually those embedded in other graph objects as references to existing objects) - may only have their "id" or "url" posted. - */ -@property (nonatomic, assign) BOOL provisionedForPost; - -@end - -/*! - @class - - @abstract - Static class with helpers for use with graph objects - - @discussion - The public interface of this class is useful for creating objects that have the same graph characteristics - of those returned by methods of the SDK. This class also represents the internal implementation of the - `FBGraphObject` protocol, used by the Facebook SDK. Application code should not use the `FBGraphObject` class to - access instances and instance members, favoring the protocol. - */ -@interface FBGraphObject : NSMutableDictionary - -/*! - @method - @abstract - Used to create a graph object, usually for use in posting a new graph object or action. - */ -+ (NSMutableDictionary *)graphObject; - -/*! - @method - @abstract - Used to wrap an existing dictionary with a `FBGraphObject` facade - - @discussion - Normally you will not need to call this method, as the Facebook SDK already "FBGraphObject-ifys" json objects - fetch via `FBRequest` and `FBRequestConnection`. However, you may have other reasons to create json objects in your - application, which you would like to treat as a graph object. The pattern for doing this is that you pass the root - node of the json to this method, to retrieve a wrapper. From this point, if you traverse the graph, any other objects - deeper in the hierarchy will be wrapped as `FBGraphObject`'s in a lazy fashion. - - This method is designed to avoid unnecessary memory allocations, and object copying. Due to this, the method does - not copy the source object if it can be avoided, but rather wraps and uses it as is. The returned object derives - callers shoudl use the returned object after calls to this method, rather than continue to call methods on the original - object. - - @param jsonDictionary the dictionary representing the underlying object to wrap - */ -+ (NSMutableDictionary *)graphObjectWrappingDictionary:(NSDictionary *)jsonDictionary; - -/*! - @method - @abstract - Used to create a graph object that's provisioned for POST, usually for use in posting a new Open Graph Action. - */ -+ (NSMutableDictionary *)openGraphActionForPost; - -/*! - @method - @abstract - Used to create a graph object that's provisioned for POST, usually for use in posting a new Open Graph object. - */ -+ (NSMutableDictionary *)openGraphObjectForPost; - -/*! - @method - @abstract - Used to create a graph object that's provisioned for POST, usually for use in posting a new Open Graph object. - - @param type the object type name, in the form namespace:typename - @param title a title for the object - @param image the image property for the object - @param url the url property for the object - @param description the description for the object - */ -+ (NSMutableDictionary *)openGraphObjectForPostWithType:(NSString *)type - title:(NSString *)title - image:(id)image - url:(id)url - description:(NSString *)description; - -/*! - @method - @abstract - Used to compare two `FBGraphObject`s to determine if represent the same object. We do not overload - the concept of equality as there are various types of equality that may be important for an `FBGraphObject` - (for instance, two different `FBGraphObject`s could represent the same object, but contain different - subsets of fields). - - @param anObject an `FBGraphObject` to test - - @param anotherObject the `FBGraphObject` to compare it against - */ -+ (BOOL)isGraphObjectID:(id)anObject sameAs:(id)anotherObject; - - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphObjectPickerViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphObjectPickerViewController.h deleted file mode 100644 index 66af8a5..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphObjectPickerViewController.h +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FBGraphObject.h" -#import "FBSession.h" -#import "FBViewController.h" - -@protocol FBGraphObjectPickerDelegate; - -/*! - @class FBGraphObjectPickerViewController - - @abstract - The `FBGraphObjectPickerViewController` class is an abstract controller object that - manages the user interface for displaying and selecting a collection of graph objects. - - @discussion - When the `FBGraphObjectPickerViewController` view loads it creates a `UITableView` - object where the graph objects defined by a concrete subclass will be displayed. You - can access this view through the `tableView` property. - - The `delegate` property may be set to an object that conforms to the - protocol. The `delegate` object will receive updates related to object selection and - data changes. The delegate can also be used to filter the objects to display in the - picker. - */ -@interface FBGraphObjectPickerViewController : FBViewController - -/*! - @abstract - Returns an outlet for the spinner used in the view controller. - */ -@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *spinner; - -/*! - @abstract - Returns an outlet for the table view managed by the view controller. - */ -@property (nonatomic, retain) IBOutlet UITableView *tableView; - -/*! - @abstract - Addtional fields to fetch when making the Graph API call to get graph object data. - */ -@property (nonatomic, copy) NSSet *fieldsForRequest; - -/*! - @abstract - A Boolean value that indicates whether pictures representing the graph object are displayed. - Defaults to YES. - */ -@property (nonatomic) BOOL itemPicturesEnabled; - -/*! - @abstract - The session that is used in the request for the graph object data. - */ -@property (nonatomic, retain) FBSession *session; - -/*! - @abstract - Clears the current selection, so the picker is ready for a fresh use. - */ -- (void)clearSelection; - -/*! - @abstract - Initiates a query to get the graph object data. - - - @discussion - A cached copy will be returned if available. The cached view is temporary until a fresh copy is - retrieved from the server. It is legal to call this more than once. - */ -- (void)loadData; - -/*! - @abstract - Updates the view locally without fetching data from the server or from cache. - - @discussion - Use this if the filter or sort (if applicable) properties change. This may affect the - order or display of information. - */ -- (void)updateView; - -@end - -/*! - @protocol - - @abstract - The `FBGraphObjectPickerDelegate` protocol defines the methods used to receive event - notifications and allow for deeper control of the - view. - */ -@protocol FBGraphObjectPickerDelegate -@optional - -/*! - @abstract - Tells the delegate that data has been loaded. - - @discussion - The object's `tableView` property is automatically - reloaded when this happens. However, if another table view, for example the - `UISearchBar` is showing data, then it may also need to be reloaded. - - @param graphObjectPicker The graph object picker view controller whose data changed. - */ -- (void)graphObjectPickerViewControllerDataDidChange:(FBGraphObjectPickerViewController *)graphObjectPicker; - -/*! - @abstract - Tells the delegate that the selection has changed. - - @param graphObjectPicker The graph object picker view controller whose selection changed. - */ -- (void)graphObjectPickerViewControllerSelectionDidChange:(FBGraphObjectPickerViewController *)graphObjectPicker; - -/*! - @abstract - Asks the delegate whether to include a graph object in the list. - - @discussion - This can be used to implement a search bar that filters the graph object list. - - @param graphObjectPicker The graph object picker view controller that is requesting this information. - @param object An object - */ -- (BOOL)graphObjectPickerViewController:(FBGraphObjectPickerViewController *)graphObjectPicker - shouldIncludeGraphObject:(id)object; - -/*! - @abstract - Called if there is a communication error. - - @param graphObjectPicker The graph object picker view controller that encountered the error. - @param error An error object containing details of the error. - */ -- (void)graphObjectPickerViewController:(FBGraphObjectPickerViewController *)graphObjectPicker - handleError:(NSError *)error; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphPerson.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphPerson.h deleted file mode 100644 index 44bdbe3..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphPerson.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphObject.h" - -/*! - @protocol - - @abstract - The `FBGraphPerson` protocol enables typed access to a person's name, photo - and context-specific identifier as represented in the Graph API. - - - @discussion - The `FBGraphPerson` protocol provides access to the name, picture and context-specific - ID of a person represented by a graph object. It may be used to access an `NSDictionary` - object that has been wrapped with an facade. - */ -@protocol FBGraphPerson - -/*! - @property - @abstract Typed access to the user ID. - @discussion Note this typically refers to the "id" field of the graph object (i.e., equivalent - to `[self objectForKey:@"id"]`) but is differently named to avoid conflicting with Apple's - non-public selectors. - */ -@property (retain, nonatomic) NSString *objectID; - -/*! - @property - @abstract Typed access to the user's name. - */ -@property (retain, nonatomic) NSString *name; - -/*! - @property - @abstract Typed access to the user's first name. - */ -@property (retain, nonatomic) NSString *first_name; - -/*! - @property - @abstract Typed access to the user's middle name. - */ -@property (retain, nonatomic) NSString *middle_name; - -/*! - @property - @abstract Typed access to the user's last name. - */ -@property (retain, nonatomic) NSString *last_name; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphPlace.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphPlace.h deleted file mode 100644 index 2a0a4dc..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphPlace.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphLocation.h" -#import "FBGraphObject.h" - -/*! - @protocol - - @abstract - The `FBGraphPlace` protocol enables typed access to a place object - as represented in the Graph API. - - - @discussion - The `FBGraphPlace` protocol represents the most commonly used properties of a - Facebook place object. It may be used to access an `NSDictionary` object that has - been wrapped with an facade. - */ -@protocol FBGraphPlace - -/*! - @abstract use objectID instead - @deprecated use objectID instead - */ -@property (retain, nonatomic) NSString *id __attribute__ ((deprecated("use objectID instead"))); - -/*! -@property -@abstract Typed access to the place ID. -@discussion Note this typically refers to the "id" field of the graph object (i.e., equivalent - to `[self objectForKey:@"id"]`) but is differently named to avoid conflicting with Apple's - non-public selectors. -*/ -@property (retain, nonatomic) NSString *objectID; - -/*! - @property - @abstract Typed access to the place name. - */ -@property (retain, nonatomic) NSString *name; - -/*! - @property - @abstract Typed access to the place category. - */ -@property (retain, nonatomic) NSString *category; - -/*! - @property - @abstract Typed access to the place location. - */ -@property (retain, nonatomic) id location; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphUser.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphUser.h deleted file mode 100644 index 5358bdb..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphUser.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphPerson.h" -#import "FBGraphPlace.h" - -/*! - @protocol - - @abstract - The `FBGraphUser` protocol enables typed access to a user object - as represented in the Graph API. - - - @discussion - The `FBGraphUser` protocol represents the most commonly used properties of a - Facebook user object. It may be used to access an `NSDictionary` object that has - been wrapped with an facade. - */ -@protocol FBGraphUser - -/*! - @abstract use objectID instead - @deprecated use objectID instead - */ -@property (retain, nonatomic) NSString *id __attribute__ ((deprecated("use objectID instead"))); - -/*! - @property - @abstract Typed access to the user's profile URL. - */ -@property (retain, nonatomic) NSString *link; - -/*! - @property - @abstract Typed access to the user's username. - */ -@property (retain, nonatomic) NSString *username; - -/*! - @property - @abstract Typed access to the user's birthday. - */ -@property (retain, nonatomic) NSString *birthday; - -/*! - @property - @abstract Typed access to the user's current city. - */ -@property (retain, nonatomic) id location; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBInsights.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBInsights.h deleted file mode 100644 index 4b74321..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBInsights.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSDKMacros.h" -#import "FBSession.h" - -/*! - @typedef FBInsightsFlushBehavior enum - - @abstract This enum has been deprecated in favor of FBAppEventsFlushBehavior. - */ -__attribute__ ((deprecated("use FBAppEventsFlushBehavior instead"))) -typedef NS_ENUM(NSUInteger, FBInsightsFlushBehavior) { - FBInsightsFlushBehaviorAuto __attribute__ ((deprecated("use FBAppEventsFlushBehaviorAuto instead"))), - FBInsightsFlushBehaviorExplicitOnly __attribute__ ((deprecated("use FBAppEventsFlushBehaviorExplicitOnly instead"))), -}; - -FBSDK_EXTERN NSString *const FBInsightsLoggingResultNotification __attribute__((deprecated)); - -/*! - @class FBInsights - - @abstract This class has been deprecated in favor of FBAppEvents. - */ -__attribute__ ((deprecated("Use the FBAppEvents class instead"))) -@interface FBInsights : NSObject - -+ (NSString *)appVersion __attribute__((deprecated)); -+ (void)setAppVersion:(NSString *)appVersion __attribute__((deprecated("use [FBSettings setAppVersion] instead"))); - -+ (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency __attribute__((deprecated("use [FBAppEvents logPurchase] instead"))); -+ (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency parameters:(NSDictionary *)parameters __attribute__((deprecated("use [FBAppEvents logPurchase] instead"))); -+ (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency parameters:(NSDictionary *)parameters session:(FBSession *)session __attribute__((deprecated("use [FBAppEvents logPurchase] instead"))); - -+ (void)logConversionPixel:(NSString *)pixelID valueOfPixel:(double)value __attribute__((deprecated)); -+ (void)logConversionPixel:(NSString *)pixelID valueOfPixel:(double)value session:(FBSession *)session __attribute__((deprecated)); - -+ (FBInsightsFlushBehavior)flushBehavior __attribute__((deprecated("use [FBAppEvents flushBehavior] instead"))); -+ (void)setFlushBehavior:(FBInsightsFlushBehavior)flushBehavior __attribute__((deprecated("use [FBAppEvents setFlushBehavior] instead"))); - -+ (void)flush __attribute__((deprecated("use [FBAppEvents flush] instead"))); - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLikeControl.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLikeControl.h deleted file mode 100644 index 8a3adf8..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLikeControl.h +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSDKMacros.h" - -/*! - @typedef NS_ENUM (NSUInteger, FBLikeControlAuxiliaryPosition) - - @abstract Specifies the position of the auxiliary view relative to the like button. - */ -typedef NS_ENUM(NSUInteger, FBLikeControlAuxiliaryPosition) -{ - /*! The auxiliary view is inline with the like button. */ - FBLikeControlAuxiliaryPositionInline, - /*! The auxiliary view is above the like button. */ - FBLikeControlAuxiliaryPositionTop, - /*! The auxiliary view is below the like button. */ - FBLikeControlAuxiliaryPositionBottom, -}; - -/*! - @abstract Converts an FBLikeControlAuxiliaryPosition to an NSString. - */ -FBSDK_EXTERN NSString *NSStringFromFBLikeControlAuxiliaryPosition(FBLikeControlAuxiliaryPosition auxiliaryPosition); - -/*! - @typedef NS_ENUM(NSUInteger, FBLikeControlHorizontalAlignment) - - @abstract Specifies the horizontal alignment for FBLikeControlStyleStandard with - FBLikeControlAuxiliaryPositionTop or FBLikeControlAuxiliaryPositionBottom. - */ -typedef NS_ENUM(NSUInteger, FBLikeControlHorizontalAlignment) -{ - /*! The subviews are left aligned. */ - FBLikeControlHorizontalAlignmentLeft, - /*! The subviews are center aligned. */ - FBLikeControlHorizontalAlignmentCenter, - /*! The subviews are right aligned. */ - FBLikeControlHorizontalAlignmentRight, -}; - -/*! - @abstract Converts an FBLikeControlHorizontalAlignment to an NSString. - */ -FBSDK_EXTERN NSString *NSStringFromFBLikeControlHorizontalAlignment(FBLikeControlHorizontalAlignment horizontalAlignment); - -/*! - @typedef NS_ENUM (NSUInteger, FBLikeControlStyle) - - @abstract Specifies the style of a like control. - */ -typedef NS_ENUM(NSUInteger, FBLikeControlStyle) -{ - /*! Displays the button and the social sentence. */ - FBLikeControlStyleStandard = 0, - /*! Displays the button and a box that contains the like count. */ - FBLikeControlStyleBoxCount, - /*! Displays the button only. */ - FBLikeControlStyleButton, -}; - -/*! - @abstract Converts an FBLikeControlStyle to an NSString. - */ -FBSDK_EXTERN NSString *NSStringFromFBLikeControlStyle(FBLikeControlStyle style); - -/*! - @class FBLikeControl - - @abstract UI control to like an object in the Facebook graph. - - @discussion Taps on the like button within this control will invoke an API call to the Facebook app through a - fast-app-switch that allows the user to like the object. Upon return to the calling app, the view will update - with the new state and send actions for the UIControlEventValueChanged event. - */ -@interface FBLikeControl : UIControl - -/*! - @abstract If YES, FBLikeControl is available for use with through the Like Dialog. - - @discussion If NO, the control requires publish_action permissions on the active session for in-place liking. It is - the responsibility of the consumer to ensure that the control is not presented without this permission. - */ -+ (BOOL)dialogIsAvailable; - -/*! - @abstract The foreground color to use for the content of the receiver. - */ -@property (nonatomic, strong) UIColor *foregroundColor; - -/*! - @abstract The position for the auxiliary view for the receiver. - - @see FBLikeControlAuxiliaryPosition - */ -@property (nonatomic, assign) FBLikeControlAuxiliaryPosition likeControlAuxiliaryPosition; - -/*! - @abstract The text alignment of the social sentence. - - @discussion This value is only valid for FBLikeControlStyleStandard with FBLikeControlAuxiliaryPositionTop|Bottom. - */ -@property (nonatomic, assign) FBLikeControlHorizontalAlignment likeControlHorizontalAlignment; - -/*! - @abstract The style to use for the receiver. - - @see FBLikeControlStyle - */ -@property (nonatomic, assign) FBLikeControlStyle likeControlStyle; - -/*! - @abstract The objectID for the object to like. - - @discussion This value may be an Open Graph object ID or a string representation of an URL that describes an - Open Graph object. The objects may be public objects, like pages, or objects that are defined by your application. - */ -@property (nonatomic, copy) NSString *objectID; - -/*! - @abstract The preferred maximum width (in points) for autolayout. - - @discussion This property affects the size of the receiver when layout constraints are applied to it. During layout, - if the text extends beyond the width specified by this property, the additional text is flowed to one or more new - lines, thereby increasing the height of the receiver. - */ -@property (nonatomic, assign) CGFloat preferredMaxLayoutWidth; - -/*! - @abstract If YES, a sound is played when the receiver is toggled. - - @default YES - */ -@property (nonatomic, assign, getter = isSoundEnabled) BOOL soundEnabled; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLinkShareParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLinkShareParams.h deleted file mode 100644 index ba15437..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLinkShareParams.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBDialogsParams.h" - -/*! - @class FBLinkShareParams - - @abstract - This object is used to encapsulate state for parameters to a share a link, - typically with the Facebook Native Share Dialog or the Message Dialog. - */ -@interface FBLinkShareParams : FBDialogsParams - -/*! @abstract The URL link to be attached to the post. Only "http" or "https" - schemes are supported. */ -@property (nonatomic, copy) NSURL *link; - -/*! @abstract The name, or title associated with the link. Is only used if the - link is non-nil. */ -@property (nonatomic, copy) NSString *name; - -/*! @abstract The caption to be used with the link. Is only used if the link is - non-nil. */ -@property (nonatomic, copy) NSString *caption; - -/*! @abstract The description associated with the link. Is only used if the - link is non-nil. */ -@property (nonatomic, copy) NSString *linkDescription; - -/*! @abstract The link to a thumbnail to associate with the post. Is only used - if the link is non-nil. Only "http" or "https" schemes are supported. Note that this - property should not be used to share photos; see the photos property. */ -@property (nonatomic, copy) NSURL *picture; - -/*! @abstract An array of NSStrings or FBGraphUsers to tag in the post. - If using NSStrings, the values must represent the IDs of the users to tag. */ -@property (nonatomic, copy) NSArray *friends; - -/*! @abstract An NSString or FBGraphPlace to tag in the status update. If - NSString, the value must be the ID of the place to tag. */ -@property (nonatomic, copy) id place; - -/*! @abstract A text reference for the category of the post, used on Facebook - Insights. */ -@property (nonatomic, copy) NSString *ref; - -/*! @abstract If YES, treats any data failures (e.g. failures when getting - data for IDs passed through "friends" or "place") as a fatal error, and will not - continue with the status update. */ -@property (nonatomic, assign) BOOL dataFailuresFatal; - -/*! - @abstract Designated initializer - @param link the required link to share - @param name the optional name to describe the share - @param caption the optional caption to describe the share - @param description the optional description to describe the share - @param picture the optional url to use as the share's image -*/ -- (instancetype)initWithLink:(NSURL *)link - name:(NSString *)name - caption:(NSString *)caption - description:(NSString *)description - picture:(NSURL *)picture; -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginDialog.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginDialog.h deleted file mode 100644 index ca797f9..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginDialog.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -#import "FBDialog.h" - -@protocol FBLoginDialogDelegate; - -/** - * Do not use this interface directly, instead, use authorize in Facebook.h - * - * Facebook Login Dialog interface for start the facebook webView login dialog. - * It start pop-ups prompting for credentials and permissions. - */ - -@interface FBLoginDialog : FBDialog - -- (instancetype)initWithURL:(NSString *)loginURL - loginParams:(NSMutableDictionary *)params - delegate:(id)loginDelegate; - -@property (nonatomic, assign) id loginDelegate; - -@end - -/////////////////////////////////////////////////////////////////////////////////////////////////// - -@protocol FBLoginDialogDelegate - -- (void)fbDialogLogin:(NSString *)token expirationDate:(NSDate *)expirationDate params:(NSDictionary *)params; - -- (void)fbDialogNotLogin:(BOOL)cancelled; - -@end - - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginTooltipView.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginTooltipView.h deleted file mode 100644 index 8f9fcbd..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginTooltipView.h +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBTooltipView.h" - -@protocol FBLoginTooltipViewDelegate; - -/*! - @class FBLoginTooltipView - - @abstract Represents a tooltip to be displayed next to a Facebook login button - to highlight features for new users. - - @discussion The `FBLoginView` may display this view automatically. If you do - not use the `FBLoginView`, you can manually call one of the `present*` methods - as appropriate and customize behavior via `FBLoginTooltipViewDelegate` delegate. - - By default, the `FBLoginTooltipView` is not added to the superview until it is - determined the app has migrated to the new login experience. You can override this - (e.g., to test the UI layout) by implementing the delegate or setting `forceDisplay` to YES. - - */ -@interface FBLoginTooltipView : FBTooltipView - -/*! @abstract the delegate */ -@property (nonatomic, assign) id delegate; - -/*! @abstract if set to YES, the view will always be displayed and the delegate's - `loginTooltipView:shouldAppear:` will NOT be called. */ -@property (nonatomic, assign) BOOL forceDisplay; - -@end - -/*! - @protocol - - @abstract - The `FBLoginTooltipViewDelegate` protocol defines the methods used to receive event - notifications from `FBLoginTooltipView` objects. - */ -@protocol FBLoginTooltipViewDelegate - -@optional - -/*! - @abstract - Asks the delegate if the tooltip view should appear - - @param view The tooltip view. - @param appIsEligible The value fetched from the server identifying if the app - is eligible for the new login experience. - - @discussion Use this method to customize display behavior. - */ -- (BOOL)loginTooltipView:(FBLoginTooltipView *)view shouldAppear:(BOOL)appIsEligible; - -/*! - @abstract - Tells the delegate the tooltip view will appear, specifically after it's been - added to the super view but before the fade in animation. - - @param view The tooltip view. - */ -- (void)loginTooltipViewWillAppear:(FBLoginTooltipView *)view; - -/*! - @abstract - Tells the delegate the tooltip view will not appear (i.e., was not - added to the super view). - - @param view The tooltip view. - */ -- (void)loginTooltipViewWillNotAppear:(FBLoginTooltipView *)view; - - -@end - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginView.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginView.h deleted file mode 100644 index 8e2ed93..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginView.h +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphUser.h" -#import "FBSession.h" -#import "FBTooltipView.h" - -@protocol FBLoginViewDelegate; - -/*! - @typedef - @abstract Indicates the desired login tooltip behavior. - */ -typedef NS_ENUM(NSUInteger, FBLoginViewTooltipBehavior) { - /*! The default behavior. The tooltip will only be displayed if - the app is eligible (determined by server round trip) */ - FBLoginViewTooltipBehaviorDefault = 0, - /*! Force display of the tooltip (typically for UI testing) */ - FBLoginViewTooltipBehaviorForceDisplay = 1, - /*! Force disable. In this case you can still exert more refined - control by manually constructing a `FBLoginTooltipView` instance. */ - FBLoginViewTooltipBehaviorDisable = 2 -}; - -/*! - @class FBLoginView - @abstract FBLoginView is a custom UIView that renders a button to login or logout based on the - state of `FBSession.activeSession` - - @discussion This view is closely associated with `FBSession.activeSession`. Upon initialization, - it will attempt to open an active session without UI if the current active session is not open. - - The FBLoginView instance also monitors for changes to the active session. - - Please note: Since FBLoginView observes the active session, using multiple FBLoginView instances - in different parts of your app can result in each instance's delegates being notified of changes - for one event. - */ -@interface FBLoginView : UIView - -/*! - @abstract - The permissions to login with. Defaults to nil, meaning basic permissions. - - @discussion Methods and properties that specify permissions without a read or publish - qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred. - */ -@property (readwrite, copy) NSArray *permissions __attribute__((deprecated)); - -/*! - @abstract - The read permissions to request if the user logs in via this view. - - @discussion - Note, that if read permissions are specified, then publish permissions should not be specified. - */ -@property (nonatomic, copy) NSArray *readPermissions; - -/*! - @abstract - The publish permissions to request if the user logs in via this view. - - @discussion - Note, that a defaultAudience value of FBSessionDefaultAudienceOnlyMe, FBSessionDefaultAudienceEveryone, or - FBSessionDefaultAudienceFriends should be set if publish permissions are specified. Additionally, when publish - permissions are specified, then read should not be specified. - */ -@property (nonatomic, copy) NSArray *publishPermissions; - -/*! - @abstract - The default audience to use, if publish permissions are requested at login time. - */ -@property (nonatomic, assign) FBSessionDefaultAudience defaultAudience; - -/*! - @abstract - The login behavior for the active session if the user logs in via this view - - @discussion - The default value is FBSessionLoginBehaviorWithFallbackToWebView. - */ -@property (nonatomic) FBSessionLoginBehavior loginBehavior; - -/*! - @abstract - Gets or sets the desired tooltip behavior. - */ -@property (nonatomic, assign) FBLoginViewTooltipBehavior tooltipBehavior; - -/*! - @abstract - Gets or sets the desired tooltip color style. - */ -@property (nonatomic, assign) FBTooltipColorStyle tooltipColorStyle; - -/*! - @abstract - Initializes and returns an `FBLoginView` object. The underlying session has basic permissions granted to it. - */ -- (instancetype)init; - -/*! - @method - - @abstract - Initializes and returns an `FBLoginView` object constructed with the specified permissions. - - @param permissions An array of strings representing the permissions to request during the - authentication flow. A value of nil will indicates basic permissions. - - @discussion Methods and properties that specify permissions without a read or publish - qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred. - */ -- (instancetype)initWithPermissions:(NSArray *)permissions __attribute__((deprecated)); - -/*! - @method - - @abstract - Initializes and returns an `FBLoginView` object constructed with the specified permissions. - - @param readPermissions An array of strings representing the read permissions to request during the - authentication flow. A value of nil will indicates basic permissions. - - */ -- (instancetype)initWithReadPermissions:(NSArray *)readPermissions; - -/*! - @method - - @abstract - Initializes and returns an `FBLoginView` object constructed with the specified permissions. - - @param publishPermissions An array of strings representing the publish permissions to request during the - authentication flow. - - @param defaultAudience An audience for published posts; note that FBSessionDefaultAudienceNone is not valid - for permission requests that include publish or manage permissions. - - */ -- (instancetype)initWithPublishPermissions:(NSArray *)publishPermissions - defaultAudience:(FBSessionDefaultAudience)defaultAudience; - -/*! - @abstract - The delegate object that receives updates for selection and display control. - */ -@property (nonatomic, assign) IBOutlet id delegate; - -@end - -/*! - @protocol - - @abstract - The `FBLoginViewDelegate` protocol defines the methods used to receive event - notifications from `FBLoginView` objects. - - @discussion - Please note: Since FBLoginView observes the active session, using multiple FBLoginView instances - in different parts of your app can result in each instance's delegates being notified of changes - for one event. - */ -@protocol FBLoginViewDelegate - -@optional - -/*! - @abstract - Tells the delegate that the view is now in logged in mode - - @param loginView The login view that transitioned its view mode - */ -- (void)loginViewShowingLoggedInUser:(FBLoginView *)loginView; - -/*! - @abstract - Tells the delegate that the view is has now fetched user info - - @param loginView The login view that transitioned its view mode - - @param user The user info object describing the logged in user - */ -- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView - user:(id)user; - -/*! - @abstract - Tells the delegate that the view is now in logged out mode - - @param loginView The login view that transitioned its view mode - */ -- (void)loginViewShowingLoggedOutUser:(FBLoginView *)loginView; - -/*! - @abstract - Tells the delegate that there is a communication or authorization error. - - @param loginView The login view that transitioned its view mode - @param error An error object containing details of the error. - @discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/ - for error handling best practices. - */ -- (void)loginView:(FBLoginView *)loginView - handleError:(NSError *)error; - -@end - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBNativeDialogs.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBNativeDialogs.h deleted file mode 100644 index d1c86b5..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBNativeDialogs.h +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBAppCall.h" -#import "FBOpenGraphActionShareDialogParams.h" -#import "FBShareDialogParams.h" - -@class FBSession; -@protocol FBOpenGraphAction; - -// note that the following class and types are deprecated in favor of FBDialogs and its methods - -/*! - @typedef FBNativeDialogResult enum - - @abstract - Please note that this enum and its related methods have been deprecated, please migrate your - code to use `FBOSIntegratedShareDialogResult` and its related methods. - */ -typedef NS_ENUM(NSUInteger, FBNativeDialogResult) { - /*! Indicates that the dialog action completed successfully. */ - FBNativeDialogResultSucceeded, - /*! Indicates that the dialog action was cancelled (either by the user or the system). */ - FBNativeDialogResultCancelled, - /*! Indicates that the dialog could not be shown (because not on ios6 or ios6 auth was not used). */ - FBNativeDialogResultError -} -__attribute__((deprecated)); - -/*! - @typedef - - @abstract - Please note that `FBShareDialogHandler` and its related methods have been deprecated, please migrate your - code to use `FBOSIntegratedShareDialogHandler` and its related methods. - */ -typedef void (^FBShareDialogHandler)(FBNativeDialogResult result, NSError *error) -__attribute__((deprecated)); - -/*! - @class FBNativeDialogs - - @abstract - Please note that `FBNativeDialogs` has been deprecated, please migrate your - code to use `FBDialogs`. - */ -@interface FBNativeDialogs : NSObject - -/*! - @abstract - Please note that this method has been deprecated, please migrate your - code to use `FBDialogs` and the related method `presentOSIntegratedShareDialogModallyFrom`. - */ -+ (BOOL)presentShareDialogModallyFrom:(UIViewController *)viewController - initialText:(NSString *)initialText - image:(UIImage *)image - url:(NSURL *)url - handler:(FBShareDialogHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Please note that this method has been deprecated, please migrate your - code to use `FBDialogs` and the related method `presentOSIntegratedShareDialogModallyFrom`. - */ -+ (BOOL)presentShareDialogModallyFrom:(UIViewController *)viewController - initialText:(NSString *)initialText - images:(NSArray *)images - urls:(NSArray *)urls - handler:(FBShareDialogHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Please note that this method has been deprecated, please migrate your - code to use `FBDialogs` and the related method `presentOSIntegratedShareDialogModallyFrom`. - */ -+ (BOOL)presentShareDialogModallyFrom:(UIViewController *)viewController - session:(FBSession *)session - initialText:(NSString *)initialText - images:(NSArray *)images - urls:(NSArray *)urls - handler:(FBShareDialogHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Please note that this method has been deprecated, please migrate your - code to use `FBDialogs` and the related method `canPresentOSIntegratedShareDialogWithSession`. - */ -+ (BOOL)canPresentShareDialogWithSession:(FBSession *)session __attribute__((deprecated)); - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphAction.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphAction.h deleted file mode 100644 index 2bf8334..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphAction.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphObject.h" - -@protocol FBGraphPlace; -@protocol FBGraphUser; - -/*! - @protocol - - @abstract - The `FBOpenGraphAction` protocol is the base protocol for use in posting and retrieving Open Graph actions. - It inherits from the `FBGraphObject` protocol; you may derive custome protocols from `FBOpenGraphAction` in order - implement typed access to your application's custom actions. - - @discussion - Represents an Open Graph custom action, to be used directly, or from which to - derive custom action protocols with custom properties. - */ -@protocol FBOpenGraphAction - -/*! - @abstract use objectID instead - @deprecated use objectID instead - */ -@property (retain, nonatomic) NSString *id __attribute__ ((deprecated("use objectID instead"))); - -/*! - @property - @abstract Typed access to the action's ID. - @discussion Note this typically refers to the "id" field of the graph object (i.e., equivalent - to `[self objectForKey:@"id"]`) but is differently named to avoid conflicting with Apple's - non-public selectors. - */ -@property (retain, nonatomic) NSString *objectID; - -/*! - @property - @abstract Typed access to action's start time - */ -@property (retain, nonatomic) NSString *start_time; - -/*! - @property - @abstract Typed access to action's end time - */ -@property (retain, nonatomic) NSString *end_time; - -/*! - @property - @abstract Typed access to action's publication time - */ -@property (retain, nonatomic) NSString *publish_time; - -/*! - @property - @abstract Typed access to action's creation time - */ -@property (retain, nonatomic) NSString *created_time; - -/*! - @property - @abstract Typed access to action's expiration time - */ -@property (retain, nonatomic) NSString *expires_time; - -/*! - @property - @abstract Typed access to action's ref - */ -@property (retain, nonatomic) NSString *ref; - -/*! - @property - @abstract Typed access to action's user message - */ -@property (retain, nonatomic) NSString *message; - -/*! - @property - @abstract Typed access to action's place - */ -@property (retain, nonatomic) id place; - -/*! - @property - @abstract Typed access to action's tags - */ -@property (retain, nonatomic) NSArray *tags; - -/*! - @property - @abstract Typed access to action's image(s) - */ -@property (retain, nonatomic) id image; - -/*! - @property - @abstract Typed access to action's from-user - */ -@property (retain, nonatomic) id from; - -/*! - @property - @abstract Typed access to action's likes - */ -@property (retain, nonatomic) NSArray *likes; - -/*! - @property - @abstract Typed access to action's application - */ -@property (retain, nonatomic) id application; - -/*! - @property - @abstract Typed access to action's comments - */ -@property (retain, nonatomic) NSArray *comments; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphActionParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphActionParams.h deleted file mode 100644 index b96ee0c..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphActionParams.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBDialogsParams.h" -#import "FBOpenGraphAction.h" -#import "FBSDKMacros.h" - -FBSDK_EXTERN NSString *const FBPostObject; - -/*! - @class FBOpenGraphActionParams - - @abstract - This object is used to encapsulate state for parameters to an Open Graph share, - typically used with the Native Share Dialog or Message Dialog. - */ -@interface FBOpenGraphActionParams : FBDialogsParams - -/*! @abstract The Open Graph action to be published. */ -@property (nonatomic, retain) id action; - -/*! @abstract The name of the property representing the primary target of the Open - Graph action, which will be displayed as a preview in the dialog. */ -@property (nonatomic, copy) NSString *previewPropertyName; - -/*! @abstract The fully qualified type of the Open Graph action. */ -@property (nonatomic, copy) NSString *actionType; - -/*! - @abstract Designated initializer - @param action The action object, typically a dictionary based object created - from `[FBGraphObject openGraphActionForPost]`. - @param actionType The open graph action type defined in your application settings. - Typically, either a common open graph type like "books.reads", or a custom ":". - @param previewPropertyName The identifier for object in the open graph action. For example, for books.reads - this would be "book". -*/ -- (instancetype)initWithAction:(id)action actionType:(NSString *)actionType previewPropertyName:(NSString *)previewPropertyName; -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphActionShareDialogParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphActionShareDialogParams.h deleted file mode 100644 index 19f11a9..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphActionShareDialogParams.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBOpenGraphActionParams.h" - -/*! - @class FBOpenGraphActionShareDialogParams - - @abstract Deprecated. Use `FBOpenGraphActionParams` instead. - */ -__attribute__((deprecated)) -@interface FBOpenGraphActionShareDialogParams : FBOpenGraphActionParams - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphObject.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphObject.h deleted file mode 100644 index e6238ba..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphObject.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphObject.h" - -/*! - @protocol - - @abstract - The `FBOpenGraphObject` protocol is the base protocol for use in posting and retrieving Open Graph objects. - It inherits from the `FBGraphObject` protocol; you may derive custome protocols from `FBOpenGraphObject` in order - implement typed access to your application's custom objects. - - @discussion - Represents an Open Graph custom object, to be used directly, or from which to - derive custom action protocols with custom properties. - */ -@protocol FBOpenGraphObject - -/*! - @abstract use objectID instead - @deprecated use objectID instead - */ -@property (retain, nonatomic) NSString *id __attribute__ ((deprecated("use objectID instead"))); - -/*! - @property - @abstract Typed access to the object's ID. - @discussion Note this typically refers to the "id" field of the graph object (i.e., equivalent - to `[self objectForKey:@"id"]`) but is differently named to avoid conflicting with Apple's - non-public selectors. - */ -@property (retain, nonatomic) NSString *objectID; - -/*! - @property - @abstract Typed access to the object's type, which is a string in the form mynamespace:mytype - */ -@property (retain, nonatomic) NSString *type; - -/*! - @property - @abstract Typed access to object's title - */ -@property (retain, nonatomic) NSString *title; - -/*! - @property - @abstract Typed access to the object's image property - */ -@property (retain, nonatomic) id image; - -/*! - @property - @abstract Typed access to the object's url property - */ -@property (retain, nonatomic) id url; - -/*! - @abstract Typed access to the object's description property. - @discussion Note this typically refers to the "description" field of the graph object (i.e., equivalent - to `[self objectForKey:@"description"]`) but is differently named to avoid conflicting with Apple's - non-public selectors.*/ -@property (retain, nonatomic) id objectDescription; - -/*! - @property - @abstract Typed access to action's data, which is a dictionary of custom properties - */ -@property (retain, nonatomic) id data; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPeoplePickerViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPeoplePickerViewController.h deleted file mode 100644 index db138cf..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPeoplePickerViewController.h +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphObjectPickerViewController.h" - -/*! - @typedef NS_ENUM (NSUInteger, FBFriendSortOrdering) - - @abstract Indicates the order in which friends should be listed in the friend picker. - - @discussion - */ -typedef NS_ENUM(NSUInteger, FBFriendSortOrdering) { - /*! Sort friends by first, middle, last names. */ - FBFriendSortByFirstName = 0, - /*! Sort friends by last, first, middle names. */ - FBFriendSortByLastName -}; - -/*! - @typedef NS_ENUM (NSUInteger, FBFriendDisplayOrdering) - - @abstract Indicates whether friends should be displayed first-name-first or last-name-first. - - @discussion - */ -typedef NS_ENUM(NSUInteger, FBFriendDisplayOrdering) { - /*! Display friends as First Middle Last. */ - FBFriendDisplayByFirstName = 0, - /*! Display friends as Last First Middle. */ - FBFriendDisplayByLastName, -}; - - -/*! - @class - - @abstract - The `FBPeoplePickerViewController` class is an abstract controller object that manages - the user interface for displaying and selecting people. - - @discussion - When the `FBPeoplePickerViewController` view loads it creates a `UITableView` object - where the people will be displayed. You can access this view through the `tableView` - property. The people display can be sorted by first name or last name. People's - names can be displayed with the first name first or the last name first. - - The `delegate` property may be set to an object that conforms to the - protocol, as defined by . The graph object passed to - the delegate conforms to the protocol. - */ -@interface FBPeoplePickerViewController : FBGraphObjectPickerViewController - -/*! - @abstract - A Boolean value that specifies whether multi-select is enabled. - */ -@property (nonatomic) BOOL allowsMultipleSelection; - -/*! - @abstract - The profile ID of the user whose 'user_friends' permission is being used. - */ -@property (nonatomic, copy) NSString *userID; - -/*! - @abstract - The list of people that are currently selected in the veiw. - The items in the array are objects. - */ -@property (nonatomic, copy, readonly) NSArray *selection; - -/*! - @abstract - The order in which people are sorted in the display. - */ -@property (nonatomic) FBFriendSortOrdering sortOrdering; - -/*! - @abstract - The order in which people's names are displayed. - */ -@property (nonatomic) FBFriendDisplayOrdering displayOrdering; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPhotoParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPhotoParams.h deleted file mode 100644 index 4c389fd..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPhotoParams.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBDialogsParams.h" - -/*! - @class FBPhotoParams - - @abstract - This object is used to encapsulate state for parameters to share photos, - typically with the Facebook Native Share Dialog or Message Dialog - */ -@interface FBPhotoParams : FBDialogsParams - -/*! @abstract An array of NSStrings or FBGraphUsers to tag in the post. - If using NSStrings, the values must represent the IDs of the users to tag. */ -@property (nonatomic, copy) NSArray *friends; - -/*! @abstract An NSString or FBGraphPlace to tag in the status update. If - NSString, the value must be the ID of the place to tag. */ -@property (nonatomic, copy) id place; - -/*! @abstract If YES, treats any data failures (e.g. failures when getting - data for IDs passed through "friends" or "place") as a fatal error, and will not - continue with the status update. */ -@property (nonatomic, assign) BOOL dataFailuresFatal; - -/*! @abstract An array of UIImages representing photos to be shared. Only - six or fewer images are supported. */ -@property (nonatomic, copy) NSArray *photos; - -/*! @abstract Designated initializer. - @param photos the array of UIImages -*/ -- (instancetype)initWithPhotos:(NSArray *)photos; -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPlacePickerViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPlacePickerViewController.h deleted file mode 100644 index c8c0e04..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPlacePickerViewController.h +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBCacheDescriptor.h" -#import "FBGraphObjectPickerViewController.h" -#import "FBGraphPlace.h" - -@protocol FBPlacePickerDelegate; - -/*! - @class FBPlacePickerViewController - - @abstract - The `FBPlacePickerViewController` class creates a controller object that manages - the user interface for displaying and selecting nearby places. - - @discussion - When the `FBPlacePickerViewController` view loads it creates a `UITableView` object - where the places near a given location will be displayed. You can access this view - through the `tableView` property. - - The place data can be pre-fetched and cached prior to using the view controller. The - cache is setup using an object that can trigger the - data fetch. Any place data requests will first check the cache and use that data. - If the place picker is being displayed cached data will initially be shown before - a fresh copy is retrieved. - - The `delegate` property may be set to an object that conforms to the - protocol. The `delegate` object will receive updates related to place selection and - data changes. The delegate can also be used to filter the places to display in the - picker. - */ -@interface FBPlacePickerViewController : FBGraphObjectPickerViewController - -/*! - @abstract - The coordinates to use for place discovery. - */ -@property (nonatomic) CLLocationCoordinate2D locationCoordinate; - -/*! - @abstract - The radius to use for place discovery. - */ -@property (nonatomic) NSInteger radiusInMeters; - -/*! - @abstract - The maximum number of places to fetch. - */ -@property (nonatomic) NSInteger resultsLimit; - -/*! - @abstract - The search words used to narrow down the results returned. - */ -@property (nonatomic, copy) NSString *searchText; - -/*! - @abstract - The place that is currently selected in the view. This is nil - if nothing is selected. - */ -@property (nonatomic, retain, readonly) id selection; - -/*! - @abstract - Configures the properties used in the caching data queries. - - @discussion - Cache descriptors are used to fetch and cache the data used by the view controller. - If the view controller finds a cached copy of the data, it will - first display the cached content then fetch a fresh copy from the server. - - @param cacheDescriptor The containing the cache query properties. - */ -- (void)configureUsingCachedDescriptor:(FBCacheDescriptor *)cacheDescriptor; - -/*! - @method - - @abstract - Creates a cache descriptor with additional fields and a profile ID for use with the - `FBPlacePickerViewController` object. - - @discussion - An `FBCacheDescriptor` object may be used to pre-fetch data before it is used by - the view controller. It may also be used to configure the `FBPlacePickerViewController` - object. - - @param locationCoordinate The coordinates to use for place discovery. - @param radiusInMeters The radius to use for place discovery. - @param searchText The search words used to narrow down the results returned. - @param resultsLimit The maximum number of places to fetch. - @param fieldsForRequest Addtional fields to fetch when making the Graph API call to get place data. - */ -+ (FBCacheDescriptor *)cacheDescriptorWithLocationCoordinate:(CLLocationCoordinate2D)locationCoordinate - radiusInMeters:(NSInteger)radiusInMeters - searchText:(NSString *)searchText - resultsLimit:(NSInteger)resultsLimit - fieldsForRequest:(NSSet *)fieldsForRequest; - -@end - -/*! - @protocol - - @abstract - The `FBPlacePickerDelegate` protocol defines the methods used to receive event - notifications and allow for deeper control of the - view. - - The methods of correspond to . - If a pair of corresponding methods are implemented, the - method is called first. - */ -@protocol FBPlacePickerDelegate -@optional - -/*! - @abstract - Tells the delegate that data has been loaded. - - @discussion - The object's `tableView` property is automatically - reloaded when this happens. However, if another table view, for example the - `UISearchBar` is showing data, then it may also need to be reloaded. - - @param placePicker The place picker view controller whose data changed. - */ -- (void)placePickerViewControllerDataDidChange:(FBPlacePickerViewController *)placePicker; - -/*! - @abstract - Tells the delegate that the selection has changed. - - @param placePicker The place picker view controller whose selection changed. - */ -- (void)placePickerViewControllerSelectionDidChange:(FBPlacePickerViewController *)placePicker; - -/*! - @abstract - Asks the delegate whether to include a place in the list. - - @discussion - This can be used to implement a search bar that filters the places list. - - If -[ graphObjectPickerViewController:shouldIncludeGraphObject:] - is implemented and returns NO, this method is not called. - - @param placePicker The place picker view controller that is requesting this information. - @param place An object representing the place. - */ -- (BOOL)placePickerViewController:(FBPlacePickerViewController *)placePicker - shouldIncludePlace:(id)place; - -/*! - @abstract - Called if there is a communication error. - - @param placePicker The place picker view controller that encountered the error. - @param error An error object containing details of the error. - */ -- (void)placePickerViewController:(FBPlacePickerViewController *)placePicker - handleError:(NSError *)error; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBProfilePictureView.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBProfilePictureView.h deleted file mode 100644 index f82994f..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBProfilePictureView.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -/*! - @typedef FBProfilePictureCropping enum - - @abstract - Type used to specify the cropping treatment of the profile picture. - - @discussion - */ -typedef NS_ENUM(NSUInteger, FBProfilePictureCropping) { - - /*! Square (default) - the square version that the Facebook user defined. */ - FBProfilePictureCroppingSquare = 0, - - /*! Original - the original profile picture, as uploaded. */ - FBProfilePictureCroppingOriginal = 1 - -}; - -/*! - @class - @abstract - An instance of `FBProfilePictureView` is used to display a profile picture. - - The default behavior of this control is to center the profile picture - in the view and shrinks it, if necessary, to the view's bounds, preserving the aspect ratio. The smallest - possible image is downloaded to ensure that scaling up never happens. Resizing the view may result in - a different size of the image being loaded. Canonical image sizes are documented in the "Pictures" section - of https://developers.facebook.com/docs/reference/api. - */ -@interface FBProfilePictureView : UIView - -/*! - @abstract - The Facebook ID of the user, place or object for which a picture should be fetched and displayed. - */ -@property (copy, nonatomic) NSString *profileID; - -/*! - @abstract - The cropping to use for the profile picture. - */ -@property (nonatomic) FBProfilePictureCropping pictureCropping; - -/*! - @abstract - Initializes and returns a profile view object. - */ -- (instancetype)init; - - -/*! - @abstract - Initializes and returns a profile view object for the given Facebook ID and cropping. - - @param profileID The Facebook ID of the user, place or object for which a picture should be fetched and displayed. - @param pictureCropping The cropping to use for the profile picture. - */ -- (instancetype)initWithProfileID:(NSString *)profileID - pictureCropping:(FBProfilePictureCropping)pictureCropping; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequest.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequest.h deleted file mode 100644 index 799124a..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequest.h +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBGraphObject.h" -#import "FBOpenGraphAction.h" -#import "FBOpenGraphObject.h" -#import "FBRequestConnection.h" -#import "FBSDKMacros.h" - -/*! The base URL used for graph requests */ -FBSDK_EXTERN NSString *const FBGraphBasePath __attribute__((deprecated)); - -// up-front decl's -@protocol FBRequestDelegate; -@class FBSession; -@class UIImage; - -/*! - @typedef FBRequestState - - @abstract - Deprecated - do not use in new code. - - @discussion - FBRequestState is retained from earlier versions of the SDK to give existing - apps time to remove dependency on this. - - @deprecated - */ -typedef NSUInteger FBRequestState __attribute__((deprecated)); - -/*! - @class FBRequest - - @abstract - The `FBRequest` object is used to setup and manage requests to the Facebook Graph API. - This class provides helper methods that simplify the connection and response handling. - - @discussion - An object is required for all authenticated uses of `FBRequest`. - Requests that do not require an unauthenticated user are also supported and - do not require an object to be passed in. - - An instance of `FBRequest` represents the arguments and setup for a connection - to Facebook. After creating an `FBRequest` object it can be used to setup a - connection to Facebook through the object. The - object is created to manage a single connection. To - cancel a connection use the instance method in the class. - - An `FBRequest` object may be reused to issue multiple connections to Facebook. - However each instance will manage one connection. - - Class and instance methods prefixed with **start* ** can be used to perform the - request setup and initiate the connection in a single call. - - */ -@interface FBRequest : NSObject { -@private - id _delegate; - NSString * _url; - NSString * _versionPart; - NSURLConnection * _connection; - NSMutableData * _responseText; -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" - FBRequestState _state; -#pragma GCC diagnostic pop - NSError * _error; - BOOL _sessionDidExpire; - id _graphObject; -} - -/*! - @methodgroup Creating a request - - @method - Calls with the default parameters. - */ -- (instancetype)init; - -/*! - @method - Calls with default parameters - except for the ones provided to this method. - - @param session The session object representing the identity of the Facebook user making - the request. A nil value indicates a request that requires no token; to - use the active session pass `[FBSession activeSession]`. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - */ -- (instancetype)initWithSession:(FBSession *)session - graphPath:(NSString *)graphPath; - -/*! - @method - - @abstract - Initializes an `FBRequest` object for a Graph API request call. - - @discussion - Note that this only sets properties on the `FBRequest` object. - - To send the request, initialize an object, add this request, - and send <[FBRequestConnection start]>. See other methods on this - class for shortcuts to simplify this process. - - @param session The session object representing the identity of the Facebook user making - the request. A nil value indicates a request that requires no token; to - use the active session pass `[FBSession activeSession]`. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param parameters The parameters for the request. A value of nil sends only the automatically handled - parameters, for example, the access token. The default is nil. - - @param HTTPMethod The HTTP method to use for the request. The default is value of nil implies a GET. - */ -- (instancetype)initWithSession:(FBSession *)session - graphPath:(NSString *)graphPath - parameters:(NSDictionary *)parameters - HTTPMethod:(NSString *)HTTPMethod; - -/*! - @method - @abstract - Initialize a `FBRequest` object that will do a graph request. - - @discussion - Note that this only sets properties on the `FBRequest`. - - To send the request, initialize a , add this request, - and send <[FBRequestConnection start]>. See other methods on this - class for shortcuts to simplify this process. - - @param session The session object representing the identity of the Facebook user making - the request. A nil value indicates a request that requires no token; to - use the active session pass `[FBSession activeSession]`. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param graphObject An object or open graph action to post. - */ -- (instancetype)initForPostWithSession:(FBSession *)session - graphPath:(NSString *)graphPath - graphObject:(id)graphObject; - -/*! - @abstract - The parameters for the request. - - @discussion - May be used to read the parameters that were automatically set during - the object initiliazation. Make any required modifications prior to - sending the request. - - `NSString` parameters are used to generate URL parameter values or JSON - parameters. `NSData` and `UIImage` parameters are added as attachments - to the HTTP body and referenced by name in the URL and/or JSON. - */ -@property (nonatomic, retain, readonly) NSMutableDictionary *parameters; - -/*! - @abstract - The session object to use for the request. - - @discussion - May be used to read the session that was automatically set during - the object initiliazation. Make any required modifications prior to - sending the request. - */ -@property (nonatomic, retain) FBSession *session; - -/*! - @abstract - The Graph API endpoint to use for the request, for example "me". - - @discussion - May be used to read the Graph API endpoint that was automatically set during - the object initiliazation. Make any required modifications prior to - sending the request. - */ -@property (nonatomic, copy) NSString *graphPath; - -/*! - @abstract - The HTTPMethod to use for the request, for example "GET" or "POST". - - @discussion - May be used to read the HTTP method that was automatically set during - the object initiliazation. Make any required modifications prior to - sending the request. - */ -@property (nonatomic, copy) NSString *HTTPMethod; - -/*! - @abstract - The graph object to post with the request. - - @discussion - May be used to read the graph object that was automatically set during - the object initiliazation. Make any required modifications prior to - sending the request. - */ -@property (nonatomic, retain) id graphObject; - -/*! - @methodgroup Instance methods - */ - -/*! - @method - - @abstract - Overrides the default version for a single request - - @discussion - The SDK automatically prepends a version part, such as "v2.0" to API paths in order to simplify API versioning - for applications. Sometimes it is preferable to explicitly set the version for a request, which can be - accomplished in one of two ways. The first is to call this method and set an override version part. The second - is approach is to include the version part in the api path, for example @"v2.0/me/friends" - - @param version This is a string in the form @"v2.0" which will be used for the version part of an API path - */ -- (void)overrideVersionPartWith:(NSString *)version; - -/*! - @method - - @abstract - Starts a connection to the Facebook API. - - @discussion - This is used to start an API call to Facebook and call the block when the - request completes with a success, error, or cancel. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - The handler will be invoked on the main thread. - */ -- (FBRequestConnection *)startWithCompletionHandler:(FBRequestHandler)handler; - -/*! - @methodgroup FBRequestConnection start methods - - @abstract - These methods start an . - - @discussion - These methods simplify the process of preparing a request and starting - the connection. The methods handle initializing an `FBRequest` object, - initializing a object, adding the `FBRequest` - object to the to the , and finally starting the - connection. - */ - -/*! - @methodgroup FBRequest factory methods - - @abstract - These methods initialize a `FBRequest` for common scenarios. - - @discussion - These simplify the process of preparing a request to send. These - initialize a `FBRequest` based on strongly typed parameters that are - specific to the scenario. - - These method do not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - */ - -// request -// -// Summary: -// Helper methods used to create common request objects which can be used to create single or batch connections -// -// session: - the session object representing the identity of the -// Facebook user making the request; nil implies an -// unauthenticated request; default=nil - -/*! - @method - - @abstract - Creates a request representing a Graph API call to the "me" endpoint, using the active session. - - @discussion - Simplifies preparing a request to retrieve the user's identity. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - A successful Graph API call will return an object representing the - user's identity. - - Note you may change the session property after construction if a session other than - the active session is preferred. - */ -+ (FBRequest *)requestForMe; - -/*! - @method - - @abstract - Creates a request representing a Graph API call to the "me/friends" endpoint using the active session. - - @discussion - Simplifies preparing a request to retrieve the user's friends. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - A successful Graph API call will return an array of objects representing the - user's friends. - */ -+ (FBRequest *)requestForMyFriends; - -/*! - @method - - @abstract - Creates a request representing a Graph API call to upload a photo to the app's album using the active session. - - @discussion - Simplifies preparing a request to post a photo. - - To post a photo to a specific album, get the `FBRequest` returned from this method - call, then modify the request parameters by adding the album ID to an "album" key. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param photo A `UIImage` for the photo to upload. - */ -+ (FBRequest *)requestForUploadPhoto:(UIImage *)photo; - -/*! - @method - - @abstract - Creates a request representing a status update. - - @discussion - Simplifies preparing a request to post a status update. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param message The message to post. - */ -+ (FBRequest *)requestForPostStatusUpdate:(NSString *)message; - -/*! - @method - - @abstract - Creates a request representing a status update. - - @discussion - Simplifies preparing a request to post a status update. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param message The message to post. - @param place The place to checkin with, or nil. Place may be an fbid or a - graph object representing a place. - @param tags Array of friends to tag in the status update, each element - may be an fbid or a graph object representing a user. - */ -+ (FBRequest *)requestForPostStatusUpdate:(NSString *)message - place:(id)place - tags:(id)tags; - -/*! - @method - - @abstract - Creates a request representing a Graph API call to the "search" endpoint - for a given location using the active session. - - @discussion - Simplifies preparing a request to search for places near a coordinate. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - A successful Graph API call will return an array of objects representing - the nearby locations. - - @param coordinate The search coordinates. - - @param radius The search radius in meters. - - @param limit The maxiumum number of results to return. It is - possible to receive fewer than this because of the radius and because of server limits. - - @param searchText The text to use in the query to narrow the set of places - returned. - */ -+ (FBRequest *)requestForPlacesSearchAtCoordinate:(CLLocationCoordinate2D)coordinate - radiusInMeters:(NSInteger)radius - resultsLimit:(NSInteger)limit - searchText:(NSString *)searchText; - -/*! - @method - - @abstract - Creates a request representing the Graph API call to retrieve a Custom Audience "thirdy party ID" for the app's Facebook user. - Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, - and then use the resultant Custom Audience to target ads. - - @param session The FBSession to use to establish the user's identity for users logged into Facebook through this app. - If `nil`, then the activeSession is used. - - @discussion - This method will throw an exception if <[FBSettings defaultAppID]> is `nil`. The appID won't be nil when the pList - includes the appID, or if it's explicitly set. - - The JSON in the request's response will include an "custom_audience_third_party_id" key/value pair, with the value being the ID retrieved. - This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. - Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior - across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences. - - The ID retrieved represents the Facebook user identified in the following way: if the specified session (or activeSession if the specified - session is `nil`) is open, the ID will represent the user associated with the activeSession; otherwise the ID will represent the user logged into the - native Facebook app on the device. If there is no native Facebook app, no one is logged into it, or the user has opted out - at the iOS level from ad tracking, then a `nil` ID will be returned. - - This method returns `nil` if either the user has opted-out (via iOS) from Ad Tracking, the app itself has limited event usage - via the `[FBAppEvents setLimitEventUsage]` flag, or a specific Facebook user cannot be identified. - */ -+ (FBRequest *)requestForCustomAudienceThirdPartyID:(FBSession *)session; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to make a Graph API call for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - */ -+ (FBRequest *)requestForGraphPath:(NSString *)graphPath; - -/*! - @method - - @abstract - Creates request representing a DELETE to a object. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param object This can be an NSString, NSNumber or NSDictionary representing an object to delete - */ -+ (FBRequest *)requestForDeleteObject:(id)object; - -/*! - @method - - @abstract - Creates a request representing a POST for a graph object. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param graphObject An object or open graph action to post. - - @discussion This method is typically used for posting an open graph action. If you are only - posting an open graph object (without an action), consider using `requestForPostOpenGraphObject:` - */ -+ (FBRequest *)requestForPostWithGraphPath:(NSString *)graphPath - graphObject:(id)graphObject; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to make a Graph API call for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param parameters The parameters for the request. A value of nil sends only the automatically handled parameters, for example, the access token. The default is nil. - - @param HTTPMethod The HTTP method to use for the request. A nil value implies a GET. - */ -+ (FBRequest *)requestWithGraphPath:(NSString *)graphPath - parameters:(NSDictionary *)parameters - HTTPMethod:(NSString *)HTTPMethod; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to create a user owned - Open Graph object for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param object The Open Graph object to create. Some common expected fields include "title", "image", "url", etc. - */ -+ (FBRequest *)requestForPostOpenGraphObject:(id)object; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to create a user owned - Open Graph object for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param type The fully-specified Open Graph object type (e.g., my_app_namespace:my_object_name) - @param title The title of the Open Graph object. - @param image The link to an image to be associated with the Open Graph object. - @param url The url to be associated with the Open Graph object. - @param description The description to be associated with the object. - @param objectProperties Any additional properties for the Open Graph object. - */ -+ (FBRequest *)requestForPostOpenGraphObjectWithType:(NSString *)type - title:(NSString *)title - image:(id)image - url:(id)url - description:(NSString *)description - objectProperties:(NSDictionary *)objectProperties; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to update a user owned - Open Graph object for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param object The Open Graph object to update the existing object with. - */ -+ (FBRequest *)requestForUpdateOpenGraphObject:(id)object; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to update a user owned - Open Graph object for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param objectId The id of the Open Graph object to update. - @param title The updated title of the Open Graph object. - @param image The updated link to an image to be associated with the Open Graph object. - @param url The updated url to be associated with the Open Graph object. - @param description The updated description of the Open Graph object. - @param objectProperties Any additional properties to update for the Open Graph object. - */ -+ (FBRequest *)requestForUpdateOpenGraphObjectWithId:(id)objectId - title:(NSString *)title - image:(id)image - url:(id)url - description:(NSString *)description - objectProperties:(NSDictionary *)objectProperties; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to upload an image - to create a staging resource. Staging resources allow you to post binary data - such as images, in preparation for a post of an open graph object or action - which references the image. The URI returned when uploading a staging resource - may be passed as the image property for an open graph object or action. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param image A `UIImage` for the image to upload. - */ -+ (FBRequest *)requestForUploadStagingResourceWithImage:(UIImage *)image; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequestConnection.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequestConnection.h deleted file mode 100644 index 2f7cbae..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequestConnection.h +++ /dev/null @@ -1,760 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBGraphObject.h" -#import "FBSDKMacros.h" - -// up-front decl's -@class FBRequest; -@class FBRequestConnection; -@class FBSession; -@class UIImage; - - -/*! - @attribute beta true - - @typedef FBRequestConnectionErrorBehavior enum - - @abstract Describes what automatic error handling behaviors to provide (if any). - - @discussion This is a bitflag enum that can be composed of different values. - - See FBError.h and FBErrorUtility.h for error category and user message details. - */ -typedef NS_ENUM(NSUInteger, FBRequestConnectionErrorBehavior) { - /*! The default behavior of none */ - FBRequestConnectionErrorBehaviorNone = 0, - - /*! This will retry any requests whose error category is classified as `FBErrorCategoryRetry`. - If the retry fails, the normal handler is invoked. */ - FBRequestConnectionErrorBehaviorRetry = 1, - - /*! This will automatically surface any SDK provided userMessage (at most one), after - retry attempts, but before any reconnects are tried. The alert will have one button - whose text can be localized with the key "FBE:AlertMessageButton". - - You should not display your own alert views in your request handler when specifying this - behavior. - */ - FBRequestConnectionErrorBehaviorAlertUser = 2, - - /*! This will automatically reconnect a session if the request failed due to an invalid token - that would otherwise close the session (such as an expired token or password change). Note - this will NOT reconnect a session if the user had uninstalled the app, or if the user had - disabled the app's slider in their privacy settings (in cases of iOS 6 system auth). - If the session is reconnected, this will transition the session state to FBSessionStateTokenExtended - which will invoke any state change handlers. Otherwise, the session is closed as normal. - - This behavior should not be used if the FBRequestConnection contains multiple - session instances. Further, when this behavior is used, you must not request new permissions - for the session until the connection is completed. - - Lastly, you should avoid using additional FBRequestConnections with the same session because - that will be subject to race conditions. - */ - FBRequestConnectionErrorBehaviorReconnectSession = 4, -}; - -/*! - Normally requests return JSON data that is parsed into a set of `NSDictionary` - and `NSArray` objects. - - When a request returns a non-JSON response, that response is packaged in - a `NSDictionary` using FBNonJSONResponseProperty as the key and the literal - response as the value. - */ -FBSDK_EXTERN NSString *const FBNonJSONResponseProperty; - -/*! - @typedef FBRequestHandler - - @abstract - A block that is passed to addRequest to register for a callback with the results of that - request once the connection completes. - - @discussion - Pass a block of this type when calling addRequest. This will be called once - the request completes. The call occurs on the UI thread. - - @param connection The `FBRequestConnection` that sent the request. - - @param result The result of the request. This is a translation of - JSON data to `NSDictionary` and `NSArray` objects. This - is nil if there was an error. - - @param error The `NSError` representing any error that occurred. - - */ -typedef void (^FBRequestHandler)(FBRequestConnection *connection, - id result, - NSError *error); - -/*! - @protocol - - @abstract - The `FBRequestConnectionDelegate` protocol defines the methods used to receive network - activity progress information from a . - */ -@protocol FBRequestConnectionDelegate - -@optional - -/*! - @method - - @abstract - Tells the delegate the request connection will begin loading - - @discussion - If the is created using one of the convenience factory methods prefixed with - start, the object returned from the convenience method has already begun loading and this method - will not be called when the delegate is set. - - @param connection The request connection that is starting a network request - @param isCached YES if the request can be fulfilled using cached data, otherwise NO indicating - the result will require a network request. - */ -- (void)requestConnectionWillBeginLoading:(FBRequestConnection *)connection - fromCache:(BOOL)isCached; - -/*! - @method - - @abstract - Tells the delegate the request connection finished loading - - @discussion - If the request connection completes without a network error occuring then this method is called. - Invocation of this method does not indicate success of every made, only that the - request connection has no further activity. Use the error argument passed to the FBRequestHandler - block to determine success or failure of each . - - This method is invoked after the completion handler for each . - - @param connection The request connection that successfully completed a network request - @param isCached YES if the request was fulfilled using cached data, otherwise NO indicating - a network request was completed. - */ -- (void)requestConnectionDidFinishLoading:(FBRequestConnection *)connection - fromCache:(BOOL)isCached; - -/*! - @method - - @abstract - Tells the delegate the request connection failed with an error - - @discussion - If the request connection fails with a network error then this method is called. The `error` - argument specifies why the network connection failed. The `NSError` object passed to the - FBRequestHandler block may contain additional information. - - This method is invoked after the completion handler for each and only if a network - request was made. If the request was fulfilled using cached data, this method is not called. - - @param connection The request connection that successfully completed a network request - @param error The `NSError` representing the network error that occurred, if any. May be nil - in some circumstances. Consult the `NSError` for the for reliable - failure information. - */ -- (void)requestConnection:(FBRequestConnection *)connection - didFailWithError:(NSError *)error; - -/*! - @method - - @abstract - Tells the delegate the request connection is going to retry some network operations - - @discussion - If some fail, may create a new instance to retry the failed - requests. This method is called before the new instance is started. You must set the delegate - property on `retryConnection` to continue to receive progress information. If a delegate is - set on `retryConnection` then -requestConnectionWillBeginLoading: will be invoked. - - This method is invoked after the completion handler for each and only if a network - request was made. If the request was fulfilled using cached data, this method is not called. - - @param connection The request connection that successfully completed a network request - @param retryConnection The new request connection that will retry the failed s - */ -- (void) requestConnection:(FBRequestConnection *)connection -willRetryWithRequestConnection:(FBRequestConnection *)retryConnection; - -/*! - @method - - @abstract - Tells the delegate how much data has been sent and is planned to send to the remote host - - @discussion - The byte count arguments refer to the aggregated objects, not a particular . - - Like `NSURLConnection`, the values may change in unexpected ways if data needs to be resent. - - @param connection The request connection transmitting data to a remote host - @param bytesWritten The number of bytes sent in the last transmission - @param totalBytesWritten The total number of bytes sent to the remote host - @param totalBytesExpectedToWrite The total number of bytes expected to send to the remote host - */ -- (void)requestConnection:(FBRequestConnection *)connection - didSendBodyData:(NSInteger)bytesWritten - totalBytesWritten:(NSInteger)totalBytesWritten -totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; - -@end - -/*! - @class FBRequestConnection - - @abstract - The `FBRequestConnection` represents a single connection to Facebook to service a request. - - @discussion - The request settings are encapsulated in a reusable object. The - `FBRequestConnection` object encapsulates the concerns of a single communication - e.g. starting a connection, canceling a connection, or batching requests. - - */ -@interface FBRequestConnection : NSObject - -/*! - @methodgroup Creating a request - */ - -/*! - @method - - Calls with a default timeout of 180 seconds. - */ -- (instancetype)init; - -/*! - @method - - @abstract - `FBRequestConnection` objects are used to issue one or more requests as a single - request/response connection with Facebook. - - @discussion - For a single request, the usual method for creating an `FBRequestConnection` - object is to call one of the **start* ** methods on . However, it is - allowable to init an `FBRequestConnection` object directly, and call - to add one or more request objects to the - connection, before calling start. - - Note that if requests are part of a batch, they must have an open - FBSession that has an access token associated with it. Alternatively a default App ID - must be set either in the plist or through an explicit call to <[FBSession defaultAppID]>. - - @param timeout The `NSTimeInterval` (seconds) to wait for a response before giving up. - */ - -- (instancetype)initWithTimeout:(NSTimeInterval)timeout; - -// properties - -/*! - @abstract - The request that will be sent to the server. - - @discussion - This property can be used to create a `NSURLRequest` without using - `FBRequestConnection` to send that request. It is legal to set this property - in which case the provided `NSMutableURLRequest` will be used instead. However, - the `NSMutableURLRequest` must result in an appropriate response. Furthermore, once - this property has been set, no more objects can be added to this - `FBRequestConnection`. - */ -@property (nonatomic, retain, readwrite) NSMutableURLRequest *urlRequest; - -/*! - @abstract - The raw response that was returned from the server. (readonly) - - @discussion - This property can be used to inspect HTTP headers that were returned from - the server. - - The property is nil until the request completes. If there was a response - then this property will be non-nil during the FBRequestHandler callback. - */ -@property (nonatomic, retain, readonly) NSHTTPURLResponse *urlResponse; - -/*! - @attribute beta true - - @abstract Set the automatic error handling behaviors. - @discussion - - This must be set before any requests are added. - - When using retry behaviors, note the FBRequestConnection instance - passed to the FBRequestHandler may be a different instance that the - one the requests were originally started on. - */ -@property (nonatomic, assign) FBRequestConnectionErrorBehavior errorBehavior; - -@property (nonatomic, assign) id delegate; - -/*! - @methodgroup Adding requests - */ - -/*! - @method - - @abstract - This method adds an object to this connection. - - @discussion - The completion handler is retained until the block is called upon the - completion or cancellation of the connection. - - @param request A request to be included in the round-trip when start is called. - @param handler A handler to call back when the round-trip completes or times out. - The handler will be invoked on the main thread. - */ -- (void)addRequest:(FBRequest *)request - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - This method adds an object to this connection. - - @discussion - The completion handler is retained until the block is called upon the - completion or cancellation of the connection. This request can be named - to allow for using the request's response in a subsequent request. - - @param request A request to be included in the round-trip when start is called. - - @param handler A handler to call back when the round-trip completes or times out. - The handler will be invoked on the main thread. - - @param name An optional name for this request. This can be used to feed - the results of one request to the input of another in the same - `FBRequestConnection` as described in - [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). - */ -- (void)addRequest:(FBRequest *)request - completionHandler:(FBRequestHandler)handler - batchEntryName:(NSString *)name; - -/*! - @method - - @abstract - This method adds an object to this connection. - - @discussion - The completion handler is retained until the block is called upon the - completion or cancellation of the connection. This request can be named - to allow for using the request's response in a subsequent request. - - @param request A request to be included in the round-trip when start is called. - - @param handler A handler to call back when the round-trip completes or times out. - - @param batchParameters The optional dictionary of parameters to include for this request - as described in [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). - Examples include "depends_on", "name", or "omit_response_on_success". - */ -- (void)addRequest:(FBRequest *)request - completionHandler:(FBRequestHandler)handler - batchParameters:(NSDictionary *)batchParameters; - -/*! - @methodgroup Instance methods - */ - -/*! - @method - - @abstract - This method starts a connection with the server and is capable of handling all of the - requests that were added to the connection. - - @discussion - Errors are reported via the handler callback, even in cases where no - communication is attempted by the implementation of `FBRequestConnection`. In - such cases multiple error conditions may apply, and if so the following - priority (highest to lowest) is used: - - - `FBRequestConnectionInvalidRequestKey` -- this error is reported when an - cannot be encoded for transmission. - - - `FBRequestConnectionInvalidBatchKey` -- this error is reported when any - request in the connection cannot be encoded for transmission with the batch. - In this scenario all requests fail. - - This method cannot be called twice for an `FBRequestConnection` instance. - */ -- (void)start; - -/*! - @method - - @abstract - Signals that a connection should be logically terminated as the - application is no longer interested in a response. - - @discussion - Synchronously calls any handlers indicating the request was cancelled. Cancel - does not guarantee that the request-related processing will cease. It - does promise that all handlers will complete before the cancel returns. A call to - cancel prior to a start implies a cancellation of all requests associated - with the connection. - */ -- (void)cancel; - -/*! - @method - - @abstract - Overrides the default version for a batch request - - @discussion - The SDK automatically prepends a version part, such as "v2.0" to API paths in order to simplify API versioning - for applications. If you want to override the version part while using batch requests on the connection, call - this method to set the version for the batch request. - - @param version This is a string in the form @"v2.0" which will be used for the version part of an API path - */ -- (void)overrideVersionPartWith:(NSString *)version; - -/*! - @method - - @abstract - Simple method to make a graph API request for user info (/me), creates an - then uses an object to start the connection with Facebook. The - request uses the active session represented by `[FBSession activeSession]`. - - See - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForMeWithCompletionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to make a graph API request for user friends (/me/friends), creates an - then uses an object to start the connection with Facebook. The - request uses the active session represented by `[FBSession activeSession]`. - - See - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForMyFriendsWithCompletionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to make a graph API post of a photo. The request - uses the active session represented by `[FBSession activeSession]`. - - @param photo A `UIImage` for the photo to upload. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForUploadPhoto:(UIImage *)photo - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to make a graph API post of a status update. The request - uses the active session represented by `[FBSession activeSession]`. - - @param message The message to post. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForPostStatusUpdate:(NSString *)message - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to make a graph API post of a status update. The request - uses the active session represented by `[FBSession activeSession]`. - - @param message The message to post. - @param place The place to checkin with, or nil. Place may be an fbid or a - graph object representing a place. - @param tags Array of friends to tag in the status update, each element - may be an fbid or a graph object representing a user. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForPostStatusUpdate:(NSString *)message - place:(id)place - tags:(id)tags - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Starts a request representing a Graph API call to the "search" endpoint - for a given location using the active session. - - @discussion - Simplifies starting a request to search for places near a coordinate. - - This method creates the necessary object and initializes and - starts an object. A successful Graph API call will - return an array of objects representing the nearby locations. - - @param coordinate The search coordinates. - - @param radius The search radius in meters. - - @param limit The maxiumum number of results to return. It is - possible to receive fewer than this because of the - radius and because of server limits. - - @param searchText The text to use in the query to narrow the set of places - returned. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForPlacesSearchAtCoordinate:(CLLocationCoordinate2D)coordinate - radiusInMeters:(NSInteger)radius - resultsLimit:(NSInteger)limit - searchText:(NSString *)searchText - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Starts a request representing the Graph API call to retrieve a Custom Audience "third party ID" for the app's Facebook user. - Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, - and then use the resultant Custom Audience to target ads. - - @param session The FBSession to use to establish the user's identity for users logged into Facebook through this app. - If `nil`, then the activeSession is used. - - @discussion - This method will throw an exception if <[FBSettings defaultAppID]> is `nil`. The appID won't be nil when the pList - includes the appID, or if it's explicitly set. - - The JSON in the request's response will include an "custom_audience_third_party_id" key/value pair, with the value being the ID retrieved. - This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. - Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior - across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences. - - The ID retrieved represents the Facebook user identified in the following way: if the specified session (or activeSession if the specified - session is `nil`) is open, the ID will represent the user associated with the activeSession; otherwise the ID will represent the user logged into the - native Facebook app on the device. If there is no native Facebook app, no one is logged into it, or the user has opted out - at the iOS level from ad tracking, then a `nil` ID will be returned. - - This method returns `nil` if either the user has opted-out (via iOS) from Ad Tracking, the app itself has limited event usage - via the `[FBAppEvents setLimitEventUsage]` flag, or a specific Facebook user cannot be identified. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForCustomAudienceThirdPartyID:(FBSession *)session - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to make a graph API request, creates an object for HTTP GET, - then uses an object to start the connection with Facebook. The - request uses the active session represented by `[FBSession activeSession]`. - - See - - @param graphPath The Graph API endpoint to use for the request, for example "me". - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startWithGraphPath:(NSString *)graphPath - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to delete an object using the graph API, creates an object for - HTTP DELETE, then uses an object to start the connection with Facebook. - The request uses the active session represented by `[FBSession activeSession]`. - - @param object The object to delete, may be an NSString or NSNumber representing an fbid or an NSDictionary with an id property - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForDeleteObject:(id)object - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to post an object using the graph API, creates an object for - HTTP POST, then uses to start a connection with Facebook. The request uses - the active session represented by `[FBSession activeSession]`. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param graphObject An object or open graph action to post. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - - @discussion This method is typically used for posting an open graph action. If you are only - posting an open graph object (without an action), consider using `startForPostOpenGraphObject:completionHandler:` - */ -+ (FBRequestConnection *)startForPostWithGraphPath:(NSString *)graphPath - graphObject:(id)graphObject - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Creates an `FBRequest` object for a Graph API call, instantiate an - object, add the request to the newly created - connection and finally start the connection. Use this method for - specifying the request parameters and HTTP Method. The request uses - the active session represented by `[FBSession activeSession]`. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param parameters The parameters for the request. A value of nil sends only the automatically handled parameters, for example, the access token. The default is nil. - - @param HTTPMethod The HTTP method to use for the request. A nil value implies a GET. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startWithGraphPath:(NSString *)graphPath - parameters:(NSDictionary *)parameters - HTTPMethod:(NSString *)HTTPMethod - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Creates an `FBRequest` for creating a user owned Open Graph object, instantiate a - object, add the request to the newly created - connection and finally start the connection. The request uses - the active session represented by `[FBSession activeSession]`. - - @param object The Open Graph object to create. Some common expected fields include "title", "image", "url", etc. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForPostOpenGraphObject:(id)object - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Creates an `FBRequest` for creating a user owned Open Graph object, instantiate a - object, add the request to the newly created - connection and finally start the connection. The request uses - the active session represented by `[FBSession activeSession]`. - - @param type The fully-specified Open Graph object type (e.g., my_app_namespace:my_object_name) - @param title The title of the Open Graph object. - @param image The link to an image to be associated with the Open Graph object. - @param url The url to be associated with the Open Graph object. - @param description The description for the object. - @param objectProperties Any additional properties for the Open Graph object. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForPostOpenGraphObjectWithType:(NSString *)type - title:(NSString *)title - image:(id)image - url:(id)url - description:(NSString *)description - objectProperties:(NSDictionary *)objectProperties - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Creates an `FBRequest` for updating a user owned Open Graph object, instantiate a - object, add the request to the newly created - connection and finally start the connection. The request uses - the active session represented by `[FBSession activeSession]`. - - @param object The Open Graph object to update the existing object with. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForUpdateOpenGraphObject:(id)object - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Creates an `FBRequest` for updating a user owned Open Graph object, instantiate a - object, add the request to the newly created - connection and finally start the connection. The request uses - the active session represented by `[FBSession activeSession]`. - - @param objectId The id of the Open Graph object to update. - @param title The updated title of the Open Graph object. - @param image The updated link to an image to be associated with the Open Graph object. - @param url The updated url to be associated with the Open Graph object. - @param description The object's description. - @param objectProperties Any additional properties to update for the Open Graph object. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForUpdateOpenGraphObjectWithId:(id)objectId - title:(NSString *)title - image:(id)image - url:(id)url - description:(NSString *)description - objectProperties:(NSDictionary *)objectProperties - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Starts a request connection to upload an image - to create a staging resource. Staging resources allow you to post binary data - such as images, in preparation for a post of an open graph object or action - which references the image. The URI returned when uploading a staging resource - may be passed as the value for the image property of an open graph object or action. - - @discussion - This method simplifies the preparation of a Graph API call be creating the FBRequest - object and starting the request connection with a single method - - @param image A `UIImage` for the image to upload. - @param handler The handler block to call when the request completes. - */ -+ (FBRequestConnection *)startForUploadStagingResourceWithImage:(UIImage *)image - completionHandler:(FBRequestHandler)handler; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSDKMacros.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSDKMacros.h deleted file mode 100644 index 2faed4e..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSDKMacros.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#ifdef __cplusplus -#define FBSDK_EXTERN extern "C" __attribute__((visibility ("default"))) -#else -#define FBSDK_EXTERN extern __attribute__((visibility ("default"))) -#endif - -#define FBSDK_STATIC_INLINE static inline diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSession.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSession.h deleted file mode 100644 index 26bf7a1..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSession.h +++ /dev/null @@ -1,819 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBSDKMacros.h" - -// up-front decl's -@class FBAccessTokenData; -@class FBSession; -@class FBSessionTokenCachingStrategy; - -#define FB_SESSIONSTATETERMINALBIT (1 << 8) - -#define FB_SESSIONSTATEOPENBIT (1 << 9) - -/* - * Constants used by NSNotificationCenter for active session notification - */ - -/*! NSNotificationCenter name indicating that a new active session was set */ -FBSDK_EXTERN NSString *const FBSessionDidSetActiveSessionNotification; - -/*! NSNotificationCenter name indicating that an active session was unset */ -FBSDK_EXTERN NSString *const FBSessionDidUnsetActiveSessionNotification; - -/*! NSNotificationCenter name indicating that the active session is open */ -FBSDK_EXTERN NSString *const FBSessionDidBecomeOpenActiveSessionNotification; - -/*! NSNotificationCenter name indicating that there is no longer an open active session */ -FBSDK_EXTERN NSString *const FBSessionDidBecomeClosedActiveSessionNotification; - -/*! - @typedef FBSessionState enum - - @abstract Passed to handler block each time a session state changes - - @discussion - */ -typedef NS_ENUM(NSUInteger, FBSessionState) { - /*! One of two initial states indicating that no valid cached token was found */ - FBSessionStateCreated = 0, - /*! One of two initial session states indicating that a cached token was loaded; - when a session is in this state, a call to open* will result in an open session, - without UX or app-switching*/ - FBSessionStateCreatedTokenLoaded = 1, - /*! One of three pre-open session states indicating that an attempt to open the session - is underway*/ - FBSessionStateCreatedOpening = 2, - - /*! Open session state indicating user has logged in or a cached token is available */ - FBSessionStateOpen = 1 | FB_SESSIONSTATEOPENBIT, - /*! Open session state indicating token has been extended, or the user has granted additional permissions */ - FBSessionStateOpenTokenExtended = 2 | FB_SESSIONSTATEOPENBIT, - - /*! Closed session state indicating that a login attempt failed */ - FBSessionStateClosedLoginFailed = 1 | FB_SESSIONSTATETERMINALBIT, // NSError obj w/more info - /*! Closed session state indicating that the session was closed, but the users token - remains cached on the device for later use */ - FBSessionStateClosed = 2 | FB_SESSIONSTATETERMINALBIT, // " -}; - -/*! helper macro to test for states that imply an open session */ -#define FB_ISSESSIONOPENWITHSTATE(state) (0 != (state & FB_SESSIONSTATEOPENBIT)) - -/*! helper macro to test for states that are terminal */ -#define FB_ISSESSIONSTATETERMINAL(state) (0 != (state & FB_SESSIONSTATETERMINALBIT)) - -/*! - @typedef FBSessionLoginBehavior enum - - @abstract - Passed to open to indicate whether Facebook Login should allow for fallback to be attempted. - - @discussion - Facebook Login authorizes the application to act on behalf of the user, using the user's - Facebook account. Usually a Facebook Login will rely on an account maintained outside of - the application, by the native Facebook application, the browser, or perhaps the device - itself. This avoids the need for a user to enter their username and password directly, and - provides the most secure and lowest friction way for a user to authorize the application to - interact with Facebook. If a Facebook Login is not possible, a fallback Facebook Login may be - attempted, where the user is prompted to enter their credentials in a web-view hosted directly - by the application. - - The `FBSessionLoginBehavior` enum specifies whether to allow fallback, disallow fallback, or - force fallback login behavior. Most applications will use the default, which attempts a normal - Facebook Login, and only falls back if needed. In rare cases, it may be preferable to disallow - fallback Facebook Login completely, or to force a fallback login. - */ -typedef NS_ENUM(NSUInteger, FBSessionLoginBehavior) { - /*! Attempt Facebook Login, ask user for credentials if necessary */ - FBSessionLoginBehaviorWithFallbackToWebView = 0, - /*! Attempt Facebook Login, no direct request for credentials will be made */ - FBSessionLoginBehaviorWithNoFallbackToWebView = 1, - /*! Only attempt WebView Login; ask user for credentials */ - FBSessionLoginBehaviorForcingWebView = 2, - /*! Attempt Facebook Login, prefering system account and falling back to fast app switch if necessary */ - FBSessionLoginBehaviorUseSystemAccountIfPresent = 3, - /*! Attempt only to login with Safari */ - FBSessionLoginBehaviorForcingSafari = 4, -}; - -/*! - @typedef FBSessionDefaultAudience enum - - @abstract - Passed to open to indicate which default audience to use for sessions that post data to Facebook. - - @discussion - Certain operations such as publishing a status or publishing a photo require an audience. When the user - grants an application permission to perform a publish operation, a default audience is selected as the - publication ceiling for the application. This enumerated value allows the application to select which - audience to ask the user to grant publish permission for. - */ -typedef NS_ENUM(NSUInteger, FBSessionDefaultAudience) { - /*! No audience needed; this value is useful for cases where data will only be read from Facebook */ - FBSessionDefaultAudienceNone = 0, - /*! Indicates that only the user is able to see posts made by the application */ - FBSessionDefaultAudienceOnlyMe = 10, - /*! Indicates that the user's friends are able to see posts made by the application */ - FBSessionDefaultAudienceFriends = 20, - /*! Indicates that all Facebook users are able to see posts made by the application */ - FBSessionDefaultAudienceEveryone = 30, -}; - -/*! - @typedef FBSessionLoginType enum - - @abstract - Used as the type of the loginType property in order to specify what underlying technology was used to - login the user. - - @discussion - The FBSession object is an abstraction over five distinct mechanisms. This enum allows an application - to test for the mechanism used by a particular instance of FBSession. Usually the mechanism used for a - given login does not matter, however for certain capabilities, the type of login can impact the behavior - of other Facebook functionality. - */ -typedef NS_ENUM(NSUInteger, FBSessionLoginType) { - /*! A login type has not yet been established */ - FBSessionLoginTypeNone = 0, - /*! A system integrated account was used to log the user into the application */ - FBSessionLoginTypeSystemAccount = 1, - /*! The Facebook native application was used to log the user into the application */ - FBSessionLoginTypeFacebookApplication = 2, - /*! Safari was used to log the user into the application */ - FBSessionLoginTypeFacebookViaSafari = 3, - /*! A web view was used to log the user into the application */ - FBSessionLoginTypeWebView = 4, - /*! A test user was used to create an open session */ - FBSessionLoginTypeTestUser = 5, -}; - -/*! - @typedef - - @abstract Block type used to define blocks called by for state updates - @discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/ - for error handling best practices. - - Requesting additional permissions inside this handler (such as by calling - `requestNewPublishPermissions`) should be avoided because it is a poor user - experience and its behavior may vary depending on the login type. You should - request the permissions closer to the operation that requires it (e.g., when - the user performs some action). - */ -typedef void (^FBSessionStateHandler)(FBSession *session, - FBSessionState status, - NSError *error); - -/*! - @typedef - - @abstract Block type used to define blocks called by <[FBSession requestNewReadPermissions:completionHandler:]> - and <[FBSession requestNewPublishPermissions:defaultAudience:completionHandler:]>. - - @discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/ - for error handling best practices. - - Requesting additional permissions inside this handler (such as by calling - `requestNewPublishPermissions`) should be avoided because it is a poor user - experience and its behavior may vary depending on the login type. You should - request the permissions closer to the operation that requires it (e.g., when - the user performs some action). - */ -typedef void (^FBSessionRequestPermissionResultHandler)(FBSession *session, - NSError *error); - -/*! - @typedef - - @abstract Block type used to define blocks called by <[FBSession reauthorizeWithPermissions]>. - - @discussion You should use the preferred FBSessionRequestPermissionHandler typedef rather than - this synonym, which has been deprecated. - */ -typedef FBSessionRequestPermissionResultHandler FBSessionReauthorizeResultHandler __attribute__((deprecated)); - -/*! - @typedef - - @abstract Block type used to define blocks called for system credential renewals. - @discussion - */ -typedef void (^FBSessionRenewSystemCredentialsHandler)(ACAccountCredentialRenewResult result, NSError *error) ; - -/*! - @class FBSession - - @abstract - The `FBSession` object is used to authenticate a user and manage the user's session. After - initializing a `FBSession` object the Facebook App ID and desired permissions are stored. - Opening the session will initiate the authentication flow after which a valid user session - should be available and subsequently cached. Closing the session can optionally clear the - cache. - - If an request requires user authorization then an `FBSession` object should be used. - - - @discussion - Instances of the `FBSession` class provide notification of state changes in the following ways: - - 1. Callers of certain `FBSession` methods may provide a block that will be called - back in the course of state transitions for the session (e.g. login or session closed). - - 2. The object supports Key-Value Observing (KVO) for property changes. - */ -@interface FBSession : NSObject - -/*! - @methodgroup Creating a session - */ - -/*! - @method - - @abstract - Returns a newly initialized Facebook session with default values for the parameters - to . - */ -- (instancetype)init; - -/*! - @method - - @abstract - Returns a newly initialized Facebook session with the specified permissions and other - default values for parameters to . - - @param permissions An array of strings representing the permissions to request during the - authentication flow. - - @discussion - It is required that any single permission request request (including initial log in) represent read-only permissions - or publish permissions only; not both. The permissions passed here should reflect this requirement. - - */ -- (instancetype)initWithPermissions:(NSArray *)permissions; - -/*! - @method - - @abstract - Following are the descriptions of the arguments along with their - defaults when ommitted. - - @param permissions An array of strings representing the permissions to request during the - authentication flow. - @param appID The Facebook App ID for the session. If nil is passed in the default App ID will be obtained from a call to <[FBSession defaultAppID]>. The default is nil. - @param urlSchemeSuffix The URL Scheme Suffix to be used in scenarious where multiple iOS apps use one Facebook App ID. A value of nil indicates that this information should be pulled from [FBSettings defaultUrlSchemeSuffix]. The default is nil. - @param tokenCachingStrategy Specifies a key name to use for cached token information in NSUserDefaults, nil - indicates a default value of @"FBAccessTokenInformationKey". - - @discussion - It is required that any single permission request request (including initial log in) represent read-only permissions - or publish permissions only; not both. The permissions passed here should reflect this requirement. - */ -- (instancetype)initWithAppID:(NSString *)appID - permissions:(NSArray *)permissions - urlSchemeSuffix:(NSString *)urlSchemeSuffix - tokenCacheStrategy:(FBSessionTokenCachingStrategy *)tokenCachingStrategy; - -/*! - @method - - @abstract - Following are the descriptions of the arguments along with their - defaults when ommitted. - - @param permissions An array of strings representing the permissions to request during the - authentication flow. - @param defaultAudience Most applications use FBSessionDefaultAudienceNone here, only specifying an audience when using reauthorize to request publish permissions. - @param appID The Facebook App ID for the session. If nil is passed in the default App ID will be obtained from a call to <[FBSession defaultAppID]>. The default is nil. - @param urlSchemeSuffix The URL Scheme Suffix to be used in scenarious where multiple iOS apps use one Facebook App ID. A value of nil indicates that this information should be pulled from [FBSettings defaultUrlSchemeSuffix]. The default is nil. - @param tokenCachingStrategy Specifies a key name to use for cached token information in NSUserDefaults, nil - indicates a default value of @"FBAccessTokenInformationKey". - - @discussion - It is required that any single permission request request (including initial log in) represent read-only permissions - or publish permissions only; not both. The permissions passed here should reflect this requirement. If publish permissions - are used, then the audience must also be specified. - */ -- (instancetype)initWithAppID:(NSString *)appID - permissions:(NSArray *)permissions - defaultAudience:(FBSessionDefaultAudience)defaultAudience - urlSchemeSuffix:(NSString *)urlSchemeSuffix - tokenCacheStrategy:(FBSessionTokenCachingStrategy *)tokenCachingStrategy; - -// instance readonly properties - -/*! @abstract Indicates whether the session is open and ready for use. */ -@property (readonly) BOOL isOpen; - -/*! @abstract Detailed session state */ -@property (readonly) FBSessionState state; - -/*! @abstract Identifies the Facebook app which the session object represents. */ -@property (readonly, copy) NSString *appID; - -/*! @abstract Identifies the URL Scheme Suffix used by the session. This is used when multiple iOS apps share a single Facebook app ID. */ -@property (readonly, copy) NSString *urlSchemeSuffix; - -/*! @abstract The access token for the session object. - @discussion Deprecated. Use the `accessTokenData` property. */ -@property(readonly, copy) NSString *accessToken -__attribute__((deprecated)); - -/*! @abstract The expiration date of the access token for the session object. - @discussion Deprecated. Use the `accessTokenData` property. */ -@property(readonly, copy) NSDate *expirationDate -__attribute__((deprecated)); - -/*! @abstract The permissions granted to the access token during the authentication flow. */ -@property (readonly, copy) NSArray *permissions; - -/*! @abstract Specifies the login type used to authenticate the user. - @discussion Deprecated. Use the `accessTokenData` property. */ -@property(readonly) FBSessionLoginType loginType -__attribute__((deprecated)); - -/*! @abstract Gets the FBAccessTokenData for the session */ -@property (readonly, copy) FBAccessTokenData *accessTokenData; - -/*! - @abstract - Returns a collection of permissions that have been declined by the user for this - given session instance. - - @discussion - A "declined" permission is one that had been requested but was either skipped or removed by - the user during the login flow. Note that once the permission has been granted (either by - requesting again or detected by a permissions refresh), it will be removed from this collection. - */ -@property (readonly, copy) NSArray *declinedPermissions; - -/*! - @methodgroup Instance methods - */ - -/*! - @method - - @abstract Opens a session for the Facebook. - - @discussion - A session may not be used with and other classes in the SDK until it is open. If, prior - to calling open, the session is in the state, then no UX occurs, and - the session becomes available for use. If the session is in the state, prior - to calling open, then a call to open causes login UX to occur, either via the Facebook application - or via mobile Safari. - - Open may be called at most once and must be called after the `FBSession` is initialized. Open must - be called before the session is closed. Calling an open method at an invalid time will result in - an exception. The open session methods may be passed a block that will be called back when the session - state changes. The block will be released when the session is closed. - - @param handler A block to call with the state changes. The default is nil. - */ -- (void)openWithCompletionHandler:(FBSessionStateHandler)handler; - -/*! - @method - - @abstract Logs a user on to Facebook. - - @discussion - A session may not be used with and other classes in the SDK until it is open. If, prior - to calling open, the session is in the state, then no UX occurs, and - the session becomes available for use. If the session is in the state, prior - to calling open, then a call to open causes login UX to occur, either via the Facebook application - or via mobile Safari. - - The method may be called at most once and must be called after the `FBSession` is initialized. It must - be called before the session is closed. Calling the method at an invalid time will result in - an exception. The open session methods may be passed a block that will be called back when the session - state changes. The block will be released when the session is closed. - - @param behavior Controls whether to allow, force, or prohibit Facebook Login or Inline Facebook Login. The default - is to allow Facebook Login, with fallback to Inline Facebook Login. - @param handler A block to call with session state changes. The default is nil. - */ -- (void)openWithBehavior:(FBSessionLoginBehavior)behavior - completionHandler:(FBSessionStateHandler)handler; - -/*! - @method - - @abstract Imports an existing access token and opens the session with it. - - @discussion - The method attempts to open the session using an existing access token. No UX will occur. If - successful, the session with be in an Open state and the method will return YES; otherwise, NO. - - The method may be called at most once and must be called after the `FBSession` is initialized (see below). - It must be called before the session is closed. Calling the method at an invalid time will result in - an exception. The open session methods may be passed a block that will be called back when the session - state changes. The block will be released when the session is closed. - - The initialized session must not have already been initialized from a cache (for example, you could use - the `[FBSessionTokenCachingStrategy nullCacheInstance]` instance). - - @param accessTokenData The token data. See `FBAccessTokenData` for construction methods. - @param handler A block to call with session state changes. The default is nil. - */ -- (BOOL)openFromAccessTokenData:(FBAccessTokenData *)accessTokenData completionHandler:(FBSessionStateHandler) handler; - -/*! - @abstract - Closes the local in-memory session object, but does not clear the persisted token cache. - */ -- (void)close; - -/*! - @abstract - Closes the in-memory session, and clears any persisted cache related to the session. - */ -- (void)closeAndClearTokenInformation; - -/*! - @abstract - Reauthorizes the session, with additional permissions. - - @param permissions An array of strings representing the permissions to request during the - authentication flow. A value of nil indicates basic permissions. The default is nil. - @param behavior Controls whether to allow, force, or prohibit Facebook Login. The default - is to allow Facebook Login and fall back to Inline Facebook Login if needed. - @param handler A block to call with session state changes. The default is nil. - - @discussion Methods and properties that specify permissions without a read or publish - qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred - (e.g. reauthorizeWithReadPermissions or reauthorizeWithPublishPermissions) - */ -- (void)reauthorizeWithPermissions:(NSArray *)permissions - behavior:(FBSessionLoginBehavior)behavior - completionHandler:(FBSessionReauthorizeResultHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Reauthorizes the session, with additional permissions. - - @param readPermissions An array of strings representing the permissions to request during the - authentication flow. A value of nil indicates basic permissions. - - @param handler A block to call with session state changes. The default is nil. - - @discussion This method is a deprecated alias of <[FBSession requestNewReadPermissions:completionHandler:]>. Consider - using <[FBSession requestNewReadPermissions:completionHandler:]>, which is preferred for readability. - */ -- (void)reauthorizeWithReadPermissions:(NSArray *)readPermissions - completionHandler:(FBSessionReauthorizeResultHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Reauthorizes the session, with additional permissions. - - @param writePermissions An array of strings representing the permissions to request during the - authentication flow. - - @param defaultAudience Specifies the audience for posts. - - @param handler A block to call with session state changes. The default is nil. - - @discussion This method is a deprecated alias of <[FBSession requestNewPublishPermissions:defaultAudience:completionHandler:]>. - Consider using <[FBSession requestNewPublishPermissions:defaultAudience:completionHandler:]>, which is preferred for readability. - */ -- (void)reauthorizeWithPublishPermissions:(NSArray *)writePermissions - defaultAudience:(FBSessionDefaultAudience)defaultAudience - completionHandler:(FBSessionReauthorizeResultHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Requests new or additional read permissions for the session. - - @param readPermissions An array of strings representing the permissions to request during the - authentication flow. A value of nil indicates basic permissions. - - @param handler A block to call with session state changes. The default is nil. - - @discussion The handler, if non-nil, is called once the operation has completed or failed. This is in contrast to the - state completion handler used in <[FBSession openWithCompletionHandler:]> (and other `open*` methods) which is called - for each state-change for the session. - */ -- (void)requestNewReadPermissions:(NSArray *)readPermissions - completionHandler:(FBSessionRequestPermissionResultHandler)handler; - -/*! - @abstract - Requests new or additional write permissions for the session. - - @param writePermissions An array of strings representing the permissions to request during the - authentication flow. - - @param defaultAudience Specifies the audience for posts. - - @param handler A block to call with session state changes. The default is nil. - - @discussion The handler, if non-nil, is called once the operation has completed or failed. This is in contrast to the - state completion handler used in <[FBSession openWithCompletionHandler:]> (and other `open*` methods) which is called - for each state-change for the session. - */ -- (void)requestNewPublishPermissions:(NSArray *)writePermissions - defaultAudience:(FBSessionDefaultAudience)defaultAudience - completionHandler:(FBSessionRequestPermissionResultHandler)handler; -/*! - @abstract Refreshes the current permissions for the session. - @param handler Called after completion of the refresh. - @discussion This will update the sessions' permissions array from the server. This can be - useful if you want to make sure the local permissions are up to date. - */ -- (void)refreshPermissionsWithCompletionHandler:(FBSessionRequestPermissionResultHandler)handler; - -/*! - @abstract - A helper method that is used to provide an implementation for - [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. It should be invoked during - the Facebook Login flow and will update the session information based on the incoming URL. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - */ -- (BOOL)handleOpenURL:(NSURL *)url; - -/*! - @abstract - A helper method that is used to provide an implementation for - [UIApplicationDelegate applicationDidBecomeActive:] to properly resolve session state for - the Facebook Login flow, specifically to support app-switch login. - */ -- (void)handleDidBecomeActive; - -/*! - @abstract - Assign the block to be invoked for session state changes. - - @param stateChangeHandler the handler block. - - @discussion - This will overwrite any state change handler that was already assigned. Typically, - you should only use this setter if you were unable to assign a state change handler explicitly. - One example of this is if you are not opening the session (e.g., using the `open*`) - but still want to assign a `FBSessionStateHandler` block. This can happen when the SDK - opens a session from an app link. - */ -- (void)setStateChangeHandler:(FBSessionStateHandler)stateChangeHandler; - -/*! - @abstract - Returns true if the specified permission has been granted to this session. - - @param permission the permission to verify. - - @discussion - This is a convenience helper for checking if `pemission` is inside the permissions array. - */ -- (BOOL)hasGranted:(NSString *)permission; - -/*! - @methodgroup Class methods - */ - -/*! - @abstract - This is the simplest method for opening a session with Facebook. Using sessionOpen logs on a user, - and sets the static activeSession which becomes the default session object for any Facebook UI widgets - used by the application. This session becomes the active session, whether open succeeds or fails. - - Note, if there is not a cached token available, this method will present UI to the user in order to - open the session via explicit login by the user. - - @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if - no login UI will be required to accomplish the operation. For example, at application startup it may not - be disirable to transition to login UI for the user, and yet an open session is desired so long as a cached - token can be used to open the session. Passing NO to this argument, assures the method will not present UI - to the user in order to open the session. - - @discussion - Returns YES if the session was opened synchronously without presenting UI to the user. This occurs - when there is a cached token available from a previous run of the application. If NO is returned, this indicates - that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is - possible that the user will login, and the session will become open asynchronously. The primary use for - this return value is to switch-on facebook capabilities in your UX upon startup, in the case where the session - is opened via cache. - */ -+ (BOOL)openActiveSessionWithAllowLoginUI:(BOOL)allowLoginUI; - -/*! - @abstract - This is a simple method for opening a session with Facebook. Using sessionOpen logs on a user, - and sets the static activeSession which becomes the default session object for any Facebook UI widgets - used by the application. This session becomes the active session, whether open succeeds or fails. - - @param permissions An array of strings representing the permissions to request during the - authentication flow. A value of nil indicates basic permissions. A nil value specifies - default permissions. - - @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if - no login UI will be required to accomplish the operation. For example, at application startup it may not - be desirable to transition to login UI for the user, and yet an open session is desired so long as a cached - token can be used to open the session. Passing NO to this argument, assures the method will not present UI - to the user in order to open the session. - - @param handler Many applications will benefit from notification when a session becomes invalid - or undergoes other state transitions. If a block is provided, the FBSession - object will call the block each time the session changes state. - - @discussion - Returns true if the session was opened synchronously without presenting UI to the user. This occurs - when there is a cached token available from a previous run of the application. If NO is returned, this indicates - that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is - possible that the user will login, and the session will become open asynchronously. The primary use for - this return value is to switch-on facebook capabilities in your UX upon startup, in the case where the session - is opened via cache. - - It is required that initial permissions requests represent read-only permissions only. If publish - permissions are needed, you may use reauthorizeWithPermissions to specify additional permissions as - well as an audience. Use of this method will result in a legacy fast-app-switch Facebook Login due to - the requirement to separate read and publish permissions for newer applications. Methods and properties - that specify permissions without a read or publish qualification are deprecated; use of a read-qualified - or publish-qualified alternative is preferred. - */ -+ (BOOL)openActiveSessionWithPermissions:(NSArray *)permissions - allowLoginUI:(BOOL)allowLoginUI - completionHandler:(FBSessionStateHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - This is a simple method for opening a session with Facebook. Using sessionOpen logs on a user, - and sets the static activeSession which becomes the default session object for any Facebook UI widgets - used by the application. This session becomes the active session, whether open succeeds or fails. - - @param readPermissions An array of strings representing the read permissions to request during the - authentication flow. It is not allowed to pass publish permissions to this method. - - @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if - no login UI will be required to accomplish the operation. For example, at application startup it may not - be desirable to transition to login UI for the user, and yet an open session is desired so long as a cached - token can be used to open the session. Passing NO to this argument, assures the method will not present UI - to the user in order to open the session. - - @param handler Many applications will benefit from notification when a session becomes invalid - or undergoes other state transitions. If a block is provided, the FBSession - object will call the block each time the session changes state. - - @discussion - Returns true if the session was opened synchronously without presenting UI to the user. This occurs - when there is a cached token available from a previous run of the application. If NO is returned, this indicates - that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is - possible that the user will login, and the session will become open asynchronously. The primary use for - this return value is to switch-on facebook capabilities in your UX upon startup, in the case where the session - is opened via cache. - - */ -+ (BOOL)openActiveSessionWithReadPermissions:(NSArray *)readPermissions - allowLoginUI:(BOOL)allowLoginUI - completionHandler:(FBSessionStateHandler)handler; - -/*! - @abstract - This is a simple method for opening a session with Facebook. Using sessionOpen logs on a user, - and sets the static activeSession which becomes the default session object for any Facebook UI widgets - used by the application. This session becomes the active session, whether open succeeds or fails. - - @param publishPermissions An array of strings representing the publish permissions to request during the - authentication flow. - - @param defaultAudience Anytime an app publishes on behalf of a user, the post must have an audience (e.g. me, my friends, etc.) - The default audience is used to notify the user of the cieling that the user agrees to grant to the app for the provided permissions. - - @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if - no login UI will be required to accomplish the operation. For example, at application startup it may not - be desirable to transition to login UI for the user, and yet an open session is desired so long as a cached - token can be used to open the session. Passing NO to this argument, assures the method will not present UI - to the user in order to open the session. - - @param handler Many applications will benefit from notification when a session becomes invalid - or undergoes other state transitions. If a block is provided, the FBSession - object will call the block each time the session changes state. - - @discussion - Returns true if the session was opened synchronously without presenting UI to the user. This occurs - when there is a cached token available from a previous run of the application. If NO is returned, this indicates - that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is - possible that the user will login, and the session will become open asynchronously. The primary use for - this return value is to switch-on facebook capabilities in your UX upon startup, in the case where the session - is opened via cache. - - */ -+ (BOOL)openActiveSessionWithPublishPermissions:(NSArray *)publishPermissions - defaultAudience:(FBSessionDefaultAudience)defaultAudience - allowLoginUI:(BOOL)allowLoginUI - completionHandler:(FBSessionStateHandler)handler; - -/*! - @abstract - An application may get or set the current active session. Certain high-level components in the SDK - will use the activeSession to set default session (e.g. `FBLoginView`, `FBFriendPickerViewController`) - - @discussion - If sessionOpen* is called, the resulting `FBSession` object also becomes the activeSession. If another - session was active at the time, it is closed automatically. If activeSession is called when no session - is active, a session object is instatiated and returned; in this case open must be called on the session - in order for it to be useable for communication with Facebook. - */ -+ (FBSession *)activeSession; - -/*! - @abstract - An application may get or set the current active session. Certain high-level components in the SDK - will use the activeSession to set default session (e.g. `FBLoginView`, `FBFriendPickerViewController`) - - @param session The FBSession object to become the active session - - @discussion - If an application prefers the flexibilility of directly instantiating a session object, an active - session can be set directly. - */ -+ (FBSession *)setActiveSession:(FBSession *)session; - -/*! - @method - - @abstract Set the default Facebook App ID to use for sessions. The app ID may be - overridden on a per session basis. - - @discussion This method has been deprecated in favor of [FBSettings setDefaultAppID]. - - @param appID The default Facebook App ID to use for methods. - */ -+ (void)setDefaultAppID:(NSString *)appID __attribute__((deprecated)); - -/*! - @method - - @abstract Get the default Facebook App ID to use for sessions. If not explicitly - set, the default will be read from the application's plist. The app ID may be - overridden on a per session basis. - - @discussion This method has been deprecated in favor of [FBSettings defaultAppID]. - */ -+ (NSString *)defaultAppID __attribute__((deprecated)); - -/*! - @method - - @abstract Set the default url scheme suffix to use for sessions. The url - scheme suffix may be overridden on a per session basis. - - @discussion This method has been deprecated in favor of [FBSettings setDefaultUrlSchemeSuffix]. - - @param urlSchemeSuffix The default url scheme suffix to use for methods. - */ -+ (void)setDefaultUrlSchemeSuffix:(NSString *)urlSchemeSuffix __attribute__((deprecated)); - -/*! - @method - - @abstract Get the default url scheme suffix used for sessions. If not - explicitly set, the default will be read from the application's plist. The - url scheme suffix may be overridden on a per session basis. - - @discussion This method has been deprecated in favor of [FBSettings defaultUrlSchemeSuffix]. - */ -+ (NSString *)defaultUrlSchemeSuffix __attribute__((deprecated)); - -/*! - @method - - @abstract Issues an asychronous renewCredentialsForAccount call to the device Facebook account store. - - @param handler The completion handler to call when the renewal is completed. The handler will be - invoked on the main thread. - - @discussion This can be used to explicitly renew account credentials on iOS 6 devices and is provided - as a convenience wrapper around `[ACAccountStore renewCredentialsForAccount:completion]`. Note the - method will not issue the renewal call if the the Facebook account has not been set on the device, or - if access had not been granted to the account (though the handler wil receive an error). - - This is safe to call (and will surface an error to the handler) on versions of iOS before 6 or if the user - logged in via Safari or Facebook SSO. - */ -+ (void)renewSystemCredentials:(FBSessionRenewSystemCredentialsHandler)handler; -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionManualTokenCachingStrategy.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionManualTokenCachingStrategy.h deleted file mode 100644 index 2ba5ec8..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionManualTokenCachingStrategy.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FBSessionTokenCachingStrategy.h" - -// FBSessionManualTokenCachingStrategy -// -// Summary: -// Internal use only, this class enables migration logic for the Facebook class, by providing -// a means to directly provide the access token to a FBSession object -// -@interface FBSessionManualTokenCachingStrategy : FBSessionTokenCachingStrategy - -// set the properties before instantiating the FBSession object in order to seed a token -@property (readwrite, copy) NSString *accessToken; -@property (readwrite, copy) NSDate *expirationDate; - -@end - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionTokenCachingStrategy.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionTokenCachingStrategy.h deleted file mode 100644 index f70b61e..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionTokenCachingStrategy.h +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBAccessTokenData.h" -#import "FBSDKMacros.h" - -/*! - @class - - @abstract - The `FBSessionTokenCachingStrategy` class is responsible for persisting and retrieving cached data related to - an object, including the user's Facebook access token. - - @discussion - `FBSessionTokenCachingStrategy` is designed to be instantiated directly or used as a base class. Usually default - token caching behavior is sufficient, and you do not need to interface directly with `FBSessionTokenCachingStrategy` objects. - However, if you need to control where or how `FBSession` information is cached, then you may take one of two approaches. - - The first and simplest approach is to instantiate an instance of `FBSessionTokenCachingStrategy`, and then pass - the instance to `FBSession` class' `init` method. This enables your application to control the key name used in - the iOS Keychain to store session information. You may consider this approach if you plan to cache session information - for multiple users. - - The second and more advanced approached is to derive a custom class from `FBSessionTokenCachingStrategy`, which will - be responsible for caching behavior of your application. This approach is useful if you need to change where the - information is cached, for example if you prefer to use the filesystem or make a network connection to fetch and - persist cached tokens. Inheritors should override the cacheTokenInformation, fetchTokenInformation, and clearToken methods. - Doing this enables your application to implement any token caching scheme, including no caching at all (see - `[FBSessionTokenCachingStrategy nullCacheInstance]`. - - Direct use of `FBSessionTokenCachingStrategy`is an advanced technique. Most applications use objects without - passing an `FBSessionTokenCachingStrategy`, which yields default caching to the iOS Keychain. - */ -@interface FBSessionTokenCachingStrategy : NSObject - -/*! - @abstract Initializes and returns an instance - */ -- (instancetype)init; - -/*! - @abstract - Initializes and returns an instance - - @param tokenInformationKeyName Specifies a key name to use for cached token information in the iOS Keychain, nil - indicates a default value of @"FBAccessTokenInformationKey" - */ -- (instancetype)initWithUserDefaultTokenInformationKeyName:(NSString *)tokenInformationKeyName; - -/*! - @abstract - Called by (and overridden by inheritors), in order to cache token information. - - @param tokenInformation Dictionary containing token information to be cached by the method - @discussion You should favor overriding this instead of `cacheFBAccessTokenData` only if you intend - to cache additional data not captured by the FBAccessTokenData type. - */ -- (void)cacheTokenInformation:(NSDictionary *)tokenInformation; - -/*! - @abstract Cache the supplied token. - @param accessToken The token instance. - @discussion This essentially wraps a call to `cacheTokenInformation` so you should - override this when providing a custom token caching strategy. - */ -- (void)cacheFBAccessTokenData:(FBAccessTokenData *)accessToken; - -/*! - @abstract - Called by (and overridden by inheritors), in order to fetch cached token information - - @discussion - An overriding implementation should only return a token if it - can also return an expiration date, otherwise return nil. - You should favor overriding this instead of `fetchFBAccessTokenData` only if you intend - to cache additional data not captured by the FBAccessTokenData type. - - */ -- (NSDictionary *)fetchTokenInformation; - -/*! - @abstract - Fetches the cached token instance. - - @discussion - This essentially wraps a call to `fetchTokenInformation` so you should - override this when providing a custom token caching strategy. - - In order for an `FBSession` instance to be able to use a cached token, - the token must be not be expired (see `+isValidTokenInformation:`) and - must also contain all permissions in the initialized session instance. - */ -- (FBAccessTokenData *)fetchFBAccessTokenData; - -/*! - @abstract - Called by (and overridden by inheritors), in order delete any cached information for the current token - */ -- (void)clearToken; - -/*! - @abstract - Helper function called by the SDK as well as apps, in order to fetch the default strategy instance. - */ -+ (FBSessionTokenCachingStrategy *)defaultInstance; - -/*! - @abstract - Helper function to return a FBSessionTokenCachingStrategy instance that does not perform any caching. - */ -+ (FBSessionTokenCachingStrategy *)nullCacheInstance; - -/*! - @abstract - Helper function called by the SDK as well as application code, used to determine whether a given dictionary - contains the minimum token information usable by the . - - @param tokenInformation Dictionary containing token information to be validated - */ -+ (BOOL)isValidTokenInformation:(NSDictionary *)tokenInformation; - -@end - -// The key to use with token information dictionaries to get and set the token value -FBSDK_EXTERN NSString *const FBTokenInformationTokenKey; - -// The to use with token information dictionaries to get and set the expiration date -FBSDK_EXTERN NSString *const FBTokenInformationExpirationDateKey; - -// The to use with token information dictionaries to get and set the refresh date -FBSDK_EXTERN NSString *const FBTokenInformationRefreshDateKey; - -// The key to use with token information dictionaries to get the related user's fbid -FBSDK_EXTERN NSString *const FBTokenInformationUserFBIDKey; - -// The key to use with token information dictionaries to determine whether the token was fetched via Facebook Login -FBSDK_EXTERN NSString *const FBTokenInformationIsFacebookLoginKey; - -// The key to use with token information dictionaries to determine whether the token was fetched via the OS -FBSDK_EXTERN NSString *const FBTokenInformationLoginTypeLoginKey; - -// The key to use with token information dictionaries to get the latest known permissions -FBSDK_EXTERN NSString *const FBTokenInformationPermissionsKey; - -// The key to use with token information dictionaries to get the latest known declined permissions -FBSDK_EXTERN NSString *const FBTokenInformationDeclinedPermissionsKey; - -// The key to use with token information dictionaries to get the date the permissions were last refreshed. -FBSDK_EXTERN NSString *const FBTokenInformationPermissionsRefreshDateKey; - -// The key to use with token information dictionaries to get the id of the creator app -FBSDK_EXTERN NSString *const FBTokenInformationAppIDKey; diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSettings.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSettings.h deleted file mode 100644 index b9f33ed..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSettings.h +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBSDKMacros.h" - -/* - * Constants defining logging behavior. Use with <[FBSettings setLoggingBehavior]>. - */ - -/*! Log requests from FBRequest* classes */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorFBRequests; - -/*! Log requests from FBURLConnection* classes */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorFBURLConnections; - -/*! Include access token in logging. */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorAccessTokens; - -/*! Log session state transitions. */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorSessionStateTransitions; - -/*! Log performance characteristics */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorPerformanceCharacteristics; - -/*! Log FBAppEvents interactions */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorAppEvents; - -/*! Log Informational occurrences */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorInformational; - -/*! Log cache errors. */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorCacheErrors; - -/*! Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorDeveloperErrors; - -/*! - @typedef - - @abstract A list of beta features that can be enabled for the SDK. Beta features are for evaluation only, - and are therefore only enabled for DEBUG builds. Beta features should not be enabled - in release builds. - */ -typedef NS_ENUM(NSUInteger, FBBetaFeatures) { - FBBetaFeaturesNone = 0, -#if defined(DEBUG) || defined(FB_BUILD_ONLY) - FBBetaFeaturesLikeButton = 1 << 2, -#endif -}; - -/*! - @typedef - @abstract Indicates if this app should be restricted - */ -typedef NS_ENUM(NSUInteger, FBRestrictedTreatment) { - /*! The default treatment indicating the app is not restricted. */ - FBRestrictedTreatmentNO = 0, - - /*! Indicates the app is restricted. */ - FBRestrictedTreatmentYES = 1 -}; - -/*! - @class FBSettings - - @abstract Allows configuration of SDK behavior. -*/ -@interface FBSettings : NSObject - -/*! - @method - - @abstract Retrieve the current iOS SDK version. - - */ -+ (NSString *)sdkVersion; - -/*! - @method - - @abstract Retrieve the current Facebook SDK logging behavior. - - */ -+ (NSSet *)loggingBehavior; - -/*! - @method - - @abstract Set the current Facebook SDK logging behavior. This should consist of strings defined as - constants with FBLogBehavior*, and can be constructed with, e.g., [NSSet initWithObjects:]. - - @param loggingBehavior A set of strings indicating what information should be logged. If nil is provided, the logging - behavior is reset to the default set of enabled behaviors. Set in an empty set in order to disable all logging. - */ -+ (void)setLoggingBehavior:(NSSet *)loggingBehavior; - -/*! - @method - - @abstract - This method is deprecated -- App Events favors using bundle identifiers to this. - */ -+ (NSString *)appVersion __attribute__ ((deprecated("App Events favors use of bundle identifiers for version identification."))); - -/*! - @method - - @abstract - This method is deprecated -- App Events favors using bundle identifiers to this. - */ -+ (void)setAppVersion:(NSString *)appVersion __attribute__ ((deprecated("App Events favors use of bundle identifiers for version identification."))); - -/*! - @method - - @abstract Retrieve the Client Token that has been set via [FBSettings setClientToken] - */ -+ (NSString *)clientToken; - -/*! - @method - - @abstract Sets the Client Token for the Facebook App. This is needed for certain API calls when made anonymously, - without a user-based Session. - - @param clientToken The Facebook App's "client token", which, for a given appid can be found in the Security - section of the Advanced tab of the Facebook App settings found at - - */ -+ (void)setClientToken:(NSString *)clientToken; - -/*! - @method - - @abstract Set the default Facebook Display Name to be used by the SDK. This should match - the Display Name that has been set for the app with the corresponding Facebook App ID, in - the Facebook App Dashboard - - @param displayName The default Facebook Display Name to be used by the SDK. - */ -+ (void)setDefaultDisplayName:(NSString *)displayName; - -/*! - @method - - @abstract Get the default Facebook Display Name used by the SDK. If not explicitly - set, the default will be read from the application's plist. - */ -+ (NSString *)defaultDisplayName; - -/*! - @method - - @abstract Set the default Facebook App ID to use for sessions. The SDK allows the appID - to be overridden per instance in certain cases (e.g. per instance of FBSession) - - @param appID The default Facebook App ID to be used by the SDK. - */ -+ (void)setDefaultAppID:(NSString *)appID; - -/*! - @method - - @abstract Get the default Facebook App ID used by the SDK. If not explicitly - set, the default will be read from the application's plist. The SDK allows the appID - to be overridden per instance in certain cases (e.g. per instance of FBSession) - */ -+ (NSString *)defaultAppID; - -/*! - @method - - @abstract Set the default url scheme suffix used by the SDK. - - @param urlSchemeSuffix The default url scheme suffix to be used by the SDK. - */ -+ (void)setDefaultUrlSchemeSuffix:(NSString *)urlSchemeSuffix; - -/*! - @method - - @abstract Get the default url scheme suffix used for sessions. If not - explicitly set, the default will be read from the application's plist value for 'FacebookUrlSchemeSuffix'. - */ -+ (NSString *)defaultUrlSchemeSuffix; - -/*! - @method - - @abstract Set the bundle name from the SDK will try and load overrides of images and text - - @param bundleName The name of the bundle (MyFBBundle). - */ -+ (void)setResourceBundleName:(NSString *)bundleName; - -/*! - @method - - @abstract Get the name of the bundle to override the SDK images and text - */ -+ (NSString *)resourceBundleName; - -/*! - @method - - @abstract Set the subpart of the facebook domain (e.g. @"beta") so that requests will be sent to graph.beta.facebook.com - - @param facebookDomainPart The domain part to be inserted into facebook.com - */ -+ (void)setFacebookDomainPart:(NSString *)facebookDomainPart; - -/*! - @method - - @abstract Get the Facebook domain part - */ -+ (NSString *)facebookDomainPart; - -/*! - @method - - @abstract Enables the specified beta features. Beta features are for evaluation only, - and are therefore only enabled for debug builds. Beta features should not be enabled - in release builds. - - @param betaFeatures The beta features to enable (expects a bitwise OR of FBBetaFeatures) - */ -+ (void)enableBetaFeatures:(NSUInteger)betaFeatures; - -/*! - @method - - @abstract Enables a beta feature. Beta features are for evaluation only, - and are therefore only enabled for debug builds. Beta features should not be enabled - in release builds. - - @param betaFeature The beta feature to enable. - */ -+ (void)enableBetaFeature:(FBBetaFeatures)betaFeature; - -/*! - @method - - @abstract Disables a beta feature. - - @param betaFeature The beta feature to disable. - */ -+ (void)disableBetaFeature:(FBBetaFeatures)betaFeature; - -/*! - @method - - @abstract Determines whether a beta feature is enabled or not. - - @param betaFeature The beta feature to check. - - @return YES if the beta feature is enabled, NO if not. - */ -+ (BOOL)isBetaFeatureEnabled:(FBBetaFeatures)betaFeature; - -/*! - @method - - @abstract - Gets whether data such as that generated through FBAppEvents and sent to Facebook should be restricted from being used for other than analytics and conversions. Defaults to NO. This value is stored on the device and persists across app launches. - */ -+ (BOOL)limitEventAndDataUsage; - -/*! - @method - - @abstract - Sets whether data such as that generated through FBAppEvents and sent to Facebook should be restricted from being used for other than analytics and conversions. Defaults to NO. This value is stored on the device and persists across app launches. - - @param limitEventAndDataUsage The desired value. - */ -+ (void)setLimitEventAndDataUsage:(BOOL)limitEventAndDataUsage; - -/*! - @method - @abstract Returns YES if the legacy Graph API mode is enabled -*/ -+ (BOOL)isPlatformCompatibilityEnabled; - -/*! - @method - @abstract Configures the SDK to use the legacy platform. - @param enable indicates whether to use the legacy mode - @discussion Setting this flag has several effects: - - FBRequests will target v1.0 of the Graph API. - - Login will use the prior behavior without abilities to decline permission. - - Specific new features such as `FBLikeButton` that require the current platform - will not work. -*/ -+ (void)enablePlatformCompatibility:(BOOL)enable; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBShareDialogParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBShareDialogParams.h deleted file mode 100644 index 7b828a8..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBShareDialogParams.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBLinkShareParams.h" - -/*! - @class FBShareDialogParams - - @abstract Deprecated. Use `FBLinkShareParams` instead. - */ -__attribute__((deprecated)) -@interface FBShareDialogParams : FBLinkShareParams - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBShareDialogPhotoParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBShareDialogPhotoParams.h deleted file mode 100644 index a7f0b75..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBShareDialogPhotoParams.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBPhotoParams.h" - -/*! - @class FBShareDialogPhotoParams - - @abstract Deprecated. Use `FBPhotoParams` instead. -*/ -__attribute__((deprecated)) -@interface FBShareDialogPhotoParams : FBPhotoParams - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTaggableFriendPickerViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTaggableFriendPickerViewController.h deleted file mode 100644 index a6f314a..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTaggableFriendPickerViewController.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBPeoplePickerViewController.h" - -/*! - @class - - @abstract - The `FBTaggableFriendPickerViewController` class creates a controller object that - manages the user interface for displaying and selecting taggable Facebook friends. - - @discussion - When the `FBTaggableFriendPickerViewController` view loads it creates a `UITableView` - object where the taggable friends will be displayed. You can access this view through - the `tableView` property. The taggalb e friend display can be sorted by first name or - last name. Taggable friends' names can be displayed with the first name first or the - last name first. - - The `FBTaggableFriendPickerViewController` does not support the `fieldsForRequest` - property, as there are no other fields that may be requested from the Graph API. - - The `delegate` property may be set to an object that conforms to the - protocol. The graph object passed to the delegate conforms to the protocol. - */ -@interface FBTaggableFriendPickerViewController : FBPeoplePickerViewController - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTestSession.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTestSession.h deleted file mode 100644 index 73b5ec0..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTestSession.h +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FBSession.h" - -#import "FBSDKMacros.h" - -#if defined(DEBUG) && !defined(SAFE_TO_USE_FBTESTSESSION) -#define SAFE_TO_USE_FBTESTSESSION -#endif - -#if !defined(SAFE_TO_USE_FBTESTSESSION) -#pragma message ("warning: using FBTestSession, which is designed for unit-testing uses only, in non-DEBUG code -- ensure this is what you really want") -#endif - -/*! - Consider using this tag to pass to sessionWithSharedUserWithPermissions:uniqueUserTag: when - you need a second unique test user in a test case. Using the same tag each time reduces - the proliferation of test users. - */ -FBSDK_EXTERN NSString *kSecondTestUserTag; -/*! - Consider using this tag to pass to sessionWithSharedUserWithPermissions:uniqueUserTag: when - you need a third unique test user in a test case. Using the same tag each time reduces - the proliferation of test users. - */ -FBSDK_EXTERN NSString *kThirdTestUserTag; - -/*! - @class FBTestSession - - @abstract - Implements an FBSession subclass that knows about test users for a particular - application. This should never be used from a real application, but may be useful - for writing unit tests, etc. - - @discussion - Facebook allows developers to create test accounts for testing their applications' - Facebook integration (see https://developers.facebook.com/docs/test_users/). This class - simplifies use of these accounts for writing unit tests. It is not designed for use in - production application code. - - The main use case for this class is using sessionForUnitTestingWithPermissions:mode: - to create a session for a test user. Two modes are supported. In "shared" mode, an attempt - is made to find an existing test user that has the required permissions and, if it is not - currently in use by another FBTestSession, just use that user. If no such user is available, - a new one is created with the required permissions. In "private" mode, designed for - scenarios which require a new user in a known clean state, a new test user will always be - created, and it will be automatically deleted when the FBTestSession is closed. - - Note that the shared test user functionality depends on a naming convention for the test users. - It is important that any testing of functionality which will mutate the permissions for a - test user NOT use a shared test user, or this scheme will break down. If a shared test user - seems to be in an invalid state, it can be deleted manually via the Web interface at - https://developers.facebook.com/apps/APP_ID/permissions?role=test+users. - */ -@interface FBTestSession : FBSession - -/// The app access token (composed of app ID and secret) to use for accessing test users. -@property (readonly, copy) NSString *appAccessToken; -/// The ID of the test user associated with this session. -@property (readonly, copy) NSString *testUserID; -/// The name of the test user associated with this session. -@property (readonly, copy) NSString *testUserName; -/// The App ID of the test app as configured in the plist. -@property (readonly, copy) NSString *testAppID; -/// The App Secret of the test app as configured in the plist. -@property (readonly, copy) NSString *testAppSecret; -// Defaults to NO. If set to YES, reauthorize calls will fail with a nil token -// as if the user had cancelled it reauthorize. -@property (assign) BOOL disableReauthorize; - -/*! - @abstract - Constructor helper to create a session for use in unit tests - - @discussion - This method creates a session object which uses a shared test user with the right permissions, - creating one if necessary on open (but not deleting it on close, so it can be re-used in later - tests). Calling this method multiple times may return sessions with the same user. If this is not - desired, use the variant sessionWithSharedUserWithPermissions:uniqueUserTag:. - - This method should not be used in application code -- but is useful for creating unit tests - that use the Facebook SDK. - - @param permissions array of strings naming permissions to authorize; nil indicates - a common default set of permissions should be used for unit testing - */ -+ (instancetype)sessionWithSharedUserWithPermissions:(NSArray *)permissions; - -/*! - @abstract - Constructor helper to create a session for use in unit tests - - @discussion - This method creates a session object which uses a shared test user with the right permissions, - creating one if necessary on open (but not deleting it on close, so it can be re-used in later - tests). - - This method should not be used in application code -- but is useful for creating unit tests - that use the Facebook SDK. - - @param permissions array of strings naming permissions to authorize; nil indicates - a common default set of permissions should be used for unit testing - - @param uniqueUserTag a string which will be used to make this user unique among other - users with the same permissions. Useful for tests which require two or more users to interact - with each other, and which therefore must have sessions associated with different users. For - this case, consider using kSecondTestUserTag and kThirdTestUserTag so these users can be shared - with other, similar, tests. - */ -+ (instancetype)sessionWithSharedUserWithPermissions:(NSArray *)permissions - uniqueUserTag:(NSString *)uniqueUserTag; - -/*! - @abstract - Constructor helper to create a session for use in unit tests - - @discussion - This method creates a session object which creates a test user on open, and destroys the user on - close; This method should not be used in application code -- but is useful for creating unit tests - that use the Facebook SDK. - - @param permissions array of strings naming permissions to authorize; nil indicates - a common default set of permissions should be used for unit testing - */ -+ (instancetype)sessionWithPrivateUserWithPermissions:(NSArray *)permissions; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTooltipView.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTooltipView.h deleted file mode 100644 index 0dcae1b..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTooltipView.h +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -/*! - @typedef FBTooltipViewArrowDirection enum - - @abstract - Passed on construction to determine arrow orientation. - */ -typedef NS_ENUM(NSUInteger, FBTooltipViewArrowDirection) { - /*! View is located above given point, arrow is pointing down. */ - FBTooltipViewArrowDirectionDown = 0, - /*! View is located below given point, arrow is pointing up. */ - FBTooltipViewArrowDirectionUp = 1, -}; - -/*! - @typedef FBTooltipColorStyle enum - - @abstract - Passed on construction to determine color styling. - */ -typedef NS_ENUM(NSUInteger, FBTooltipColorStyle) { - /*! Light blue background, white text, faded blue close button. */ - FBTooltipColorStyleFriendlyBlue = 0, - /*! Dark gray background, white text, light gray close button. */ - FBTooltipColorStyleNeutralGray = 1, -}; - -/*! - @class FBTooltipView - - @abstract - Tooltip bubble with text in it used to display tips for UI elements, - with a pointed arrow (to refer to the UI element). - - @discussion - The tooltip fades in and will automatically fade out. See `displayDuration`. - */ -@interface FBTooltipView : UIView - -/*! - @abstract Gets or sets the amount of time in seconds the tooltip should be displayed. - @discussion Set this to zero to make the display permanent until explicitly dismissed. - Defaults to six seconds. -*/ -@property (nonatomic, assign) CFTimeInterval displayDuration; - -/*! - @abstract Gets or sets the color style after initialization. - @discussion Defaults to value passed to -initWithTagline:message:colorStyle:. - */ -@property (nonatomic, assign) FBTooltipColorStyle colorStyle; - -/*! - @abstract Gets or sets the message. -*/ -@property (nonatomic, copy) NSString *message; - -/*! - @abstract Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently). -*/ -@property (nonatomic, copy) NSString *tagline; - -/*! - @abstract - Designated initializer. - - @param tagline First part of the label, that will be highlighted with different color. Can be nil. - - @param message Main message to display. - - @param colorStyle Color style to use for tooltip. - - @discussion - If you need to show a tooltip for login, consider using the `FBLoginTooltipView` view. - - @see FBLoginTooltipView - */ -- (id)initWithTagline:(NSString *)tagline message:(NSString *)message colorStyle:(FBTooltipColorStyle)colorStyle; - -/*! - @abstract - Show tooltip at the top or at the bottom of given view. - Tooltip will be added to anchorView.window.rootViewController.view - - @param anchorView view to show at, must be already added to window view hierarchy, in order to decide - where tooltip will be shown. (If there's not enough space at the top of the anchorView in window bounds - - tooltip will be shown at the bottom of it) - - @discussion - Use this method to present the tooltip with automatic positioning or - use -presentInView:withArrowPosition:direction: for manual positioning - If anchorView is nil or has no window - this method does nothing. - */ -- (void)presentFromView:(UIView *)anchorView; - -/*! - @abstract - Adds tooltip to given view, with given position and arrow direction. - - @param view View to be used as superview. - - @param arrowPosition Point in view's cordinates, where arrow will be pointing - - @param arrowDirection whenever arrow should be pointing up (message bubble is below the arrow) or - down (message bubble is above the arrow). - */ -- (void)presentInView:(UIView *)view withArrowPosition:(CGPoint)arrowPosition direction:(FBTooltipViewArrowDirection)arrowDirection; - -/*! - @abstract - Remove tooltip manually. - - @discussion - Calling this method isn't necessary - tooltip will dismiss itself automatically after the `displayDuration`. - */ -- (void)dismiss; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBUserSettingsViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBUserSettingsViewController.h deleted file mode 100644 index 5df08e7..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBUserSettingsViewController.h +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSession.h" -#import "FBViewController.h" - -/*! - @protocol - - @abstract - The `FBUserSettingsDelegate` protocol defines the methods called by a . - */ -@protocol FBUserSettingsDelegate - -@optional - -/*! - @abstract - Called when the view controller will log the user out in response to a button press. - - @param sender The view controller sending the message. - */ -- (void)loginViewControllerWillLogUserOut:(id)sender; - -/*! - @abstract - Called after the view controller logged the user out in response to a button press. - - @param sender The view controller sending the message. - */ -- (void)loginViewControllerDidLogUserOut:(id)sender; - -/*! - @abstract - Called when the view controller will log the user in in response to a button press. - Note that logging in can fail for a number of reasons, so there is no guarantee that this - will be followed by a call to loginViewControllerDidLogUserIn:. Callers wanting more granular - notification of the session state changes can use KVO or the NSNotificationCenter to observe them. - - @param sender The view controller sending the message. - */ -- (void)loginViewControllerWillAttemptToLogUserIn:(id)sender; - -/*! - @abstract - Called after the view controller successfully logged the user in in response to a button press. - - @param sender The view controller sending the message. - */ -- (void)loginViewControllerDidLogUserIn:(id)sender; - -/*! - @abstract - Called if the view controller encounters an error while trying to log a user in. - - @param sender The view controller sending the message. - @param error The error encountered. - @discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/ - for error handling best practices. - */ -- (void)loginViewController:(id)sender receivedError:(NSError *)error; - -@end - - -/*! - @class FBUserSettingsViewController - - @abstract - The `FBUserSettingsViewController` class provides a user interface exposing a user's - Facebook-related settings. Currently, this is limited to whether they are logged in or out - of Facebook. - - Because of the size of some graphics used in this view, its resources are packaged as a separate - bundle. In order to use `FBUserSettingsViewController`, drag the `FBUserSettingsViewResources.bundle` - from the SDK directory into your Xcode project. - */ -@interface FBUserSettingsViewController : FBViewController - -/*! - @abstract - The permissions to request if the user logs in via this view. - */ -@property (nonatomic, copy) NSArray *permissions __attribute__((deprecated)); - -/*! - @abstract - The read permissions to request if the user logs in via this view. - - @discussion - Note, that if read permissions are specified, then publish permissions should not be specified. - */ -@property (nonatomic, copy) NSArray *readPermissions; - -/*! - @abstract - The publish permissions to request if the user logs in via this view. - - @discussion - Note, that a defaultAudience value of FBSessionDefaultAudienceOnlyMe, FBSessionDefaultAudienceEveryone, or - FBSessionDefaultAudienceFriends should be set if publish permissions are specified. Additionally, when publish - permissions are specified, then read should not be specified. - */ -@property (nonatomic, copy) NSArray *publishPermissions; - -/*! - @abstract - The default audience to use, if publish permissions are requested at login time. - */ -@property (nonatomic, assign) FBSessionDefaultAudience defaultAudience; - -@end - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBViewController.h deleted file mode 100644 index fa33d21..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBViewController.h +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@class FBViewController; - -/*! - @typedef FBModalCompletionHandler - - @abstract - A block that is passed to [FBViewController presentModallyInViewController:animated:handler:] - and called when the view controller is dismissed via either Done or Cancel. - - @param sender The that is being dismissed. - - @param donePressed If YES, Done was pressed. If NO, Cancel was pressed. - */ -typedef void (^FBModalCompletionHandler)(FBViewController *sender, BOOL donePressed); - -/*! - @protocol - - @abstract - The `FBViewControllerDelegate` protocol defines the methods called when the Cancel or Done - buttons are pressed in a . - */ -@protocol FBViewControllerDelegate - -@optional - -/*! - @abstract - Called when the Cancel button is pressed on a modally-presented . - - @param sender The view controller sending the message. - */ -- (void)facebookViewControllerCancelWasPressed:(id)sender; - -/*! - @abstract - Called when the Done button is pressed on a modally-presented . - - @param sender The view controller sending the message. - */ -- (void)facebookViewControllerDoneWasPressed:(id)sender; - -@end - - -/*! - @class FBViewController - - @abstract - The `FBViewController` class is a base class encapsulating functionality common to several - other view controller classes. Specifically, it provides UI when a view controller is presented - modally, in the form of optional Cancel and Done buttons. - */ -@interface FBViewController : UIViewController - -/*! - @abstract - The Cancel button to display when presented modally. If nil, no Cancel button is displayed. - If this button is provided, its target and action will be redirected to internal handlers, replacing - any previous target that may have been set. - */ -@property (nonatomic, retain) IBOutlet UIBarButtonItem *cancelButton; - -/*! - @abstract - The Done button to display when presented modally. If nil, no Done button is displayed. - If this button is provided, its target and action will be redirected to internal handlers, replacing - any previous target that may have been set. - */ -@property (nonatomic, retain) IBOutlet UIBarButtonItem *doneButton; - -/*! - @abstract - The delegate that will be called when Cancel or Done is pressed. Derived classes may specify - derived types for their delegates that provide additional functionality. - */ -@property (nonatomic, assign) IBOutlet id delegate; - -/*! - @abstract - The view into which derived classes should put their subviews. This view will be resized correctly - depending on whether or not a toolbar is displayed. - */ -@property (nonatomic, readonly, retain) UIView *canvasView; - -/*! - @abstract - Provides a wrapper that presents the view controller modally and automatically dismisses it - when either the Done or Cancel button is pressed. - - @param viewController The view controller that is presenting this view controller. - @param animated If YES, presenting and dismissing the view controller is animated. - @param handler The block called when the Done or Cancel button is pressed. - */ -- (void)presentModallyFromViewController:(UIViewController *)viewController - animated:(BOOL)animated - handler:(FBModalCompletionHandler)handler; - -@end - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBWebDialogs.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBWebDialogs.h deleted file mode 100644 index 5fdcedd..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBWebDialogs.h +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@class FBFrictionlessRecipientCache; -@class FBSession; -@protocol FBWebDialogsDelegate; - -/*! - @typedef NS_ENUM (NSUInteger, FBWebDialogResult) - - @abstract - Passed to a handler to indicate the result of a dialog being displayed to the user. - - @discussion Note `FBWebDialogResultDialogCompleted` is also used for cancelled operations. -*/ -typedef NS_ENUM(NSUInteger, FBWebDialogResult) { - /*! Indicates that the dialog action completed successfully. Note, that cancel operations represent completed dialog operations. - The url argument may be used to distinguish between success and user-cancelled cases */ - FBWebDialogResultDialogCompleted = 0, - /*! Indicates that the dialog operation was not completed. This occurs in cases such as the closure of the web-view using the X in the upper left corner. */ - FBWebDialogResultDialogNotCompleted -}; - -/*! - @typedef - - @abstract Defines a handler that will be called in response to the web dialog - being dismissed - */ -typedef void (^FBWebDialogHandler)( - FBWebDialogResult result, - NSURL *resultURL, - NSError *error); - -/*! - @class FBWebDialogs - - @abstract - Provides methods to display web based dialogs to the user. -*/ -@interface FBWebDialogs : NSObject - -/*! - @abstract - Presents a Facebook web dialog (https://developers.facebook.com/docs/reference/dialogs/ ) - such as feed or apprequest. - - @param session Represents the session to use for the dialog. May be nil, which uses - the active session if present, or returns NO, if not. - - @param dialog Represents the dialog or method name, such as @"feed" - - @param parameters A dictionary of parameters to be passed to the dialog - - @param handler An optional handler that will be called when the dialog is dismissed. Note, - that if the method returns NO, the handler is not called. May be nil. - */ -+ (void)presentDialogModallyWithSession:(FBSession *)session - dialog:(NSString *)dialog - parameters:(NSDictionary *)parameters - handler:(FBWebDialogHandler)handler; - -/*! - @abstract - Presents a Facebook web dialog (https://developers.facebook.com/docs/reference/dialogs/ ) - such as feed or apprequest. - - @param session Represents the session to use for the dialog. May be nil, which uses - the active session if present, or returns NO, if not. - - @param dialog Represents the dialog or method name, such as @"feed" - - @param parameters A dictionary of parameters to be passed to the dialog - - @param handler An optional handler that will be called when the dialog is dismissed. Note, - that if the method returns NO, the handler is not called. May be nil. - - @param delegate An optional delegate to allow for advanced processing of web based - dialogs. See 'FBWebDialogsDelegate' for more details. - */ -+ (void)presentDialogModallyWithSession:(FBSession *)session - dialog:(NSString *)dialog - parameters:(NSDictionary *)parameters - handler:(FBWebDialogHandler)handler - delegate:(id)delegate; - -/*! - @abstract - Presents a Facebook apprequest dialog. - - @param session Represents the session to use for the dialog. May be nil, which uses - the active session if present. - - @param message The required message for the dialog. - - @param title An optional title for the dialog. - - @param parameters A dictionary of additional parameters to be passed to the dialog. May be nil - - @param handler An optional handler that will be called when the dialog is dismissed. May be nil. - */ -+ (void)presentRequestsDialogModallyWithSession:(FBSession *)session - message:(NSString *)message - title:(NSString *)title - parameters:(NSDictionary *)parameters - handler:(FBWebDialogHandler)handler; - -/*! - @abstract - Presents a Facebook apprequest dialog. - - @param session Represents the session to use for the dialog. May be nil, which uses - the active session if present. - - @param message The required message for the dialog. - - @param title An optional title for the dialog. - - @param parameters A dictionary of additional parameters to be passed to the dialog. May be nil - - @param handler An optional handler that will be called when the dialog is dismissed. May be nil. - - @param friendCache An optional cache object used to enable frictionless sharing for a known set of friends. The - cache instance should be preserved for the life of the session and reused for multiple calls to the present method. - As the users set of friends enabled for frictionless sharing changes, this method auto-updates the cache. - */ -+ (void)presentRequestsDialogModallyWithSession:(FBSession *)session - message:(NSString *)message - title:(NSString *)title - parameters:(NSDictionary *)parameters - handler:(FBWebDialogHandler)handler - friendCache:(FBFrictionlessRecipientCache *)friendCache; - -/*! - @abstract - Presents a Facebook feed dialog. - - @param session Represents the session to use for the dialog. May be nil, which uses - the active session if present. - - @param parameters A dictionary of additional parameters to be passed to the dialog. May be nil - - @param handler An optional handler that will be called when the dialog is dismissed. May be nil. - */ -+ (void)presentFeedDialogModallyWithSession:(FBSession *)session - parameters:(NSDictionary *)parameters - handler:(FBWebDialogHandler)handler; - -@end - -/*! - @protocol - - @abstract - The `FBWebDialogsDelegate` protocol enables the plugging of advanced behaviors into - the presentation flow of a Facebook web dialog. Advanced uses include modification - of parameters and application-level handling of links on the dialog. The - `FBFrictionlessRequestFriendCache` class implements this protocol to add frictionless - behaviors to a presentation of the request dialog. - */ -@protocol FBWebDialogsDelegate - -@optional - -/*! - @abstract - Called prior to the presentation of a web dialog - - @param dialog A string representing the method or dialog name of the dialog being presented. - - @param parameters A mutable dictionary of parameters which will be sent to the dialog. - - @param session The session object to use with the dialog. - */ -- (void)webDialogsWillPresentDialog:(NSString *)dialog - parameters:(NSMutableDictionary *)parameters - session:(FBSession *)session; - -/*! - @abstract - Called when the user of a dialog clicks a link that would cause a transition away from the application. - Your application may handle this method, and return NO if the URL handling will be performed by the application. - - @param dialog A string representing the method or dialog name of the dialog being presented. - - @param parameters A dictionary of parameters which were sent to the dialog. - - @param session The session object to use with the dialog. - - @param url The url in question, which will not be handled by the SDK if this method NO - */ -- (BOOL)webDialogsDialog:(NSString *)dialog - parameters:(NSDictionary *)parameters - session:(FBSession *)session - shouldAutoHandleURL:(NSURL *)url; - -/*! - @abstract - Called when the dialog is about to be dismissed - - @param dialog A string representing the method or dialog name of the dialog being presented. - - @param parameters A dictionary of parameters which were sent to the dialog. - - @param session The session object to use with the dialog. - - @param result A pointer to a result, which may be read or changed by the handling method as needed - - @param url A pointer to a pointer to a URL representing the URL returned by the dialog, which may be read or changed by this mehthod - - @param error A pointer to a pointer to an error object which may be read or changed by this method as needed - */ -- (void)webDialogsWillDismissDialog:(NSString *)dialog - parameters:(NSDictionary *)parameters - session:(FBSession *)session - result:(FBWebDialogResult *)result - url:(NSURL **)url - error:(NSError **)error; - -@end - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/Facebook.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/Facebook.h deleted file mode 100644 index b8c8922..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/Facebook.h +++ /dev/null @@ -1,269 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FBFrictionlessRequestSettings.h" -#import "FBLoginDialog.h" -#import "FBRequest.h" -#import "FBSessionManualTokenCachingStrategy.h" -#import "FacebookSDK.h" - -//////////////////////////////////////////////////////////////////////////////// -// deprecated API -// -// Summary -// The classes, protocols, etc. in this header are provided for backward -// compatibility and migration; for new code, use FacebookSDK.h, and/or the -// public headers that it imports; for existing code under active development, -// Facebook.h imports FacebookSDK.h, and updates should favor the new interfaces -// whenever possible - -// up-front decl's -@class FBFrictionlessRequestSettings; -@protocol FBRequestDelegate; -@protocol FBSessionDelegate; - -/** - * Main Facebook interface for interacting with the Facebook developer API. - * Provides methods to log in and log out a user, make requests using the REST - * and Graph APIs, and start user interface interactions (such as - * pop-ups promoting for credentials, permissions, stream posts, etc.) - */ -@interface Facebook : NSObject - -@property (nonatomic, copy) NSString *accessToken; -@property (nonatomic, copy) NSDate *expirationDate; -@property (nonatomic, assign) id sessionDelegate; -@property (nonatomic, copy) NSString *urlSchemeSuffix; -@property (nonatomic, readonly) BOOL isFrictionlessRequestsEnabled; -@property (nonatomic, readonly, retain) FBSession *session; - -- (instancetype)initWithAppId:(NSString *)appId - andDelegate:(id)delegate; - -- (instancetype)initWithAppId:(NSString *)appId - urlSchemeSuffix:(NSString *)urlSchemeSuffix - andDelegate:(id)delegate; - -- (void)authorize:(NSArray *)permissions; - -- (void)extendAccessToken; - -- (void)extendAccessTokenIfNeeded; - -- (BOOL)shouldExtendAccessToken; - -- (BOOL)handleOpenURL:(NSURL *)url; - -- (void)logout; - -- (void)logout:(id)delegate; - -- (FBRequest *)requestWithParams:(NSMutableDictionary *)params - andDelegate:(id)delegate; - -- (FBRequest *)requestWithMethodName:(NSString *)methodName - andParams:(NSMutableDictionary *)params - andHttpMethod:(NSString *)httpMethod - andDelegate:(id)delegate; - -- (FBRequest *)requestWithGraphPath:(NSString *)graphPath - andDelegate:(id)delegate; - -- (FBRequest *)requestWithGraphPath:(NSString *)graphPath - andParams:(NSMutableDictionary *)params - andDelegate:(id)delegate; - -- (FBRequest *)requestWithGraphPath:(NSString *)graphPath - andParams:(NSMutableDictionary *)params - andHttpMethod:(NSString *)httpMethod - andDelegate:(id)delegate; - -- (void)dialog:(NSString *)action - andDelegate:(id)delegate; - -- (void)dialog:(NSString *)action - andParams:(NSMutableDictionary *)params - andDelegate:(id)delegate; - -- (BOOL)isSessionValid; - -- (void)enableFrictionlessRequests; - -- (void)reloadFrictionlessRecipientCache; - -- (BOOL)isFrictionlessEnabledForRecipient:(id)fbid; - -- (BOOL)isFrictionlessEnabledForRecipients:(NSArray *)fbids; - -@end - -//////////////////////////////////////////////////////////////////////////////// - -/** - * Your application should implement this delegate to receive session callbacks. - */ -@protocol FBSessionDelegate - -/** - * Called when the user successfully logged in. - */ -- (void)fbDidLogin; - -/** - * Called when the user dismissed the dialog without logging in. - */ -- (void)fbDidNotLogin:(BOOL)cancelled; - -/** - * Called after the access token was extended. If your application has any - * references to the previous access token (for example, if your application - * stores the previous access token in persistent storage), your application - * should overwrite the old access token with the new one in this method. - * See extendAccessToken for more details. - */ -- (void)fbDidExtendToken:(NSString *)accessToken - expiresAt:(NSDate *)expiresAt; - -/** - * Called when the user logged out. - */ -- (void)fbDidLogout; - -/** - * Called when the current session has expired. This might happen when: - * - the access token expired - * - the app has been disabled - * - the user revoked the app's permissions - * - the user changed his or her password - */ -- (void)fbSessionInvalidated; - -@end - -@protocol FBRequestDelegate; - -enum { - kFBRequestStateReady, - kFBRequestStateLoading, - kFBRequestStateComplete, - kFBRequestStateError -}; - -// FBRequest(Deprecated) -// -// Summary -// The deprecated category is used to maintain back compat and ease migration -// to the revised SDK for iOS - -/** - * Do not use this interface directly, instead, use method in Facebook.h - */ -@interface FBRequest (Deprecated) - -@property (nonatomic, assign) id delegate; - -/** - * The URL which will be contacted to execute the request. - */ -@property (nonatomic, copy) NSString *url; - -/** - * The API method which will be called. - */ -@property (nonatomic, copy) NSString *httpMethod; - -/** - * The dictionary of parameters to pass to the method. - * - * These values in the dictionary will be converted to strings using the - * standard Objective-C object-to-string conversion facilities. - */ -@property (nonatomic, retain) NSMutableDictionary *params; -@property (nonatomic, retain) NSURLConnection *connection; -@property (nonatomic, retain) NSMutableData *responseText; -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" -@property (nonatomic) FBRequestState state; -#pragma GCC diagnostic pop -@property (nonatomic) BOOL sessionDidExpire; - -/** - * Error returned by the server in case of request's failure (or nil otherwise). - */ -@property (nonatomic, retain) NSError *error; - -- (BOOL)loading; - -+ (NSString *)serializeURL:(NSString *)baseUrl - params:(NSDictionary *)params; - -+ (NSString *)serializeURL:(NSString *)baseUrl - params:(NSDictionary *)params - httpMethod:(NSString *)httpMethod; - -@end - -//////////////////////////////////////////////////////////////////////////////// - -/* - *Your application should implement this delegate - */ -@protocol FBRequestDelegate - -@optional - -/** - * Called just before the request is sent to the server. - */ -- (void)requestLoading:(FBRequest *)request; - -/** - * Called when the Facebook API request has returned a response. - * - * This callback gives you access to the raw response. It's called before - * (void)request:(FBRequest *)request didLoad:(id)result, - * which is passed the parsed response object. - */ -- (void)request:(FBRequest *)request didReceiveResponse:(NSURLResponse *)response; - -/** - * Called when an error prevents the request from completing successfully. - */ -- (void)request:(FBRequest *)request didFailWithError:(NSError *)error; - -/** - * Called when a request returns and its response has been parsed into - * an object. - * - * The resulting object may be a dictionary, an array or a string, depending - * on the format of the API response. If you need access to the raw response, - * use: - * - * (void)request:(FBRequest *)request - * didReceiveResponse:(NSURLResponse *)response - */ -- (void)request:(FBRequest *)request didLoad:(id)result; - -/** - * Called when a request returns a response. - * - * The result object is the raw response from the server of type NSData - */ -- (void)request:(FBRequest *)request didLoadRawResponse:(NSData *)data; - -@end - - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FacebookSDK.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FacebookSDK.h deleted file mode 100644 index 7f3f865..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FacebookSDK.h +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// core -#import "FBAccessTokenData.h" -#import "FBAppCall.h" -#import "FBAppEvents.h" -#import "FBCacheDescriptor.h" -#import "FBDialogs.h" -#import "FBError.h" -#import "FBErrorUtility.h" -#import "FBFrictionlessRecipientCache.h" -#import "FBFriendPickerViewController.h" -#import "FBGraphLocation.h" -#import "FBGraphObject.h" // + design summary for graph component-group -#import "FBGraphPlace.h" -#import "FBGraphUser.h" -#import "FBInsights.h" -#import "FBLikeControl.h" -#import "FBLoginView.h" -#import "FBNativeDialogs.h" // deprecated, use FBDialogs.h -#import "FBOpenGraphAction.h" -#import "FBOpenGraphActionShareDialogParams.h" -#import "FBOpenGraphObject.h" -#import "FBPlacePickerViewController.h" -#import "FBProfilePictureView.h" -#import "FBRequest.h" -#import "FBSession.h" -#import "FBSessionTokenCachingStrategy.h" -#import "FBSettings.h" -#import "FBShareDialogParams.h" -#import "FBShareDialogPhotoParams.h" -#import "FBTaggableFriendPickerViewController.h" -#import "FBUserSettingsViewController.h" -#import "FBWebDialogs.h" -#import "NSError+FBError.h" - -/*! - @header - - @abstract Library header, import this to import all of the public types - in the Facebook SDK - - @discussion - -//////////////////////////////////////////////////////////////////////////////// - - - Summary: this header summarizes the structure and goals of the Facebook SDK for iOS. - Goals: - * Leverage and work well with modern features of iOS (e.g. blocks, ARC, etc.) - * Patterned after best of breed iOS frameworks (e.g. naming, pattern-use, etc.) - * Common integration experience is simple & easy to describe - * Factored to enable a growing list of scenarios over time - - Notes on approaches: - 1. We use a key scenario to drive prioritization of work for a given update - 2. We are building-atop and refactoring, rather than replacing, existing iOS SDK releases - 3. We use take an incremental approach where we can choose to maintain as little or as much compatibility with the existing SDK needed - a) and so we will be developing to this approach - b) and then at push-time for a release we will decide when/what to break - on a feature by feature basis - 4. Some light but critical infrastructure is needed to support both the goals - and the execution of this change (e.g. a build/package/deploy process) - - Design points: - We will move to a more object-oriented approach, in order to facilitate the - addition of a different class of objects, such as controls and visual helpers - (e.g. FBLikeView, FBPersonView), as well as sub-frameworks to enable scenarios - such (e.g. FBOpenGraphEntity, FBLocalEntityCache, etc.) - - As we add features, it will no longer be appropriate to host all functionality - in the Facebook class, though it will be maintained for some time for migration - purposes. Instead functionality lives in related collections of classes. - -
- @textblock
-
-               *------------* *----------*  *----------------* *---*
-  Scenario --> |FBPersonView| |FBLikeView|  | FBPlacePicker  | | F |
-               *------------* *----------*  *----------------* | a |
-               *-------------------*  *----------*  *--------* | c |
- Component --> |   FBGraphObject   |  | FBDialog |  | FBView | | e |
-               *-------------------*  *----------*  *--------* | b |
-               *---------* *---------* *---------------------* | o |
-      Core --> |FBSession| |FBRequest| |Utilities (e.g. JSON)| | o |
-               *---------* *---------* *---------------------* * k *
-
- @/textblock
- 
- - The figure above describes three layers of functionality, with the existing - Facebook on the side as a helper proxy to a subset of the overall SDK. The - layers loosely organize the SDK into *Core Objects* necessary to interface - with Facebook, higher-level *Framework Components* that feel like natural - extensions to existing frameworks such as UIKit and Foundation, but which - surface behavior broadly applicable to Facebook, and finally the - *Scenario Objects*, which provide deeper turn-key capibilities for useful - mobile scenarios. - - Use example (low barrier use case): - -
- @textblock
-
-// log on to Facebook
-[FBSession sessionOpenWithPermissions:nil
-                    completionHandler:^(FBSession *session,
-                                        FBSessionState status,
-                                        NSError *error) {
-                        if (session.isOpen) {
-                            // request basic information for the user
-                            [FBRequestConnection startWithGraphPath:@"me"
-                                                  completionHandler:^void(FBRequestConnection *request,
-                                                                          id result,
-                                                                          NSError *error) {
-                                                      if (!error) {
-                                                          // get json from result
-                                                      }
-                                                  }];
-                        }
-                    }];
- @/textblock
- 
- - */ - -#define FB_IOS_SDK_VERSION_STRING @"3.17.1" -#define FB_IOS_SDK_TARGET_PLATFORM_VERSION @"v2.1" - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/NSError+FBError.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/NSError+FBError.h deleted file mode 100644 index 686b4ca..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/DeprecatedHeaders/NSError+FBError.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FBError.h" - -/*! - @category NSError(FBError) - - @abstract - Adds additional properties to NSError to provide more information for Facebook related errors. - */ -@interface NSError (FBError) - -/*! - @abstract - Categorizes the error, if it is Facebook related, to simplify application mitigation behavior - - @discussion - In general, in response to an error connecting to Facebook, an application should, retry the - operation, request permissions, reconnect the application, or prompt the user to take an action. - The error category can be used to understand the class of error received from Facebook. For more infomation on this - see https://developers.facebook.com/docs/reference/api/errors/ - */ -@property (readonly) FBErrorCategory fberrorCategory; - -/*! - @abstract - If YES indicates that a user action is required in order to successfully continue with the Facebook operation. - - @discussion - In general if fberrorShouldNotifyUser is NO, then the application has a straightforward mitigation, such as - retry the operation or request permissions from the user, etc. In some cases it is necessary for the user to - take an action before the application continues to attempt a Facebook connection. For more infomation on this - see https://developers.facebook.com/docs/reference/api/errors/ - */ -@property (readonly) BOOL fberrorShouldNotifyUser; - -/*! - @abstract - A message suitable for display to the user, describing a user action necessary to enable Facebook functionality. - Not all Facebook errors yield a message suitable for user display; however in all cases where - fberrorShouldNotifyUser is YES, this property returns a localizable message suitable for display. - - @see +[FBErrorUtility userMessageForError:] - */ -@property (readonly, copy) NSString *fberrorUserMessage; - -/*! - @abstract - A short summary of this error suitable for display to the user. - Not all Facebook errors yield a message/title suitable for user display; - However in all cases when title is available, user should be notified. - - @see +[FBErrorUtility userTitleForError:] - */ -@property (readonly, copy) NSString *fberrorUserTitle; - -/*! - @abstract - YES if this error is transient and may succeed if the initial action is retried as-is. - Application may use this information to display a "Retry" button, if user should be notified about this error. - */ -@property (readonly) BOOL fberrorIsTransient; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/FacebookSDK b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/FacebookSDK deleted file mode 100644 index c484eeb..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/FacebookSDK and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAccessTokenData.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAccessTokenData.h deleted file mode 100644 index 23aa6af..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAccessTokenData.h +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSession.h" - -/*! - @class FBAccessTokenData - - @abstract Represents an access token used for the Facebook login flow - and includes associated metadata such as expiration date and permissions. - You should use factory methods (createToken...) to construct instances - and should be treated as immutable. - - @discussion For more information, see - https://developers.facebook.com/docs/concepts/login/access-tokens-and-types/. - */ -@interface FBAccessTokenData : NSObject - -/*! - @method - - @abstract Creates an FBAccessTokenData from an App Link provided by the Facebook application - or nil if the url is not valid. - - @param url The url provided. - @param appID needed in order to verify URL format. - @param urlSchemeSuffix needed in order to verify URL format. - - */ -+ (FBAccessTokenData *)createTokenFromFacebookURL:(NSURL *)url appID:(NSString *)appID urlSchemeSuffix:(NSString *)urlSchemeSuffix; - -/*! - @method - - @abstract Creates an FBAccessTokenData from a dictionary or returns nil if required data is missing. - @param dictionary the dictionary with FBSessionTokenCachingStrategy keys. - */ -+ (FBAccessTokenData *)createTokenFromDictionary:(NSDictionary *)dictionary; - -/*! - @method - - @abstract Creates an FBAccessTokenData from existing information or returns nil if required data is missing. - - @param accessToken The token string. If nil or empty, this method will return nil. - @param permissions The permissions set. A value of nil indicates basic permissions. - @param expirationDate The expiration date. A value of nil defaults to `[NSDate distantFuture]`. - @param loginType The login source of the token. - @param refreshDate The date that token was last refreshed. A value of nil defaults to `[NSDate date]`. - */ -+ (FBAccessTokenData *)createTokenFromString:(NSString *)accessToken - permissions:(NSArray *)permissions - expirationDate:(NSDate *)expirationDate - loginType:(FBSessionLoginType)loginType - refreshDate:(NSDate *)refreshDate; - -/*! - @method - - @abstract Creates an FBAccessTokenData from existing information or returns nil if required data is missing. - - @param accessToken The token string. If nil or empty, this method will return nil. - @param permissions The permissions set. A value of nil indicates basic permissions. - @param expirationDate The expiration date. A value of nil defaults to `[NSDate distantFuture]`. - @param loginType The login source of the token. - @param refreshDate The date that token was last refreshed. A value of nil defaults to `[NSDate date]`. - @param permissionsRefreshDate The date the permissions were last refreshed. A value of nil defaults to `[NSDate distantPast]`. - */ -+ (FBAccessTokenData *)createTokenFromString:(NSString *)accessToken - permissions:(NSArray *)permissions - expirationDate:(NSDate *)expirationDate - loginType:(FBSessionLoginType)loginType - refreshDate:(NSDate *)refreshDate - permissionsRefreshDate:(NSDate *)permissionsRefreshDate; - -/*! - @method - - @abstract Creates an FBAccessTokenData from existing information or returns nil if required data is missing. - - @param accessToken The token string. If nil or empty, this method will return nil. - @param permissions The permissions set. A value of nil indicates basic permissions. - @param expirationDate The expiration date. A value of nil defaults to `[NSDate distantFuture]`. - @param loginType The login source of the token. - @param refreshDate The date that token was last refreshed. A value of nil defaults to `[NSDate date]`. - @param permissionsRefreshDate The date the permissions were last refreshed. A value of nil defaults to `[NSDate distantPast]`. - @param appID The ID string of the calling app. A value of nil defaults to `[FBSettings defaultAppID]`. - */ -+ (FBAccessTokenData *)createTokenFromString:(NSString *)accessToken - permissions:(NSArray *)permissions - expirationDate:(NSDate *)expirationDate - loginType:(FBSessionLoginType)loginType - refreshDate:(NSDate *)refreshDate - permissionsRefreshDate:(NSDate *)permissionsRefreshDate - appID:(NSString *)appID; - -/*! - @method - - @abstract Designated factory method. - Creates an FBAccessTokenData from existing information or returns nil if required data is missing. - - @param accessToken The token string. If nil or empty, this method will return nil. - @param permissions The permissions set. A value of nil indicates basic permissions. - @param declinedPermissions The declined permissions set. A value of nil indicates empty array. - @param expirationDate The expiration date. A value of nil defaults to `[NSDate distantFuture]`. - @param loginType The login source of the token. - @param refreshDate The date that token was last refreshed. A value of nil defaults to `[NSDate date]`. - @param permissionsRefreshDate The date the permissions were last refreshed. A value of nil defaults to `[NSDate distantPast]`. - @param appID The ID string of the calling app. A value of nil defaults to `[FBSettings defaultAppID]`. - */ -+ (FBAccessTokenData *)createTokenFromString:(NSString *)accessToken - permissions:(NSArray *)permissions - declinedPermissions:(NSArray *)declinedPermissions - expirationDate:(NSDate *)expirationDate - loginType:(FBSessionLoginType)loginType - refreshDate:(NSDate *)refreshDate - permissionsRefreshDate:(NSDate *)permissionsRefreshDate - appID:(NSString *)appID - userID:(NSString *)userID; - -/*! - @method - - @abstract Returns a dictionary representation of this instance. - - @discussion This is provided for backwards compatibility with previous - access token related APIs that used a NSDictionary (see `FBSessionTokenCachingStrategy`). - */ -- (NSMutableDictionary *)dictionary; - -/*! - @method - - @abstract Returns a Boolean value that indicates whether a given object is an FBAccessTokenData object and exactly equal the receiver. - - @param accessTokenData the data to compare to the receiver. - */ -- (BOOL)isEqualToAccessTokenData:(FBAccessTokenData *)accessTokenData; - -/*! - @abstract returns the access token NSString. - */ -@property (readonly, nonatomic, copy) NSString *accessToken; - -/*! - @abstract returns the app ID NSString. - */ -@property (readonly, nonatomic, copy) NSString *appID; - -/*! - @abstract returns the user ID NSString that is associated with the token,if available. - @discussion This may not be populated for login behaviours such as the iOS system account. - */ -@property (readonly, nonatomic, copy) NSString *userID; - -/*! - @abstract returns the permissions associated with the access token. - */ -@property (readonly, nonatomic, copy) NSArray *permissions; - -/*! - @abstract returns the declined permissions associated with the access token. - */ -@property (readonly, nonatomic, copy) NSArray *declinedPermissions; - -/*! - @abstract returns the expiration date of the access token. - */ -@property (readonly, nonatomic, copy) NSDate *expirationDate; - -/*! - @abstract returns the login type associated with the token. - */ -@property (readonly, nonatomic) FBSessionLoginType loginType; - -/*! - @abstract returns the date the token was last refreshed. - */ -@property (readonly, nonatomic, copy) NSDate *refreshDate; - -/*! - @abstract returns the date the permissions were last refreshed. - */ -@property (readonly, nonatomic, copy) NSDate *permissionsRefreshDate; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppCall.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppCall.h deleted file mode 100644 index e741bad..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppCall.h +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBAccessTokenData.h" -#import "FBAppLinkData.h" -#import "FBDialogsData.h" -#import "FBSession.h" - -@class FBAppCall; - -/*! - @typedef FBAppCallHandler - - @abstract - A block that is passed to performAppCall to register for a callback with the results - of that AppCall - - @discussion - Pass a block of this type when calling performAppCall. This will be called on the UI - thread, once the AppCall completes. - - @param call The `FBAppCall` that was completed. - - */ -typedef void (^FBAppCallHandler)(FBAppCall *call); - -/*! - @typedef FBAppLinkFallbackHandler - - @abstract - See `+openDeferredAppLink`. - */ -typedef void (^FBAppLinkFallbackHandler)(NSError *error); - -/*! - @class FBAppCall - - @abstract - The FBAppCall object is used to encapsulate state when the app performs an - action that requires switching over to the native Facebook app, or when the app - receives an App Link. - - @discussion - - Each FBAppCall instance will have a unique ID - - This object is passed into an FBAppCallHandler for context - - dialogData will be present if this AppCall is for a Native Dialog - - appLinkData will be present if this AppCall is for an App Link - - accessTokenData will be present if this AppCall contains an access token. - */ -@interface FBAppCall : NSObject - -/*! @abstract The ID of this FBAppCall instance */ -@property (nonatomic, readonly) NSString *ID; - -/*! @abstract Error that occurred in processing this AppCall */ -@property (nonatomic, readonly) NSError *error; - -/*! @abstract Data related to a Dialog AppCall */ -@property (nonatomic, readonly) FBDialogsData *dialogData; - -/*! @abstract Data for native app link */ -@property (nonatomic, readonly) FBAppLinkData *appLinkData; - -/*! @abstract Access Token that was returned in this AppCall */ -@property (nonatomic, readonly) FBAccessTokenData *accessTokenData; - -/*! - @abstract - Returns an FBAppCall instance from a url, if applicable. Otherwise, returns nil. - - @param url The url. - - @return an FBAppCall instance if the url is valid; nil otherwise. - - @discussion This is typically used for App Link URLs. - */ -+ (FBAppCall *)appCallFromURL:(NSURL *)url; - -/*! - @abstract - Compares the receiving FBAppCall to the passed in FBAppCall - - @param appCall the other FBAppCall to compare to. - - @return YES if the AppCalls can be considered to be the same; NO if otherwise. - */ -- (BOOL)isEqualToAppCall:(FBAppCall *)appCall; - -/*! - @abstract - Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method - of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction - with the native Facebook app or as part of SSO authorization flow. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @return YES if the url was intended for the Facebook SDK, NO if not. - */ -+ (BOOL)handleOpenURL:(NSURL *)url - sourceApplication:(NSString *)sourceApplication; - -/*! - @abstract - Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method - of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction - with the native Facebook app or as part of SSO authorization flow. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param handler Optional handler that gives the app the opportunity to do some further processing on urls - that the SDK could not completely process. A fallback handler is not a requirement for such a url to be considered - handled. The fallback handler, if specified, is only ever called sychronously, before the method returns. - - @return YES if the url was intended for the Facebook SDK, NO if not. - */ -+ (BOOL)handleOpenURL:(NSURL *)url - sourceApplication:(NSString *)sourceApplication - fallbackHandler:(FBAppCallHandler)handler; - -/*! - @abstract - Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method - of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction - with the native Facebook app or as part of SSO authorization flow. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param session If this url is being sent back to this app as part of SSO authorization flow, then pass in the - session that was being opened. A nil value defaults to FBSession.activeSession - - @return YES if the url was intended for the Facebook SDK, NO if not. - */ -+ (BOOL)handleOpenURL:(NSURL *)url - sourceApplication:(NSString *)sourceApplication - withSession:(FBSession *)session; - -/*! - @abstract - Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method - of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction - with the native Facebook app or as part of SSO authorization flow. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param session If this url is being sent back to this app as part of SSO authorization flow, then pass in the - session that was being opened. A nil value defaults to FBSession.activeSession - - @param handler Optional handler that gives the app the opportunity to do some further processing on urls - that the SDK could not completely process. A fallback handler is not a requirement for such a url to be considered - handled. The fallback handler, if specified, is only ever called sychronously, before the method returns. - - @return YES if the url was intended for the Facebook SDK, NO if not. - */ -+ (BOOL)handleOpenURL:(NSURL *)url - sourceApplication:(NSString *)sourceApplication - withSession:(FBSession *)session - fallbackHandler:(FBAppCallHandler)handler; - -/*! - @abstract - Call this method when the application's applicationDidBecomeActive: is invoked. - This ensures proper state management of any pending FBAppCalls or pending login flow for the - FBSession.activeSession. If any pending FBAppCalls are found, their registered callbacks - will be invoked with appropriate state - */ -+ (void)handleDidBecomeActive; - -/*! - @abstract - Call this method when the application's applicationDidBecomeActive: is invoked. - This ensures proper state management of any pending FBAppCalls or a pending open for the - passed in FBSession. If any pending FBAppCalls are found, their registered callbacks will - be invoked with appropriate state - - @param session Session that is currently being used. Any pending calls to open will be cancelled. - If no session is provided, then the activeSession (if present) is used. - */ -+ (void)handleDidBecomeActiveWithSession:(FBSession *)session; - -/*! - @abstract - Call this method from the main thread to fetch deferred applink data. This may require - a network round trip. If successful, [+UIApplication openURL:] is invoked with the link - data. Otherwise, the fallbackHandler will be dispatched to the main thread. - - @param fallbackHandler the handler to be invoked if applink data could not be opened. - - @discussion the fallbackHandler may contain an NSError instance to capture any errors. In the - common case where there simply was no app link data, the NSError instance will be nil. - - This method should only be called from a location that occurs after any launching URL has - been processed (e.g., you should call this method from your application delegate's applicationDidBecomeActive:) - to avoid duplicate invocations of openURL:. - - If you must call this from the delegate's didFinishLaunchingWithOptions: you should - only do so if the application is not being launched by a URL. For example, - - if (launchOptions[UIApplicationLaunchOptionsURLKey] == nil) { - [FBAppCall openDeferredAppLink:^(NSError *error) { - // .... - } - } - */ -+ (void)openDeferredAppLink:(FBAppLinkFallbackHandler)fallbackHandler; - -@end - - - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppEvents.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppEvents.h deleted file mode 100644 index 335a8bc..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppEvents.h +++ /dev/null @@ -1,494 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSDKMacros.h" -#import "FBSession.h" - -/*! - - @typedef NS_ENUM (NSUInteger, FBAppEventsFlushBehavior) - - @abstract - Control when sends log events to the server - - @discussion - - */ -typedef NS_ENUM(NSUInteger, FBAppEventsFlushBehavior) { - - /*! Flush automatically: periodically (once a minute or every 100 logged events) and always at app reactivation. */ - FBAppEventsFlushBehaviorAuto = 0, - - /*! Only flush when the `flush` method is called. When an app is moved to background/terminated, the - events are persisted and re-established at activation, but they will only be written with an - explicit call to `flush`. */ - FBAppEventsFlushBehaviorExplicitOnly, - -}; - -/* - * Constant used by NSNotificationCenter for results of flushing AppEvents event logs - */ - -/*! NSNotificationCenter name indicating a result of a failed log flush attempt */ -FBSDK_EXTERN NSString *const FBAppEventsLoggingResultNotification; - - -// Predefined event names for logging events common to many apps. Logging occurs through the `logEvent` family of methods on `FBAppEvents`. -// Common event parameters are provided in the `FBAppEventsParameterNames*` constants. - -// General purpose - -/*! Deprecated: use [FBAppEvents activateApp] instead. */ -FBSDK_EXTERN NSString *const FBAppEventNameActivatedApp __attribute__ ((deprecated("use [FBAppEvents activateApp] instead"))); - -/*! Log this event when a user has completed registration with the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameCompletedRegistration; - -/*! Log this event when a user has viewed a form of content in the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameViewedContent; - -/*! Log this event when a user has performed a search within the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameSearched; - -/*! Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating. */ -FBSDK_EXTERN NSString *const FBAppEventNameRated; - -/*! Log this event when the user has completed a tutorial in the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameCompletedTutorial; - -// Ecommerce related - -/*! Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price. */ -FBSDK_EXTERN NSString *const FBAppEventNameAddedToCart; - -/*! Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price. */ -FBSDK_EXTERN NSString *const FBAppEventNameAddedToWishlist; - -/*! Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart. */ -FBSDK_EXTERN NSString *const FBAppEventNameInitiatedCheckout; - -/*! Log this event when the user has entered their payment info. */ -FBSDK_EXTERN NSString *const FBAppEventNameAddedPaymentInfo; - -/*! Deprecated: use [FBAppEvents logPurchase:currency:] or [FBAppEvents logPurchase:currency:parameters:] instead */ -FBSDK_EXTERN NSString *const FBAppEventNamePurchased __attribute__ ((deprecated("use [FBAppEvents logPurchase:currency:] or [FBAppEvents logPurchase:currency:parameters:] instead"))); - -// Gaming related - -/*! Log this event when the user has achieved a level in the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameAchievedLevel; - -/*! Log this event when the user has unlocked an achievement in the app. */ -FBSDK_EXTERN NSString *const FBAppEventNameUnlockedAchievement; - -/*! Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent. */ -FBSDK_EXTERN NSString *const FBAppEventNameSpentCredits; - - - -// Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family -// of methods on `FBAppEvents`. Common event names are provided in the `FBAppEventName*` constants. - -/*! Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is . */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameCurrency; - -/*! Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameRegistrationMethod; - -/*! Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameContentType; - -/*! Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameContentID; - -/*! Parameter key used to specify the string provided by the user for a search operation. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameSearchString; - -/*! Parameter key used to specify whether the activity being logged about was successful or not. `FBAppEventParameterValueYes` and `FBAppEventParameterValueNo` are good canonical values to use for this parameter. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameSuccess; - -/*! Parameter key used to specify the maximum rating available for the `FBAppEventNameRate` event. E.g., "5" or "10". */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameMaxRatingValue; - -/*! Parameter key used to specify whether payment info is available for the `FBAppEventNameInitiatedCheckout` event. `FBAppEventParameterValueYes` and `FBAppEventParameterValueNo` are good canonical values to use for this parameter. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNamePaymentInfoAvailable; - -/*! Parameter key used to specify how many items are being processed for an `FBAppEventNameInitiatedCheckout` or `FBAppEventNamePurchased` event. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameNumItems; - -/*! Parameter key used to specify the level achieved in a `FBAppEventNameAchieved` event. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameLevel; - -/*! Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the `FBAppEventNameAchievementUnlocked` event. */ -FBSDK_EXTERN NSString *const FBAppEventParameterNameDescription; - - - -// Predefined values to assign to event parameters that accompany events logged through the `logEvent` family -// of methods on `FBAppEvents`. Common event parameters are provided in the `FBAppEventParameterName*` constants. - -/*! Yes-valued parameter value to be used with parameter keys that need a Yes/No value */ -FBSDK_EXTERN NSString *const FBAppEventParameterValueYes; - -/*! No-valued parameter value to be used with parameter keys that need a Yes/No value */ -FBSDK_EXTERN NSString *const FBAppEventParameterValueNo; - - -/*! - - @class FBAppEvents - - @abstract - Client-side event logging for specialized application analytics available through Facebook App Insights - and for use with Facebook Ads conversion tracking and optimization. - - @discussion - The `FBAppEvents` static class has a few related roles: - - + Logging predefined and application-defined events to Facebook App Insights with a - numeric value to sum across a large number of events, and an optional set of key/value - parameters that define "segments" for this event (e.g., 'purchaserStatus' : 'frequent', or - 'gamerLevel' : 'intermediate') - - + Logging events to later be used for ads optimization around lifetime value. - - + Methods that control the way in which events are flushed out to the Facebook servers. - - Here are some important characteristics of the logging mechanism provided by `FBAppEvents`: - - + Events are not sent immediately when logged. They're cached and flushed out to the Facebook servers - in a number of situations: - - when an event count threshold is passed (currently 100 logged events). - - when a time threshold is passed (currently 60 seconds). - - when an app has gone to background and is then brought back to the foreground. - - + Events will be accumulated when the app is in a disconnected state, and sent when the connection is - restored and one of the above 'flush' conditions are met. - - + The `FBAppEvents` class in thread-safe in that events may be logged from any of the app's threads. - - + The developer can set the `flushBehavior` on `FBAppEvents` to force the flushing of events to only - occur on an explicit call to the `flush` method. - - + The developer can turn on console debug output for event logging and flushing to the server by using - the `FBLoggingBehaviorAppEvents` value in `[FBSettings setLoggingBehavior:]`. - - Some things to note when logging events: - - + There is a limit on the number of unique event names an app can use, on the order of 300. - + There is a limit to the number of unique parameter names in the provided parameters that can - be used per event, on the order of 25. This is not just for an individual call, but for all - invocations for that eventName. - + Event names and parameter names (the keys in the NSDictionary) must be between 2 and 40 characters, and - must consist of alphanumeric characters, _, -, or spaces. - + The length of each parameter value can be no more than on the order of 100 characters. - - */ -@interface FBAppEvents : NSObject - -/* - * Basic event logging - */ - -/*! - - @method - - @abstract - Log an event with just an eventName. - - @param eventName The name of the event to record. Limitations on number of events and name length - are given in the `FBAppEvents` documentation. - - */ -+ (void)logEvent:(NSString *)eventName; - -/*! - - @method - - @abstract - Log an event with an eventName and a numeric value to be aggregated with other events of this name. - - @param eventName The name of the event to record. Limitations on number of events and name length - are given in the `FBAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report - the cumulative and average value of this amount. - */ -+ (void)logEvent:(NSString *)eventName - valueToSum:(double)valueToSum; - - -/*! - - @method - - @abstract - Log an event with an eventName and a set of key/value pairs in the parameters dictionary. - Parameter limitations are described above. - - @param eventName The name of the event to record. Limitations on number of events and name construction - are given in the `FBAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBAppEvents` documentation. Commonly used parameter names - are provided in `FBAppEventParameterName*` constants. - */ -+ (void)logEvent:(NSString *)eventName - parameters:(NSDictionary *)parameters; - -/*! - - @method - - @abstract - Log an event with an eventName, a numeric value to be aggregated with other events of this name, - and a set of key/value pairs in the parameters dictionary. - - @param eventName The name of the event to record. Limitations on number of events and name construction - are given in the `FBAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report - the cumulative and average value of this amount. - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBAppEvents` documentation. Commonly used parameter names - are provided in `FBAppEventParameterName*` constants. - - */ -+ (void)logEvent:(NSString *)eventName - valueToSum:(double)valueToSum - parameters:(NSDictionary *)parameters; - - -/*! - - @method - - @abstract - Log an event with an eventName, a numeric value to be aggregated with other events of this name, - and a set of key/value pairs in the parameters dictionary. Providing session lets the developer - target a particular . If nil is provided, then `[FBSession activeSession]` will be used. - - @param eventName The name of the event to record. Limitations on number of events and name construction - are given in the `FBAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report - the cumulative and average value of this amount. Note that this is an NSNumber, and a value of `nil` denotes - that this event doesn't have a value associated with it for summation. - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBAppEvents` documentation. Commonly used parameter names - are provided in `FBAppEventParameterName*` constants. - - @param session to direct the event logging to, and thus be logged with whatever user (if any) - is associated with that . - */ -+ (void)logEvent:(NSString *)eventName - valueToSum:(NSNumber *)valueToSum - parameters:(NSDictionary *)parameters - session:(FBSession *)session; - - -/* - * Purchase logging - */ - -/*! - - @method - - @abstract - Log a purchase of the specified amount, in the specified currency. - - @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency. This value - will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). - - @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for - specific values. One reference for these is . - - @discussion This event immediately triggers a flush of the `FBAppEvents` event queue, unless the `flushBehavior` is set - to `FBAppEventsFlushBehaviorExplicitOnly`. - - */ -+ (void)logPurchase:(double)purchaseAmount - currency:(NSString *)currency; - -/*! - - @method - - @abstract - Log a purchase of the specified amount, in the specified currency, also providing a set of - additional characteristics describing the purchase. - - @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value - will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). - - @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for - specific values. One reference for these is . - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBAppEvents` documentation. Commonly used parameter names - are provided in `FBAppEventParameterName*` constants. - - @discussion This event immediately triggers a flush of the `FBAppEvents` event queue, unless the `flushBehavior` is set - to `FBAppEventsFlushBehaviorExplicitOnly`. - - */ -+ (void)logPurchase:(double)purchaseAmount - currency:(NSString *)currency - parameters:(NSDictionary *)parameters; - -/*! - - @method - - @abstract - Log a purchase of the specified amount, in the specified currency, also providing a set of - additional characteristics describing the purchase, as well as an to log to. - - @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value - will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). - - @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for - specific values. One reference for these is . - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBAppEvents` documentation. Commonly used parameter names - are provided in `FBAppEventParameterName*` constants. - - @param session to direct the event logging to, and thus be logged with whatever user (if any) - is associated with that . A value of `nil` will use `[FBSession activeSession]`. - - @discussion This event immediately triggers a flush of the `FBAppEvents` event queue, unless the `flushBehavior` is set - to `FBAppEventsFlushBehaviorExplicitOnly`. - - */ -+ (void)logPurchase:(double)purchaseAmount - currency:(NSString *)currency - parameters:(NSDictionary *)parameters - session:(FBSession *)session; - -/*! - @method - - @abstract This method has been replaced by [FBSettings limitEventAndDataUsage] */ -+ (BOOL)limitEventUsage __attribute__ ((deprecated("use [FBSettings limitEventAndDataUsage] instead"))); - -/*! - @method - - @abstract This method has been replaced by [FBSettings setLimitEventUsage] */ -+ (void)setLimitEventUsage:(BOOL)limitEventUsage __attribute__ ((deprecated("use [FBSettings setLimitEventAndDataUsage] instead"))); - -/*! - - @method - - @abstract - Notifies the events system that the app has launched and, when appropriate, logs an "activated app" event. Should typically be placed in the - app delegates' `applicationDidBecomeActive:` method. - - This method also takes care of logging the event indicating the first time this app has been launched, which, among other things, is used to - track user acquisition and app install ads conversions. - - @discussion - `activateApp` will not log an event on every app launch, since launches happen every time the app is backgrounded and then foregrounded. - "activated app" events will be logged when the app has not been active for more than 60 seconds. This method also causes a "deactivated app" - event to be logged when sessions are "completed", and these events are logged with the session length, with an indication of how much - time has elapsed between sessions, and with the number of background/foreground interruptions that session had. This data - is all visible in your app's App Events Insights. - */ -+ (void)activateApp; - -/* - * Control over event batching/flushing - */ - -/*! - - @method - - @abstract - Get the current event flushing behavior specifying when events are sent back to Facebook servers. - */ -+ (FBAppEventsFlushBehavior)flushBehavior; - -/*! - - @method - - @abstract - Set the current event flushing behavior specifying when events are sent back to Facebook servers. - - @param flushBehavior The desired `FBAppEventsFlushBehavior` to be used. - */ -+ (void)setFlushBehavior:(FBAppEventsFlushBehavior)flushBehavior; - -/*! - @method - - @abstract - Set the 'override' App ID for App Event logging. - - @discussion - In some cases, apps want to use one Facebook App ID for login and social presence and another - for App Event logging. (An example is if multiple apps from the same company share an app ID for login, but - want distinct logging.) By default, this value is `nil`, and defers to the `FacebookLoggingOverrideAppID` - plist value. If that's not set, the default App ID set via [FBSettings setDefaultAppID] - or in the `FacebookAppID` plist entry. - - This should be set before any other calls are made to `FBAppEvents`. Thus, you should set it in your application - delegate's `application:didFinishLaunchingWithOptions:` delegate. - - @param appID The Facebook App ID to be used for App Event logging. - */ -+ (void)setLoggingOverrideAppID:(NSString *)appID; - -/*! - @method - - @abstract - Get the 'override' App ID for App Event logging. - - @discussion - @see `setLoggingOverrideAppID:` - - */ -+ (NSString *)loggingOverrideAppID; - - -/*! - - @method - - @abstract - Explicitly kick off flushing of events to Facebook. This is an asynchronous method, but it does initiate an immediate - kick off. Server failures will be reported through the NotificationCenter with notification ID `FBAppEventsLoggingResultNotification`. - */ -+ (void)flush; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppLinkData.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppLinkData.h deleted file mode 100644 index dfdcd2e..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppLinkData.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -/*! - @abstract This class contains information that represents an App Link from Facebook. - */ -@interface FBAppLinkData : NSObject - -/*! @abstract The target */ -@property (readonly) NSURL *targetURL; - -/*! @abstract List of the types of actions for this target */ -@property (readonly) NSArray *actionTypes; - -/*! @abstract List of the ids of the actions for this target */ -@property (readonly) NSArray *actionIDs; - -/*! @abstract Reference breadcrumb provided during creation of story */ -@property (readonly) NSString *ref; - -/*! @abstract User Agent string set by the referer */ -@property (readonly) NSString *userAgent; - -/*! @abstract Referer data is a JSON object set by the referer with referer-specific content */ -@property (readonly) NSDictionary *refererData; - -/*! @abstract Full set of query parameters for this app link */ -@property (readonly) NSDictionary *originalQueryParameters; - -/*! @abstract Original url from which applinkData was extracted */ -@property (readonly) NSURL *originalURL; - -/*! @abstract Addtional arguments supplied with the App Link data. */ -@property (readonly) NSDictionary *arguments; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppLinkResolver.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppLinkResolver.h deleted file mode 100644 index 570be4a..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBAppLinkResolver.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import - -/*! - @class FBAppLinkResolver - - @abstract - Provides an implementation of the BFAppLinkResolving protocol that uses the Facebook app link - index to resolve App Links given a URL. It also provides an additional helper method that can resolve - multiple App Links in a single call. - - @discussion - Usage of this type requires a client token. See `[FBSettings setClientToken:]`. - */ -@interface FBAppLinkResolver : NSObject - -/*! - @abstract Asynchronously resolves App Link data for multiple URLs. - - @param urls An array of NSURLs to resolve into App Links. - @returns A BFTask that will return dictionary mapping input NSURLs to their - corresponding BFAppLink. - - @discussion - You should set the client token before making this call. See `[FBSettings setClientToken:]` - */ -- (BFTask *)appLinksFromURLsInBackground:(NSArray *)urls; - -/*! - @abstract Allocates and initializes a new instance of FBAppLinkResolver. - */ -+ (instancetype)resolver; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBCacheDescriptor.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBCacheDescriptor.h deleted file mode 100644 index 2cea86e..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBCacheDescriptor.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSession.h" - -/*! - @class - - @abstract - Base class from which CacheDescriptors derive, provides a method to fetch data for later use - - @discussion - Cache descriptors allow your application to specify the arguments that will be - later used with another object, such as the FBFriendPickerViewController. By using a cache descriptor - instance, an application can choose to fetch data ahead of the point in time where the data is needed. - */ -@interface FBCacheDescriptor : NSObject - -/*! - @method - @abstract - Fetches and caches the data described by the cache descriptor instance, for the given session. - - @param session the to use for fetching data - */ -- (void)prefetchAndCacheForSession:(FBSession *)session; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBColor.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBColor.h deleted file mode 100644 index 2c461f1..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBColor.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -UIColor *FBUIColorWithRGBA(uint8_t r, uint8_t g, uint8_t b, CGFloat a); -UIColor *FBUIColorWithRGB(uint8_t r, uint8_t g, uint8_t b); diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBDialogs.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBDialogs.h deleted file mode 100644 index 6630552..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBDialogs.h +++ /dev/null @@ -1,1028 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBAppCall.h" -#import "FBLinkShareParams.h" -#import "FBOpenGraphActionParams.h" -#import "FBPhotoParams.h" - -@class FBSession; -@protocol FBOpenGraphAction; - -/*! - @typedef FBNativeDialogResult enum - - @abstract - Passed to a handler to indicate the result of a dialog being displayed to the user. - */ -typedef NS_ENUM(NSUInteger, FBOSIntegratedShareDialogResult) { - /*! Indicates that the dialog action completed successfully. */ - FBOSIntegratedShareDialogResultSucceeded = 0, - /*! Indicates that the dialog action was cancelled (either by the user or the system). */ - FBOSIntegratedShareDialogResultCancelled = 1, - /*! Indicates that the dialog could not be shown (because not on ios6 or ios6 auth was not used). */ - FBOSIntegratedShareDialogResultError = 2 -}; - -/*! - @typedef - - @abstract Defines a handler that will be called in response to the native share dialog - being displayed. - */ -typedef void (^FBOSIntegratedShareDialogHandler)(FBOSIntegratedShareDialogResult result, NSError *error); - -/*! - @typedef FBDialogAppCallCompletionHandler - - @abstract - A block that when passed to a method in FBDialogs is called back - with the results of the AppCall for that dialog. - - @discussion - This will be called on the UI thread, once the AppCall completes. - - @param call The `FBAppCall` that was completed. - - @param results The results of the AppCall for the dialog. This parameters is present - purely for convenience, and is the exact same value as call.dialogData.results. - - @param error The `NSError` representing any error that occurred. This parameters is - present purely for convenience, and is the exact same value as call.error. - - */ -typedef void (^FBDialogAppCallCompletionHandler)( - FBAppCall *call, - NSDictionary *results, - NSError *error); - -/*! - @class FBDialogs - - @abstract - Provides methods to display native (i.e., non-Web-based) dialogs to the user. - - @discussion - If you are building an app with a urlSchemeSuffix, you should also set the appropriate - plist entry. See `[FBSettings defaultUrlSchemeSuffix]`. - */ -@interface FBDialogs : NSObject - -#pragma mark - OSIntegratedShareDialog - -/*! - @abstract - Presents a dialog that allows the user to share a status update that may include - text, images, or URLs. This dialog is only available on iOS 6.0 and above. The - current active session returned by [FBSession activeSession] will be used to determine - whether the dialog will be displayed. If a session is active, it must be open and the - login method used to authenticate the user must be native iOS 6.0 authentication. - If no session active, then whether the call succeeds or not will depend on - whether Facebook integration has been configured. - - @param viewController The view controller which will present the dialog. - - @param initialText The text which will initially be populated in the dialog. The user - will have the opportunity to edit this text before posting it. May be nil. - - @param image A UIImage that will be attached to the status update. May be nil. - - @param url An NSURL that will be attached to the status update. May be nil. - - @param handler A handler that will be called when the dialog is dismissed, or if an error - occurs. May be nil. - - @return YES if the dialog was presented, NO if not (in the case of a NO result, the handler - will still be called, with an error indicating the reason the dialog was not displayed) - */ -+ (BOOL)presentOSIntegratedShareDialogModallyFrom:(UIViewController *)viewController - initialText:(NSString *)initialText - image:(UIImage *)image - url:(NSURL *)url - handler:(FBOSIntegratedShareDialogHandler)handler; - -/*! - @abstract - Presents a dialog that allows the user to share a status update that may include - text, images, or URLs. This dialog is only available on iOS 6.0 and above. The - current active session returned by [FBSession activeSession] will be used to determine - whether the dialog will be displayed. If a session is active, it must be open and the - login method used to authenticate the user must be native iOS 6.0 authentication. - If no session active, then whether the call succeeds or not will depend on - whether Facebook integration has been configured. - - @param viewController The view controller which will present the dialog. - - @param initialText The text which will initially be populated in the dialog. The user - will have the opportunity to edit this text before posting it. May be nil. - - @param images An array of UIImages that will be attached to the status update. May - be nil. - - @param urls An array of NSURLs that will be attached to the status update. May be nil. - - @param handler A handler that will be called when the dialog is dismissed, or if an error - occurs. May be nil. - - @return YES if the dialog was presented, NO if not (in the case of a NO result, the handler - will still be called, with an error indicating the reason the dialog was not displayed) - */ -+ (BOOL)presentOSIntegratedShareDialogModallyFrom:(UIViewController *)viewController - initialText:(NSString *)initialText - images:(NSArray *)images - urls:(NSArray *)urls - handler:(FBOSIntegratedShareDialogHandler)handler; - -/*! - @abstract - Presents a dialog that allows the user to share a status update that may include - text, images, or URLs. This dialog is only available on iOS 6.0 and above. An - may be specified, or nil may be passed to indicate that the current - active session should be used. If a session is specified (whether explicitly or by - virtue of being the active session), it must be open and the login method used to - authenticate the user must be native iOS 6.0 authentication. If no session is specified - (and there is no active session), then whether the call succeeds or not will depend on - whether Facebook integration has been configured. - - @param viewController The view controller which will present the dialog. - - @param session The to use to determine whether or not the user has been - authenticated with iOS native authentication. If nil, then [FBSession activeSession] - will be checked. See discussion above for the implications of nil or non-nil session. - - @param initialText The text which will initially be populated in the dialog. The user - will have the opportunity to edit this text before posting it. May be nil. - - @param images An array of UIImages that will be attached to the status update. May - be nil. - - @param urls An array of NSURLs that will be attached to the status update. May be nil. - - @param handler A handler that will be called when the dialog is dismissed, or if an error - occurs. May be nil. - - @return YES if the dialog was presented, NO if not (in the case of a NO result, the handler - will still be called, with an error indicating the reason the dialog was not displayed) - */ -+ (BOOL)presentOSIntegratedShareDialogModallyFrom:(UIViewController *)viewController - session:(FBSession *)session - initialText:(NSString *)initialText - images:(NSArray *)images - urls:(NSArray *)urls - handler:(FBOSIntegratedShareDialogHandler)handler; - -/*! - @abstract Determines if the device is capable of presenting the OS integrated share dialog. - - @discussion This is the most basic check for capability for this feature. - - @see canPresentOSIntegratedShareDialogWithSession: - */ -+ (BOOL)canPresentOSIntegratedShareDialog; - -/*! - @abstract - Determines whether a call to presentShareDialogModallyFrom: will successfully present - a dialog. This is useful for applications that need to modify the available UI controls - depending on whether the dialog is available on the current platform and for the current - user. - - @param session The to use to determine whether or not the user has been - authenticated with iOS native authentication. If nil, then [FBSession activeSession] - will be checked. See discussion above for the implications of nil or non-nil session. - - @return YES if the dialog would be presented for the session, and NO if not - */ -+ (BOOL)canPresentOSIntegratedShareDialogWithSession:(FBSession *)session; - -#pragma mark - Native Share Dialog - -/*! - @abstract Determines if the device is capable of presenting the share dialog. - - @discussion This is the most basic check for capability for this feature. - - @see canPresentShareDialogWithOpenGraphActionParams: - @see canPresentShareDialogWithParams: - @see canPresentShareDialogWithPhotos: - */ -+ (BOOL)canPresentShareDialog; - -/*! - @abstract - Determines whether a call to presentShareDialogWithOpenGraphActionParams:clientState:handler: - will successfully present a dialog in the Facebook application. This is useful for applications - that need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @param params The parameters for the FB share dialog. - - @return YES if the dialog would be presented, and NO if not - - @discussion A return value of YES here indicates that the corresponding - presentShareDialogWithOpenGraphActionParams method will return a non-nil FBAppCall for - the same params. And vice versa. -*/ -+ (BOOL)canPresentShareDialogWithOpenGraphActionParams:(FBOpenGraphActionParams *)params; - -/*! - @abstract - Determines whether a call to presentShareDialogWithTarget: will successfully - present a dialog in the Facebook application. This is useful for applications that - need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @param params The parameters for the FB share dialog. - - @return YES if the dialog would be presented, and NO if not - - @discussion A return value of YES here indicates that the corresponding - presentShareDialogWithParams method will return a non-nil FBAppCall for the same - params. And vice versa. -*/ -+ (BOOL)canPresentShareDialogWithParams:(FBLinkShareParams *)params; - -/*! - @abstract - Determines whether a call to presentShareDialogWithPhotoParams: will successfully - present a dialog in the Facebook application. This is useful for applications that - need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @return YES if the dialog would be presented, and NO if not - - @discussion A return value of YES here indicates that the corresponding - presentShareDialogWithPhotoParams method will return a non-nil FBAppCall. -*/ -+ (BOOL)canPresentShareDialogWithPhotos; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share a status - update that may include text, images, or URLs. No session is required, and the app - does not need to be authorized to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the FB share dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithParams:(FBLinkShareParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithLink:(NSURL *)link - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param name The name, or title associated with the link. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithLink:(NSURL *)link - name:(NSString *)name - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param name The name, or title associated with the link. May be nil. - - @param caption The caption to be used with the link. May be nil. - - @param description The description associated with the link. May be nil. - - @param picture The link to a thumbnail to associate with the link. May be nil. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithLink:(NSURL *)link - name:(NSString *)name - caption:(NSString *)caption - description:(NSString *)description - picture:(NSURL *)picture - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the FB share dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithPhotoParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithPhotoParams:(FBPhotoParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param photos An NSArray containing UIImages to be shared. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithPhotoParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithPhotos:(NSArray *)photos - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to share the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param photos An NSArray containing UIImages to be shared. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithPhotoParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithPhotos:(NSArray *)photos - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to publish an Open - Graph action. No session is required, and the app does not need to be authorized to call - this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the Open Graph action dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithOpenGraphActionParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithOpenGraphActionParams:(FBOpenGraphActionParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to publish the - supplied Open Graph action. No session is required, and the app does not need to be - authorized to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param action The Open Graph action to be published. May not be nil. - - @param actionType the fully-specified Open Graph action type of the action (e.g., - my_app_namespace:my_action). - - @param previewPropertyName the name of the property on the action that represents the - primary Open Graph object associated with the action; this object will be displayed in the - preview portion of the share dialog. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithOpenGraphActionParams method is also returning YES for the same params. - */+ (FBAppCall *)presentShareDialogWithOpenGraphAction:(id)action - actionType:(NSString *)actionType - previewPropertyName:(NSString *)previewPropertyName - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook application that allows the user to publish the - supplied Open Graph action. No session is required, and the app does not need to be - authorized to call this. - - Note that this will perform an app switch to the Facebook app, and will cause the - current app to be suspended. When the share is complete, the Facebook app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param action The Open Graph action to be published. May not be nil. - - @param actionType the fully-specified Open Graph action type of the action (e.g., - my_app_namespace:my_action). - - @param previewPropertyName the name of the property on the action that represents the - primary Open Graph object associated with the action; this object will be displayed in the - preview portion of the share dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentShareDialogWithOpenGraphActionParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentShareDialogWithOpenGraphAction:(id)action - actionType:(NSString *)actionType - previewPropertyName:(NSString *)previewPropertyName - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -#pragma mark - Message Dialog - -/*! - @abstract Determines if the device is capable of presenting the message dialog. - - @discussion This is the most basic check for capability for this feature. - - @see canPresentMessageDialogWithOpenGraphActionParams: - @see canPresentMessageDialogWithParams: - @see canPresentMessageDialogWithPhotos: - */ -+ (BOOL)canPresentMessageDialog; - -/*! - @abstract - Determines whether a call to `presentMessageDialogWithOpenGraphActionParams:...` will - successfully present a dialog in the Facebook Messenger app. This is useful for applications - that need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @param params the dialog parameters - - @return YES if the dialog would be presented, and NO if not -*/ -+ (BOOL)canPresentMessageDialogWithOpenGraphActionParams:(FBOpenGraphActionParams *)params; - -/*! - @abstract - Determines whether a call to `presentMessageDialogWithParams:...` will successfully - present a dialog in the Facebook Messenger app. This is useful for applications that - need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @param params the dialog parameters - - @return YES if the dialog would be presented, and NO if not -*/ -+ (BOOL)canPresentMessageDialogWithParams:(FBLinkShareParams *)params; - -/*! - @abstract - Determines whether a call to `presentMessageDialogWithPhotos:...` will successfully - present a dialog in the Facebook Messenger app. This is useful for applications that - need to modify the available UI controls depending on whether the dialog is - available on the current platform. - - @return YES if the dialog would be presented, and NO if not -*/ -+ (BOOL)canPresentMessageDialogWithPhotos; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to publish an Open - Graph action. No session is required, and the app does not need to be authorized to call - this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the Open Graph action dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - `canPresentMessageDialogWithOpenGraphActionParams:` method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithOpenGraphActionParams:(FBOpenGraphActionParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to publish the - supplied Open Graph action. No session is required, and the app does not need to be - authorized to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param action The Open Graph action to be published. May not be nil. - - @param actionType the fully-specified Open Graph action type of the action (e.g., - my_app_namespace:my_action). - - @param previewPropertyName the name of the property on the action that represents the - primary Open Graph object associated with the action; this object will be displayed in the - preview portion of the share dialog. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentMessageDialogWithOpenGraphActionParams method is also returning YES for the same params. - */+ (FBAppCall *)presentMessageDialogWithOpenGraphAction:(id)action - actionType:(NSString *)actionType - previewPropertyName:(NSString *)previewPropertyName - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to publish the - supplied Open Graph action. No session is required, and the app does not need to be - authorized to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param action The Open Graph action to be published. May not be nil. - - @param actionType the fully-specified Open Graph action type of the action (e.g., - my_app_namespace:my_action). - - @param previewPropertyName the name of the property on the action that represents the - primary Open Graph object associated with the action; this object will be displayed in the - preview portion of the share dialog. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentMessageDialogWithOpenGraphActionParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithOpenGraphAction:(id)action - actionType:(NSString *)actionType - previewPropertyName:(NSString *)previewPropertyName - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to send the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the Message Dialog - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - `canPresentMessageDialogWithPhotos` method is also returning YES. - */ -+ (FBAppCall *)presentMessageDialogWithPhotoParams:(FBPhotoParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to send the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param photos An NSArray containing UIImages to be shared. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - `canPresentMessageDialogWithPhotos` method is also returning YES. - */ -+ (FBAppCall *)presentMessageDialogWithPhotos:(NSArray *)photos - handler:(FBDialogAppCallCompletionHandler)handler; -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to send the - supplied photo(s). No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param photos An NSArray containing UIImages to be shared. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - `canPresentMessageDialogWithPhotos` method is also returning YES. -*/ -+ (FBAppCall *)presentMessageDialogWithPhotos:(NSArray *)photos - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to share a status - update that may include text, images, or URLs. No session is required, and the app - does not need to be authorized to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param params The parameters for the Message Dialog. The "friends" and "place" properties - will be ignored as the Facebook Messenger app does not support tagging. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - `canPresentMessageDialogWithParams:` method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithParams:(FBLinkShareParams *)params - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentMessageDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithLink:(NSURL *)link - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param name The name, or title associated with the link. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentMessageDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithLink:(NSURL *)link - name:(NSString *)name - handler:(FBDialogAppCallCompletionHandler)handler; - -/*! - @abstract - Presents a dialog in the Facebook Messenger app that allows the user to share the - supplied link. No session is required, and the app does not need to be authorized - to call this. - - Note that this will perform an app switch to the Messenger app, and will cause the - current app to be suspended. When the share is complete, the Messenger app will redirect - to a url of the form "fb{APP_ID}://" that the application must handle. The app should - then call [FBAppCall handleOpenURL:sourceApplication:fallbackHandler:] to trigger - the appropriate handling. Note that FBAppCall will first try to call the completion - handler associated with this method, but since during an app switch, the calling app - may be suspended or killed, the app must also give a fallbackHandler to the - handleOpenURL: method in FBAppCall. - - @param link The URL link to be attached to the post. - - @param name The name, or title associated with the link. May be nil. - - @param caption The caption to be used with the link. May be nil. - - @param description The description associated with the link. May be nil. - - @param picture The link to a thumbnail to associate with the link. May be nil. - - @param clientState An NSDictionary that's passed through when the completion handler - is called. This is useful for the app to maintain state about the share request that - was made so as to have appropriate action when the handler is called. May be nil. - - @param handler A completion handler that may be called when the status update is - complete. May be nil. If non-nil, the handler will always be called asynchronously. - - @return An FBAppCall object that will also be passed into the provided - FBAppCallCompletionHandler. - - @discussion A non-nil FBAppCall object is only returned if the corresponding - canPresentMessageDialogWithParams method is also returning YES for the same params. - */ -+ (FBAppCall *)presentMessageDialogWithLink:(NSURL *)link - name:(NSString *)name - caption:(NSString *)caption - description:(NSString *)description - picture:(NSURL *)picture - clientState:(NSDictionary *)clientState - handler:(FBDialogAppCallCompletionHandler)handler; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBDialogsData.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBDialogsData.h deleted file mode 100644 index bffbc46..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBDialogsData.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -/*! - @abstract - This class encapsulates state and data related to the presentation and completion - of a dialog. - */ -@interface FBDialogsData : NSObject - -/*! @abstract The method being performed */ -@property (nonatomic, readonly) NSString *method; -/*! @abstract The arguments being passed to the entity that will show the dialog */ -@property (nonatomic, readonly) NSDictionary *arguments; -/*! @abstract Client JSON state that is passed through to the completion handler for context */ -@property (nonatomic, readonly) NSDictionary *clientState; -/*! @abstract Results of this FBAppCall that are only set before calling an FBAppCallHandler */ -@property (nonatomic, readonly) NSDictionary *results; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBDialogsParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBDialogsParams.h deleted file mode 100644 index 6fb76d6..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBDialogsParams.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -/*! - @class FBDialogsParams - - @abstract - This object is used as a base class for parameters passed to native dialogs that - open in the Facebook app. - */ -@interface FBDialogsParams : NSObject - -/*! - @abstract Validates the receiver to ensure that it is configured properly. - */ -- (NSError *)validate; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBError.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBError.h deleted file mode 100644 index ae2c3fc..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBError.h +++ /dev/null @@ -1,386 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSDKMacros.h" - -/*! - The NSError domain of all errors returned by the Facebook SDK. -*/ -FBSDK_EXTERN NSString *const FacebookSDKDomain; - -/*! - The NSError domain of all errors surfaced by the Facebook SDK that - were returned by the Facebook Application - */ -FBSDK_EXTERN NSString *const FacebookNativeApplicationDomain; - -/*! - The key in the userInfo NSDictionary of NSError where you can find - the inner NSError (if any). -*/ -FBSDK_EXTERN NSString *const FBErrorInnerErrorKey; - -/*! - The key in the userInfo NSDictionary of NSError for the parsed JSON response - from the server. In case of a batch, includes the JSON for a single FBRequest. -*/ -FBSDK_EXTERN NSString *const FBErrorParsedJSONResponseKey; - -/*! - The key in the userInfo NSDictionary of NSError indicating - the HTTP status code of the response (if any). -*/ -FBSDK_EXTERN NSString *const FBErrorHTTPStatusCodeKey; - -/*! - @typedef NS_ENUM (NSUInteger, FBErrorCode) - @abstract Error codes returned by the Facebook SDK in NSError. - - @discussion - These are valid only in the scope of FacebookSDKDomain. - */ -typedef NS_ENUM(NSInteger, FBErrorCode) { - /*! - Like nil for FBErrorCode values, represents an error code that - has not been initialized yet. - */ - FBErrorInvalid = 0, - - /*! The operation failed because it was cancelled. */ - FBErrorOperationCancelled, - - /*! A login attempt failed */ - FBErrorLoginFailedOrCancelled, - - /*! The graph API returned an error for this operation. */ - FBErrorRequestConnectionApi, - - /*! - The operation failed because the server returned an unexpected - response. You can get this error if you are not using the most - recent SDK, or if you set your application's migration settings - incorrectly for the version of the SDK you are using. - - If this occurs on the current SDK with proper app migration - settings, you may need to try changing to one request per batch. - */ - FBErrorProtocolMismatch, - - /*! Non-success HTTP status code was returned from the operation. */ - FBErrorHTTPError, - - /*! An endpoint that returns a binary response was used with FBRequestConnection. - Endpoints that return image/jpg, etc. should be accessed using NSURLRequest */ - FBErrorNonTextMimeTypeReturned, - - /*! An error occurred while trying to display a native dialog */ - FBErrorDialog, - - /*! An error occurred using the FBAppEvents class */ - FBErrorAppEvents, - - /*! An error occurred related to an iOS API call */ - FBErrorSystemAPI, - - /*! - The application had its applicationDidBecomeActive: method called while waiting - on a response from the native Facebook app for a pending FBAppCall. - */ - FBErrorAppActivatedWhilePendingAppCall, - - /*! - The application had its openURL: method called from a source that was not a - Facebook app and with a URL that was intended for the AppBridge - */ - FBErrorUntrustedURL, - - /*! - The URL passed to FBAppCall, was not able to be parsed - */ - FBErrorMalformedURL, - - /*! - The operation failed because the session is currently busy reconnecting. - */ - FBErrorSessionReconnectInProgess, - - /*! - Reserved for future use. - */ - FBErrorOperationDisallowedForRestrictedTreatment, -}; - -/*! - @typedef NS_ENUM (NSUInteger, FBNativeApplicationErrorCode) - @abstract Error codes returned by the Facebook SDK in NSError. - - @discussion - These are valid only in the scope of FacebookNativeApplicationDomain. - */ -typedef NS_ENUM(NSUInteger, FBNativeApplicationErrorCode) { - /*! A general error in processing an FBAppCall, without a known cause. Unhandled exceptions are a good example */ - FBAppCallErrorUnknown = 1, - - /*! The FBAppCall cannot be processed for some reason */ - FBAppCallErrorUnsupported = 2, - - /*! The FBAppCall is for a method that does not exist (or is turned off) */ - FBAppCallErrorUnknownMethod = 3, - - /*! The FBAppCall cannot be processed at the moment, but can be retried at a later time. */ - FBAppCallErrorServiceBusy = 4, - - /*! Share was called in the native Facebook app with incomplete or incorrect arguments */ - FBShareErrorInvalidParam = 100, - - /*! A server error occurred while calling Share in the native Facebook app. */ - FBShareErrorServer = 102, - - /*! An unknown error occurred while calling Share in the native Facebook app. */ - FBShareErrorUnknown = 103, - - /*! Disallowed from calling Share in the native Facebook app. */ - FBShareErrorDenied = 104, -}; - -/*! - @typedef NS_ENUM (NSInteger, FBErrorCategory) - - @abstract Indicates the Facebook SDK classification for the error - - @discussion - */ -typedef NS_ENUM(NSInteger, FBErrorCategory) { - /*! Indicates that the error category is invalid and likely represents an error that - is unrelated to Facebook or the Facebook SDK */ - FBErrorCategoryInvalid = 0, - /*! Indicates that the error may be authentication related but the application should retry the operation. - This case may involve user action that must be taken, and so the application should also test - the fberrorShouldNotifyUser property and if YES display fberrorUserMessage to the user before retrying.*/ - FBErrorCategoryRetry = 1, - /*! Indicates that the error is authentication related and the application should reopen the session */ - FBErrorCategoryAuthenticationReopenSession = 2, - /*! Indicates that the error is permission related */ - FBErrorCategoryPermissions = 3, - /*! Indicates that the error implies that the server had an unexpected failure or may be temporarily down */ - FBErrorCategoryServer = 4, - /*! Indicates that the error results from the server throttling the client */ - FBErrorCategoryThrottling = 5, - /*! Indicates the user cancelled the operation */ - FBErrorCategoryUserCancelled = 6, - /*! Indicates that the error is Facebook-related but is uncategorizable, and likely newer than the - current version of the SDK */ - FBErrorCategoryFacebookOther = -1, - /*! Indicates that the error is an application error resulting in a bad or malformed request to the server. */ - FBErrorCategoryBadRequest = -2, -}; - -/*! - The key in the userInfo NSDictionary of NSError where you can find - the inner NSError (if any). - */ -FBSDK_EXTERN NSString *const FBErrorInnerErrorKey; - -/*! - The key in the userInfo NSDictionary of NSError where you can find - the session associated with the error (if any). -*/ -FBSDK_EXTERN NSString *const FBErrorSessionKey; - -/*! - The key in the userInfo NSDictionary of NSError that points to the URL - that caused an error, in its processing by FBAppCall. - */ -FBSDK_EXTERN NSString *const FBErrorUnprocessedURLKey; - -/*! - The key in the userInfo NSDictionary of NSError for unsuccessful - logins (error.code equals FBErrorLoginFailedOrCancelled). If present, - the value will be one of the constants prefixed by FBErrorLoginFailedReason*. -*/ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReason; - -/*! - The key in the userInfo NSDictionary of NSError for unsuccessful - logins (error.code equals FBErrorLoginFailedOrCancelled). If present, - the value indicates an original login error code wrapped by this error. - This is only used in the web dialog login flow. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedOriginalErrorCode; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates the user - cancelled a web dialog auth. -*/ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonInlineCancelledValue; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates the user - did not cancel a web dialog auth. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonInlineNotCancelledValue; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates the user - cancelled a non-iOS 6 SSO (either Safari or Facebook App) login. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonUserCancelledValue; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates the user - cancelled an iOS system login. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonUserCancelledSystemValue; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates an error - condition. You may inspect the rest of userInfo for other data. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonOtherError; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates the app's - slider in iOS 6 (device Settings -> Privacy -> Facebook {app}) has - been disabled. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonSystemDisallowedWithoutErrorValue; - -/*! - A value that may appear in an NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key for login failures. Indicates an error - has occurred when requesting Facebook account acccess in iOS 6 that was - not `FBErrorLoginFailedReasonSystemDisallowedWithoutErrorValue` nor - a user cancellation. - */ -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonSystemError; -FBSDK_EXTERN NSString *const FBErrorLoginFailedReasonUnitTestResponseUnrecognized; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key when requesting new permissions fails. Indicates - the request for new permissions has failed because the session was closed. - */ -FBSDK_EXTERN NSString *const FBErrorReauthorizeFailedReasonSessionClosed; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key when requesting new permissions fails. Indicates - the request for new permissions has failed because the user cancelled. - */ -FBSDK_EXTERN NSString *const FBErrorReauthorizeFailedReasonUserCancelled; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key when requesting new permissions fails on - iOS 6 with the Facebook account. Indicates the request for new permissions has - failed because the user cancelled. - */ -FBSDK_EXTERN NSString *const FBErrorReauthorizeFailedReasonUserCancelledSystem; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorLoginFailedReason` key when requesting new permissions fails. Indicates - the request for new permissions has failed because the request was - for a different user than the original permission set. - */ -FBSDK_EXTERN NSString *const FBErrorReauthorizeFailedReasonWrongUser; - -/*! - The key in the userInfo NSDictionary of NSError for errors - encountered with `FBDialogs` operations. (error.code equals FBErrorDialog). - If present, the value will be one of the constants prefixed by FBErrorDialog *. -*/ -FBSDK_EXTERN NSString *const FBErrorDialogReasonKey; - -/*! - A value that may appear in the NSError userInfo dictionary under the -`FBErrorDialogReasonKey` key. Indicates that a native dialog is not supported - in the current OS. -*/ -FBSDK_EXTERN NSString *const FBErrorDialogNotSupported; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorDialogReasonKey` key. Indicates that a native dialog cannot be - displayed because it is not appropriate for the current session. -*/ -FBSDK_EXTERN NSString *const FBErrorDialogInvalidForSession; - -/*! - A value that may appear in the NSError userInfo dictionary under the - `FBErrorDialogReasonKey` key. Indicates that a native dialog cannot be - displayed for some other reason. - */ -FBSDK_EXTERN NSString *const FBErrorDialogCantBeDisplayed; - -/*! - A value that may appear in the NSError userInfo ditionary under the - `FBErrorDialogReasonKey` key. Indicates that a native dialog cannot be - displayed because an Open Graph object that was passed was not configured - correctly. The object must either (a) exist by having an 'id' or 'url' value; - or, (b) configured for creation (by setting the 'type' value and - provisionedForPost property) -*/ -FBSDK_EXTERN NSString *const FBErrorDialogInvalidOpenGraphObject; - -/*! - A value that may appear in the NSError userInfo ditionary under the - `FBErrorDialogReasonKey` key. Indicates that a native dialog cannot be - displayed because the parameters for sharing an Open Graph action were - not configured. The parameters must include an 'action', 'actionType', and - 'previewPropertyName'. - */ -FBSDK_EXTERN NSString *const FBErrorDialogInvalidOpenGraphActionParameters; - -/*! - A value that may appear in the NSError userInfo ditionary under the - `FBErrorDialogReasonKey` key. Indicates that a native dialog cannot be - displayed because the parameters for sharing a status update, link, or photo were - not configured. The parameters must not include both 'photos' and a 'link'. */ -FBSDK_EXTERN NSString *const FBErrorDialogInvalidShareParameters; - -/*! - A value that may appear in the NSError userInfo ditionary under the - `FBErrorDialogReasonKey` key. Indicates that a like dialog cannot be - displayed because the objectID parameter value is invalid. - */ -FBSDK_EXTERN NSString *const FBErrorDialogInvalidLikeObjectID; - -/*! - The key in the userInfo NSDictionary of NSError for errors - encountered with `FBAppEvents` operations (error.code equals FBErrorAppEvents). -*/ -FBSDK_EXTERN NSString *const FBErrorAppEventsReasonKey; - -// Exception strings raised by the Facebook SDK - -/*! - This exception is raised by methods in the Facebook SDK to indicate - that an attempted operation is invalid - */ -FBSDK_EXTERN NSString *const FBInvalidOperationException; - -// Facebook SDK also raises exceptions the following common exceptions: -// NSInvalidArgumentException - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBErrorUtility.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBErrorUtility.h deleted file mode 100644 index 76225ec..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBErrorUtility.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FBError.h" - -/*! - @class FBErrorUtility - - @abstract A utility class with methods to provide more information for Facebook - related errors if you do not want to use the NSError(FBError) category. - - */ -@interface FBErrorUtility : NSObject - -/*! - @abstract - Categorizes the error, if it is Facebook related, to simplify application mitigation behavior - - @discussion - In general, in response to an error connecting to Facebook, an application should, retry the - operation, request permissions, reconnect the application, or prompt the user to take an action. - The error category can be used to understand the class of error received from Facebook. For more infomation on this - see https://developers.facebook.com/docs/reference/api/errors/ - - @param error the error to be categorized. - */ -+ (FBErrorCategory)errorCategoryForError:(NSError *)error; - -/*! - @abstract - If YES indicates that a user action is required in order to successfully continue with the facebook operation - - @discussion - In general if this returns NO, then the application has a straightforward mitigation, such as - retry the operation or request permissions from the user, etc. In some cases it is necessary for the user to - take an action before the application continues to attempt a Facebook connection. For more infomation on this - see https://developers.facebook.com/docs/reference/api/errors/ - - @param error the error to inspect. - */ -+ (BOOL)shouldNotifyUserForError:(NSError *)error; - -/*! - @abstract - A message suitable for display to the user, describing a user action necessary to enable Facebook functionality. - Not all Facebook errors yield a message suitable for user display; however in all cases where - +shouldNotifyUserForError: returns YES, this method returns a localizable message suitable for display. - - @param error the error to inspect. - */ -+ (NSString *)userMessageForError:(NSError *)error; - -/*! - @abstract - A short summary of the error suitable for display to the user. - Not all Facebook errors yield a localized message/title suitable for user display; however in all cases when title is - available, user should be notified. - - @param error the error to inspect. - */ -+ (NSString *)userTitleForError:(NSError *)error; - -/*! - @abstract - YES if given error is transient and may succeed if the initial action is retried as-is. - Application may use this information to display a "Retry" button, if user should be notified about this error. - */ -+ (BOOL)isTransientError:(NSError *)error; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBFrictionlessRecipientCache.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBFrictionlessRecipientCache.h deleted file mode 100644 index cfca124..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBFrictionlessRecipientCache.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#import - -#import "FBCacheDescriptor.h" -#import "FBRequest.h" -#import "FBWebDialogs.h" - -/*! - @class FBFrictionlessRecipientCache - - @abstract - Maintains a cache of friends that can recieve application requests from the user in - using the frictionless feature of the requests web dialog. - - This class follows the `FBCacheDescriptor` pattern used elsewhere in the SDK, and applications may call - one of the prefetchAndCacheForSession methods to fetch a friend list prior to the - point where a dialog is presented. The cache is also updated with each presentation of the request - dialog using the cache instance. - */ -@interface FBFrictionlessRecipientCache : FBCacheDescriptor - -/*! @abstract An array containing the list of known FBIDs for recipients enabled for frictionless requests */ -@property (nonatomic, readwrite, copy) NSArray *recipientIDs; - -/*! - @abstract - Checks to see if a given user or FBID for a user is known to be enabled for - frictionless requestests - - @param user An NSString, NSNumber of `FBGraphUser` representing a user to check - */ -- (BOOL)isFrictionlessRecipient:(id)user; - -/*! - @abstract - Checks to see if a collection of users or FBIDs for users are known to be enabled for - frictionless requestests - - @param users An NSArray of NSString, NSNumber of `FBGraphUser` objects - representing users to check - */ -- (BOOL)areFrictionlessRecipients:(NSArray *)users; - -/*! - @abstract - Issues a request and fills the cache with a list of users to use for frictionless requests - - @param session The session to use for the request; nil indicates that the Active Session should - be used - */ -- (void)prefetchAndCacheForSession:(FBSession *)session; - -/*! - @abstract - Issues a request and fills the cache with a list of users to use for frictionless requests - - @param session The session to use for the request; nil indicates that the Active Session should - be used - - @param handler An optional completion handler, called when the request for cached users has - completed. It can be useful to use the handler to enable UI or perform other request-related - operations, after the cache is populated. - */ -- (void)prefetchAndCacheForSession:(FBSession *)session - completionHandler:(FBRequestHandler)handler; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBFriendPickerViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBFriendPickerViewController.h deleted file mode 100644 index 29ffb5f..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBFriendPickerViewController.h +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBCacheDescriptor.h" -#import "FBGraphUser.h" -#import "FBPeoplePickerViewController.h" - -@protocol FBFriendPickerDelegate; - - -/*! - @class - - @abstract - The `FBFriendPickerViewController` class creates a controller object that manages - the user interface for displaying and selecting Facebook friends. - - @discussion - When the `FBFriendPickerViewController` view loads it creates a `UITableView` object - where the friends will be displayed. You can access this view through the `tableView` - property. The friend display can be sorted by first name or last name. Friends' - names can be displayed with the first name first or the last name first. - - The friend data can be pre-fetched and cached prior to using the view controller. The - cache is setup using an object that can trigger the - data fetch. Any friend data requests will first check the cache and use that data. - If the friend picker is being displayed cached data will initially be shown before - a fresh copy is retrieved. - - The `delegate` property may be set to an object that conforms to the - protocol. The `delegate` object will receive updates related to friend selection and - data changes. The delegate can also be used to filter the friends to display in the - picker. - */ -@interface FBFriendPickerViewController : FBPeoplePickerViewController - -/*! - @abstract - The list of friends that are currently selected in the veiw. - The items in the array are objects. - - @discussion - You can set this this array to pre-select items in the picker. The objects in the array - must be complete id objects (i.e., fetched from a Graph query or from a - previous picker's selection, with id and appropriate name fields). - */ -@property (nonatomic, copy, readwrite) NSArray *selection; - -/*! - @abstract - Configures the properties used in the caching data queries. - - @discussion - Cache descriptors are used to fetch and cache the data used by the view controller. - If the view controller finds a cached copy of the data, it will - first display the cached content then fetch a fresh copy from the server. - - @param cacheDescriptor The containing the cache query properties. - */ -- (void)configureUsingCachedDescriptor:(FBCacheDescriptor *)cacheDescriptor; - -/*! - @method - - @abstract - Creates a cache descriptor based on default settings of the `FBFriendPickerViewController` object. - - @discussion - An `FBCacheDescriptor` object may be used to pre-fetch data before it is used by - the view controller. It may also be used to configure the `FBFriendPickerViewController` - object. - */ -+ (FBCacheDescriptor *)cacheDescriptor; - -/*! - @method - - @abstract - Creates a cache descriptor with additional fields and a profile ID for use with the `FBFriendPickerViewController` object. - - @discussion - An `FBCacheDescriptor` object may be used to pre-fetch data before it is used by - the view controller. It may also be used to configure the `FBFriendPickerViewController` - object. - - @param userID The profile ID of the user whose friends will be displayed. A nil value implies a "me" alias. - @param fieldsForRequest The set of additional fields to include in the request for friend data. - */ -+ (FBCacheDescriptor *)cacheDescriptorWithUserID:(NSString *)userID fieldsForRequest:(NSSet *)fieldsForRequest; - -@end - -/*! - @protocol - - @abstract - The `FBFriendPickerDelegate` protocol defines the methods used to receive event - notifications and allow for deeper control of the - view. - - The methods of correspond to . - If a pair of corresponding methods are implemented, the - method is called first. - */ -@protocol FBFriendPickerDelegate -@optional - -/*! - @abstract - Tells the delegate that data has been loaded. - - @discussion - The object's `tableView` property is automatically - reloaded when this happens. However, if another table view, for example the - `UISearchBar` is showing data, then it may also need to be reloaded. - - @param friendPicker The friend picker view controller whose data changed. - */ -- (void)friendPickerViewControllerDataDidChange:(FBFriendPickerViewController *)friendPicker; - -/*! - @abstract - Tells the delegate that the selection has changed. - - @param friendPicker The friend picker view controller whose selection changed. - */ -- (void)friendPickerViewControllerSelectionDidChange:(FBFriendPickerViewController *)friendPicker; - -/*! - @abstract - Asks the delegate whether to include a friend in the list. - - @discussion - This can be used to implement a search bar that filters the friend list. - - If -[ graphObjectPickerViewController:shouldIncludeGraphObject:] - is implemented and returns NO, this method is not called. - - @param friendPicker The friend picker view controller that is requesting this information. - @param user An object representing the friend. - */ -- (BOOL)friendPickerViewController:(FBFriendPickerViewController *)friendPicker - shouldIncludeUser:(id)user; - -/*! - @abstract - Tells the delegate that there is a communication error. - - @param friendPicker The friend picker view controller that encountered the error. - @param error An error object containing details of the error. - */ -- (void)friendPickerViewController:(FBFriendPickerViewController *)friendPicker - handleError:(NSError *)error; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphLocation.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphLocation.h deleted file mode 100644 index 7f71ce6..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphLocation.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphObject.h" - -/*! - @protocol - - @abstract - The `FBGraphLocation` protocol enables typed access to the `location` property - of a Facebook place object. - - - @discussion - The `FBGraphLocation` protocol represents the most commonly used properties of a - location object. It may be used to access an `NSDictionary` object that has - been wrapped with an facade. - */ -@protocol FBGraphLocation - -/*! - @property - @abstract Typed access to a location's street. - */ -@property (retain, nonatomic) NSString *street; - -/*! - @property - @abstract Typed access to a location's city. - */ -@property (retain, nonatomic) NSString *city; - -/*! - @property - @abstract Typed access to a location's state. - */ -@property (retain, nonatomic) NSString *state; - -/*! - @property - @abstract Typed access to a location's country. - */ -@property (retain, nonatomic) NSString *country; - -/*! - @property - @abstract Typed access to a location's zip code. - */ -@property (retain, nonatomic) NSString *zip; - -/*! - @property - @abstract Typed access to a location's latitude. - */ -@property (retain, nonatomic) NSNumber *latitude; - -/*! - @property - @abstract Typed access to a location's longitude. - */ -@property (retain, nonatomic) NSNumber *longitude; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphObject.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphObject.h deleted file mode 100644 index dfdff1c..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphObject.h +++ /dev/null @@ -1,269 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@protocol FBOpenGraphObject; -@protocol FBOpenGraphAction; - -/*! - @protocol - - @abstract - The `FBGraphObject` protocol is the base protocol which enables typed access to graph objects and - open graph objects. Inherit from this protocol or a sub-protocol in order to introduce custom types - for typed access to Facebook objects. - - @discussion - The `FBGraphObject` protocol is the core type used by the Facebook SDK for iOS to - represent objects in the Facebook Social Graph and the Facebook Open Graph (OG). - The `FBGraphObject` class implements useful default functionality, but is rarely - used directly by applications. The `FBGraphObject` protocol, in contrast is the - base protocol for all graph object access via the SDK. - - Goals of the FBGraphObject types: -
    -
  • Lightweight/maintainable/robust
  • -
  • Extensible and resilient to change, both by Facebook and third party (OG)
  • -
  • Simple and natural extension to Objective-C
  • -
- - The FBGraphObject at its core is a duck typed (if it walks/swims/quacks... - its a duck) model which supports an optional static facade. Duck-typing achieves - the flexibility necessary for Social Graph and OG uses, and the static facade - increases discoverability, maintainability, robustness and simplicity. - The following excerpt from the PlacePickerSample shows a simple use of the - a facade protocol `FBGraphPlace` by an application: - -
- ‐ (void)placePickerViewControllerSelectionDidChange:(FBPlacePickerViewController *)placePicker
- {
- id<FBGraphPlace> place = placePicker.selection;
-
- // we'll use logging to show the simple typed property access to place and location info
- NSLog(@"place=%@, city=%@, state=%@, lat long=%@ %@",
- place.name,
- place.location.city,
- place.location.state,
- place.location.latitude,
- place.location.longitude);
- }
- 
- - Note that in this example, access to common place information is available through typed property - syntax. But if at some point places in the Social Graph supported additional fields "foo" and "bar", not - reflected in the `FBGraphPlace` protocol, the application could still access the values like so: - -
- NSString *foo = [place objectForKey:@"foo"]; // perhaps located at the ... in the preceding example
- NSNumber *bar = [place objectForKey:@"bar"]; // extensibility applies to Social and Open graph uses
- 
- - In addition to untyped access, applications and future revisions of the SDK may add facade protocols by - declaring a protocol inheriting the `FBGraphObject` protocol, like so: - -
- @protocol MyGraphThing<FBGraphObject>
- @property (copy, nonatomic) NSString *objectID;
- @property (copy, nonatomic) NSString *name;
- @end
- 
- - Important: facade implementations are inferred by graph objects returned by the methods of the SDK. This - means that no explicit implementation is required by application or SDK code. Any `FBGraphObject` instance - may be cast to any `FBGraphObject` facade protocol, and accessed via properties. If a field is not present - for a given facade property, the property will return nil. - - The following layer diagram depicts some of the concepts discussed thus far: - -
-                        *-------------* *------------* *-------------**--------------------------*
- Facade -->             | FBGraphUser | |FBGraphPlace| | MyGraphThing|| MyGraphPersonExtentension| ...
-                        *-------------* *------------* *-------------**--------------------------*
-                        *------------------------------------* *--------------------------------------*
- Transparent impl -->   |     FBGraphObject (instances)      | |      CustomClass<FBGraphObject>      |
-                        *------------------------------------* *--------------------------------------*
-                        *-------------------**------------------------* *-----------------------------*
- Apparent impl -->      |NSMutableDictionary||FBGraphObject (protocol)| |FBGraphObject (class methods)|
-                        *-------------------**------------------------* *-----------------------------*
- 
- - The *Facade* layer is meant for typed access to graph objects. The *Transparent impl* layer (more - specifically, the instance capabilities of `FBGraphObject`) are used by the SDK and app logic - internally, but are not part of the public interface between application and SDK. The *Apparent impl* - layer represents the lower-level "duck-typed" use of graph objects. - - Implementation note: the SDK returns `NSMutableDictionary` derived instances with types declared like - one of the following: - -
- NSMutableDictionary<FBGraphObject> *obj;     // no facade specified (still castable by app)
- NSMutableDictionary<FBGraphPlace> *person;   // facade specified when possible
- 
- - However, when passing a graph object to the SDK, `NSMutableDictionary` is not assumed; only the - FBGraphObject protocol is assumed, like so: - -
- id<FBGraphObject> anyGraphObj;
- 
- - As such, the methods declared on the `FBGraphObject` protocol represent the methods used by the SDK to - consume graph objects. While the `FBGraphObject` class implements the full `NSMutableDictionary` and KVC - interfaces, these are not consumed directly by the SDK, and are optional for custom implementations. - */ -@protocol FBGraphObject - -/*! - @method - @abstract - Returns the number of properties on this `FBGraphObject`. - */ -- (NSUInteger)count; -/*! - @method - @abstract - Returns a property on this `FBGraphObject`. - - @param aKey name of the property to return - */ -- (id)objectForKey:(id)aKey; -/*! - @method - @abstract - Returns an enumerator of the property names on this `FBGraphObject`. - */ -- (NSEnumerator *)keyEnumerator; -/*! - @method - @abstract - Removes a property on this `FBGraphObject`. - - @param aKey name of the property to remove - */ -- (void)removeObjectForKey:(id)aKey; -/*! - @method - @abstract - Sets the value of a property on this `FBGraphObject`. - - @param anObject the new value of the property - @param aKey name of the property to set - */ -- (void)setObject:(id)anObject forKey:(id)aKey; - -@optional - -/*! - @abstract - This property signifies that the current graph object is provisioned for POST (as a definition - for a new or updated graph object), and should be posted AS-IS in its JSON encoded form, whereas - some graph objects (usually those embedded in other graph objects as references to existing objects) - may only have their "id" or "url" posted. - */ -@property (nonatomic, assign) BOOL provisionedForPost; - -@end - -/*! - @class - - @abstract - Static class with helpers for use with graph objects - - @discussion - The public interface of this class is useful for creating objects that have the same graph characteristics - of those returned by methods of the SDK. This class also represents the internal implementation of the - `FBGraphObject` protocol, used by the Facebook SDK. Application code should not use the `FBGraphObject` class to - access instances and instance members, favoring the protocol. - */ -@interface FBGraphObject : NSMutableDictionary - -/*! - @method - @abstract - Used to create a graph object, usually for use in posting a new graph object or action. - */ -+ (NSMutableDictionary *)graphObject; - -/*! - @method - @abstract - Used to wrap an existing dictionary with a `FBGraphObject` facade - - @discussion - Normally you will not need to call this method, as the Facebook SDK already "FBGraphObject-ifys" json objects - fetch via `FBRequest` and `FBRequestConnection`. However, you may have other reasons to create json objects in your - application, which you would like to treat as a graph object. The pattern for doing this is that you pass the root - node of the json to this method, to retrieve a wrapper. From this point, if you traverse the graph, any other objects - deeper in the hierarchy will be wrapped as `FBGraphObject`'s in a lazy fashion. - - This method is designed to avoid unnecessary memory allocations, and object copying. Due to this, the method does - not copy the source object if it can be avoided, but rather wraps and uses it as is. The returned object derives - callers shoudl use the returned object after calls to this method, rather than continue to call methods on the original - object. - - @param jsonDictionary the dictionary representing the underlying object to wrap - */ -+ (NSMutableDictionary *)graphObjectWrappingDictionary:(NSDictionary *)jsonDictionary; - -/*! - @method - @abstract - Used to create a graph object that's provisioned for POST, usually for use in posting a new Open Graph Action. - */ -+ (NSMutableDictionary *)openGraphActionForPost; - -/*! - @method - @abstract - Used to create a graph object that's provisioned for POST, usually for use in posting a new Open Graph object. - */ -+ (NSMutableDictionary *)openGraphObjectForPost; - -/*! - @method - @abstract - Used to create a graph object that's provisioned for POST, usually for use in posting a new Open Graph object. - - @param type the object type name, in the form namespace:typename - @param title a title for the object - @param image the image property for the object - @param url the url property for the object - @param description the description for the object - */ -+ (NSMutableDictionary *)openGraphObjectForPostWithType:(NSString *)type - title:(NSString *)title - image:(id)image - url:(id)url - description:(NSString *)description; - -/*! - @method - @abstract - Used to compare two `FBGraphObject`s to determine if represent the same object. We do not overload - the concept of equality as there are various types of equality that may be important for an `FBGraphObject` - (for instance, two different `FBGraphObject`s could represent the same object, but contain different - subsets of fields). - - @param anObject an `FBGraphObject` to test - - @param anotherObject the `FBGraphObject` to compare it against - */ -+ (BOOL)isGraphObjectID:(id)anObject sameAs:(id)anotherObject; - - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphObjectPickerViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphObjectPickerViewController.h deleted file mode 100644 index 66af8a5..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphObjectPickerViewController.h +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FBGraphObject.h" -#import "FBSession.h" -#import "FBViewController.h" - -@protocol FBGraphObjectPickerDelegate; - -/*! - @class FBGraphObjectPickerViewController - - @abstract - The `FBGraphObjectPickerViewController` class is an abstract controller object that - manages the user interface for displaying and selecting a collection of graph objects. - - @discussion - When the `FBGraphObjectPickerViewController` view loads it creates a `UITableView` - object where the graph objects defined by a concrete subclass will be displayed. You - can access this view through the `tableView` property. - - The `delegate` property may be set to an object that conforms to the - protocol. The `delegate` object will receive updates related to object selection and - data changes. The delegate can also be used to filter the objects to display in the - picker. - */ -@interface FBGraphObjectPickerViewController : FBViewController - -/*! - @abstract - Returns an outlet for the spinner used in the view controller. - */ -@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *spinner; - -/*! - @abstract - Returns an outlet for the table view managed by the view controller. - */ -@property (nonatomic, retain) IBOutlet UITableView *tableView; - -/*! - @abstract - Addtional fields to fetch when making the Graph API call to get graph object data. - */ -@property (nonatomic, copy) NSSet *fieldsForRequest; - -/*! - @abstract - A Boolean value that indicates whether pictures representing the graph object are displayed. - Defaults to YES. - */ -@property (nonatomic) BOOL itemPicturesEnabled; - -/*! - @abstract - The session that is used in the request for the graph object data. - */ -@property (nonatomic, retain) FBSession *session; - -/*! - @abstract - Clears the current selection, so the picker is ready for a fresh use. - */ -- (void)clearSelection; - -/*! - @abstract - Initiates a query to get the graph object data. - - - @discussion - A cached copy will be returned if available. The cached view is temporary until a fresh copy is - retrieved from the server. It is legal to call this more than once. - */ -- (void)loadData; - -/*! - @abstract - Updates the view locally without fetching data from the server or from cache. - - @discussion - Use this if the filter or sort (if applicable) properties change. This may affect the - order or display of information. - */ -- (void)updateView; - -@end - -/*! - @protocol - - @abstract - The `FBGraphObjectPickerDelegate` protocol defines the methods used to receive event - notifications and allow for deeper control of the - view. - */ -@protocol FBGraphObjectPickerDelegate -@optional - -/*! - @abstract - Tells the delegate that data has been loaded. - - @discussion - The object's `tableView` property is automatically - reloaded when this happens. However, if another table view, for example the - `UISearchBar` is showing data, then it may also need to be reloaded. - - @param graphObjectPicker The graph object picker view controller whose data changed. - */ -- (void)graphObjectPickerViewControllerDataDidChange:(FBGraphObjectPickerViewController *)graphObjectPicker; - -/*! - @abstract - Tells the delegate that the selection has changed. - - @param graphObjectPicker The graph object picker view controller whose selection changed. - */ -- (void)graphObjectPickerViewControllerSelectionDidChange:(FBGraphObjectPickerViewController *)graphObjectPicker; - -/*! - @abstract - Asks the delegate whether to include a graph object in the list. - - @discussion - This can be used to implement a search bar that filters the graph object list. - - @param graphObjectPicker The graph object picker view controller that is requesting this information. - @param object An object - */ -- (BOOL)graphObjectPickerViewController:(FBGraphObjectPickerViewController *)graphObjectPicker - shouldIncludeGraphObject:(id)object; - -/*! - @abstract - Called if there is a communication error. - - @param graphObjectPicker The graph object picker view controller that encountered the error. - @param error An error object containing details of the error. - */ -- (void)graphObjectPickerViewController:(FBGraphObjectPickerViewController *)graphObjectPicker - handleError:(NSError *)error; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphPerson.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphPerson.h deleted file mode 100644 index 44bdbe3..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphPerson.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphObject.h" - -/*! - @protocol - - @abstract - The `FBGraphPerson` protocol enables typed access to a person's name, photo - and context-specific identifier as represented in the Graph API. - - - @discussion - The `FBGraphPerson` protocol provides access to the name, picture and context-specific - ID of a person represented by a graph object. It may be used to access an `NSDictionary` - object that has been wrapped with an facade. - */ -@protocol FBGraphPerson - -/*! - @property - @abstract Typed access to the user ID. - @discussion Note this typically refers to the "id" field of the graph object (i.e., equivalent - to `[self objectForKey:@"id"]`) but is differently named to avoid conflicting with Apple's - non-public selectors. - */ -@property (retain, nonatomic) NSString *objectID; - -/*! - @property - @abstract Typed access to the user's name. - */ -@property (retain, nonatomic) NSString *name; - -/*! - @property - @abstract Typed access to the user's first name. - */ -@property (retain, nonatomic) NSString *first_name; - -/*! - @property - @abstract Typed access to the user's middle name. - */ -@property (retain, nonatomic) NSString *middle_name; - -/*! - @property - @abstract Typed access to the user's last name. - */ -@property (retain, nonatomic) NSString *last_name; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphPlace.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphPlace.h deleted file mode 100644 index 2a0a4dc..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphPlace.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphLocation.h" -#import "FBGraphObject.h" - -/*! - @protocol - - @abstract - The `FBGraphPlace` protocol enables typed access to a place object - as represented in the Graph API. - - - @discussion - The `FBGraphPlace` protocol represents the most commonly used properties of a - Facebook place object. It may be used to access an `NSDictionary` object that has - been wrapped with an facade. - */ -@protocol FBGraphPlace - -/*! - @abstract use objectID instead - @deprecated use objectID instead - */ -@property (retain, nonatomic) NSString *id __attribute__ ((deprecated("use objectID instead"))); - -/*! -@property -@abstract Typed access to the place ID. -@discussion Note this typically refers to the "id" field of the graph object (i.e., equivalent - to `[self objectForKey:@"id"]`) but is differently named to avoid conflicting with Apple's - non-public selectors. -*/ -@property (retain, nonatomic) NSString *objectID; - -/*! - @property - @abstract Typed access to the place name. - */ -@property (retain, nonatomic) NSString *name; - -/*! - @property - @abstract Typed access to the place category. - */ -@property (retain, nonatomic) NSString *category; - -/*! - @property - @abstract Typed access to the place location. - */ -@property (retain, nonatomic) id location; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphUser.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphUser.h deleted file mode 100644 index 5358bdb..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBGraphUser.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphPerson.h" -#import "FBGraphPlace.h" - -/*! - @protocol - - @abstract - The `FBGraphUser` protocol enables typed access to a user object - as represented in the Graph API. - - - @discussion - The `FBGraphUser` protocol represents the most commonly used properties of a - Facebook user object. It may be used to access an `NSDictionary` object that has - been wrapped with an facade. - */ -@protocol FBGraphUser - -/*! - @abstract use objectID instead - @deprecated use objectID instead - */ -@property (retain, nonatomic) NSString *id __attribute__ ((deprecated("use objectID instead"))); - -/*! - @property - @abstract Typed access to the user's profile URL. - */ -@property (retain, nonatomic) NSString *link; - -/*! - @property - @abstract Typed access to the user's username. - */ -@property (retain, nonatomic) NSString *username; - -/*! - @property - @abstract Typed access to the user's birthday. - */ -@property (retain, nonatomic) NSString *birthday; - -/*! - @property - @abstract Typed access to the user's current city. - */ -@property (retain, nonatomic) id location; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBInsights.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBInsights.h deleted file mode 100644 index 4b74321..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBInsights.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSDKMacros.h" -#import "FBSession.h" - -/*! - @typedef FBInsightsFlushBehavior enum - - @abstract This enum has been deprecated in favor of FBAppEventsFlushBehavior. - */ -__attribute__ ((deprecated("use FBAppEventsFlushBehavior instead"))) -typedef NS_ENUM(NSUInteger, FBInsightsFlushBehavior) { - FBInsightsFlushBehaviorAuto __attribute__ ((deprecated("use FBAppEventsFlushBehaviorAuto instead"))), - FBInsightsFlushBehaviorExplicitOnly __attribute__ ((deprecated("use FBAppEventsFlushBehaviorExplicitOnly instead"))), -}; - -FBSDK_EXTERN NSString *const FBInsightsLoggingResultNotification __attribute__((deprecated)); - -/*! - @class FBInsights - - @abstract This class has been deprecated in favor of FBAppEvents. - */ -__attribute__ ((deprecated("Use the FBAppEvents class instead"))) -@interface FBInsights : NSObject - -+ (NSString *)appVersion __attribute__((deprecated)); -+ (void)setAppVersion:(NSString *)appVersion __attribute__((deprecated("use [FBSettings setAppVersion] instead"))); - -+ (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency __attribute__((deprecated("use [FBAppEvents logPurchase] instead"))); -+ (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency parameters:(NSDictionary *)parameters __attribute__((deprecated("use [FBAppEvents logPurchase] instead"))); -+ (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency parameters:(NSDictionary *)parameters session:(FBSession *)session __attribute__((deprecated("use [FBAppEvents logPurchase] instead"))); - -+ (void)logConversionPixel:(NSString *)pixelID valueOfPixel:(double)value __attribute__((deprecated)); -+ (void)logConversionPixel:(NSString *)pixelID valueOfPixel:(double)value session:(FBSession *)session __attribute__((deprecated)); - -+ (FBInsightsFlushBehavior)flushBehavior __attribute__((deprecated("use [FBAppEvents flushBehavior] instead"))); -+ (void)setFlushBehavior:(FBInsightsFlushBehavior)flushBehavior __attribute__((deprecated("use [FBAppEvents setFlushBehavior] instead"))); - -+ (void)flush __attribute__((deprecated("use [FBAppEvents flush] instead"))); - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLikeControl.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLikeControl.h deleted file mode 100644 index 8a3adf8..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLikeControl.h +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSDKMacros.h" - -/*! - @typedef NS_ENUM (NSUInteger, FBLikeControlAuxiliaryPosition) - - @abstract Specifies the position of the auxiliary view relative to the like button. - */ -typedef NS_ENUM(NSUInteger, FBLikeControlAuxiliaryPosition) -{ - /*! The auxiliary view is inline with the like button. */ - FBLikeControlAuxiliaryPositionInline, - /*! The auxiliary view is above the like button. */ - FBLikeControlAuxiliaryPositionTop, - /*! The auxiliary view is below the like button. */ - FBLikeControlAuxiliaryPositionBottom, -}; - -/*! - @abstract Converts an FBLikeControlAuxiliaryPosition to an NSString. - */ -FBSDK_EXTERN NSString *NSStringFromFBLikeControlAuxiliaryPosition(FBLikeControlAuxiliaryPosition auxiliaryPosition); - -/*! - @typedef NS_ENUM(NSUInteger, FBLikeControlHorizontalAlignment) - - @abstract Specifies the horizontal alignment for FBLikeControlStyleStandard with - FBLikeControlAuxiliaryPositionTop or FBLikeControlAuxiliaryPositionBottom. - */ -typedef NS_ENUM(NSUInteger, FBLikeControlHorizontalAlignment) -{ - /*! The subviews are left aligned. */ - FBLikeControlHorizontalAlignmentLeft, - /*! The subviews are center aligned. */ - FBLikeControlHorizontalAlignmentCenter, - /*! The subviews are right aligned. */ - FBLikeControlHorizontalAlignmentRight, -}; - -/*! - @abstract Converts an FBLikeControlHorizontalAlignment to an NSString. - */ -FBSDK_EXTERN NSString *NSStringFromFBLikeControlHorizontalAlignment(FBLikeControlHorizontalAlignment horizontalAlignment); - -/*! - @typedef NS_ENUM (NSUInteger, FBLikeControlStyle) - - @abstract Specifies the style of a like control. - */ -typedef NS_ENUM(NSUInteger, FBLikeControlStyle) -{ - /*! Displays the button and the social sentence. */ - FBLikeControlStyleStandard = 0, - /*! Displays the button and a box that contains the like count. */ - FBLikeControlStyleBoxCount, - /*! Displays the button only. */ - FBLikeControlStyleButton, -}; - -/*! - @abstract Converts an FBLikeControlStyle to an NSString. - */ -FBSDK_EXTERN NSString *NSStringFromFBLikeControlStyle(FBLikeControlStyle style); - -/*! - @class FBLikeControl - - @abstract UI control to like an object in the Facebook graph. - - @discussion Taps on the like button within this control will invoke an API call to the Facebook app through a - fast-app-switch that allows the user to like the object. Upon return to the calling app, the view will update - with the new state and send actions for the UIControlEventValueChanged event. - */ -@interface FBLikeControl : UIControl - -/*! - @abstract If YES, FBLikeControl is available for use with through the Like Dialog. - - @discussion If NO, the control requires publish_action permissions on the active session for in-place liking. It is - the responsibility of the consumer to ensure that the control is not presented without this permission. - */ -+ (BOOL)dialogIsAvailable; - -/*! - @abstract The foreground color to use for the content of the receiver. - */ -@property (nonatomic, strong) UIColor *foregroundColor; - -/*! - @abstract The position for the auxiliary view for the receiver. - - @see FBLikeControlAuxiliaryPosition - */ -@property (nonatomic, assign) FBLikeControlAuxiliaryPosition likeControlAuxiliaryPosition; - -/*! - @abstract The text alignment of the social sentence. - - @discussion This value is only valid for FBLikeControlStyleStandard with FBLikeControlAuxiliaryPositionTop|Bottom. - */ -@property (nonatomic, assign) FBLikeControlHorizontalAlignment likeControlHorizontalAlignment; - -/*! - @abstract The style to use for the receiver. - - @see FBLikeControlStyle - */ -@property (nonatomic, assign) FBLikeControlStyle likeControlStyle; - -/*! - @abstract The objectID for the object to like. - - @discussion This value may be an Open Graph object ID or a string representation of an URL that describes an - Open Graph object. The objects may be public objects, like pages, or objects that are defined by your application. - */ -@property (nonatomic, copy) NSString *objectID; - -/*! - @abstract The preferred maximum width (in points) for autolayout. - - @discussion This property affects the size of the receiver when layout constraints are applied to it. During layout, - if the text extends beyond the width specified by this property, the additional text is flowed to one or more new - lines, thereby increasing the height of the receiver. - */ -@property (nonatomic, assign) CGFloat preferredMaxLayoutWidth; - -/*! - @abstract If YES, a sound is played when the receiver is toggled. - - @default YES - */ -@property (nonatomic, assign, getter = isSoundEnabled) BOOL soundEnabled; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLinkShareParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLinkShareParams.h deleted file mode 100644 index ba15437..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLinkShareParams.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBDialogsParams.h" - -/*! - @class FBLinkShareParams - - @abstract - This object is used to encapsulate state for parameters to a share a link, - typically with the Facebook Native Share Dialog or the Message Dialog. - */ -@interface FBLinkShareParams : FBDialogsParams - -/*! @abstract The URL link to be attached to the post. Only "http" or "https" - schemes are supported. */ -@property (nonatomic, copy) NSURL *link; - -/*! @abstract The name, or title associated with the link. Is only used if the - link is non-nil. */ -@property (nonatomic, copy) NSString *name; - -/*! @abstract The caption to be used with the link. Is only used if the link is - non-nil. */ -@property (nonatomic, copy) NSString *caption; - -/*! @abstract The description associated with the link. Is only used if the - link is non-nil. */ -@property (nonatomic, copy) NSString *linkDescription; - -/*! @abstract The link to a thumbnail to associate with the post. Is only used - if the link is non-nil. Only "http" or "https" schemes are supported. Note that this - property should not be used to share photos; see the photos property. */ -@property (nonatomic, copy) NSURL *picture; - -/*! @abstract An array of NSStrings or FBGraphUsers to tag in the post. - If using NSStrings, the values must represent the IDs of the users to tag. */ -@property (nonatomic, copy) NSArray *friends; - -/*! @abstract An NSString or FBGraphPlace to tag in the status update. If - NSString, the value must be the ID of the place to tag. */ -@property (nonatomic, copy) id place; - -/*! @abstract A text reference for the category of the post, used on Facebook - Insights. */ -@property (nonatomic, copy) NSString *ref; - -/*! @abstract If YES, treats any data failures (e.g. failures when getting - data for IDs passed through "friends" or "place") as a fatal error, and will not - continue with the status update. */ -@property (nonatomic, assign) BOOL dataFailuresFatal; - -/*! - @abstract Designated initializer - @param link the required link to share - @param name the optional name to describe the share - @param caption the optional caption to describe the share - @param description the optional description to describe the share - @param picture the optional url to use as the share's image -*/ -- (instancetype)initWithLink:(NSURL *)link - name:(NSString *)name - caption:(NSString *)caption - description:(NSString *)description - picture:(NSURL *)picture; -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLoginTooltipView.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLoginTooltipView.h deleted file mode 100644 index 8f9fcbd..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLoginTooltipView.h +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBTooltipView.h" - -@protocol FBLoginTooltipViewDelegate; - -/*! - @class FBLoginTooltipView - - @abstract Represents a tooltip to be displayed next to a Facebook login button - to highlight features for new users. - - @discussion The `FBLoginView` may display this view automatically. If you do - not use the `FBLoginView`, you can manually call one of the `present*` methods - as appropriate and customize behavior via `FBLoginTooltipViewDelegate` delegate. - - By default, the `FBLoginTooltipView` is not added to the superview until it is - determined the app has migrated to the new login experience. You can override this - (e.g., to test the UI layout) by implementing the delegate or setting `forceDisplay` to YES. - - */ -@interface FBLoginTooltipView : FBTooltipView - -/*! @abstract the delegate */ -@property (nonatomic, assign) id delegate; - -/*! @abstract if set to YES, the view will always be displayed and the delegate's - `loginTooltipView:shouldAppear:` will NOT be called. */ -@property (nonatomic, assign) BOOL forceDisplay; - -@end - -/*! - @protocol - - @abstract - The `FBLoginTooltipViewDelegate` protocol defines the methods used to receive event - notifications from `FBLoginTooltipView` objects. - */ -@protocol FBLoginTooltipViewDelegate - -@optional - -/*! - @abstract - Asks the delegate if the tooltip view should appear - - @param view The tooltip view. - @param appIsEligible The value fetched from the server identifying if the app - is eligible for the new login experience. - - @discussion Use this method to customize display behavior. - */ -- (BOOL)loginTooltipView:(FBLoginTooltipView *)view shouldAppear:(BOOL)appIsEligible; - -/*! - @abstract - Tells the delegate the tooltip view will appear, specifically after it's been - added to the super view but before the fade in animation. - - @param view The tooltip view. - */ -- (void)loginTooltipViewWillAppear:(FBLoginTooltipView *)view; - -/*! - @abstract - Tells the delegate the tooltip view will not appear (i.e., was not - added to the super view). - - @param view The tooltip view. - */ -- (void)loginTooltipViewWillNotAppear:(FBLoginTooltipView *)view; - - -@end - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLoginView.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLoginView.h deleted file mode 100644 index 8e2ed93..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBLoginView.h +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphUser.h" -#import "FBSession.h" -#import "FBTooltipView.h" - -@protocol FBLoginViewDelegate; - -/*! - @typedef - @abstract Indicates the desired login tooltip behavior. - */ -typedef NS_ENUM(NSUInteger, FBLoginViewTooltipBehavior) { - /*! The default behavior. The tooltip will only be displayed if - the app is eligible (determined by server round trip) */ - FBLoginViewTooltipBehaviorDefault = 0, - /*! Force display of the tooltip (typically for UI testing) */ - FBLoginViewTooltipBehaviorForceDisplay = 1, - /*! Force disable. In this case you can still exert more refined - control by manually constructing a `FBLoginTooltipView` instance. */ - FBLoginViewTooltipBehaviorDisable = 2 -}; - -/*! - @class FBLoginView - @abstract FBLoginView is a custom UIView that renders a button to login or logout based on the - state of `FBSession.activeSession` - - @discussion This view is closely associated with `FBSession.activeSession`. Upon initialization, - it will attempt to open an active session without UI if the current active session is not open. - - The FBLoginView instance also monitors for changes to the active session. - - Please note: Since FBLoginView observes the active session, using multiple FBLoginView instances - in different parts of your app can result in each instance's delegates being notified of changes - for one event. - */ -@interface FBLoginView : UIView - -/*! - @abstract - The permissions to login with. Defaults to nil, meaning basic permissions. - - @discussion Methods and properties that specify permissions without a read or publish - qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred. - */ -@property (readwrite, copy) NSArray *permissions __attribute__((deprecated)); - -/*! - @abstract - The read permissions to request if the user logs in via this view. - - @discussion - Note, that if read permissions are specified, then publish permissions should not be specified. - */ -@property (nonatomic, copy) NSArray *readPermissions; - -/*! - @abstract - The publish permissions to request if the user logs in via this view. - - @discussion - Note, that a defaultAudience value of FBSessionDefaultAudienceOnlyMe, FBSessionDefaultAudienceEveryone, or - FBSessionDefaultAudienceFriends should be set if publish permissions are specified. Additionally, when publish - permissions are specified, then read should not be specified. - */ -@property (nonatomic, copy) NSArray *publishPermissions; - -/*! - @abstract - The default audience to use, if publish permissions are requested at login time. - */ -@property (nonatomic, assign) FBSessionDefaultAudience defaultAudience; - -/*! - @abstract - The login behavior for the active session if the user logs in via this view - - @discussion - The default value is FBSessionLoginBehaviorWithFallbackToWebView. - */ -@property (nonatomic) FBSessionLoginBehavior loginBehavior; - -/*! - @abstract - Gets or sets the desired tooltip behavior. - */ -@property (nonatomic, assign) FBLoginViewTooltipBehavior tooltipBehavior; - -/*! - @abstract - Gets or sets the desired tooltip color style. - */ -@property (nonatomic, assign) FBTooltipColorStyle tooltipColorStyle; - -/*! - @abstract - Initializes and returns an `FBLoginView` object. The underlying session has basic permissions granted to it. - */ -- (instancetype)init; - -/*! - @method - - @abstract - Initializes and returns an `FBLoginView` object constructed with the specified permissions. - - @param permissions An array of strings representing the permissions to request during the - authentication flow. A value of nil will indicates basic permissions. - - @discussion Methods and properties that specify permissions without a read or publish - qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred. - */ -- (instancetype)initWithPermissions:(NSArray *)permissions __attribute__((deprecated)); - -/*! - @method - - @abstract - Initializes and returns an `FBLoginView` object constructed with the specified permissions. - - @param readPermissions An array of strings representing the read permissions to request during the - authentication flow. A value of nil will indicates basic permissions. - - */ -- (instancetype)initWithReadPermissions:(NSArray *)readPermissions; - -/*! - @method - - @abstract - Initializes and returns an `FBLoginView` object constructed with the specified permissions. - - @param publishPermissions An array of strings representing the publish permissions to request during the - authentication flow. - - @param defaultAudience An audience for published posts; note that FBSessionDefaultAudienceNone is not valid - for permission requests that include publish or manage permissions. - - */ -- (instancetype)initWithPublishPermissions:(NSArray *)publishPermissions - defaultAudience:(FBSessionDefaultAudience)defaultAudience; - -/*! - @abstract - The delegate object that receives updates for selection and display control. - */ -@property (nonatomic, assign) IBOutlet id delegate; - -@end - -/*! - @protocol - - @abstract - The `FBLoginViewDelegate` protocol defines the methods used to receive event - notifications from `FBLoginView` objects. - - @discussion - Please note: Since FBLoginView observes the active session, using multiple FBLoginView instances - in different parts of your app can result in each instance's delegates being notified of changes - for one event. - */ -@protocol FBLoginViewDelegate - -@optional - -/*! - @abstract - Tells the delegate that the view is now in logged in mode - - @param loginView The login view that transitioned its view mode - */ -- (void)loginViewShowingLoggedInUser:(FBLoginView *)loginView; - -/*! - @abstract - Tells the delegate that the view is has now fetched user info - - @param loginView The login view that transitioned its view mode - - @param user The user info object describing the logged in user - */ -- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView - user:(id)user; - -/*! - @abstract - Tells the delegate that the view is now in logged out mode - - @param loginView The login view that transitioned its view mode - */ -- (void)loginViewShowingLoggedOutUser:(FBLoginView *)loginView; - -/*! - @abstract - Tells the delegate that there is a communication or authorization error. - - @param loginView The login view that transitioned its view mode - @param error An error object containing details of the error. - @discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/ - for error handling best practices. - */ -- (void)loginView:(FBLoginView *)loginView - handleError:(NSError *)error; - -@end - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBNativeDialogs.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBNativeDialogs.h deleted file mode 100644 index d1c86b5..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBNativeDialogs.h +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBAppCall.h" -#import "FBOpenGraphActionShareDialogParams.h" -#import "FBShareDialogParams.h" - -@class FBSession; -@protocol FBOpenGraphAction; - -// note that the following class and types are deprecated in favor of FBDialogs and its methods - -/*! - @typedef FBNativeDialogResult enum - - @abstract - Please note that this enum and its related methods have been deprecated, please migrate your - code to use `FBOSIntegratedShareDialogResult` and its related methods. - */ -typedef NS_ENUM(NSUInteger, FBNativeDialogResult) { - /*! Indicates that the dialog action completed successfully. */ - FBNativeDialogResultSucceeded, - /*! Indicates that the dialog action was cancelled (either by the user or the system). */ - FBNativeDialogResultCancelled, - /*! Indicates that the dialog could not be shown (because not on ios6 or ios6 auth was not used). */ - FBNativeDialogResultError -} -__attribute__((deprecated)); - -/*! - @typedef - - @abstract - Please note that `FBShareDialogHandler` and its related methods have been deprecated, please migrate your - code to use `FBOSIntegratedShareDialogHandler` and its related methods. - */ -typedef void (^FBShareDialogHandler)(FBNativeDialogResult result, NSError *error) -__attribute__((deprecated)); - -/*! - @class FBNativeDialogs - - @abstract - Please note that `FBNativeDialogs` has been deprecated, please migrate your - code to use `FBDialogs`. - */ -@interface FBNativeDialogs : NSObject - -/*! - @abstract - Please note that this method has been deprecated, please migrate your - code to use `FBDialogs` and the related method `presentOSIntegratedShareDialogModallyFrom`. - */ -+ (BOOL)presentShareDialogModallyFrom:(UIViewController *)viewController - initialText:(NSString *)initialText - image:(UIImage *)image - url:(NSURL *)url - handler:(FBShareDialogHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Please note that this method has been deprecated, please migrate your - code to use `FBDialogs` and the related method `presentOSIntegratedShareDialogModallyFrom`. - */ -+ (BOOL)presentShareDialogModallyFrom:(UIViewController *)viewController - initialText:(NSString *)initialText - images:(NSArray *)images - urls:(NSArray *)urls - handler:(FBShareDialogHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Please note that this method has been deprecated, please migrate your - code to use `FBDialogs` and the related method `presentOSIntegratedShareDialogModallyFrom`. - */ -+ (BOOL)presentShareDialogModallyFrom:(UIViewController *)viewController - session:(FBSession *)session - initialText:(NSString *)initialText - images:(NSArray *)images - urls:(NSArray *)urls - handler:(FBShareDialogHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Please note that this method has been deprecated, please migrate your - code to use `FBDialogs` and the related method `canPresentOSIntegratedShareDialogWithSession`. - */ -+ (BOOL)canPresentShareDialogWithSession:(FBSession *)session __attribute__((deprecated)); - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphAction.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphAction.h deleted file mode 100644 index 2bf8334..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphAction.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphObject.h" - -@protocol FBGraphPlace; -@protocol FBGraphUser; - -/*! - @protocol - - @abstract - The `FBOpenGraphAction` protocol is the base protocol for use in posting and retrieving Open Graph actions. - It inherits from the `FBGraphObject` protocol; you may derive custome protocols from `FBOpenGraphAction` in order - implement typed access to your application's custom actions. - - @discussion - Represents an Open Graph custom action, to be used directly, or from which to - derive custom action protocols with custom properties. - */ -@protocol FBOpenGraphAction - -/*! - @abstract use objectID instead - @deprecated use objectID instead - */ -@property (retain, nonatomic) NSString *id __attribute__ ((deprecated("use objectID instead"))); - -/*! - @property - @abstract Typed access to the action's ID. - @discussion Note this typically refers to the "id" field of the graph object (i.e., equivalent - to `[self objectForKey:@"id"]`) but is differently named to avoid conflicting with Apple's - non-public selectors. - */ -@property (retain, nonatomic) NSString *objectID; - -/*! - @property - @abstract Typed access to action's start time - */ -@property (retain, nonatomic) NSString *start_time; - -/*! - @property - @abstract Typed access to action's end time - */ -@property (retain, nonatomic) NSString *end_time; - -/*! - @property - @abstract Typed access to action's publication time - */ -@property (retain, nonatomic) NSString *publish_time; - -/*! - @property - @abstract Typed access to action's creation time - */ -@property (retain, nonatomic) NSString *created_time; - -/*! - @property - @abstract Typed access to action's expiration time - */ -@property (retain, nonatomic) NSString *expires_time; - -/*! - @property - @abstract Typed access to action's ref - */ -@property (retain, nonatomic) NSString *ref; - -/*! - @property - @abstract Typed access to action's user message - */ -@property (retain, nonatomic) NSString *message; - -/*! - @property - @abstract Typed access to action's place - */ -@property (retain, nonatomic) id place; - -/*! - @property - @abstract Typed access to action's tags - */ -@property (retain, nonatomic) NSArray *tags; - -/*! - @property - @abstract Typed access to action's image(s) - */ -@property (retain, nonatomic) id image; - -/*! - @property - @abstract Typed access to action's from-user - */ -@property (retain, nonatomic) id from; - -/*! - @property - @abstract Typed access to action's likes - */ -@property (retain, nonatomic) NSArray *likes; - -/*! - @property - @abstract Typed access to action's application - */ -@property (retain, nonatomic) id application; - -/*! - @property - @abstract Typed access to action's comments - */ -@property (retain, nonatomic) NSArray *comments; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphActionParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphActionParams.h deleted file mode 100644 index b96ee0c..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphActionParams.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBDialogsParams.h" -#import "FBOpenGraphAction.h" -#import "FBSDKMacros.h" - -FBSDK_EXTERN NSString *const FBPostObject; - -/*! - @class FBOpenGraphActionParams - - @abstract - This object is used to encapsulate state for parameters to an Open Graph share, - typically used with the Native Share Dialog or Message Dialog. - */ -@interface FBOpenGraphActionParams : FBDialogsParams - -/*! @abstract The Open Graph action to be published. */ -@property (nonatomic, retain) id action; - -/*! @abstract The name of the property representing the primary target of the Open - Graph action, which will be displayed as a preview in the dialog. */ -@property (nonatomic, copy) NSString *previewPropertyName; - -/*! @abstract The fully qualified type of the Open Graph action. */ -@property (nonatomic, copy) NSString *actionType; - -/*! - @abstract Designated initializer - @param action The action object, typically a dictionary based object created - from `[FBGraphObject openGraphActionForPost]`. - @param actionType The open graph action type defined in your application settings. - Typically, either a common open graph type like "books.reads", or a custom ":". - @param previewPropertyName The identifier for object in the open graph action. For example, for books.reads - this would be "book". -*/ -- (instancetype)initWithAction:(id)action actionType:(NSString *)actionType previewPropertyName:(NSString *)previewPropertyName; -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphActionShareDialogParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphActionShareDialogParams.h deleted file mode 100644 index 19f11a9..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphActionShareDialogParams.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBOpenGraphActionParams.h" - -/*! - @class FBOpenGraphActionShareDialogParams - - @abstract Deprecated. Use `FBOpenGraphActionParams` instead. - */ -__attribute__((deprecated)) -@interface FBOpenGraphActionShareDialogParams : FBOpenGraphActionParams - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphObject.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphObject.h deleted file mode 100644 index e6238ba..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphObject.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphObject.h" - -/*! - @protocol - - @abstract - The `FBOpenGraphObject` protocol is the base protocol for use in posting and retrieving Open Graph objects. - It inherits from the `FBGraphObject` protocol; you may derive custome protocols from `FBOpenGraphObject` in order - implement typed access to your application's custom objects. - - @discussion - Represents an Open Graph custom object, to be used directly, or from which to - derive custom action protocols with custom properties. - */ -@protocol FBOpenGraphObject - -/*! - @abstract use objectID instead - @deprecated use objectID instead - */ -@property (retain, nonatomic) NSString *id __attribute__ ((deprecated("use objectID instead"))); - -/*! - @property - @abstract Typed access to the object's ID. - @discussion Note this typically refers to the "id" field of the graph object (i.e., equivalent - to `[self objectForKey:@"id"]`) but is differently named to avoid conflicting with Apple's - non-public selectors. - */ -@property (retain, nonatomic) NSString *objectID; - -/*! - @property - @abstract Typed access to the object's type, which is a string in the form mynamespace:mytype - */ -@property (retain, nonatomic) NSString *type; - -/*! - @property - @abstract Typed access to object's title - */ -@property (retain, nonatomic) NSString *title; - -/*! - @property - @abstract Typed access to the object's image property - */ -@property (retain, nonatomic) id image; - -/*! - @property - @abstract Typed access to the object's url property - */ -@property (retain, nonatomic) id url; - -/*! - @abstract Typed access to the object's description property. - @discussion Note this typically refers to the "description" field of the graph object (i.e., equivalent - to `[self objectForKey:@"description"]`) but is differently named to avoid conflicting with Apple's - non-public selectors.*/ -@property (retain, nonatomic) id objectDescription; - -/*! - @property - @abstract Typed access to action's data, which is a dictionary of custom properties - */ -@property (retain, nonatomic) id data; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBPeoplePickerViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBPeoplePickerViewController.h deleted file mode 100644 index db138cf..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBPeoplePickerViewController.h +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBGraphObjectPickerViewController.h" - -/*! - @typedef NS_ENUM (NSUInteger, FBFriendSortOrdering) - - @abstract Indicates the order in which friends should be listed in the friend picker. - - @discussion - */ -typedef NS_ENUM(NSUInteger, FBFriendSortOrdering) { - /*! Sort friends by first, middle, last names. */ - FBFriendSortByFirstName = 0, - /*! Sort friends by last, first, middle names. */ - FBFriendSortByLastName -}; - -/*! - @typedef NS_ENUM (NSUInteger, FBFriendDisplayOrdering) - - @abstract Indicates whether friends should be displayed first-name-first or last-name-first. - - @discussion - */ -typedef NS_ENUM(NSUInteger, FBFriendDisplayOrdering) { - /*! Display friends as First Middle Last. */ - FBFriendDisplayByFirstName = 0, - /*! Display friends as Last First Middle. */ - FBFriendDisplayByLastName, -}; - - -/*! - @class - - @abstract - The `FBPeoplePickerViewController` class is an abstract controller object that manages - the user interface for displaying and selecting people. - - @discussion - When the `FBPeoplePickerViewController` view loads it creates a `UITableView` object - where the people will be displayed. You can access this view through the `tableView` - property. The people display can be sorted by first name or last name. People's - names can be displayed with the first name first or the last name first. - - The `delegate` property may be set to an object that conforms to the - protocol, as defined by . The graph object passed to - the delegate conforms to the protocol. - */ -@interface FBPeoplePickerViewController : FBGraphObjectPickerViewController - -/*! - @abstract - A Boolean value that specifies whether multi-select is enabled. - */ -@property (nonatomic) BOOL allowsMultipleSelection; - -/*! - @abstract - The profile ID of the user whose 'user_friends' permission is being used. - */ -@property (nonatomic, copy) NSString *userID; - -/*! - @abstract - The list of people that are currently selected in the veiw. - The items in the array are objects. - */ -@property (nonatomic, copy, readonly) NSArray *selection; - -/*! - @abstract - The order in which people are sorted in the display. - */ -@property (nonatomic) FBFriendSortOrdering sortOrdering; - -/*! - @abstract - The order in which people's names are displayed. - */ -@property (nonatomic) FBFriendDisplayOrdering displayOrdering; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBPhotoParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBPhotoParams.h deleted file mode 100644 index 4c389fd..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBPhotoParams.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBDialogsParams.h" - -/*! - @class FBPhotoParams - - @abstract - This object is used to encapsulate state for parameters to share photos, - typically with the Facebook Native Share Dialog or Message Dialog - */ -@interface FBPhotoParams : FBDialogsParams - -/*! @abstract An array of NSStrings or FBGraphUsers to tag in the post. - If using NSStrings, the values must represent the IDs of the users to tag. */ -@property (nonatomic, copy) NSArray *friends; - -/*! @abstract An NSString or FBGraphPlace to tag in the status update. If - NSString, the value must be the ID of the place to tag. */ -@property (nonatomic, copy) id place; - -/*! @abstract If YES, treats any data failures (e.g. failures when getting - data for IDs passed through "friends" or "place") as a fatal error, and will not - continue with the status update. */ -@property (nonatomic, assign) BOOL dataFailuresFatal; - -/*! @abstract An array of UIImages representing photos to be shared. Only - six or fewer images are supported. */ -@property (nonatomic, copy) NSArray *photos; - -/*! @abstract Designated initializer. - @param photos the array of UIImages -*/ -- (instancetype)initWithPhotos:(NSArray *)photos; -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBPlacePickerViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBPlacePickerViewController.h deleted file mode 100644 index c8c0e04..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBPlacePickerViewController.h +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBCacheDescriptor.h" -#import "FBGraphObjectPickerViewController.h" -#import "FBGraphPlace.h" - -@protocol FBPlacePickerDelegate; - -/*! - @class FBPlacePickerViewController - - @abstract - The `FBPlacePickerViewController` class creates a controller object that manages - the user interface for displaying and selecting nearby places. - - @discussion - When the `FBPlacePickerViewController` view loads it creates a `UITableView` object - where the places near a given location will be displayed. You can access this view - through the `tableView` property. - - The place data can be pre-fetched and cached prior to using the view controller. The - cache is setup using an object that can trigger the - data fetch. Any place data requests will first check the cache and use that data. - If the place picker is being displayed cached data will initially be shown before - a fresh copy is retrieved. - - The `delegate` property may be set to an object that conforms to the - protocol. The `delegate` object will receive updates related to place selection and - data changes. The delegate can also be used to filter the places to display in the - picker. - */ -@interface FBPlacePickerViewController : FBGraphObjectPickerViewController - -/*! - @abstract - The coordinates to use for place discovery. - */ -@property (nonatomic) CLLocationCoordinate2D locationCoordinate; - -/*! - @abstract - The radius to use for place discovery. - */ -@property (nonatomic) NSInteger radiusInMeters; - -/*! - @abstract - The maximum number of places to fetch. - */ -@property (nonatomic) NSInteger resultsLimit; - -/*! - @abstract - The search words used to narrow down the results returned. - */ -@property (nonatomic, copy) NSString *searchText; - -/*! - @abstract - The place that is currently selected in the view. This is nil - if nothing is selected. - */ -@property (nonatomic, retain, readonly) id selection; - -/*! - @abstract - Configures the properties used in the caching data queries. - - @discussion - Cache descriptors are used to fetch and cache the data used by the view controller. - If the view controller finds a cached copy of the data, it will - first display the cached content then fetch a fresh copy from the server. - - @param cacheDescriptor The containing the cache query properties. - */ -- (void)configureUsingCachedDescriptor:(FBCacheDescriptor *)cacheDescriptor; - -/*! - @method - - @abstract - Creates a cache descriptor with additional fields and a profile ID for use with the - `FBPlacePickerViewController` object. - - @discussion - An `FBCacheDescriptor` object may be used to pre-fetch data before it is used by - the view controller. It may also be used to configure the `FBPlacePickerViewController` - object. - - @param locationCoordinate The coordinates to use for place discovery. - @param radiusInMeters The radius to use for place discovery. - @param searchText The search words used to narrow down the results returned. - @param resultsLimit The maximum number of places to fetch. - @param fieldsForRequest Addtional fields to fetch when making the Graph API call to get place data. - */ -+ (FBCacheDescriptor *)cacheDescriptorWithLocationCoordinate:(CLLocationCoordinate2D)locationCoordinate - radiusInMeters:(NSInteger)radiusInMeters - searchText:(NSString *)searchText - resultsLimit:(NSInteger)resultsLimit - fieldsForRequest:(NSSet *)fieldsForRequest; - -@end - -/*! - @protocol - - @abstract - The `FBPlacePickerDelegate` protocol defines the methods used to receive event - notifications and allow for deeper control of the - view. - - The methods of correspond to . - If a pair of corresponding methods are implemented, the - method is called first. - */ -@protocol FBPlacePickerDelegate -@optional - -/*! - @abstract - Tells the delegate that data has been loaded. - - @discussion - The object's `tableView` property is automatically - reloaded when this happens. However, if another table view, for example the - `UISearchBar` is showing data, then it may also need to be reloaded. - - @param placePicker The place picker view controller whose data changed. - */ -- (void)placePickerViewControllerDataDidChange:(FBPlacePickerViewController *)placePicker; - -/*! - @abstract - Tells the delegate that the selection has changed. - - @param placePicker The place picker view controller whose selection changed. - */ -- (void)placePickerViewControllerSelectionDidChange:(FBPlacePickerViewController *)placePicker; - -/*! - @abstract - Asks the delegate whether to include a place in the list. - - @discussion - This can be used to implement a search bar that filters the places list. - - If -[ graphObjectPickerViewController:shouldIncludeGraphObject:] - is implemented and returns NO, this method is not called. - - @param placePicker The place picker view controller that is requesting this information. - @param place An object representing the place. - */ -- (BOOL)placePickerViewController:(FBPlacePickerViewController *)placePicker - shouldIncludePlace:(id)place; - -/*! - @abstract - Called if there is a communication error. - - @param placePicker The place picker view controller that encountered the error. - @param error An error object containing details of the error. - */ -- (void)placePickerViewController:(FBPlacePickerViewController *)placePicker - handleError:(NSError *)error; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBProfilePictureView.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBProfilePictureView.h deleted file mode 100644 index f82994f..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBProfilePictureView.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -/*! - @typedef FBProfilePictureCropping enum - - @abstract - Type used to specify the cropping treatment of the profile picture. - - @discussion - */ -typedef NS_ENUM(NSUInteger, FBProfilePictureCropping) { - - /*! Square (default) - the square version that the Facebook user defined. */ - FBProfilePictureCroppingSquare = 0, - - /*! Original - the original profile picture, as uploaded. */ - FBProfilePictureCroppingOriginal = 1 - -}; - -/*! - @class - @abstract - An instance of `FBProfilePictureView` is used to display a profile picture. - - The default behavior of this control is to center the profile picture - in the view and shrinks it, if necessary, to the view's bounds, preserving the aspect ratio. The smallest - possible image is downloaded to ensure that scaling up never happens. Resizing the view may result in - a different size of the image being loaded. Canonical image sizes are documented in the "Pictures" section - of https://developers.facebook.com/docs/reference/api. - */ -@interface FBProfilePictureView : UIView - -/*! - @abstract - The Facebook ID of the user, place or object for which a picture should be fetched and displayed. - */ -@property (copy, nonatomic) NSString *profileID; - -/*! - @abstract - The cropping to use for the profile picture. - */ -@property (nonatomic) FBProfilePictureCropping pictureCropping; - -/*! - @abstract - Initializes and returns a profile view object. - */ -- (instancetype)init; - - -/*! - @abstract - Initializes and returns a profile view object for the given Facebook ID and cropping. - - @param profileID The Facebook ID of the user, place or object for which a picture should be fetched and displayed. - @param pictureCropping The cropping to use for the profile picture. - */ -- (instancetype)initWithProfileID:(NSString *)profileID - pictureCropping:(FBProfilePictureCropping)pictureCropping; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBRequest.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBRequest.h deleted file mode 100644 index 799124a..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBRequest.h +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBGraphObject.h" -#import "FBOpenGraphAction.h" -#import "FBOpenGraphObject.h" -#import "FBRequestConnection.h" -#import "FBSDKMacros.h" - -/*! The base URL used for graph requests */ -FBSDK_EXTERN NSString *const FBGraphBasePath __attribute__((deprecated)); - -// up-front decl's -@protocol FBRequestDelegate; -@class FBSession; -@class UIImage; - -/*! - @typedef FBRequestState - - @abstract - Deprecated - do not use in new code. - - @discussion - FBRequestState is retained from earlier versions of the SDK to give existing - apps time to remove dependency on this. - - @deprecated - */ -typedef NSUInteger FBRequestState __attribute__((deprecated)); - -/*! - @class FBRequest - - @abstract - The `FBRequest` object is used to setup and manage requests to the Facebook Graph API. - This class provides helper methods that simplify the connection and response handling. - - @discussion - An object is required for all authenticated uses of `FBRequest`. - Requests that do not require an unauthenticated user are also supported and - do not require an object to be passed in. - - An instance of `FBRequest` represents the arguments and setup for a connection - to Facebook. After creating an `FBRequest` object it can be used to setup a - connection to Facebook through the object. The - object is created to manage a single connection. To - cancel a connection use the instance method in the class. - - An `FBRequest` object may be reused to issue multiple connections to Facebook. - However each instance will manage one connection. - - Class and instance methods prefixed with **start* ** can be used to perform the - request setup and initiate the connection in a single call. - - */ -@interface FBRequest : NSObject { -@private - id _delegate; - NSString * _url; - NSString * _versionPart; - NSURLConnection * _connection; - NSMutableData * _responseText; -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" - FBRequestState _state; -#pragma GCC diagnostic pop - NSError * _error; - BOOL _sessionDidExpire; - id _graphObject; -} - -/*! - @methodgroup Creating a request - - @method - Calls with the default parameters. - */ -- (instancetype)init; - -/*! - @method - Calls with default parameters - except for the ones provided to this method. - - @param session The session object representing the identity of the Facebook user making - the request. A nil value indicates a request that requires no token; to - use the active session pass `[FBSession activeSession]`. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - */ -- (instancetype)initWithSession:(FBSession *)session - graphPath:(NSString *)graphPath; - -/*! - @method - - @abstract - Initializes an `FBRequest` object for a Graph API request call. - - @discussion - Note that this only sets properties on the `FBRequest` object. - - To send the request, initialize an object, add this request, - and send <[FBRequestConnection start]>. See other methods on this - class for shortcuts to simplify this process. - - @param session The session object representing the identity of the Facebook user making - the request. A nil value indicates a request that requires no token; to - use the active session pass `[FBSession activeSession]`. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param parameters The parameters for the request. A value of nil sends only the automatically handled - parameters, for example, the access token. The default is nil. - - @param HTTPMethod The HTTP method to use for the request. The default is value of nil implies a GET. - */ -- (instancetype)initWithSession:(FBSession *)session - graphPath:(NSString *)graphPath - parameters:(NSDictionary *)parameters - HTTPMethod:(NSString *)HTTPMethod; - -/*! - @method - @abstract - Initialize a `FBRequest` object that will do a graph request. - - @discussion - Note that this only sets properties on the `FBRequest`. - - To send the request, initialize a , add this request, - and send <[FBRequestConnection start]>. See other methods on this - class for shortcuts to simplify this process. - - @param session The session object representing the identity of the Facebook user making - the request. A nil value indicates a request that requires no token; to - use the active session pass `[FBSession activeSession]`. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param graphObject An object or open graph action to post. - */ -- (instancetype)initForPostWithSession:(FBSession *)session - graphPath:(NSString *)graphPath - graphObject:(id)graphObject; - -/*! - @abstract - The parameters for the request. - - @discussion - May be used to read the parameters that were automatically set during - the object initiliazation. Make any required modifications prior to - sending the request. - - `NSString` parameters are used to generate URL parameter values or JSON - parameters. `NSData` and `UIImage` parameters are added as attachments - to the HTTP body and referenced by name in the URL and/or JSON. - */ -@property (nonatomic, retain, readonly) NSMutableDictionary *parameters; - -/*! - @abstract - The session object to use for the request. - - @discussion - May be used to read the session that was automatically set during - the object initiliazation. Make any required modifications prior to - sending the request. - */ -@property (nonatomic, retain) FBSession *session; - -/*! - @abstract - The Graph API endpoint to use for the request, for example "me". - - @discussion - May be used to read the Graph API endpoint that was automatically set during - the object initiliazation. Make any required modifications prior to - sending the request. - */ -@property (nonatomic, copy) NSString *graphPath; - -/*! - @abstract - The HTTPMethod to use for the request, for example "GET" or "POST". - - @discussion - May be used to read the HTTP method that was automatically set during - the object initiliazation. Make any required modifications prior to - sending the request. - */ -@property (nonatomic, copy) NSString *HTTPMethod; - -/*! - @abstract - The graph object to post with the request. - - @discussion - May be used to read the graph object that was automatically set during - the object initiliazation. Make any required modifications prior to - sending the request. - */ -@property (nonatomic, retain) id graphObject; - -/*! - @methodgroup Instance methods - */ - -/*! - @method - - @abstract - Overrides the default version for a single request - - @discussion - The SDK automatically prepends a version part, such as "v2.0" to API paths in order to simplify API versioning - for applications. Sometimes it is preferable to explicitly set the version for a request, which can be - accomplished in one of two ways. The first is to call this method and set an override version part. The second - is approach is to include the version part in the api path, for example @"v2.0/me/friends" - - @param version This is a string in the form @"v2.0" which will be used for the version part of an API path - */ -- (void)overrideVersionPartWith:(NSString *)version; - -/*! - @method - - @abstract - Starts a connection to the Facebook API. - - @discussion - This is used to start an API call to Facebook and call the block when the - request completes with a success, error, or cancel. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - The handler will be invoked on the main thread. - */ -- (FBRequestConnection *)startWithCompletionHandler:(FBRequestHandler)handler; - -/*! - @methodgroup FBRequestConnection start methods - - @abstract - These methods start an . - - @discussion - These methods simplify the process of preparing a request and starting - the connection. The methods handle initializing an `FBRequest` object, - initializing a object, adding the `FBRequest` - object to the to the , and finally starting the - connection. - */ - -/*! - @methodgroup FBRequest factory methods - - @abstract - These methods initialize a `FBRequest` for common scenarios. - - @discussion - These simplify the process of preparing a request to send. These - initialize a `FBRequest` based on strongly typed parameters that are - specific to the scenario. - - These method do not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - */ - -// request -// -// Summary: -// Helper methods used to create common request objects which can be used to create single or batch connections -// -// session: - the session object representing the identity of the -// Facebook user making the request; nil implies an -// unauthenticated request; default=nil - -/*! - @method - - @abstract - Creates a request representing a Graph API call to the "me" endpoint, using the active session. - - @discussion - Simplifies preparing a request to retrieve the user's identity. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - A successful Graph API call will return an object representing the - user's identity. - - Note you may change the session property after construction if a session other than - the active session is preferred. - */ -+ (FBRequest *)requestForMe; - -/*! - @method - - @abstract - Creates a request representing a Graph API call to the "me/friends" endpoint using the active session. - - @discussion - Simplifies preparing a request to retrieve the user's friends. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - A successful Graph API call will return an array of objects representing the - user's friends. - */ -+ (FBRequest *)requestForMyFriends; - -/*! - @method - - @abstract - Creates a request representing a Graph API call to upload a photo to the app's album using the active session. - - @discussion - Simplifies preparing a request to post a photo. - - To post a photo to a specific album, get the `FBRequest` returned from this method - call, then modify the request parameters by adding the album ID to an "album" key. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param photo A `UIImage` for the photo to upload. - */ -+ (FBRequest *)requestForUploadPhoto:(UIImage *)photo; - -/*! - @method - - @abstract - Creates a request representing a status update. - - @discussion - Simplifies preparing a request to post a status update. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param message The message to post. - */ -+ (FBRequest *)requestForPostStatusUpdate:(NSString *)message; - -/*! - @method - - @abstract - Creates a request representing a status update. - - @discussion - Simplifies preparing a request to post a status update. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param message The message to post. - @param place The place to checkin with, or nil. Place may be an fbid or a - graph object representing a place. - @param tags Array of friends to tag in the status update, each element - may be an fbid or a graph object representing a user. - */ -+ (FBRequest *)requestForPostStatusUpdate:(NSString *)message - place:(id)place - tags:(id)tags; - -/*! - @method - - @abstract - Creates a request representing a Graph API call to the "search" endpoint - for a given location using the active session. - - @discussion - Simplifies preparing a request to search for places near a coordinate. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - A successful Graph API call will return an array of objects representing - the nearby locations. - - @param coordinate The search coordinates. - - @param radius The search radius in meters. - - @param limit The maxiumum number of results to return. It is - possible to receive fewer than this because of the radius and because of server limits. - - @param searchText The text to use in the query to narrow the set of places - returned. - */ -+ (FBRequest *)requestForPlacesSearchAtCoordinate:(CLLocationCoordinate2D)coordinate - radiusInMeters:(NSInteger)radius - resultsLimit:(NSInteger)limit - searchText:(NSString *)searchText; - -/*! - @method - - @abstract - Creates a request representing the Graph API call to retrieve a Custom Audience "thirdy party ID" for the app's Facebook user. - Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, - and then use the resultant Custom Audience to target ads. - - @param session The FBSession to use to establish the user's identity for users logged into Facebook through this app. - If `nil`, then the activeSession is used. - - @discussion - This method will throw an exception if <[FBSettings defaultAppID]> is `nil`. The appID won't be nil when the pList - includes the appID, or if it's explicitly set. - - The JSON in the request's response will include an "custom_audience_third_party_id" key/value pair, with the value being the ID retrieved. - This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. - Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior - across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences. - - The ID retrieved represents the Facebook user identified in the following way: if the specified session (or activeSession if the specified - session is `nil`) is open, the ID will represent the user associated with the activeSession; otherwise the ID will represent the user logged into the - native Facebook app on the device. If there is no native Facebook app, no one is logged into it, or the user has opted out - at the iOS level from ad tracking, then a `nil` ID will be returned. - - This method returns `nil` if either the user has opted-out (via iOS) from Ad Tracking, the app itself has limited event usage - via the `[FBAppEvents setLimitEventUsage]` flag, or a specific Facebook user cannot be identified. - */ -+ (FBRequest *)requestForCustomAudienceThirdPartyID:(FBSession *)session; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to make a Graph API call for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - */ -+ (FBRequest *)requestForGraphPath:(NSString *)graphPath; - -/*! - @method - - @abstract - Creates request representing a DELETE to a object. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param object This can be an NSString, NSNumber or NSDictionary representing an object to delete - */ -+ (FBRequest *)requestForDeleteObject:(id)object; - -/*! - @method - - @abstract - Creates a request representing a POST for a graph object. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param graphObject An object or open graph action to post. - - @discussion This method is typically used for posting an open graph action. If you are only - posting an open graph object (without an action), consider using `requestForPostOpenGraphObject:` - */ -+ (FBRequest *)requestForPostWithGraphPath:(NSString *)graphPath - graphObject:(id)graphObject; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to make a Graph API call for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param parameters The parameters for the request. A value of nil sends only the automatically handled parameters, for example, the access token. The default is nil. - - @param HTTPMethod The HTTP method to use for the request. A nil value implies a GET. - */ -+ (FBRequest *)requestWithGraphPath:(NSString *)graphPath - parameters:(NSDictionary *)parameters - HTTPMethod:(NSString *)HTTPMethod; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to create a user owned - Open Graph object for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param object The Open Graph object to create. Some common expected fields include "title", "image", "url", etc. - */ -+ (FBRequest *)requestForPostOpenGraphObject:(id)object; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to create a user owned - Open Graph object for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param type The fully-specified Open Graph object type (e.g., my_app_namespace:my_object_name) - @param title The title of the Open Graph object. - @param image The link to an image to be associated with the Open Graph object. - @param url The url to be associated with the Open Graph object. - @param description The description to be associated with the object. - @param objectProperties Any additional properties for the Open Graph object. - */ -+ (FBRequest *)requestForPostOpenGraphObjectWithType:(NSString *)type - title:(NSString *)title - image:(id)image - url:(id)url - description:(NSString *)description - objectProperties:(NSDictionary *)objectProperties; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to update a user owned - Open Graph object for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param object The Open Graph object to update the existing object with. - */ -+ (FBRequest *)requestForUpdateOpenGraphObject:(id)object; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to update a user owned - Open Graph object for the active session. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param objectId The id of the Open Graph object to update. - @param title The updated title of the Open Graph object. - @param image The updated link to an image to be associated with the Open Graph object. - @param url The updated url to be associated with the Open Graph object. - @param description The updated description of the Open Graph object. - @param objectProperties Any additional properties to update for the Open Graph object. - */ -+ (FBRequest *)requestForUpdateOpenGraphObjectWithId:(id)objectId - title:(NSString *)title - image:(id)image - url:(id)url - description:(NSString *)description - objectProperties:(NSDictionary *)objectProperties; - -/*! - @method - - @abstract - Returns a newly initialized request object that can be used to upload an image - to create a staging resource. Staging resources allow you to post binary data - such as images, in preparation for a post of an open graph object or action - which references the image. The URI returned when uploading a staging resource - may be passed as the image property for an open graph object or action. - - @discussion - This method simplifies the preparation of a Graph API call. - - This method does not initialize an object. To initiate the API - call first instantiate an object, add the request to this object, - then call the `start` method on the connection instance. - - @param image A `UIImage` for the image to upload. - */ -+ (FBRequest *)requestForUploadStagingResourceWithImage:(UIImage *)image; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBRequestConnection.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBRequestConnection.h deleted file mode 100644 index 2f7cbae..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBRequestConnection.h +++ /dev/null @@ -1,760 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBGraphObject.h" -#import "FBSDKMacros.h" - -// up-front decl's -@class FBRequest; -@class FBRequestConnection; -@class FBSession; -@class UIImage; - - -/*! - @attribute beta true - - @typedef FBRequestConnectionErrorBehavior enum - - @abstract Describes what automatic error handling behaviors to provide (if any). - - @discussion This is a bitflag enum that can be composed of different values. - - See FBError.h and FBErrorUtility.h for error category and user message details. - */ -typedef NS_ENUM(NSUInteger, FBRequestConnectionErrorBehavior) { - /*! The default behavior of none */ - FBRequestConnectionErrorBehaviorNone = 0, - - /*! This will retry any requests whose error category is classified as `FBErrorCategoryRetry`. - If the retry fails, the normal handler is invoked. */ - FBRequestConnectionErrorBehaviorRetry = 1, - - /*! This will automatically surface any SDK provided userMessage (at most one), after - retry attempts, but before any reconnects are tried. The alert will have one button - whose text can be localized with the key "FBE:AlertMessageButton". - - You should not display your own alert views in your request handler when specifying this - behavior. - */ - FBRequestConnectionErrorBehaviorAlertUser = 2, - - /*! This will automatically reconnect a session if the request failed due to an invalid token - that would otherwise close the session (such as an expired token or password change). Note - this will NOT reconnect a session if the user had uninstalled the app, or if the user had - disabled the app's slider in their privacy settings (in cases of iOS 6 system auth). - If the session is reconnected, this will transition the session state to FBSessionStateTokenExtended - which will invoke any state change handlers. Otherwise, the session is closed as normal. - - This behavior should not be used if the FBRequestConnection contains multiple - session instances. Further, when this behavior is used, you must not request new permissions - for the session until the connection is completed. - - Lastly, you should avoid using additional FBRequestConnections with the same session because - that will be subject to race conditions. - */ - FBRequestConnectionErrorBehaviorReconnectSession = 4, -}; - -/*! - Normally requests return JSON data that is parsed into a set of `NSDictionary` - and `NSArray` objects. - - When a request returns a non-JSON response, that response is packaged in - a `NSDictionary` using FBNonJSONResponseProperty as the key and the literal - response as the value. - */ -FBSDK_EXTERN NSString *const FBNonJSONResponseProperty; - -/*! - @typedef FBRequestHandler - - @abstract - A block that is passed to addRequest to register for a callback with the results of that - request once the connection completes. - - @discussion - Pass a block of this type when calling addRequest. This will be called once - the request completes. The call occurs on the UI thread. - - @param connection The `FBRequestConnection` that sent the request. - - @param result The result of the request. This is a translation of - JSON data to `NSDictionary` and `NSArray` objects. This - is nil if there was an error. - - @param error The `NSError` representing any error that occurred. - - */ -typedef void (^FBRequestHandler)(FBRequestConnection *connection, - id result, - NSError *error); - -/*! - @protocol - - @abstract - The `FBRequestConnectionDelegate` protocol defines the methods used to receive network - activity progress information from a . - */ -@protocol FBRequestConnectionDelegate - -@optional - -/*! - @method - - @abstract - Tells the delegate the request connection will begin loading - - @discussion - If the is created using one of the convenience factory methods prefixed with - start, the object returned from the convenience method has already begun loading and this method - will not be called when the delegate is set. - - @param connection The request connection that is starting a network request - @param isCached YES if the request can be fulfilled using cached data, otherwise NO indicating - the result will require a network request. - */ -- (void)requestConnectionWillBeginLoading:(FBRequestConnection *)connection - fromCache:(BOOL)isCached; - -/*! - @method - - @abstract - Tells the delegate the request connection finished loading - - @discussion - If the request connection completes without a network error occuring then this method is called. - Invocation of this method does not indicate success of every made, only that the - request connection has no further activity. Use the error argument passed to the FBRequestHandler - block to determine success or failure of each . - - This method is invoked after the completion handler for each . - - @param connection The request connection that successfully completed a network request - @param isCached YES if the request was fulfilled using cached data, otherwise NO indicating - a network request was completed. - */ -- (void)requestConnectionDidFinishLoading:(FBRequestConnection *)connection - fromCache:(BOOL)isCached; - -/*! - @method - - @abstract - Tells the delegate the request connection failed with an error - - @discussion - If the request connection fails with a network error then this method is called. The `error` - argument specifies why the network connection failed. The `NSError` object passed to the - FBRequestHandler block may contain additional information. - - This method is invoked after the completion handler for each and only if a network - request was made. If the request was fulfilled using cached data, this method is not called. - - @param connection The request connection that successfully completed a network request - @param error The `NSError` representing the network error that occurred, if any. May be nil - in some circumstances. Consult the `NSError` for the for reliable - failure information. - */ -- (void)requestConnection:(FBRequestConnection *)connection - didFailWithError:(NSError *)error; - -/*! - @method - - @abstract - Tells the delegate the request connection is going to retry some network operations - - @discussion - If some fail, may create a new instance to retry the failed - requests. This method is called before the new instance is started. You must set the delegate - property on `retryConnection` to continue to receive progress information. If a delegate is - set on `retryConnection` then -requestConnectionWillBeginLoading: will be invoked. - - This method is invoked after the completion handler for each and only if a network - request was made. If the request was fulfilled using cached data, this method is not called. - - @param connection The request connection that successfully completed a network request - @param retryConnection The new request connection that will retry the failed s - */ -- (void) requestConnection:(FBRequestConnection *)connection -willRetryWithRequestConnection:(FBRequestConnection *)retryConnection; - -/*! - @method - - @abstract - Tells the delegate how much data has been sent and is planned to send to the remote host - - @discussion - The byte count arguments refer to the aggregated objects, not a particular . - - Like `NSURLConnection`, the values may change in unexpected ways if data needs to be resent. - - @param connection The request connection transmitting data to a remote host - @param bytesWritten The number of bytes sent in the last transmission - @param totalBytesWritten The total number of bytes sent to the remote host - @param totalBytesExpectedToWrite The total number of bytes expected to send to the remote host - */ -- (void)requestConnection:(FBRequestConnection *)connection - didSendBodyData:(NSInteger)bytesWritten - totalBytesWritten:(NSInteger)totalBytesWritten -totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; - -@end - -/*! - @class FBRequestConnection - - @abstract - The `FBRequestConnection` represents a single connection to Facebook to service a request. - - @discussion - The request settings are encapsulated in a reusable object. The - `FBRequestConnection` object encapsulates the concerns of a single communication - e.g. starting a connection, canceling a connection, or batching requests. - - */ -@interface FBRequestConnection : NSObject - -/*! - @methodgroup Creating a request - */ - -/*! - @method - - Calls with a default timeout of 180 seconds. - */ -- (instancetype)init; - -/*! - @method - - @abstract - `FBRequestConnection` objects are used to issue one or more requests as a single - request/response connection with Facebook. - - @discussion - For a single request, the usual method for creating an `FBRequestConnection` - object is to call one of the **start* ** methods on . However, it is - allowable to init an `FBRequestConnection` object directly, and call - to add one or more request objects to the - connection, before calling start. - - Note that if requests are part of a batch, they must have an open - FBSession that has an access token associated with it. Alternatively a default App ID - must be set either in the plist or through an explicit call to <[FBSession defaultAppID]>. - - @param timeout The `NSTimeInterval` (seconds) to wait for a response before giving up. - */ - -- (instancetype)initWithTimeout:(NSTimeInterval)timeout; - -// properties - -/*! - @abstract - The request that will be sent to the server. - - @discussion - This property can be used to create a `NSURLRequest` without using - `FBRequestConnection` to send that request. It is legal to set this property - in which case the provided `NSMutableURLRequest` will be used instead. However, - the `NSMutableURLRequest` must result in an appropriate response. Furthermore, once - this property has been set, no more objects can be added to this - `FBRequestConnection`. - */ -@property (nonatomic, retain, readwrite) NSMutableURLRequest *urlRequest; - -/*! - @abstract - The raw response that was returned from the server. (readonly) - - @discussion - This property can be used to inspect HTTP headers that were returned from - the server. - - The property is nil until the request completes. If there was a response - then this property will be non-nil during the FBRequestHandler callback. - */ -@property (nonatomic, retain, readonly) NSHTTPURLResponse *urlResponse; - -/*! - @attribute beta true - - @abstract Set the automatic error handling behaviors. - @discussion - - This must be set before any requests are added. - - When using retry behaviors, note the FBRequestConnection instance - passed to the FBRequestHandler may be a different instance that the - one the requests were originally started on. - */ -@property (nonatomic, assign) FBRequestConnectionErrorBehavior errorBehavior; - -@property (nonatomic, assign) id delegate; - -/*! - @methodgroup Adding requests - */ - -/*! - @method - - @abstract - This method adds an object to this connection. - - @discussion - The completion handler is retained until the block is called upon the - completion or cancellation of the connection. - - @param request A request to be included in the round-trip when start is called. - @param handler A handler to call back when the round-trip completes or times out. - The handler will be invoked on the main thread. - */ -- (void)addRequest:(FBRequest *)request - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - This method adds an object to this connection. - - @discussion - The completion handler is retained until the block is called upon the - completion or cancellation of the connection. This request can be named - to allow for using the request's response in a subsequent request. - - @param request A request to be included in the round-trip when start is called. - - @param handler A handler to call back when the round-trip completes or times out. - The handler will be invoked on the main thread. - - @param name An optional name for this request. This can be used to feed - the results of one request to the input of another in the same - `FBRequestConnection` as described in - [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). - */ -- (void)addRequest:(FBRequest *)request - completionHandler:(FBRequestHandler)handler - batchEntryName:(NSString *)name; - -/*! - @method - - @abstract - This method adds an object to this connection. - - @discussion - The completion handler is retained until the block is called upon the - completion or cancellation of the connection. This request can be named - to allow for using the request's response in a subsequent request. - - @param request A request to be included in the round-trip when start is called. - - @param handler A handler to call back when the round-trip completes or times out. - - @param batchParameters The optional dictionary of parameters to include for this request - as described in [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). - Examples include "depends_on", "name", or "omit_response_on_success". - */ -- (void)addRequest:(FBRequest *)request - completionHandler:(FBRequestHandler)handler - batchParameters:(NSDictionary *)batchParameters; - -/*! - @methodgroup Instance methods - */ - -/*! - @method - - @abstract - This method starts a connection with the server and is capable of handling all of the - requests that were added to the connection. - - @discussion - Errors are reported via the handler callback, even in cases where no - communication is attempted by the implementation of `FBRequestConnection`. In - such cases multiple error conditions may apply, and if so the following - priority (highest to lowest) is used: - - - `FBRequestConnectionInvalidRequestKey` -- this error is reported when an - cannot be encoded for transmission. - - - `FBRequestConnectionInvalidBatchKey` -- this error is reported when any - request in the connection cannot be encoded for transmission with the batch. - In this scenario all requests fail. - - This method cannot be called twice for an `FBRequestConnection` instance. - */ -- (void)start; - -/*! - @method - - @abstract - Signals that a connection should be logically terminated as the - application is no longer interested in a response. - - @discussion - Synchronously calls any handlers indicating the request was cancelled. Cancel - does not guarantee that the request-related processing will cease. It - does promise that all handlers will complete before the cancel returns. A call to - cancel prior to a start implies a cancellation of all requests associated - with the connection. - */ -- (void)cancel; - -/*! - @method - - @abstract - Overrides the default version for a batch request - - @discussion - The SDK automatically prepends a version part, such as "v2.0" to API paths in order to simplify API versioning - for applications. If you want to override the version part while using batch requests on the connection, call - this method to set the version for the batch request. - - @param version This is a string in the form @"v2.0" which will be used for the version part of an API path - */ -- (void)overrideVersionPartWith:(NSString *)version; - -/*! - @method - - @abstract - Simple method to make a graph API request for user info (/me), creates an - then uses an object to start the connection with Facebook. The - request uses the active session represented by `[FBSession activeSession]`. - - See - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForMeWithCompletionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to make a graph API request for user friends (/me/friends), creates an - then uses an object to start the connection with Facebook. The - request uses the active session represented by `[FBSession activeSession]`. - - See - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForMyFriendsWithCompletionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to make a graph API post of a photo. The request - uses the active session represented by `[FBSession activeSession]`. - - @param photo A `UIImage` for the photo to upload. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForUploadPhoto:(UIImage *)photo - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to make a graph API post of a status update. The request - uses the active session represented by `[FBSession activeSession]`. - - @param message The message to post. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForPostStatusUpdate:(NSString *)message - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to make a graph API post of a status update. The request - uses the active session represented by `[FBSession activeSession]`. - - @param message The message to post. - @param place The place to checkin with, or nil. Place may be an fbid or a - graph object representing a place. - @param tags Array of friends to tag in the status update, each element - may be an fbid or a graph object representing a user. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForPostStatusUpdate:(NSString *)message - place:(id)place - tags:(id)tags - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Starts a request representing a Graph API call to the "search" endpoint - for a given location using the active session. - - @discussion - Simplifies starting a request to search for places near a coordinate. - - This method creates the necessary object and initializes and - starts an object. A successful Graph API call will - return an array of objects representing the nearby locations. - - @param coordinate The search coordinates. - - @param radius The search radius in meters. - - @param limit The maxiumum number of results to return. It is - possible to receive fewer than this because of the - radius and because of server limits. - - @param searchText The text to use in the query to narrow the set of places - returned. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForPlacesSearchAtCoordinate:(CLLocationCoordinate2D)coordinate - radiusInMeters:(NSInteger)radius - resultsLimit:(NSInteger)limit - searchText:(NSString *)searchText - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Starts a request representing the Graph API call to retrieve a Custom Audience "third party ID" for the app's Facebook user. - Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, - and then use the resultant Custom Audience to target ads. - - @param session The FBSession to use to establish the user's identity for users logged into Facebook through this app. - If `nil`, then the activeSession is used. - - @discussion - This method will throw an exception if <[FBSettings defaultAppID]> is `nil`. The appID won't be nil when the pList - includes the appID, or if it's explicitly set. - - The JSON in the request's response will include an "custom_audience_third_party_id" key/value pair, with the value being the ID retrieved. - This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. - Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior - across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences. - - The ID retrieved represents the Facebook user identified in the following way: if the specified session (or activeSession if the specified - session is `nil`) is open, the ID will represent the user associated with the activeSession; otherwise the ID will represent the user logged into the - native Facebook app on the device. If there is no native Facebook app, no one is logged into it, or the user has opted out - at the iOS level from ad tracking, then a `nil` ID will be returned. - - This method returns `nil` if either the user has opted-out (via iOS) from Ad Tracking, the app itself has limited event usage - via the `[FBAppEvents setLimitEventUsage]` flag, or a specific Facebook user cannot be identified. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForCustomAudienceThirdPartyID:(FBSession *)session - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to make a graph API request, creates an object for HTTP GET, - then uses an object to start the connection with Facebook. The - request uses the active session represented by `[FBSession activeSession]`. - - See - - @param graphPath The Graph API endpoint to use for the request, for example "me". - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startWithGraphPath:(NSString *)graphPath - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to delete an object using the graph API, creates an object for - HTTP DELETE, then uses an object to start the connection with Facebook. - The request uses the active session represented by `[FBSession activeSession]`. - - @param object The object to delete, may be an NSString or NSNumber representing an fbid or an NSDictionary with an id property - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForDeleteObject:(id)object - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Simple method to post an object using the graph API, creates an object for - HTTP POST, then uses to start a connection with Facebook. The request uses - the active session represented by `[FBSession activeSession]`. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param graphObject An object or open graph action to post. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - - @discussion This method is typically used for posting an open graph action. If you are only - posting an open graph object (without an action), consider using `startForPostOpenGraphObject:completionHandler:` - */ -+ (FBRequestConnection *)startForPostWithGraphPath:(NSString *)graphPath - graphObject:(id)graphObject - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Creates an `FBRequest` object for a Graph API call, instantiate an - object, add the request to the newly created - connection and finally start the connection. Use this method for - specifying the request parameters and HTTP Method. The request uses - the active session represented by `[FBSession activeSession]`. - - @param graphPath The Graph API endpoint to use for the request, for example "me". - - @param parameters The parameters for the request. A value of nil sends only the automatically handled parameters, for example, the access token. The default is nil. - - @param HTTPMethod The HTTP method to use for the request. A nil value implies a GET. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startWithGraphPath:(NSString *)graphPath - parameters:(NSDictionary *)parameters - HTTPMethod:(NSString *)HTTPMethod - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Creates an `FBRequest` for creating a user owned Open Graph object, instantiate a - object, add the request to the newly created - connection and finally start the connection. The request uses - the active session represented by `[FBSession activeSession]`. - - @param object The Open Graph object to create. Some common expected fields include "title", "image", "url", etc. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForPostOpenGraphObject:(id)object - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Creates an `FBRequest` for creating a user owned Open Graph object, instantiate a - object, add the request to the newly created - connection and finally start the connection. The request uses - the active session represented by `[FBSession activeSession]`. - - @param type The fully-specified Open Graph object type (e.g., my_app_namespace:my_object_name) - @param title The title of the Open Graph object. - @param image The link to an image to be associated with the Open Graph object. - @param url The url to be associated with the Open Graph object. - @param description The description for the object. - @param objectProperties Any additional properties for the Open Graph object. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForPostOpenGraphObjectWithType:(NSString *)type - title:(NSString *)title - image:(id)image - url:(id)url - description:(NSString *)description - objectProperties:(NSDictionary *)objectProperties - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Creates an `FBRequest` for updating a user owned Open Graph object, instantiate a - object, add the request to the newly created - connection and finally start the connection. The request uses - the active session represented by `[FBSession activeSession]`. - - @param object The Open Graph object to update the existing object with. - - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForUpdateOpenGraphObject:(id)object - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Creates an `FBRequest` for updating a user owned Open Graph object, instantiate a - object, add the request to the newly created - connection and finally start the connection. The request uses - the active session represented by `[FBSession activeSession]`. - - @param objectId The id of the Open Graph object to update. - @param title The updated title of the Open Graph object. - @param image The updated link to an image to be associated with the Open Graph object. - @param url The updated url to be associated with the Open Graph object. - @param description The object's description. - @param objectProperties Any additional properties to update for the Open Graph object. - @param handler The handler block to call when the request completes with a success, error, or cancel action. - */ -+ (FBRequestConnection *)startForUpdateOpenGraphObjectWithId:(id)objectId - title:(NSString *)title - image:(id)image - url:(id)url - description:(NSString *)description - objectProperties:(NSDictionary *)objectProperties - completionHandler:(FBRequestHandler)handler; - -/*! - @method - - @abstract - Starts a request connection to upload an image - to create a staging resource. Staging resources allow you to post binary data - such as images, in preparation for a post of an open graph object or action - which references the image. The URI returned when uploading a staging resource - may be passed as the value for the image property of an open graph object or action. - - @discussion - This method simplifies the preparation of a Graph API call be creating the FBRequest - object and starting the request connection with a single method - - @param image A `UIImage` for the image to upload. - @param handler The handler block to call when the request completes. - */ -+ (FBRequestConnection *)startForUploadStagingResourceWithImage:(UIImage *)image - completionHandler:(FBRequestHandler)handler; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSDKMacros.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSDKMacros.h deleted file mode 100644 index 2faed4e..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSDKMacros.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#ifdef __cplusplus -#define FBSDK_EXTERN extern "C" __attribute__((visibility ("default"))) -#else -#define FBSDK_EXTERN extern __attribute__((visibility ("default"))) -#endif - -#define FBSDK_STATIC_INLINE static inline diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSession.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSession.h deleted file mode 100644 index 26bf7a1..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSession.h +++ /dev/null @@ -1,819 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBSDKMacros.h" - -// up-front decl's -@class FBAccessTokenData; -@class FBSession; -@class FBSessionTokenCachingStrategy; - -#define FB_SESSIONSTATETERMINALBIT (1 << 8) - -#define FB_SESSIONSTATEOPENBIT (1 << 9) - -/* - * Constants used by NSNotificationCenter for active session notification - */ - -/*! NSNotificationCenter name indicating that a new active session was set */ -FBSDK_EXTERN NSString *const FBSessionDidSetActiveSessionNotification; - -/*! NSNotificationCenter name indicating that an active session was unset */ -FBSDK_EXTERN NSString *const FBSessionDidUnsetActiveSessionNotification; - -/*! NSNotificationCenter name indicating that the active session is open */ -FBSDK_EXTERN NSString *const FBSessionDidBecomeOpenActiveSessionNotification; - -/*! NSNotificationCenter name indicating that there is no longer an open active session */ -FBSDK_EXTERN NSString *const FBSessionDidBecomeClosedActiveSessionNotification; - -/*! - @typedef FBSessionState enum - - @abstract Passed to handler block each time a session state changes - - @discussion - */ -typedef NS_ENUM(NSUInteger, FBSessionState) { - /*! One of two initial states indicating that no valid cached token was found */ - FBSessionStateCreated = 0, - /*! One of two initial session states indicating that a cached token was loaded; - when a session is in this state, a call to open* will result in an open session, - without UX or app-switching*/ - FBSessionStateCreatedTokenLoaded = 1, - /*! One of three pre-open session states indicating that an attempt to open the session - is underway*/ - FBSessionStateCreatedOpening = 2, - - /*! Open session state indicating user has logged in or a cached token is available */ - FBSessionStateOpen = 1 | FB_SESSIONSTATEOPENBIT, - /*! Open session state indicating token has been extended, or the user has granted additional permissions */ - FBSessionStateOpenTokenExtended = 2 | FB_SESSIONSTATEOPENBIT, - - /*! Closed session state indicating that a login attempt failed */ - FBSessionStateClosedLoginFailed = 1 | FB_SESSIONSTATETERMINALBIT, // NSError obj w/more info - /*! Closed session state indicating that the session was closed, but the users token - remains cached on the device for later use */ - FBSessionStateClosed = 2 | FB_SESSIONSTATETERMINALBIT, // " -}; - -/*! helper macro to test for states that imply an open session */ -#define FB_ISSESSIONOPENWITHSTATE(state) (0 != (state & FB_SESSIONSTATEOPENBIT)) - -/*! helper macro to test for states that are terminal */ -#define FB_ISSESSIONSTATETERMINAL(state) (0 != (state & FB_SESSIONSTATETERMINALBIT)) - -/*! - @typedef FBSessionLoginBehavior enum - - @abstract - Passed to open to indicate whether Facebook Login should allow for fallback to be attempted. - - @discussion - Facebook Login authorizes the application to act on behalf of the user, using the user's - Facebook account. Usually a Facebook Login will rely on an account maintained outside of - the application, by the native Facebook application, the browser, or perhaps the device - itself. This avoids the need for a user to enter their username and password directly, and - provides the most secure and lowest friction way for a user to authorize the application to - interact with Facebook. If a Facebook Login is not possible, a fallback Facebook Login may be - attempted, where the user is prompted to enter their credentials in a web-view hosted directly - by the application. - - The `FBSessionLoginBehavior` enum specifies whether to allow fallback, disallow fallback, or - force fallback login behavior. Most applications will use the default, which attempts a normal - Facebook Login, and only falls back if needed. In rare cases, it may be preferable to disallow - fallback Facebook Login completely, or to force a fallback login. - */ -typedef NS_ENUM(NSUInteger, FBSessionLoginBehavior) { - /*! Attempt Facebook Login, ask user for credentials if necessary */ - FBSessionLoginBehaviorWithFallbackToWebView = 0, - /*! Attempt Facebook Login, no direct request for credentials will be made */ - FBSessionLoginBehaviorWithNoFallbackToWebView = 1, - /*! Only attempt WebView Login; ask user for credentials */ - FBSessionLoginBehaviorForcingWebView = 2, - /*! Attempt Facebook Login, prefering system account and falling back to fast app switch if necessary */ - FBSessionLoginBehaviorUseSystemAccountIfPresent = 3, - /*! Attempt only to login with Safari */ - FBSessionLoginBehaviorForcingSafari = 4, -}; - -/*! - @typedef FBSessionDefaultAudience enum - - @abstract - Passed to open to indicate which default audience to use for sessions that post data to Facebook. - - @discussion - Certain operations such as publishing a status or publishing a photo require an audience. When the user - grants an application permission to perform a publish operation, a default audience is selected as the - publication ceiling for the application. This enumerated value allows the application to select which - audience to ask the user to grant publish permission for. - */ -typedef NS_ENUM(NSUInteger, FBSessionDefaultAudience) { - /*! No audience needed; this value is useful for cases where data will only be read from Facebook */ - FBSessionDefaultAudienceNone = 0, - /*! Indicates that only the user is able to see posts made by the application */ - FBSessionDefaultAudienceOnlyMe = 10, - /*! Indicates that the user's friends are able to see posts made by the application */ - FBSessionDefaultAudienceFriends = 20, - /*! Indicates that all Facebook users are able to see posts made by the application */ - FBSessionDefaultAudienceEveryone = 30, -}; - -/*! - @typedef FBSessionLoginType enum - - @abstract - Used as the type of the loginType property in order to specify what underlying technology was used to - login the user. - - @discussion - The FBSession object is an abstraction over five distinct mechanisms. This enum allows an application - to test for the mechanism used by a particular instance of FBSession. Usually the mechanism used for a - given login does not matter, however for certain capabilities, the type of login can impact the behavior - of other Facebook functionality. - */ -typedef NS_ENUM(NSUInteger, FBSessionLoginType) { - /*! A login type has not yet been established */ - FBSessionLoginTypeNone = 0, - /*! A system integrated account was used to log the user into the application */ - FBSessionLoginTypeSystemAccount = 1, - /*! The Facebook native application was used to log the user into the application */ - FBSessionLoginTypeFacebookApplication = 2, - /*! Safari was used to log the user into the application */ - FBSessionLoginTypeFacebookViaSafari = 3, - /*! A web view was used to log the user into the application */ - FBSessionLoginTypeWebView = 4, - /*! A test user was used to create an open session */ - FBSessionLoginTypeTestUser = 5, -}; - -/*! - @typedef - - @abstract Block type used to define blocks called by for state updates - @discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/ - for error handling best practices. - - Requesting additional permissions inside this handler (such as by calling - `requestNewPublishPermissions`) should be avoided because it is a poor user - experience and its behavior may vary depending on the login type. You should - request the permissions closer to the operation that requires it (e.g., when - the user performs some action). - */ -typedef void (^FBSessionStateHandler)(FBSession *session, - FBSessionState status, - NSError *error); - -/*! - @typedef - - @abstract Block type used to define blocks called by <[FBSession requestNewReadPermissions:completionHandler:]> - and <[FBSession requestNewPublishPermissions:defaultAudience:completionHandler:]>. - - @discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/ - for error handling best practices. - - Requesting additional permissions inside this handler (such as by calling - `requestNewPublishPermissions`) should be avoided because it is a poor user - experience and its behavior may vary depending on the login type. You should - request the permissions closer to the operation that requires it (e.g., when - the user performs some action). - */ -typedef void (^FBSessionRequestPermissionResultHandler)(FBSession *session, - NSError *error); - -/*! - @typedef - - @abstract Block type used to define blocks called by <[FBSession reauthorizeWithPermissions]>. - - @discussion You should use the preferred FBSessionRequestPermissionHandler typedef rather than - this synonym, which has been deprecated. - */ -typedef FBSessionRequestPermissionResultHandler FBSessionReauthorizeResultHandler __attribute__((deprecated)); - -/*! - @typedef - - @abstract Block type used to define blocks called for system credential renewals. - @discussion - */ -typedef void (^FBSessionRenewSystemCredentialsHandler)(ACAccountCredentialRenewResult result, NSError *error) ; - -/*! - @class FBSession - - @abstract - The `FBSession` object is used to authenticate a user and manage the user's session. After - initializing a `FBSession` object the Facebook App ID and desired permissions are stored. - Opening the session will initiate the authentication flow after which a valid user session - should be available and subsequently cached. Closing the session can optionally clear the - cache. - - If an request requires user authorization then an `FBSession` object should be used. - - - @discussion - Instances of the `FBSession` class provide notification of state changes in the following ways: - - 1. Callers of certain `FBSession` methods may provide a block that will be called - back in the course of state transitions for the session (e.g. login or session closed). - - 2. The object supports Key-Value Observing (KVO) for property changes. - */ -@interface FBSession : NSObject - -/*! - @methodgroup Creating a session - */ - -/*! - @method - - @abstract - Returns a newly initialized Facebook session with default values for the parameters - to . - */ -- (instancetype)init; - -/*! - @method - - @abstract - Returns a newly initialized Facebook session with the specified permissions and other - default values for parameters to . - - @param permissions An array of strings representing the permissions to request during the - authentication flow. - - @discussion - It is required that any single permission request request (including initial log in) represent read-only permissions - or publish permissions only; not both. The permissions passed here should reflect this requirement. - - */ -- (instancetype)initWithPermissions:(NSArray *)permissions; - -/*! - @method - - @abstract - Following are the descriptions of the arguments along with their - defaults when ommitted. - - @param permissions An array of strings representing the permissions to request during the - authentication flow. - @param appID The Facebook App ID for the session. If nil is passed in the default App ID will be obtained from a call to <[FBSession defaultAppID]>. The default is nil. - @param urlSchemeSuffix The URL Scheme Suffix to be used in scenarious where multiple iOS apps use one Facebook App ID. A value of nil indicates that this information should be pulled from [FBSettings defaultUrlSchemeSuffix]. The default is nil. - @param tokenCachingStrategy Specifies a key name to use for cached token information in NSUserDefaults, nil - indicates a default value of @"FBAccessTokenInformationKey". - - @discussion - It is required that any single permission request request (including initial log in) represent read-only permissions - or publish permissions only; not both. The permissions passed here should reflect this requirement. - */ -- (instancetype)initWithAppID:(NSString *)appID - permissions:(NSArray *)permissions - urlSchemeSuffix:(NSString *)urlSchemeSuffix - tokenCacheStrategy:(FBSessionTokenCachingStrategy *)tokenCachingStrategy; - -/*! - @method - - @abstract - Following are the descriptions of the arguments along with their - defaults when ommitted. - - @param permissions An array of strings representing the permissions to request during the - authentication flow. - @param defaultAudience Most applications use FBSessionDefaultAudienceNone here, only specifying an audience when using reauthorize to request publish permissions. - @param appID The Facebook App ID for the session. If nil is passed in the default App ID will be obtained from a call to <[FBSession defaultAppID]>. The default is nil. - @param urlSchemeSuffix The URL Scheme Suffix to be used in scenarious where multiple iOS apps use one Facebook App ID. A value of nil indicates that this information should be pulled from [FBSettings defaultUrlSchemeSuffix]. The default is nil. - @param tokenCachingStrategy Specifies a key name to use for cached token information in NSUserDefaults, nil - indicates a default value of @"FBAccessTokenInformationKey". - - @discussion - It is required that any single permission request request (including initial log in) represent read-only permissions - or publish permissions only; not both. The permissions passed here should reflect this requirement. If publish permissions - are used, then the audience must also be specified. - */ -- (instancetype)initWithAppID:(NSString *)appID - permissions:(NSArray *)permissions - defaultAudience:(FBSessionDefaultAudience)defaultAudience - urlSchemeSuffix:(NSString *)urlSchemeSuffix - tokenCacheStrategy:(FBSessionTokenCachingStrategy *)tokenCachingStrategy; - -// instance readonly properties - -/*! @abstract Indicates whether the session is open and ready for use. */ -@property (readonly) BOOL isOpen; - -/*! @abstract Detailed session state */ -@property (readonly) FBSessionState state; - -/*! @abstract Identifies the Facebook app which the session object represents. */ -@property (readonly, copy) NSString *appID; - -/*! @abstract Identifies the URL Scheme Suffix used by the session. This is used when multiple iOS apps share a single Facebook app ID. */ -@property (readonly, copy) NSString *urlSchemeSuffix; - -/*! @abstract The access token for the session object. - @discussion Deprecated. Use the `accessTokenData` property. */ -@property(readonly, copy) NSString *accessToken -__attribute__((deprecated)); - -/*! @abstract The expiration date of the access token for the session object. - @discussion Deprecated. Use the `accessTokenData` property. */ -@property(readonly, copy) NSDate *expirationDate -__attribute__((deprecated)); - -/*! @abstract The permissions granted to the access token during the authentication flow. */ -@property (readonly, copy) NSArray *permissions; - -/*! @abstract Specifies the login type used to authenticate the user. - @discussion Deprecated. Use the `accessTokenData` property. */ -@property(readonly) FBSessionLoginType loginType -__attribute__((deprecated)); - -/*! @abstract Gets the FBAccessTokenData for the session */ -@property (readonly, copy) FBAccessTokenData *accessTokenData; - -/*! - @abstract - Returns a collection of permissions that have been declined by the user for this - given session instance. - - @discussion - A "declined" permission is one that had been requested but was either skipped or removed by - the user during the login flow. Note that once the permission has been granted (either by - requesting again or detected by a permissions refresh), it will be removed from this collection. - */ -@property (readonly, copy) NSArray *declinedPermissions; - -/*! - @methodgroup Instance methods - */ - -/*! - @method - - @abstract Opens a session for the Facebook. - - @discussion - A session may not be used with and other classes in the SDK until it is open. If, prior - to calling open, the session is in the state, then no UX occurs, and - the session becomes available for use. If the session is in the state, prior - to calling open, then a call to open causes login UX to occur, either via the Facebook application - or via mobile Safari. - - Open may be called at most once and must be called after the `FBSession` is initialized. Open must - be called before the session is closed. Calling an open method at an invalid time will result in - an exception. The open session methods may be passed a block that will be called back when the session - state changes. The block will be released when the session is closed. - - @param handler A block to call with the state changes. The default is nil. - */ -- (void)openWithCompletionHandler:(FBSessionStateHandler)handler; - -/*! - @method - - @abstract Logs a user on to Facebook. - - @discussion - A session may not be used with and other classes in the SDK until it is open. If, prior - to calling open, the session is in the state, then no UX occurs, and - the session becomes available for use. If the session is in the state, prior - to calling open, then a call to open causes login UX to occur, either via the Facebook application - or via mobile Safari. - - The method may be called at most once and must be called after the `FBSession` is initialized. It must - be called before the session is closed. Calling the method at an invalid time will result in - an exception. The open session methods may be passed a block that will be called back when the session - state changes. The block will be released when the session is closed. - - @param behavior Controls whether to allow, force, or prohibit Facebook Login or Inline Facebook Login. The default - is to allow Facebook Login, with fallback to Inline Facebook Login. - @param handler A block to call with session state changes. The default is nil. - */ -- (void)openWithBehavior:(FBSessionLoginBehavior)behavior - completionHandler:(FBSessionStateHandler)handler; - -/*! - @method - - @abstract Imports an existing access token and opens the session with it. - - @discussion - The method attempts to open the session using an existing access token. No UX will occur. If - successful, the session with be in an Open state and the method will return YES; otherwise, NO. - - The method may be called at most once and must be called after the `FBSession` is initialized (see below). - It must be called before the session is closed. Calling the method at an invalid time will result in - an exception. The open session methods may be passed a block that will be called back when the session - state changes. The block will be released when the session is closed. - - The initialized session must not have already been initialized from a cache (for example, you could use - the `[FBSessionTokenCachingStrategy nullCacheInstance]` instance). - - @param accessTokenData The token data. See `FBAccessTokenData` for construction methods. - @param handler A block to call with session state changes. The default is nil. - */ -- (BOOL)openFromAccessTokenData:(FBAccessTokenData *)accessTokenData completionHandler:(FBSessionStateHandler) handler; - -/*! - @abstract - Closes the local in-memory session object, but does not clear the persisted token cache. - */ -- (void)close; - -/*! - @abstract - Closes the in-memory session, and clears any persisted cache related to the session. - */ -- (void)closeAndClearTokenInformation; - -/*! - @abstract - Reauthorizes the session, with additional permissions. - - @param permissions An array of strings representing the permissions to request during the - authentication flow. A value of nil indicates basic permissions. The default is nil. - @param behavior Controls whether to allow, force, or prohibit Facebook Login. The default - is to allow Facebook Login and fall back to Inline Facebook Login if needed. - @param handler A block to call with session state changes. The default is nil. - - @discussion Methods and properties that specify permissions without a read or publish - qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred - (e.g. reauthorizeWithReadPermissions or reauthorizeWithPublishPermissions) - */ -- (void)reauthorizeWithPermissions:(NSArray *)permissions - behavior:(FBSessionLoginBehavior)behavior - completionHandler:(FBSessionReauthorizeResultHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Reauthorizes the session, with additional permissions. - - @param readPermissions An array of strings representing the permissions to request during the - authentication flow. A value of nil indicates basic permissions. - - @param handler A block to call with session state changes. The default is nil. - - @discussion This method is a deprecated alias of <[FBSession requestNewReadPermissions:completionHandler:]>. Consider - using <[FBSession requestNewReadPermissions:completionHandler:]>, which is preferred for readability. - */ -- (void)reauthorizeWithReadPermissions:(NSArray *)readPermissions - completionHandler:(FBSessionReauthorizeResultHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Reauthorizes the session, with additional permissions. - - @param writePermissions An array of strings representing the permissions to request during the - authentication flow. - - @param defaultAudience Specifies the audience for posts. - - @param handler A block to call with session state changes. The default is nil. - - @discussion This method is a deprecated alias of <[FBSession requestNewPublishPermissions:defaultAudience:completionHandler:]>. - Consider using <[FBSession requestNewPublishPermissions:defaultAudience:completionHandler:]>, which is preferred for readability. - */ -- (void)reauthorizeWithPublishPermissions:(NSArray *)writePermissions - defaultAudience:(FBSessionDefaultAudience)defaultAudience - completionHandler:(FBSessionReauthorizeResultHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - Requests new or additional read permissions for the session. - - @param readPermissions An array of strings representing the permissions to request during the - authentication flow. A value of nil indicates basic permissions. - - @param handler A block to call with session state changes. The default is nil. - - @discussion The handler, if non-nil, is called once the operation has completed or failed. This is in contrast to the - state completion handler used in <[FBSession openWithCompletionHandler:]> (and other `open*` methods) which is called - for each state-change for the session. - */ -- (void)requestNewReadPermissions:(NSArray *)readPermissions - completionHandler:(FBSessionRequestPermissionResultHandler)handler; - -/*! - @abstract - Requests new or additional write permissions for the session. - - @param writePermissions An array of strings representing the permissions to request during the - authentication flow. - - @param defaultAudience Specifies the audience for posts. - - @param handler A block to call with session state changes. The default is nil. - - @discussion The handler, if non-nil, is called once the operation has completed or failed. This is in contrast to the - state completion handler used in <[FBSession openWithCompletionHandler:]> (and other `open*` methods) which is called - for each state-change for the session. - */ -- (void)requestNewPublishPermissions:(NSArray *)writePermissions - defaultAudience:(FBSessionDefaultAudience)defaultAudience - completionHandler:(FBSessionRequestPermissionResultHandler)handler; -/*! - @abstract Refreshes the current permissions for the session. - @param handler Called after completion of the refresh. - @discussion This will update the sessions' permissions array from the server. This can be - useful if you want to make sure the local permissions are up to date. - */ -- (void)refreshPermissionsWithCompletionHandler:(FBSessionRequestPermissionResultHandler)handler; - -/*! - @abstract - A helper method that is used to provide an implementation for - [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. It should be invoked during - the Facebook Login flow and will update the session information based on the incoming URL. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - */ -- (BOOL)handleOpenURL:(NSURL *)url; - -/*! - @abstract - A helper method that is used to provide an implementation for - [UIApplicationDelegate applicationDidBecomeActive:] to properly resolve session state for - the Facebook Login flow, specifically to support app-switch login. - */ -- (void)handleDidBecomeActive; - -/*! - @abstract - Assign the block to be invoked for session state changes. - - @param stateChangeHandler the handler block. - - @discussion - This will overwrite any state change handler that was already assigned. Typically, - you should only use this setter if you were unable to assign a state change handler explicitly. - One example of this is if you are not opening the session (e.g., using the `open*`) - but still want to assign a `FBSessionStateHandler` block. This can happen when the SDK - opens a session from an app link. - */ -- (void)setStateChangeHandler:(FBSessionStateHandler)stateChangeHandler; - -/*! - @abstract - Returns true if the specified permission has been granted to this session. - - @param permission the permission to verify. - - @discussion - This is a convenience helper for checking if `pemission` is inside the permissions array. - */ -- (BOOL)hasGranted:(NSString *)permission; - -/*! - @methodgroup Class methods - */ - -/*! - @abstract - This is the simplest method for opening a session with Facebook. Using sessionOpen logs on a user, - and sets the static activeSession which becomes the default session object for any Facebook UI widgets - used by the application. This session becomes the active session, whether open succeeds or fails. - - Note, if there is not a cached token available, this method will present UI to the user in order to - open the session via explicit login by the user. - - @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if - no login UI will be required to accomplish the operation. For example, at application startup it may not - be disirable to transition to login UI for the user, and yet an open session is desired so long as a cached - token can be used to open the session. Passing NO to this argument, assures the method will not present UI - to the user in order to open the session. - - @discussion - Returns YES if the session was opened synchronously without presenting UI to the user. This occurs - when there is a cached token available from a previous run of the application. If NO is returned, this indicates - that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is - possible that the user will login, and the session will become open asynchronously. The primary use for - this return value is to switch-on facebook capabilities in your UX upon startup, in the case where the session - is opened via cache. - */ -+ (BOOL)openActiveSessionWithAllowLoginUI:(BOOL)allowLoginUI; - -/*! - @abstract - This is a simple method for opening a session with Facebook. Using sessionOpen logs on a user, - and sets the static activeSession which becomes the default session object for any Facebook UI widgets - used by the application. This session becomes the active session, whether open succeeds or fails. - - @param permissions An array of strings representing the permissions to request during the - authentication flow. A value of nil indicates basic permissions. A nil value specifies - default permissions. - - @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if - no login UI will be required to accomplish the operation. For example, at application startup it may not - be desirable to transition to login UI for the user, and yet an open session is desired so long as a cached - token can be used to open the session. Passing NO to this argument, assures the method will not present UI - to the user in order to open the session. - - @param handler Many applications will benefit from notification when a session becomes invalid - or undergoes other state transitions. If a block is provided, the FBSession - object will call the block each time the session changes state. - - @discussion - Returns true if the session was opened synchronously without presenting UI to the user. This occurs - when there is a cached token available from a previous run of the application. If NO is returned, this indicates - that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is - possible that the user will login, and the session will become open asynchronously. The primary use for - this return value is to switch-on facebook capabilities in your UX upon startup, in the case where the session - is opened via cache. - - It is required that initial permissions requests represent read-only permissions only. If publish - permissions are needed, you may use reauthorizeWithPermissions to specify additional permissions as - well as an audience. Use of this method will result in a legacy fast-app-switch Facebook Login due to - the requirement to separate read and publish permissions for newer applications. Methods and properties - that specify permissions without a read or publish qualification are deprecated; use of a read-qualified - or publish-qualified alternative is preferred. - */ -+ (BOOL)openActiveSessionWithPermissions:(NSArray *)permissions - allowLoginUI:(BOOL)allowLoginUI - completionHandler:(FBSessionStateHandler)handler -__attribute__((deprecated)); - -/*! - @abstract - This is a simple method for opening a session with Facebook. Using sessionOpen logs on a user, - and sets the static activeSession which becomes the default session object for any Facebook UI widgets - used by the application. This session becomes the active session, whether open succeeds or fails. - - @param readPermissions An array of strings representing the read permissions to request during the - authentication flow. It is not allowed to pass publish permissions to this method. - - @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if - no login UI will be required to accomplish the operation. For example, at application startup it may not - be desirable to transition to login UI for the user, and yet an open session is desired so long as a cached - token can be used to open the session. Passing NO to this argument, assures the method will not present UI - to the user in order to open the session. - - @param handler Many applications will benefit from notification when a session becomes invalid - or undergoes other state transitions. If a block is provided, the FBSession - object will call the block each time the session changes state. - - @discussion - Returns true if the session was opened synchronously without presenting UI to the user. This occurs - when there is a cached token available from a previous run of the application. If NO is returned, this indicates - that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is - possible that the user will login, and the session will become open asynchronously. The primary use for - this return value is to switch-on facebook capabilities in your UX upon startup, in the case where the session - is opened via cache. - - */ -+ (BOOL)openActiveSessionWithReadPermissions:(NSArray *)readPermissions - allowLoginUI:(BOOL)allowLoginUI - completionHandler:(FBSessionStateHandler)handler; - -/*! - @abstract - This is a simple method for opening a session with Facebook. Using sessionOpen logs on a user, - and sets the static activeSession which becomes the default session object for any Facebook UI widgets - used by the application. This session becomes the active session, whether open succeeds or fails. - - @param publishPermissions An array of strings representing the publish permissions to request during the - authentication flow. - - @param defaultAudience Anytime an app publishes on behalf of a user, the post must have an audience (e.g. me, my friends, etc.) - The default audience is used to notify the user of the cieling that the user agrees to grant to the app for the provided permissions. - - @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if - no login UI will be required to accomplish the operation. For example, at application startup it may not - be desirable to transition to login UI for the user, and yet an open session is desired so long as a cached - token can be used to open the session. Passing NO to this argument, assures the method will not present UI - to the user in order to open the session. - - @param handler Many applications will benefit from notification when a session becomes invalid - or undergoes other state transitions. If a block is provided, the FBSession - object will call the block each time the session changes state. - - @discussion - Returns true if the session was opened synchronously without presenting UI to the user. This occurs - when there is a cached token available from a previous run of the application. If NO is returned, this indicates - that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is - possible that the user will login, and the session will become open asynchronously. The primary use for - this return value is to switch-on facebook capabilities in your UX upon startup, in the case where the session - is opened via cache. - - */ -+ (BOOL)openActiveSessionWithPublishPermissions:(NSArray *)publishPermissions - defaultAudience:(FBSessionDefaultAudience)defaultAudience - allowLoginUI:(BOOL)allowLoginUI - completionHandler:(FBSessionStateHandler)handler; - -/*! - @abstract - An application may get or set the current active session. Certain high-level components in the SDK - will use the activeSession to set default session (e.g. `FBLoginView`, `FBFriendPickerViewController`) - - @discussion - If sessionOpen* is called, the resulting `FBSession` object also becomes the activeSession. If another - session was active at the time, it is closed automatically. If activeSession is called when no session - is active, a session object is instatiated and returned; in this case open must be called on the session - in order for it to be useable for communication with Facebook. - */ -+ (FBSession *)activeSession; - -/*! - @abstract - An application may get or set the current active session. Certain high-level components in the SDK - will use the activeSession to set default session (e.g. `FBLoginView`, `FBFriendPickerViewController`) - - @param session The FBSession object to become the active session - - @discussion - If an application prefers the flexibilility of directly instantiating a session object, an active - session can be set directly. - */ -+ (FBSession *)setActiveSession:(FBSession *)session; - -/*! - @method - - @abstract Set the default Facebook App ID to use for sessions. The app ID may be - overridden on a per session basis. - - @discussion This method has been deprecated in favor of [FBSettings setDefaultAppID]. - - @param appID The default Facebook App ID to use for methods. - */ -+ (void)setDefaultAppID:(NSString *)appID __attribute__((deprecated)); - -/*! - @method - - @abstract Get the default Facebook App ID to use for sessions. If not explicitly - set, the default will be read from the application's plist. The app ID may be - overridden on a per session basis. - - @discussion This method has been deprecated in favor of [FBSettings defaultAppID]. - */ -+ (NSString *)defaultAppID __attribute__((deprecated)); - -/*! - @method - - @abstract Set the default url scheme suffix to use for sessions. The url - scheme suffix may be overridden on a per session basis. - - @discussion This method has been deprecated in favor of [FBSettings setDefaultUrlSchemeSuffix]. - - @param urlSchemeSuffix The default url scheme suffix to use for methods. - */ -+ (void)setDefaultUrlSchemeSuffix:(NSString *)urlSchemeSuffix __attribute__((deprecated)); - -/*! - @method - - @abstract Get the default url scheme suffix used for sessions. If not - explicitly set, the default will be read from the application's plist. The - url scheme suffix may be overridden on a per session basis. - - @discussion This method has been deprecated in favor of [FBSettings defaultUrlSchemeSuffix]. - */ -+ (NSString *)defaultUrlSchemeSuffix __attribute__((deprecated)); - -/*! - @method - - @abstract Issues an asychronous renewCredentialsForAccount call to the device Facebook account store. - - @param handler The completion handler to call when the renewal is completed. The handler will be - invoked on the main thread. - - @discussion This can be used to explicitly renew account credentials on iOS 6 devices and is provided - as a convenience wrapper around `[ACAccountStore renewCredentialsForAccount:completion]`. Note the - method will not issue the renewal call if the the Facebook account has not been set on the device, or - if access had not been granted to the account (though the handler wil receive an error). - - This is safe to call (and will surface an error to the handler) on versions of iOS before 6 or if the user - logged in via Safari or Facebook SSO. - */ -+ (void)renewSystemCredentials:(FBSessionRenewSystemCredentialsHandler)handler; -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSessionTokenCachingStrategy.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSessionTokenCachingStrategy.h deleted file mode 100644 index f70b61e..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSessionTokenCachingStrategy.h +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBAccessTokenData.h" -#import "FBSDKMacros.h" - -/*! - @class - - @abstract - The `FBSessionTokenCachingStrategy` class is responsible for persisting and retrieving cached data related to - an object, including the user's Facebook access token. - - @discussion - `FBSessionTokenCachingStrategy` is designed to be instantiated directly or used as a base class. Usually default - token caching behavior is sufficient, and you do not need to interface directly with `FBSessionTokenCachingStrategy` objects. - However, if you need to control where or how `FBSession` information is cached, then you may take one of two approaches. - - The first and simplest approach is to instantiate an instance of `FBSessionTokenCachingStrategy`, and then pass - the instance to `FBSession` class' `init` method. This enables your application to control the key name used in - the iOS Keychain to store session information. You may consider this approach if you plan to cache session information - for multiple users. - - The second and more advanced approached is to derive a custom class from `FBSessionTokenCachingStrategy`, which will - be responsible for caching behavior of your application. This approach is useful if you need to change where the - information is cached, for example if you prefer to use the filesystem or make a network connection to fetch and - persist cached tokens. Inheritors should override the cacheTokenInformation, fetchTokenInformation, and clearToken methods. - Doing this enables your application to implement any token caching scheme, including no caching at all (see - `[FBSessionTokenCachingStrategy nullCacheInstance]`. - - Direct use of `FBSessionTokenCachingStrategy`is an advanced technique. Most applications use objects without - passing an `FBSessionTokenCachingStrategy`, which yields default caching to the iOS Keychain. - */ -@interface FBSessionTokenCachingStrategy : NSObject - -/*! - @abstract Initializes and returns an instance - */ -- (instancetype)init; - -/*! - @abstract - Initializes and returns an instance - - @param tokenInformationKeyName Specifies a key name to use for cached token information in the iOS Keychain, nil - indicates a default value of @"FBAccessTokenInformationKey" - */ -- (instancetype)initWithUserDefaultTokenInformationKeyName:(NSString *)tokenInformationKeyName; - -/*! - @abstract - Called by (and overridden by inheritors), in order to cache token information. - - @param tokenInformation Dictionary containing token information to be cached by the method - @discussion You should favor overriding this instead of `cacheFBAccessTokenData` only if you intend - to cache additional data not captured by the FBAccessTokenData type. - */ -- (void)cacheTokenInformation:(NSDictionary *)tokenInformation; - -/*! - @abstract Cache the supplied token. - @param accessToken The token instance. - @discussion This essentially wraps a call to `cacheTokenInformation` so you should - override this when providing a custom token caching strategy. - */ -- (void)cacheFBAccessTokenData:(FBAccessTokenData *)accessToken; - -/*! - @abstract - Called by (and overridden by inheritors), in order to fetch cached token information - - @discussion - An overriding implementation should only return a token if it - can also return an expiration date, otherwise return nil. - You should favor overriding this instead of `fetchFBAccessTokenData` only if you intend - to cache additional data not captured by the FBAccessTokenData type. - - */ -- (NSDictionary *)fetchTokenInformation; - -/*! - @abstract - Fetches the cached token instance. - - @discussion - This essentially wraps a call to `fetchTokenInformation` so you should - override this when providing a custom token caching strategy. - - In order for an `FBSession` instance to be able to use a cached token, - the token must be not be expired (see `+isValidTokenInformation:`) and - must also contain all permissions in the initialized session instance. - */ -- (FBAccessTokenData *)fetchFBAccessTokenData; - -/*! - @abstract - Called by (and overridden by inheritors), in order delete any cached information for the current token - */ -- (void)clearToken; - -/*! - @abstract - Helper function called by the SDK as well as apps, in order to fetch the default strategy instance. - */ -+ (FBSessionTokenCachingStrategy *)defaultInstance; - -/*! - @abstract - Helper function to return a FBSessionTokenCachingStrategy instance that does not perform any caching. - */ -+ (FBSessionTokenCachingStrategy *)nullCacheInstance; - -/*! - @abstract - Helper function called by the SDK as well as application code, used to determine whether a given dictionary - contains the minimum token information usable by the . - - @param tokenInformation Dictionary containing token information to be validated - */ -+ (BOOL)isValidTokenInformation:(NSDictionary *)tokenInformation; - -@end - -// The key to use with token information dictionaries to get and set the token value -FBSDK_EXTERN NSString *const FBTokenInformationTokenKey; - -// The to use with token information dictionaries to get and set the expiration date -FBSDK_EXTERN NSString *const FBTokenInformationExpirationDateKey; - -// The to use with token information dictionaries to get and set the refresh date -FBSDK_EXTERN NSString *const FBTokenInformationRefreshDateKey; - -// The key to use with token information dictionaries to get the related user's fbid -FBSDK_EXTERN NSString *const FBTokenInformationUserFBIDKey; - -// The key to use with token information dictionaries to determine whether the token was fetched via Facebook Login -FBSDK_EXTERN NSString *const FBTokenInformationIsFacebookLoginKey; - -// The key to use with token information dictionaries to determine whether the token was fetched via the OS -FBSDK_EXTERN NSString *const FBTokenInformationLoginTypeLoginKey; - -// The key to use with token information dictionaries to get the latest known permissions -FBSDK_EXTERN NSString *const FBTokenInformationPermissionsKey; - -// The key to use with token information dictionaries to get the latest known declined permissions -FBSDK_EXTERN NSString *const FBTokenInformationDeclinedPermissionsKey; - -// The key to use with token information dictionaries to get the date the permissions were last refreshed. -FBSDK_EXTERN NSString *const FBTokenInformationPermissionsRefreshDateKey; - -// The key to use with token information dictionaries to get the id of the creator app -FBSDK_EXTERN NSString *const FBTokenInformationAppIDKey; diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSettings.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSettings.h deleted file mode 100644 index b9f33ed..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBSettings.h +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -#import "FBSDKMacros.h" - -/* - * Constants defining logging behavior. Use with <[FBSettings setLoggingBehavior]>. - */ - -/*! Log requests from FBRequest* classes */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorFBRequests; - -/*! Log requests from FBURLConnection* classes */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorFBURLConnections; - -/*! Include access token in logging. */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorAccessTokens; - -/*! Log session state transitions. */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorSessionStateTransitions; - -/*! Log performance characteristics */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorPerformanceCharacteristics; - -/*! Log FBAppEvents interactions */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorAppEvents; - -/*! Log Informational occurrences */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorInformational; - -/*! Log cache errors. */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorCacheErrors; - -/*! Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. */ -FBSDK_EXTERN NSString *const FBLoggingBehaviorDeveloperErrors; - -/*! - @typedef - - @abstract A list of beta features that can be enabled for the SDK. Beta features are for evaluation only, - and are therefore only enabled for DEBUG builds. Beta features should not be enabled - in release builds. - */ -typedef NS_ENUM(NSUInteger, FBBetaFeatures) { - FBBetaFeaturesNone = 0, -#if defined(DEBUG) || defined(FB_BUILD_ONLY) - FBBetaFeaturesLikeButton = 1 << 2, -#endif -}; - -/*! - @typedef - @abstract Indicates if this app should be restricted - */ -typedef NS_ENUM(NSUInteger, FBRestrictedTreatment) { - /*! The default treatment indicating the app is not restricted. */ - FBRestrictedTreatmentNO = 0, - - /*! Indicates the app is restricted. */ - FBRestrictedTreatmentYES = 1 -}; - -/*! - @class FBSettings - - @abstract Allows configuration of SDK behavior. -*/ -@interface FBSettings : NSObject - -/*! - @method - - @abstract Retrieve the current iOS SDK version. - - */ -+ (NSString *)sdkVersion; - -/*! - @method - - @abstract Retrieve the current Facebook SDK logging behavior. - - */ -+ (NSSet *)loggingBehavior; - -/*! - @method - - @abstract Set the current Facebook SDK logging behavior. This should consist of strings defined as - constants with FBLogBehavior*, and can be constructed with, e.g., [NSSet initWithObjects:]. - - @param loggingBehavior A set of strings indicating what information should be logged. If nil is provided, the logging - behavior is reset to the default set of enabled behaviors. Set in an empty set in order to disable all logging. - */ -+ (void)setLoggingBehavior:(NSSet *)loggingBehavior; - -/*! - @method - - @abstract - This method is deprecated -- App Events favors using bundle identifiers to this. - */ -+ (NSString *)appVersion __attribute__ ((deprecated("App Events favors use of bundle identifiers for version identification."))); - -/*! - @method - - @abstract - This method is deprecated -- App Events favors using bundle identifiers to this. - */ -+ (void)setAppVersion:(NSString *)appVersion __attribute__ ((deprecated("App Events favors use of bundle identifiers for version identification."))); - -/*! - @method - - @abstract Retrieve the Client Token that has been set via [FBSettings setClientToken] - */ -+ (NSString *)clientToken; - -/*! - @method - - @abstract Sets the Client Token for the Facebook App. This is needed for certain API calls when made anonymously, - without a user-based Session. - - @param clientToken The Facebook App's "client token", which, for a given appid can be found in the Security - section of the Advanced tab of the Facebook App settings found at - - */ -+ (void)setClientToken:(NSString *)clientToken; - -/*! - @method - - @abstract Set the default Facebook Display Name to be used by the SDK. This should match - the Display Name that has been set for the app with the corresponding Facebook App ID, in - the Facebook App Dashboard - - @param displayName The default Facebook Display Name to be used by the SDK. - */ -+ (void)setDefaultDisplayName:(NSString *)displayName; - -/*! - @method - - @abstract Get the default Facebook Display Name used by the SDK. If not explicitly - set, the default will be read from the application's plist. - */ -+ (NSString *)defaultDisplayName; - -/*! - @method - - @abstract Set the default Facebook App ID to use for sessions. The SDK allows the appID - to be overridden per instance in certain cases (e.g. per instance of FBSession) - - @param appID The default Facebook App ID to be used by the SDK. - */ -+ (void)setDefaultAppID:(NSString *)appID; - -/*! - @method - - @abstract Get the default Facebook App ID used by the SDK. If not explicitly - set, the default will be read from the application's plist. The SDK allows the appID - to be overridden per instance in certain cases (e.g. per instance of FBSession) - */ -+ (NSString *)defaultAppID; - -/*! - @method - - @abstract Set the default url scheme suffix used by the SDK. - - @param urlSchemeSuffix The default url scheme suffix to be used by the SDK. - */ -+ (void)setDefaultUrlSchemeSuffix:(NSString *)urlSchemeSuffix; - -/*! - @method - - @abstract Get the default url scheme suffix used for sessions. If not - explicitly set, the default will be read from the application's plist value for 'FacebookUrlSchemeSuffix'. - */ -+ (NSString *)defaultUrlSchemeSuffix; - -/*! - @method - - @abstract Set the bundle name from the SDK will try and load overrides of images and text - - @param bundleName The name of the bundle (MyFBBundle). - */ -+ (void)setResourceBundleName:(NSString *)bundleName; - -/*! - @method - - @abstract Get the name of the bundle to override the SDK images and text - */ -+ (NSString *)resourceBundleName; - -/*! - @method - - @abstract Set the subpart of the facebook domain (e.g. @"beta") so that requests will be sent to graph.beta.facebook.com - - @param facebookDomainPart The domain part to be inserted into facebook.com - */ -+ (void)setFacebookDomainPart:(NSString *)facebookDomainPart; - -/*! - @method - - @abstract Get the Facebook domain part - */ -+ (NSString *)facebookDomainPart; - -/*! - @method - - @abstract Enables the specified beta features. Beta features are for evaluation only, - and are therefore only enabled for debug builds. Beta features should not be enabled - in release builds. - - @param betaFeatures The beta features to enable (expects a bitwise OR of FBBetaFeatures) - */ -+ (void)enableBetaFeatures:(NSUInteger)betaFeatures; - -/*! - @method - - @abstract Enables a beta feature. Beta features are for evaluation only, - and are therefore only enabled for debug builds. Beta features should not be enabled - in release builds. - - @param betaFeature The beta feature to enable. - */ -+ (void)enableBetaFeature:(FBBetaFeatures)betaFeature; - -/*! - @method - - @abstract Disables a beta feature. - - @param betaFeature The beta feature to disable. - */ -+ (void)disableBetaFeature:(FBBetaFeatures)betaFeature; - -/*! - @method - - @abstract Determines whether a beta feature is enabled or not. - - @param betaFeature The beta feature to check. - - @return YES if the beta feature is enabled, NO if not. - */ -+ (BOOL)isBetaFeatureEnabled:(FBBetaFeatures)betaFeature; - -/*! - @method - - @abstract - Gets whether data such as that generated through FBAppEvents and sent to Facebook should be restricted from being used for other than analytics and conversions. Defaults to NO. This value is stored on the device and persists across app launches. - */ -+ (BOOL)limitEventAndDataUsage; - -/*! - @method - - @abstract - Sets whether data such as that generated through FBAppEvents and sent to Facebook should be restricted from being used for other than analytics and conversions. Defaults to NO. This value is stored on the device and persists across app launches. - - @param limitEventAndDataUsage The desired value. - */ -+ (void)setLimitEventAndDataUsage:(BOOL)limitEventAndDataUsage; - -/*! - @method - @abstract Returns YES if the legacy Graph API mode is enabled -*/ -+ (BOOL)isPlatformCompatibilityEnabled; - -/*! - @method - @abstract Configures the SDK to use the legacy platform. - @param enable indicates whether to use the legacy mode - @discussion Setting this flag has several effects: - - FBRequests will target v1.0 of the Graph API. - - Login will use the prior behavior without abilities to decline permission. - - Specific new features such as `FBLikeButton` that require the current platform - will not work. -*/ -+ (void)enablePlatformCompatibility:(BOOL)enable; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBShareDialogParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBShareDialogParams.h deleted file mode 100644 index 7b828a8..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBShareDialogParams.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBLinkShareParams.h" - -/*! - @class FBShareDialogParams - - @abstract Deprecated. Use `FBLinkShareParams` instead. - */ -__attribute__((deprecated)) -@interface FBShareDialogParams : FBLinkShareParams - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBShareDialogPhotoParams.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBShareDialogPhotoParams.h deleted file mode 100644 index a7f0b75..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBShareDialogPhotoParams.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBPhotoParams.h" - -/*! - @class FBShareDialogPhotoParams - - @abstract Deprecated. Use `FBPhotoParams` instead. -*/ -__attribute__((deprecated)) -@interface FBShareDialogPhotoParams : FBPhotoParams - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBTaggableFriendPickerViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBTaggableFriendPickerViewController.h deleted file mode 100644 index a6f314a..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBTaggableFriendPickerViewController.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBPeoplePickerViewController.h" - -/*! - @class - - @abstract - The `FBTaggableFriendPickerViewController` class creates a controller object that - manages the user interface for displaying and selecting taggable Facebook friends. - - @discussion - When the `FBTaggableFriendPickerViewController` view loads it creates a `UITableView` - object where the taggable friends will be displayed. You can access this view through - the `tableView` property. The taggalb e friend display can be sorted by first name or - last name. Taggable friends' names can be displayed with the first name first or the - last name first. - - The `FBTaggableFriendPickerViewController` does not support the `fieldsForRequest` - property, as there are no other fields that may be requested from the Graph API. - - The `delegate` property may be set to an object that conforms to the - protocol. The graph object passed to the delegate conforms to the protocol. - */ -@interface FBTaggableFriendPickerViewController : FBPeoplePickerViewController - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBTestSession.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBTestSession.h deleted file mode 100644 index 73b5ec0..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBTestSession.h +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FBSession.h" - -#import "FBSDKMacros.h" - -#if defined(DEBUG) && !defined(SAFE_TO_USE_FBTESTSESSION) -#define SAFE_TO_USE_FBTESTSESSION -#endif - -#if !defined(SAFE_TO_USE_FBTESTSESSION) -#pragma message ("warning: using FBTestSession, which is designed for unit-testing uses only, in non-DEBUG code -- ensure this is what you really want") -#endif - -/*! - Consider using this tag to pass to sessionWithSharedUserWithPermissions:uniqueUserTag: when - you need a second unique test user in a test case. Using the same tag each time reduces - the proliferation of test users. - */ -FBSDK_EXTERN NSString *kSecondTestUserTag; -/*! - Consider using this tag to pass to sessionWithSharedUserWithPermissions:uniqueUserTag: when - you need a third unique test user in a test case. Using the same tag each time reduces - the proliferation of test users. - */ -FBSDK_EXTERN NSString *kThirdTestUserTag; - -/*! - @class FBTestSession - - @abstract - Implements an FBSession subclass that knows about test users for a particular - application. This should never be used from a real application, but may be useful - for writing unit tests, etc. - - @discussion - Facebook allows developers to create test accounts for testing their applications' - Facebook integration (see https://developers.facebook.com/docs/test_users/). This class - simplifies use of these accounts for writing unit tests. It is not designed for use in - production application code. - - The main use case for this class is using sessionForUnitTestingWithPermissions:mode: - to create a session for a test user. Two modes are supported. In "shared" mode, an attempt - is made to find an existing test user that has the required permissions and, if it is not - currently in use by another FBTestSession, just use that user. If no such user is available, - a new one is created with the required permissions. In "private" mode, designed for - scenarios which require a new user in a known clean state, a new test user will always be - created, and it will be automatically deleted when the FBTestSession is closed. - - Note that the shared test user functionality depends on a naming convention for the test users. - It is important that any testing of functionality which will mutate the permissions for a - test user NOT use a shared test user, or this scheme will break down. If a shared test user - seems to be in an invalid state, it can be deleted manually via the Web interface at - https://developers.facebook.com/apps/APP_ID/permissions?role=test+users. - */ -@interface FBTestSession : FBSession - -/// The app access token (composed of app ID and secret) to use for accessing test users. -@property (readonly, copy) NSString *appAccessToken; -/// The ID of the test user associated with this session. -@property (readonly, copy) NSString *testUserID; -/// The name of the test user associated with this session. -@property (readonly, copy) NSString *testUserName; -/// The App ID of the test app as configured in the plist. -@property (readonly, copy) NSString *testAppID; -/// The App Secret of the test app as configured in the plist. -@property (readonly, copy) NSString *testAppSecret; -// Defaults to NO. If set to YES, reauthorize calls will fail with a nil token -// as if the user had cancelled it reauthorize. -@property (assign) BOOL disableReauthorize; - -/*! - @abstract - Constructor helper to create a session for use in unit tests - - @discussion - This method creates a session object which uses a shared test user with the right permissions, - creating one if necessary on open (but not deleting it on close, so it can be re-used in later - tests). Calling this method multiple times may return sessions with the same user. If this is not - desired, use the variant sessionWithSharedUserWithPermissions:uniqueUserTag:. - - This method should not be used in application code -- but is useful for creating unit tests - that use the Facebook SDK. - - @param permissions array of strings naming permissions to authorize; nil indicates - a common default set of permissions should be used for unit testing - */ -+ (instancetype)sessionWithSharedUserWithPermissions:(NSArray *)permissions; - -/*! - @abstract - Constructor helper to create a session for use in unit tests - - @discussion - This method creates a session object which uses a shared test user with the right permissions, - creating one if necessary on open (but not deleting it on close, so it can be re-used in later - tests). - - This method should not be used in application code -- but is useful for creating unit tests - that use the Facebook SDK. - - @param permissions array of strings naming permissions to authorize; nil indicates - a common default set of permissions should be used for unit testing - - @param uniqueUserTag a string which will be used to make this user unique among other - users with the same permissions. Useful for tests which require two or more users to interact - with each other, and which therefore must have sessions associated with different users. For - this case, consider using kSecondTestUserTag and kThirdTestUserTag so these users can be shared - with other, similar, tests. - */ -+ (instancetype)sessionWithSharedUserWithPermissions:(NSArray *)permissions - uniqueUserTag:(NSString *)uniqueUserTag; - -/*! - @abstract - Constructor helper to create a session for use in unit tests - - @discussion - This method creates a session object which creates a test user on open, and destroys the user on - close; This method should not be used in application code -- but is useful for creating unit tests - that use the Facebook SDK. - - @param permissions array of strings naming permissions to authorize; nil indicates - a common default set of permissions should be used for unit testing - */ -+ (instancetype)sessionWithPrivateUserWithPermissions:(NSArray *)permissions; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBTooltipView.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBTooltipView.h deleted file mode 100644 index 0dcae1b..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBTooltipView.h +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -/*! - @typedef FBTooltipViewArrowDirection enum - - @abstract - Passed on construction to determine arrow orientation. - */ -typedef NS_ENUM(NSUInteger, FBTooltipViewArrowDirection) { - /*! View is located above given point, arrow is pointing down. */ - FBTooltipViewArrowDirectionDown = 0, - /*! View is located below given point, arrow is pointing up. */ - FBTooltipViewArrowDirectionUp = 1, -}; - -/*! - @typedef FBTooltipColorStyle enum - - @abstract - Passed on construction to determine color styling. - */ -typedef NS_ENUM(NSUInteger, FBTooltipColorStyle) { - /*! Light blue background, white text, faded blue close button. */ - FBTooltipColorStyleFriendlyBlue = 0, - /*! Dark gray background, white text, light gray close button. */ - FBTooltipColorStyleNeutralGray = 1, -}; - -/*! - @class FBTooltipView - - @abstract - Tooltip bubble with text in it used to display tips for UI elements, - with a pointed arrow (to refer to the UI element). - - @discussion - The tooltip fades in and will automatically fade out. See `displayDuration`. - */ -@interface FBTooltipView : UIView - -/*! - @abstract Gets or sets the amount of time in seconds the tooltip should be displayed. - @discussion Set this to zero to make the display permanent until explicitly dismissed. - Defaults to six seconds. -*/ -@property (nonatomic, assign) CFTimeInterval displayDuration; - -/*! - @abstract Gets or sets the color style after initialization. - @discussion Defaults to value passed to -initWithTagline:message:colorStyle:. - */ -@property (nonatomic, assign) FBTooltipColorStyle colorStyle; - -/*! - @abstract Gets or sets the message. -*/ -@property (nonatomic, copy) NSString *message; - -/*! - @abstract Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently). -*/ -@property (nonatomic, copy) NSString *tagline; - -/*! - @abstract - Designated initializer. - - @param tagline First part of the label, that will be highlighted with different color. Can be nil. - - @param message Main message to display. - - @param colorStyle Color style to use for tooltip. - - @discussion - If you need to show a tooltip for login, consider using the `FBLoginTooltipView` view. - - @see FBLoginTooltipView - */ -- (id)initWithTagline:(NSString *)tagline message:(NSString *)message colorStyle:(FBTooltipColorStyle)colorStyle; - -/*! - @abstract - Show tooltip at the top or at the bottom of given view. - Tooltip will be added to anchorView.window.rootViewController.view - - @param anchorView view to show at, must be already added to window view hierarchy, in order to decide - where tooltip will be shown. (If there's not enough space at the top of the anchorView in window bounds - - tooltip will be shown at the bottom of it) - - @discussion - Use this method to present the tooltip with automatic positioning or - use -presentInView:withArrowPosition:direction: for manual positioning - If anchorView is nil or has no window - this method does nothing. - */ -- (void)presentFromView:(UIView *)anchorView; - -/*! - @abstract - Adds tooltip to given view, with given position and arrow direction. - - @param view View to be used as superview. - - @param arrowPosition Point in view's cordinates, where arrow will be pointing - - @param arrowDirection whenever arrow should be pointing up (message bubble is below the arrow) or - down (message bubble is above the arrow). - */ -- (void)presentInView:(UIView *)view withArrowPosition:(CGPoint)arrowPosition direction:(FBTooltipViewArrowDirection)arrowDirection; - -/*! - @abstract - Remove tooltip manually. - - @discussion - Calling this method isn't necessary - tooltip will dismiss itself automatically after the `displayDuration`. - */ -- (void)dismiss; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBUserSettingsViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBUserSettingsViewController.h deleted file mode 100644 index 5df08e7..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBUserSettingsViewController.h +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "FBSession.h" -#import "FBViewController.h" - -/*! - @protocol - - @abstract - The `FBUserSettingsDelegate` protocol defines the methods called by a . - */ -@protocol FBUserSettingsDelegate - -@optional - -/*! - @abstract - Called when the view controller will log the user out in response to a button press. - - @param sender The view controller sending the message. - */ -- (void)loginViewControllerWillLogUserOut:(id)sender; - -/*! - @abstract - Called after the view controller logged the user out in response to a button press. - - @param sender The view controller sending the message. - */ -- (void)loginViewControllerDidLogUserOut:(id)sender; - -/*! - @abstract - Called when the view controller will log the user in in response to a button press. - Note that logging in can fail for a number of reasons, so there is no guarantee that this - will be followed by a call to loginViewControllerDidLogUserIn:. Callers wanting more granular - notification of the session state changes can use KVO or the NSNotificationCenter to observe them. - - @param sender The view controller sending the message. - */ -- (void)loginViewControllerWillAttemptToLogUserIn:(id)sender; - -/*! - @abstract - Called after the view controller successfully logged the user in in response to a button press. - - @param sender The view controller sending the message. - */ -- (void)loginViewControllerDidLogUserIn:(id)sender; - -/*! - @abstract - Called if the view controller encounters an error while trying to log a user in. - - @param sender The view controller sending the message. - @param error The error encountered. - @discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/ - for error handling best practices. - */ -- (void)loginViewController:(id)sender receivedError:(NSError *)error; - -@end - - -/*! - @class FBUserSettingsViewController - - @abstract - The `FBUserSettingsViewController` class provides a user interface exposing a user's - Facebook-related settings. Currently, this is limited to whether they are logged in or out - of Facebook. - - Because of the size of some graphics used in this view, its resources are packaged as a separate - bundle. In order to use `FBUserSettingsViewController`, drag the `FBUserSettingsViewResources.bundle` - from the SDK directory into your Xcode project. - */ -@interface FBUserSettingsViewController : FBViewController - -/*! - @abstract - The permissions to request if the user logs in via this view. - */ -@property (nonatomic, copy) NSArray *permissions __attribute__((deprecated)); - -/*! - @abstract - The read permissions to request if the user logs in via this view. - - @discussion - Note, that if read permissions are specified, then publish permissions should not be specified. - */ -@property (nonatomic, copy) NSArray *readPermissions; - -/*! - @abstract - The publish permissions to request if the user logs in via this view. - - @discussion - Note, that a defaultAudience value of FBSessionDefaultAudienceOnlyMe, FBSessionDefaultAudienceEveryone, or - FBSessionDefaultAudienceFriends should be set if publish permissions are specified. Additionally, when publish - permissions are specified, then read should not be specified. - */ -@property (nonatomic, copy) NSArray *publishPermissions; - -/*! - @abstract - The default audience to use, if publish permissions are requested at login time. - */ -@property (nonatomic, assign) FBSessionDefaultAudience defaultAudience; - -@end - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBViewController.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBViewController.h deleted file mode 100644 index fa33d21..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBViewController.h +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@class FBViewController; - -/*! - @typedef FBModalCompletionHandler - - @abstract - A block that is passed to [FBViewController presentModallyInViewController:animated:handler:] - and called when the view controller is dismissed via either Done or Cancel. - - @param sender The that is being dismissed. - - @param donePressed If YES, Done was pressed. If NO, Cancel was pressed. - */ -typedef void (^FBModalCompletionHandler)(FBViewController *sender, BOOL donePressed); - -/*! - @protocol - - @abstract - The `FBViewControllerDelegate` protocol defines the methods called when the Cancel or Done - buttons are pressed in a . - */ -@protocol FBViewControllerDelegate - -@optional - -/*! - @abstract - Called when the Cancel button is pressed on a modally-presented . - - @param sender The view controller sending the message. - */ -- (void)facebookViewControllerCancelWasPressed:(id)sender; - -/*! - @abstract - Called when the Done button is pressed on a modally-presented . - - @param sender The view controller sending the message. - */ -- (void)facebookViewControllerDoneWasPressed:(id)sender; - -@end - - -/*! - @class FBViewController - - @abstract - The `FBViewController` class is a base class encapsulating functionality common to several - other view controller classes. Specifically, it provides UI when a view controller is presented - modally, in the form of optional Cancel and Done buttons. - */ -@interface FBViewController : UIViewController - -/*! - @abstract - The Cancel button to display when presented modally. If nil, no Cancel button is displayed. - If this button is provided, its target and action will be redirected to internal handlers, replacing - any previous target that may have been set. - */ -@property (nonatomic, retain) IBOutlet UIBarButtonItem *cancelButton; - -/*! - @abstract - The Done button to display when presented modally. If nil, no Done button is displayed. - If this button is provided, its target and action will be redirected to internal handlers, replacing - any previous target that may have been set. - */ -@property (nonatomic, retain) IBOutlet UIBarButtonItem *doneButton; - -/*! - @abstract - The delegate that will be called when Cancel or Done is pressed. Derived classes may specify - derived types for their delegates that provide additional functionality. - */ -@property (nonatomic, assign) IBOutlet id delegate; - -/*! - @abstract - The view into which derived classes should put their subviews. This view will be resized correctly - depending on whether or not a toolbar is displayed. - */ -@property (nonatomic, readonly, retain) UIView *canvasView; - -/*! - @abstract - Provides a wrapper that presents the view controller modally and automatically dismisses it - when either the Done or Cancel button is pressed. - - @param viewController The view controller that is presenting this view controller. - @param animated If YES, presenting and dismissing the view controller is animated. - @param handler The block called when the Done or Cancel button is pressed. - */ -- (void)presentModallyFromViewController:(UIViewController *)viewController - animated:(BOOL)animated - handler:(FBModalCompletionHandler)handler; - -@end - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBWebDialogs.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBWebDialogs.h deleted file mode 100644 index 5fdcedd..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FBWebDialogs.h +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@class FBFrictionlessRecipientCache; -@class FBSession; -@protocol FBWebDialogsDelegate; - -/*! - @typedef NS_ENUM (NSUInteger, FBWebDialogResult) - - @abstract - Passed to a handler to indicate the result of a dialog being displayed to the user. - - @discussion Note `FBWebDialogResultDialogCompleted` is also used for cancelled operations. -*/ -typedef NS_ENUM(NSUInteger, FBWebDialogResult) { - /*! Indicates that the dialog action completed successfully. Note, that cancel operations represent completed dialog operations. - The url argument may be used to distinguish between success and user-cancelled cases */ - FBWebDialogResultDialogCompleted = 0, - /*! Indicates that the dialog operation was not completed. This occurs in cases such as the closure of the web-view using the X in the upper left corner. */ - FBWebDialogResultDialogNotCompleted -}; - -/*! - @typedef - - @abstract Defines a handler that will be called in response to the web dialog - being dismissed - */ -typedef void (^FBWebDialogHandler)( - FBWebDialogResult result, - NSURL *resultURL, - NSError *error); - -/*! - @class FBWebDialogs - - @abstract - Provides methods to display web based dialogs to the user. -*/ -@interface FBWebDialogs : NSObject - -/*! - @abstract - Presents a Facebook web dialog (https://developers.facebook.com/docs/reference/dialogs/ ) - such as feed or apprequest. - - @param session Represents the session to use for the dialog. May be nil, which uses - the active session if present, or returns NO, if not. - - @param dialog Represents the dialog or method name, such as @"feed" - - @param parameters A dictionary of parameters to be passed to the dialog - - @param handler An optional handler that will be called when the dialog is dismissed. Note, - that if the method returns NO, the handler is not called. May be nil. - */ -+ (void)presentDialogModallyWithSession:(FBSession *)session - dialog:(NSString *)dialog - parameters:(NSDictionary *)parameters - handler:(FBWebDialogHandler)handler; - -/*! - @abstract - Presents a Facebook web dialog (https://developers.facebook.com/docs/reference/dialogs/ ) - such as feed or apprequest. - - @param session Represents the session to use for the dialog. May be nil, which uses - the active session if present, or returns NO, if not. - - @param dialog Represents the dialog or method name, such as @"feed" - - @param parameters A dictionary of parameters to be passed to the dialog - - @param handler An optional handler that will be called when the dialog is dismissed. Note, - that if the method returns NO, the handler is not called. May be nil. - - @param delegate An optional delegate to allow for advanced processing of web based - dialogs. See 'FBWebDialogsDelegate' for more details. - */ -+ (void)presentDialogModallyWithSession:(FBSession *)session - dialog:(NSString *)dialog - parameters:(NSDictionary *)parameters - handler:(FBWebDialogHandler)handler - delegate:(id)delegate; - -/*! - @abstract - Presents a Facebook apprequest dialog. - - @param session Represents the session to use for the dialog. May be nil, which uses - the active session if present. - - @param message The required message for the dialog. - - @param title An optional title for the dialog. - - @param parameters A dictionary of additional parameters to be passed to the dialog. May be nil - - @param handler An optional handler that will be called when the dialog is dismissed. May be nil. - */ -+ (void)presentRequestsDialogModallyWithSession:(FBSession *)session - message:(NSString *)message - title:(NSString *)title - parameters:(NSDictionary *)parameters - handler:(FBWebDialogHandler)handler; - -/*! - @abstract - Presents a Facebook apprequest dialog. - - @param session Represents the session to use for the dialog. May be nil, which uses - the active session if present. - - @param message The required message for the dialog. - - @param title An optional title for the dialog. - - @param parameters A dictionary of additional parameters to be passed to the dialog. May be nil - - @param handler An optional handler that will be called when the dialog is dismissed. May be nil. - - @param friendCache An optional cache object used to enable frictionless sharing for a known set of friends. The - cache instance should be preserved for the life of the session and reused for multiple calls to the present method. - As the users set of friends enabled for frictionless sharing changes, this method auto-updates the cache. - */ -+ (void)presentRequestsDialogModallyWithSession:(FBSession *)session - message:(NSString *)message - title:(NSString *)title - parameters:(NSDictionary *)parameters - handler:(FBWebDialogHandler)handler - friendCache:(FBFrictionlessRecipientCache *)friendCache; - -/*! - @abstract - Presents a Facebook feed dialog. - - @param session Represents the session to use for the dialog. May be nil, which uses - the active session if present. - - @param parameters A dictionary of additional parameters to be passed to the dialog. May be nil - - @param handler An optional handler that will be called when the dialog is dismissed. May be nil. - */ -+ (void)presentFeedDialogModallyWithSession:(FBSession *)session - parameters:(NSDictionary *)parameters - handler:(FBWebDialogHandler)handler; - -@end - -/*! - @protocol - - @abstract - The `FBWebDialogsDelegate` protocol enables the plugging of advanced behaviors into - the presentation flow of a Facebook web dialog. Advanced uses include modification - of parameters and application-level handling of links on the dialog. The - `FBFrictionlessRequestFriendCache` class implements this protocol to add frictionless - behaviors to a presentation of the request dialog. - */ -@protocol FBWebDialogsDelegate - -@optional - -/*! - @abstract - Called prior to the presentation of a web dialog - - @param dialog A string representing the method or dialog name of the dialog being presented. - - @param parameters A mutable dictionary of parameters which will be sent to the dialog. - - @param session The session object to use with the dialog. - */ -- (void)webDialogsWillPresentDialog:(NSString *)dialog - parameters:(NSMutableDictionary *)parameters - session:(FBSession *)session; - -/*! - @abstract - Called when the user of a dialog clicks a link that would cause a transition away from the application. - Your application may handle this method, and return NO if the URL handling will be performed by the application. - - @param dialog A string representing the method or dialog name of the dialog being presented. - - @param parameters A dictionary of parameters which were sent to the dialog. - - @param session The session object to use with the dialog. - - @param url The url in question, which will not be handled by the SDK if this method NO - */ -- (BOOL)webDialogsDialog:(NSString *)dialog - parameters:(NSDictionary *)parameters - session:(FBSession *)session - shouldAutoHandleURL:(NSURL *)url; - -/*! - @abstract - Called when the dialog is about to be dismissed - - @param dialog A string representing the method or dialog name of the dialog being presented. - - @param parameters A dictionary of parameters which were sent to the dialog. - - @param session The session object to use with the dialog. - - @param result A pointer to a result, which may be read or changed by the handling method as needed - - @param url A pointer to a pointer to a URL representing the URL returned by the dialog, which may be read or changed by this mehthod - - @param error A pointer to a pointer to an error object which may be read or changed by this method as needed - */ -- (void)webDialogsWillDismissDialog:(NSString *)dialog - parameters:(NSDictionary *)parameters - session:(FBSession *)session - result:(FBWebDialogResult *)result - url:(NSURL **)url - error:(NSError **)error; - -@end - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FacebookSDK.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FacebookSDK.h deleted file mode 100644 index 7f3f865..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/FacebookSDK.h +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// core -#import "FBAccessTokenData.h" -#import "FBAppCall.h" -#import "FBAppEvents.h" -#import "FBCacheDescriptor.h" -#import "FBDialogs.h" -#import "FBError.h" -#import "FBErrorUtility.h" -#import "FBFrictionlessRecipientCache.h" -#import "FBFriendPickerViewController.h" -#import "FBGraphLocation.h" -#import "FBGraphObject.h" // + design summary for graph component-group -#import "FBGraphPlace.h" -#import "FBGraphUser.h" -#import "FBInsights.h" -#import "FBLikeControl.h" -#import "FBLoginView.h" -#import "FBNativeDialogs.h" // deprecated, use FBDialogs.h -#import "FBOpenGraphAction.h" -#import "FBOpenGraphActionShareDialogParams.h" -#import "FBOpenGraphObject.h" -#import "FBPlacePickerViewController.h" -#import "FBProfilePictureView.h" -#import "FBRequest.h" -#import "FBSession.h" -#import "FBSessionTokenCachingStrategy.h" -#import "FBSettings.h" -#import "FBShareDialogParams.h" -#import "FBShareDialogPhotoParams.h" -#import "FBTaggableFriendPickerViewController.h" -#import "FBUserSettingsViewController.h" -#import "FBWebDialogs.h" -#import "NSError+FBError.h" - -/*! - @header - - @abstract Library header, import this to import all of the public types - in the Facebook SDK - - @discussion - -//////////////////////////////////////////////////////////////////////////////// - - - Summary: this header summarizes the structure and goals of the Facebook SDK for iOS. - Goals: - * Leverage and work well with modern features of iOS (e.g. blocks, ARC, etc.) - * Patterned after best of breed iOS frameworks (e.g. naming, pattern-use, etc.) - * Common integration experience is simple & easy to describe - * Factored to enable a growing list of scenarios over time - - Notes on approaches: - 1. We use a key scenario to drive prioritization of work for a given update - 2. We are building-atop and refactoring, rather than replacing, existing iOS SDK releases - 3. We use take an incremental approach where we can choose to maintain as little or as much compatibility with the existing SDK needed - a) and so we will be developing to this approach - b) and then at push-time for a release we will decide when/what to break - on a feature by feature basis - 4. Some light but critical infrastructure is needed to support both the goals - and the execution of this change (e.g. a build/package/deploy process) - - Design points: - We will move to a more object-oriented approach, in order to facilitate the - addition of a different class of objects, such as controls and visual helpers - (e.g. FBLikeView, FBPersonView), as well as sub-frameworks to enable scenarios - such (e.g. FBOpenGraphEntity, FBLocalEntityCache, etc.) - - As we add features, it will no longer be appropriate to host all functionality - in the Facebook class, though it will be maintained for some time for migration - purposes. Instead functionality lives in related collections of classes. - -
- @textblock
-
-               *------------* *----------*  *----------------* *---*
-  Scenario --> |FBPersonView| |FBLikeView|  | FBPlacePicker  | | F |
-               *------------* *----------*  *----------------* | a |
-               *-------------------*  *----------*  *--------* | c |
- Component --> |   FBGraphObject   |  | FBDialog |  | FBView | | e |
-               *-------------------*  *----------*  *--------* | b |
-               *---------* *---------* *---------------------* | o |
-      Core --> |FBSession| |FBRequest| |Utilities (e.g. JSON)| | o |
-               *---------* *---------* *---------------------* * k *
-
- @/textblock
- 
- - The figure above describes three layers of functionality, with the existing - Facebook on the side as a helper proxy to a subset of the overall SDK. The - layers loosely organize the SDK into *Core Objects* necessary to interface - with Facebook, higher-level *Framework Components* that feel like natural - extensions to existing frameworks such as UIKit and Foundation, but which - surface behavior broadly applicable to Facebook, and finally the - *Scenario Objects*, which provide deeper turn-key capibilities for useful - mobile scenarios. - - Use example (low barrier use case): - -
- @textblock
-
-// log on to Facebook
-[FBSession sessionOpenWithPermissions:nil
-                    completionHandler:^(FBSession *session,
-                                        FBSessionState status,
-                                        NSError *error) {
-                        if (session.isOpen) {
-                            // request basic information for the user
-                            [FBRequestConnection startWithGraphPath:@"me"
-                                                  completionHandler:^void(FBRequestConnection *request,
-                                                                          id result,
-                                                                          NSError *error) {
-                                                      if (!error) {
-                                                          // get json from result
-                                                      }
-                                                  }];
-                        }
-                    }];
- @/textblock
- 
- - */ - -#define FB_IOS_SDK_VERSION_STRING @"3.17.1" -#define FB_IOS_SDK_TARGET_PLATFORM_VERSION @"v2.1" - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/NSError+FBError.h b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/NSError+FBError.h deleted file mode 100644 index 686b4ca..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Headers/NSError+FBError.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2010-present Facebook. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FBError.h" - -/*! - @category NSError(FBError) - - @abstract - Adds additional properties to NSError to provide more information for Facebook related errors. - */ -@interface NSError (FBError) - -/*! - @abstract - Categorizes the error, if it is Facebook related, to simplify application mitigation behavior - - @discussion - In general, in response to an error connecting to Facebook, an application should, retry the - operation, request permissions, reconnect the application, or prompt the user to take an action. - The error category can be used to understand the class of error received from Facebook. For more infomation on this - see https://developers.facebook.com/docs/reference/api/errors/ - */ -@property (readonly) FBErrorCategory fberrorCategory; - -/*! - @abstract - If YES indicates that a user action is required in order to successfully continue with the Facebook operation. - - @discussion - In general if fberrorShouldNotifyUser is NO, then the application has a straightforward mitigation, such as - retry the operation or request permissions from the user, etc. In some cases it is necessary for the user to - take an action before the application continues to attempt a Facebook connection. For more infomation on this - see https://developers.facebook.com/docs/reference/api/errors/ - */ -@property (readonly) BOOL fberrorShouldNotifyUser; - -/*! - @abstract - A message suitable for display to the user, describing a user action necessary to enable Facebook functionality. - Not all Facebook errors yield a message suitable for user display; however in all cases where - fberrorShouldNotifyUser is YES, this property returns a localizable message suitable for display. - - @see +[FBErrorUtility userMessageForError:] - */ -@property (readonly, copy) NSString *fberrorUserMessage; - -/*! - @abstract - A short summary of this error suitable for display to the user. - Not all Facebook errors yield a message/title suitable for user display; - However in all cases when title is available, user should be notified. - - @see +[FBErrorUtility userTitleForError:] - */ -@property (readonly, copy) NSString *fberrorUserTitle; - -/*! - @abstract - YES if this error is transient and may succeed if the initial action is retried as-is. - Application may use this information to display a "Retry" button, if user should be notified about this error. - */ -@property (readonly) BOOL fberrorIsTransient; - -@end diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings deleted file mode 100644 index 7fd7575..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings deleted file mode 100644 index bb3ba24..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png deleted file mode 100644 index be1dccd..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png deleted file mode 100644 index 4b03929..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg deleted file mode 100644 index f056b80..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg deleted file mode 100644 index abde7eb..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg deleted file mode 100644 index 2c16bd4..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg deleted file mode 100644 index ae3e2bd..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg deleted file mode 100644 index f4d31c5..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg deleted file mode 100644 index 8eba2f1..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png deleted file mode 100644 index 892419f..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png deleted file mode 100644 index daa4ba6..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png deleted file mode 100644 index 3f862c8..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png deleted file mode 100644 index 7866e3d..0000000 Binary files a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png and /dev/null differ diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle.README b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle.README deleted file mode 100644 index 3ae35b4..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle.README +++ /dev/null @@ -1,44 +0,0 @@ -The FacebookSDKResources.bundle is no longer required in order to use the SDK. You may provide a bundle in cases where you need to override strings or images (e.g. internationalization, etc.) See https://developers.facebook.com/docs/reference/ios/current/constants/FBSettings#resourceBundleName for more information. - -The following is a list of keys for string localization: - -/* FBLoginView (aka FBLV) */ -"FBLV:LogOutButton" = "Log Out"; -"FBLV:LogInButton" = "Log In"; -"FBLV:LoggedInAs" = "Logged in as: %@"; -"FBLV:LoggedInUsingFacebook" = "Logged in using Facebook"; -"FBLV:LogOutAction" = "Log Out"; -"FBLV:CancelAction" = "Cancel"; - -/* FBPlacePickerViewController (FBPPVC) */ -"FBPPVC:NumWereHere" = "%@ were here"; - -/* FBError (aka FBE) */ -"FBE:ReconnectApplication" = "Please log into this app again to reconnect your Facebook account."; -"FBE:PasswordChangedDevice" = "Your Facebook password has changed. To confirm your password, open Settings > Facebook and tap your name."; -"FBE:PasswordChanged" = "Your Facebook password has changed. Please log into this app again to reconnect your Facebook account."; -"FBE:WebLogIn" = "Your Facebook account is locked. Please log into www.facebook.com to continue."; -"FBE:AppNotInstalled" = "Please log into this app again to reconnect your Facebook account."; -"FBE:GrantPermission" = "This app doesn’t have permission to do this. To change permissions, try logging into the app again."; -"FBE:Unconfirmed" = "Your Facebook account is locked. Please log into www.facebook.com to continue."; -"FBE:OAuthDevice" = "To use your Facebook account with this app, open Settings > Facebook and make sure this app is turned on."; -"FBE:DeviceError"= "Something went wrong. Please make sure you're connected to the internet and try again."; -"FBE:AlertMessageButton" = "OK"; - -Images should be placed in a directory called FacebookSDKImages in the bundle. Note that images will support @2x and -568h@2x. - -The following is a list of images supported: - -FacebookSDKImages\ - - FBDialogClose.png - - FBFriendPickerViewDefault.png - - FBLoginViewLoginButtonSmall.png - FBLoginViewLoginButtonSmallPressed.png - - FBPlacePickerViewGenericPlace.png - - FBProfilePictureViewBlankProfileSquare.png - FBProfilePictureViewBlankProfilePortrait.png diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/Info.plist b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/Info.plist deleted file mode 100644 index 0dd599a..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/A/Resources/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - FacebookSDK - CFBundleIdentifier - com.facebook.sdk - CFBundleInfoDictionaryVersion - 1.0 - CFBundlePackageType - FMWK - CFBundleSignature - ???? - CFBundleVersion - 1.0 - - diff --git a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/Current b/iphone/assets/Frameworks/FacebookSDK.framework/Versions/Current deleted file mode 120000 index 044dcb9..0000000 --- a/iphone/assets/Frameworks/FacebookSDK.framework/Versions/Current +++ /dev/null @@ -1 +0,0 @@ -./A \ No newline at end of file diff --git a/iphone/assets/Frameworks/Parse.framework/Headers b/iphone/assets/Frameworks/Parse.framework/Headers deleted file mode 120000 index a177d2a..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Headers +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Headers \ No newline at end of file diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFACL.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFACL.h new file mode 100644 index 0000000..a952585 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFACL.h @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +PF_ASSUME_NONNULL_BEGIN + +@class PFRole; +@class PFUser; + +/*! + The `PFACL` class is used to control which users can access or modify a particular object. + Each can have its own `PFACL`. You can grant read and write permissions separately to specific users, + to groups of users that belong to roles, or you can grant permissions to "the public" so that, + for example, any user could read a particular object but only a particular set of users could write to that object. + */ +@interface PFACL : NSObject + +///-------------------------------------- +/// @name Creating an ACL +///-------------------------------------- + +/*! + @abstract Creates an ACL with no permissions granted. + + @returns Returns a new `PFACL`. + */ ++ (instancetype)ACL; + +/*! + @abstract Creates an ACL where only the provided user has access. + + @param user The user to assign access. + */ ++ (instancetype)ACLWithUser:(PFUser *)user; + +///-------------------------------------- +/// @name Controlling Public Access +///-------------------------------------- + +/*! + @abstract Set whether the public is allowed to read this object. + + @param allowed Whether the public can read this object. + */ +- (void)setPublicReadAccess:(BOOL)allowed; + +/*! + @abstract Gets whether the public is allowed to read this object. + + @returns `YES` if the public read access is enabled, otherwise `NO`. + */ +- (BOOL)getPublicReadAccess; + +/*! + @abstract Set whether the public is allowed to write this object. + + @param allowed Whether the public can write this object. + */ +- (void)setPublicWriteAccess:(BOOL)allowed; + +/*! + @abstract Gets whether the public is allowed to write this object. + + @returns `YES` if the public write access is enabled, otherwise `NO`. + */ +- (BOOL)getPublicWriteAccess; + +///-------------------------------------- +/// @name Controlling Access Per-User +///-------------------------------------- + +/*! + @abstract Set whether the given user id is allowed to read this object. + + @param allowed Whether the given user can write this object. + @param userId The <[PFObject objectId]> of the user to assign access. + */ +- (void)setReadAccess:(BOOL)allowed forUserId:(NSString *)userId; + +/*! + @abstract Gets whether the given user id is *explicitly* allowed to read this object. + Even if this returns `NO`, the user may still be able to access it if returns `YES` + or if the user belongs to a role that has access. + + @param userId The <[PFObject objectId]> of the user for which to retrive access. + + @returns `YES` if the user with this `objectId` has *explicit* read access, otherwise `NO`. + */ +- (BOOL)getReadAccessForUserId:(NSString *)userId; + +/*! + @abstract Set whether the given user id is allowed to write this object. + + @param allowed Whether the given user can read this object. + @param userId The `objectId` of the user to assign access. + */ +- (void)setWriteAccess:(BOOL)allowed forUserId:(NSString *)userId; + +/*! + @abstract Gets whether the given user id is *explicitly* allowed to write this object. + Even if this returns NO, the user may still be able to write it if returns `YES` + or if the user belongs to a role that has access. + + @param userId The <[PFObject objectId]> of the user for which to retrive access. + + @returns `YES` if the user with this `objectId` has *explicit* write access, otherwise `NO`. + */ +- (BOOL)getWriteAccessForUserId:(NSString *)userId; + +/*! + @abstract Set whether the given user is allowed to read this object. + + @param allowed Whether the given user can read this object. + @param user The user to assign access. + */ +- (void)setReadAccess:(BOOL)allowed forUser:(PFUser *)user; + +/*! + @abstract Gets whether the given user is *explicitly* allowed to read this object. + Even if this returns `NO`, the user may still be able to access it if returns `YES` + or if the user belongs to a role that has access. + + @param user The user for which to retrive access. + + @returns `YES` if the user has *explicit* read access, otherwise `NO`. + */ +- (BOOL)getReadAccessForUser:(PFUser *)user; + +/*! + @abstract Set whether the given user is allowed to write this object. + + @param allowed Whether the given user can write this object. + @param user The user to assign access. + */ +- (void)setWriteAccess:(BOOL)allowed forUser:(PFUser *)user; + +/*! + @abstract Gets whether the given user is *explicitly* allowed to write this object. + Even if this returns `NO`, the user may still be able to write it if returns `YES` + or if the user belongs to a role that has access. + + @param user The user for which to retrive access. + + @returns `YES` if the user has *explicit* write access, otherwise `NO`. + */ +- (BOOL)getWriteAccessForUser:(PFUser *)user; + +///-------------------------------------- +/// @name Controlling Access Per-Role +///-------------------------------------- + +/*! + @abstract Get whether users belonging to the role with the given name are allowed to read this object. + Even if this returns `NO`, the role may still be able to read it if a parent role has read access. + + @param name The name of the role. + + @returns `YES` if the role has read access, otherwise `NO`. + */ +- (BOOL)getReadAccessForRoleWithName:(NSString *)name; + +/*! + @abstract Set whether users belonging to the role with the given name are allowed to read this object. + + @param allowed Whether the given role can read this object. + @param name The name of the role. + */ +- (void)setReadAccess:(BOOL)allowed forRoleWithName:(NSString *)name; + +/*! + @abstract Get whether users belonging to the role with the given name are allowed to write this object. + Even if this returns `NO`, the role may still be able to write it if a parent role has write access. + + @param name The name of the role. + + @returns `YES` if the role has read access, otherwise `NO`. + */ +- (BOOL)getWriteAccessForRoleWithName:(NSString *)name; + +/*! + @abstract Set whether users belonging to the role with the given name are allowed to write this object. + + @param allowed Whether the given role can write this object. + @param name The name of the role. + */ +- (void)setWriteAccess:(BOOL)allowed forRoleWithName:(NSString *)name; + +/*! + @abstract Get whether users belonging to the given role are allowed to read this object. + Even if this returns `NO`, the role may still be able to read it if a parent role has read access. + + @discussion The role must already be saved on the server and + it's data must have been fetched in order to use this method. + + @param role The name of the role. + + @returns `YES` if the role has read access, otherwise `NO`. + */ +- (BOOL)getReadAccessForRole:(PFRole *)role; + +/*! + @abstract Set whether users belonging to the given role are allowed to read this object. + + @discussion The role must already be saved on the server and + it's data must have been fetched in order to use this method. + + @param allowed Whether the given role can read this object. + @param role The role to assign access. + */ +- (void)setReadAccess:(BOOL)allowed forRole:(PFRole *)role; + +/*! + @abstract Get whether users belonging to the given role are allowed to write this object. + Even if this returns `NO`, the role may still be able to write it if a parent role has write access. + + @discussion The role must already be saved on the server and + it's data must have been fetched in order to use this method. + + @param role The name of the role. + + @returns `YES` if the role has write access, otherwise `NO`. + */ +- (BOOL)getWriteAccessForRole:(PFRole *)role; + +/*! + @abstract Set whether users belonging to the given role are allowed to write this object. + + @discussion The role must already be saved on the server and + it's data must have been fetched in order to use this method. + + @param allowed Whether the given role can write this object. + @param role The role to assign access. + */ +- (void)setWriteAccess:(BOOL)allowed forRole:(PFRole *)role; + +///-------------------------------------- +/// @name Setting Access Defaults +///-------------------------------------- + +/*! + @abstract Sets a default ACL that will be applied to all instances of when they are created. + + @param acl The ACL to use as a template for all instance of created after this method has been called. + This value will be copied and used as a template for the creation of new ACLs, so changes to the + instance after this method has been called will not be reflected in new instance of . + @param currentUserAccess - If `YES`, the `PFACL` that is applied to newly-created instance of will + provide read and write access to the <[PFUser currentUser]> at the time of creation. + - If `NO`, the provided `acl` will be used without modification. + - If `acl` is `nil`, this value is ignored. + */ ++ (void)setDefaultACL:(PF_NULLABLE PFACL *)acl withAccessForCurrentUser:(BOOL)currentUserAccess; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFAnalytics.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFAnalytics.h new file mode 100644 index 0000000..7655e8f --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFAnalytics.h @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +#import + +PF_ASSUME_NONNULL_BEGIN + +/*! + `PFAnalytics` provides an interface to Parse's logging and analytics backend. + + Methods will return immediately and cache the request (+ timestamp) to be + handled "eventually." That is, the request will be sent immediately if possible + or the next time a network connection is available. + */ +@interface PFAnalytics : NSObject + +///-------------------------------------- +/// @name App-Open / Push Analytics +///-------------------------------------- + +/*! + @abstract Tracks this application being launched. If this happened as the result of the + user opening a push notification, this method sends along information to + correlate this open with that push. + + @discussion Pass in `nil` to track a standard "application opened" event. + + @param launchOptions The `NSDictionary` indicating the reason the application was + launched, if any. This value can be found as a parameter to various + `UIApplicationDelegate` methods, and can be empty or `nil`. + + @returns Returns the task encapsulating the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)trackAppOpenedWithLaunchOptions:(PF_NULLABLE NSDictionary *)launchOptions; + +/*! + @abstract Tracks this application being launched. + If this happened as the result of the user opening a push notification, + this method sends along information to correlate this open with that push. + + @discussion Pass in `nil` to track a standard "application opened" event. + + @param launchOptions The dictionary indicating the reason the application was + launched, if any. This value can be found as a parameter to various + `UIApplicationDelegate` methods, and can be empty or `nil`. + @param block The block to execute on server response. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)` + */ ++ (void)trackAppOpenedWithLaunchOptionsInBackground:(PF_NULLABLE NSDictionary *)launchOptions + block:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract Tracks this application being launched. If this happened as the result of the + user opening a push notification, this method sends along information to + correlate this open with that push. + + @param userInfo The Remote Notification payload, if any. This value can be + found either under `UIApplicationLaunchOptionsRemoteNotificationKey` on `launchOptions`, + or as a parameter to `application:didReceiveRemoteNotification:`. + This can be empty or `nil`. + + @returns Returns the task encapsulating the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)trackAppOpenedWithRemoteNotificationPayload:(PF_NULLABLE NSDictionary *)userInfo; + +/*! + @abstract Tracks this application being launched. If this happened as the result of the + user opening a push notification, this method sends along information to + correlate this open with that push. + + @param userInfo The Remote Notification payload, if any. This value can be + found either under `UIApplicationLaunchOptionsRemoteNotificationKey` on `launchOptions`, + or as a parameter to `application:didReceiveRemoteNotification:`. This can be empty or `nil`. + @param block The block to execute on server response. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)` + */ ++ (void)trackAppOpenedWithRemoteNotificationPayloadInBackground:(PF_NULLABLE NSDictionary *)userInfo + block:(PF_NULLABLE PFBooleanResultBlock)block; + +///-------------------------------------- +/// @name Custom Analytics +///-------------------------------------- + +/*! + @abstract Tracks the occurrence of a custom event. + + @discussion Parse will store a data point at the time of invocation with the given event name. + + @param name The name of the custom event to report to Parse as having happened. + + @returns Returns the task encapsulating the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)trackEvent:(NSString *)name; + +/*! + @abstract Tracks the occurrence of a custom event. Parse will store a data point at the + time of invocation with the given event name. The event will be sent at some + unspecified time in the future, even if Parse is currently inaccessible. + + @param name The name of the custom event to report to Parse as having happened. + @param block The block to execute on server response. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)` + */ ++ (void)trackEventInBackground:(NSString *)name block:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract Tracks the occurrence of a custom event with additional dimensions. Parse will + store a data point at the time of invocation with the given event name. + + @discussion Dimensions will allow segmentation of the occurrences of this custom event. + Keys and values should be NSStrings, and will throw otherwise. + + To track a user signup along with additional metadata, consider the following: + + NSDictionary *dimensions = @{ @"gender": @"m", + @"source": @"web", + @"dayType": @"weekend" }; + [PFAnalytics trackEvent:@"signup" dimensions:dimensions]; + + @warning There is a default limit of 8 dimensions per event tracked. + + @param name The name of the custom event to report to Parse as having happened. + @param dimensions The `NSDictionary` of information by which to segment this event. + + @returns Returns the task encapsulating the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)trackEvent:(NSString *)name + dimensions:(PF_NULLABLE NSDictionary PF_GENERIC(NSString *, NSString *)*)dimensions; + +/*! + @abstract Tracks the occurrence of a custom event with additional dimensions. Parse will + store a data point at the time of invocation with the given event name. The + event will be sent at some unspecified time in the future, even if Parse is currently inaccessible. + + @discussionDimensions will allow segmentation of the occurrences of this custom event. + Keys and values should be NSStrings, and will throw otherwise. + + To track a user signup along with additional metadata, consider the following: + NSDictionary *dimensions = @{ @"gender": @"m", + @"source": @"web", + @"dayType": @"weekend" }; + [PFAnalytics trackEvent:@"signup" dimensions:dimensions]; + + There is a default limit of 8 dimensions per event tracked. + + @param name The name of the custom event to report to Parse as having happened. + @param dimensions The `NSDictionary` of information by which to segment this event. + @param block The block to execute on server response. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)` + */ ++ (void)trackEventInBackground:(NSString *)name + dimensions:(PF_NULLABLE NSDictionary PF_GENERIC(NSString *, NSString *)*)dimensions + block:(PF_NULLABLE PFBooleanResultBlock)block; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFAnonymousUtils.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFAnonymousUtils.h new file mode 100644 index 0000000..ff9ed8b --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFAnonymousUtils.h @@ -0,0 +1,82 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +#import +#import + +PF_ASSUME_NONNULL_BEGIN + +/*! + Provides utility functions for working with Anonymously logged-in users. + Anonymous users have some unique characteristics: + + - Anonymous users don't need a user name or password. + - Once logged out, an anonymous user cannot be recovered. + - When the current user is anonymous, the following methods can be used to switch + to a different user or convert the anonymous user into a regular one: + - signUp converts an anonymous user to a standard user with the given username and password. + Data associated with the anonymous user is retained. + - logIn switches users without converting the anonymous user. + Data associated with the anonymous user will be lost. + - Service logIn (e.g. Facebook, Twitter) will attempt to convert + the anonymous user into a standard user by linking it to the service. + If a user already exists that is linked to the service, it will instead switch to the existing user. + - Service linking (e.g. Facebook, Twitter) will convert the anonymous user + into a standard user by linking it to the service. + */ +@interface PFAnonymousUtils : NSObject + +///-------------------------------------- +/// @name Creating an Anonymous User +///-------------------------------------- + +/*! + @abstract Creates an anonymous user asynchronously and sets as a result to `BFTask`. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(PFUser *)*)logInInBackground; + +/*! + @abstract Creates an anonymous user. + + @param block The block to execute when anonymous user creation is complete. + It should have the following argument signature: `^(PFUser *user, NSError *error)`. + */ ++ (void)logInWithBlock:(PF_NULLABLE PFUserResultBlock)block; + +/* + @abstract Creates an anonymous user. + + @param target Target object for the selector. + @param selector The selector that will be called when the asynchronous request is complete. + It should have the following signature: `(void)callbackWithUser:(PFUser *)user error:(NSError *)error`. + */ ++ (void)logInWithTarget:(PF_NULLABLE_S id)target selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Determining Whether a User is Anonymous +///-------------------------------------- + +/*! + @abstract Whether the object is logged in anonymously. + + @param user object to check for anonymity. The user must be logged in on this device. + + @returns `YES` if the user is anonymous. `NO` if the user is not the current user or is not anonymous. + */ ++ (BOOL)isLinkedWithUser:(PF_NULLABLE PFUser *)user; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFCloud.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFCloud.h new file mode 100644 index 0000000..b807b75 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFCloud.h @@ -0,0 +1,91 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +#import + +PF_ASSUME_NONNULL_BEGIN + +/*! + The `PFCloud` class provides methods for interacting with Parse Cloud Functions. + */ +@interface PFCloud : NSObject + +/*! + @abstract Calls the given cloud function *synchronously* with the parameters provided. + + @param function The function name to call. + @param parameters The parameters to send to the function. + + @returns The response from the cloud function. + */ ++ (PF_NULLABLE_S id)callFunction:(NSString *)function + withParameters:(PF_NULLABLE NSDictionary *)parameters PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Calls the given cloud function *synchronously* with the parameters provided and + sets the error if there is one. + + @param function The function name to call. + @param parameters The parameters to send to the function. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns The response from the cloud function. + This result could be a `NSDictionary`, an `NSArray`, `NSNumber` or `NSString`. + */ ++ (PF_NULLABLE_S id)callFunction:(NSString *)function + withParameters:(PF_NULLABLE NSDictionary *)parameters + error:(NSError **)error; + +/*! + @abstract Calls the given cloud function *asynchronously* with the parameters provided. + + @param function The function name to call. + @param parameters The parameters to send to the function. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(id) *)callFunctionInBackground:(NSString *)function + withParameters:(PF_NULLABLE NSDictionary *)parameters; + +/*! + @abstract Calls the given cloud function *asynchronously* with the parameters provided + and executes the given block when it is done. + + @param function The function name to call. + @param parameters The parameters to send to the function. + @param block The block to execute when the function call finished. + It should have the following argument signature: `^(id result, NSError *error)`. + */ ++ (void)callFunctionInBackground:(NSString *)function + withParameters:(PF_NULLABLE NSDictionary *)parameters + block:(PF_NULLABLE PFIdResultBlock)block; + +/* + @abstract Calls the given cloud function *asynchronously* with the parameters provided + and then executes the given selector when it is done. + + @param function The function name to call. + @param parameters The parameters to send to the function. + @param target The object to call the selector on. + @param selector The selector to call when the function call finished. + It should have the following signature: `(void)callbackWithResult:(id)result error:(NSError *)error`. + Result will be `nil` if error is set and vice versa. + */ ++ (void)callFunctionInBackground:(NSString *)function + withParameters:(PF_NULLABLE NSDictionary *)parameters + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFConfig.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFConfig.h new file mode 100644 index 0000000..7420692 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFConfig.h @@ -0,0 +1,106 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +#import +#import + +PF_ASSUME_NONNULL_BEGIN + +@class PFConfig; + +typedef void(^PFConfigResultBlock)(PFConfig *PF_NULLABLE_S config, NSError *PF_NULLABLE_S error); + +/*! + `PFConfig` is a representation of the remote configuration object. + It enables you to add things like feature gating, a/b testing or simple "Message of the day". + */ +@interface PFConfig : NSObject + +///-------------------------------------- +/// @name Current Config +///-------------------------------------- + +/*! + @abstract Returns the most recently fetched config. + + @discussion If there was no config fetched - this method will return an empty instance of `PFConfig`. + + @returns Current, last fetched instance of PFConfig. + */ ++ (PFConfig *)currentConfig; + +///-------------------------------------- +/// @name Retrieving Config +///-------------------------------------- + +/*! + @abstract Gets the `PFConfig` object *synchronously* from the server. + + @returns Instance of `PFConfig` if the operation succeeded, otherwise `nil`. + */ ++ (PF_NULLABLE PFConfig *)getConfig PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Gets the `PFConfig` object *synchronously* from the server and sets an error if it occurs. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Instance of PFConfig if the operation succeeded, otherwise `nil`. + */ ++ (PF_NULLABLE PFConfig *)getConfig:(NSError **)error; + +/*! + @abstract Gets the `PFConfig` *asynchronously* and sets it as a result of a task. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(PFConfig *)*)getConfigInBackground; + +/*! + @abstract Gets the `PFConfig` *asynchronously* and executes the given callback block. + + @param block The block to execute. + It should have the following argument signature: `^(PFConfig *config, NSError *error)`. + */ ++ (void)getConfigInBackgroundWithBlock:(PF_NULLABLE PFConfigResultBlock)block; + +///-------------------------------------- +/// @name Parameters +///-------------------------------------- + +/*! + @abstract Returns the object associated with a given key. + + @param key The key for which to return the corresponding configuration value. + + @returns The value associated with `key`, or `nil` if there is no such value. + */ +- (PF_NULLABLE_S id)objectForKey:(NSString *)key; + +/*! + @abstract Returns the object associated with a given key. + + @discussion This method enables usage of literal syntax on `PFConfig`. + E.g. `NSString *value = config[@"key"];` + + @see objectForKey: + + @param keyedSubscript The keyed subscript for which to return the corresponding configuration value. + + @returns The value associated with `key`, or `nil` if there is no such value. + */ +- (PF_NULLABLE_S id)objectForKeyedSubscript:(NSString *)keyedSubscript; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFConstants.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFConstants.h new file mode 100644 index 0000000..cbf4c97 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFConstants.h @@ -0,0 +1,533 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +@class PFObject; +@class PFUser; + +///-------------------------------------- +/// @name Version +///-------------------------------------- + +#define PARSE_VERSION @"1.9.1" + +extern NSInteger const PARSE_API_VERSION; + +///-------------------------------------- +/// @name Platform +///-------------------------------------- + +#define PARSE_IOS_ONLY (TARGET_OS_IPHONE) +#define PARSE_OSX_ONLY (TARGET_OS_MAC && !(TARGET_OS_IPHONE)) + +extern NSString *const PF_NONNULL_S kPFDeviceType; + +#if PARSE_IOS_ONLY +#import +#else +#import +#endif + +///-------------------------------------- +/// @name Server +///-------------------------------------- + +extern NSString *const PF_NONNULL_S kPFParseServer; + +///-------------------------------------- +/// @name Cache Policies +///-------------------------------------- + +/*! + `PFCachePolicy` specifies different caching policies that could be used with . + + This lets you show data when the user's device is offline, + or when the app has just started and network requests have not yet had time to complete. + Parse takes care of automatically flushing the cache when it takes up too much space. + + @warning Cache policy could only be set when Local Datastore is not enabled. + + @see PFQuery + */ +typedef NS_ENUM(uint8_t, PFCachePolicy) { + /*! + @abstract The query does not load from the cache or save results to the cache. + This is the default cache policy. + */ + kPFCachePolicyIgnoreCache = 0, + /*! + @abstract The query only loads from the cache, ignoring the network. + If there are no cached results, this causes a `NSError` with `kPFErrorCacheMiss` code. + */ + kPFCachePolicyCacheOnly, + /*! + @abstract The query does not load from the cache, but it will save results to the cache. + */ + kPFCachePolicyNetworkOnly, + /*! + @abstract The query first tries to load from the cache, but if that fails, it loads results from the network. + If there are no cached results, this causes a `NSError` with `kPFErrorCacheMiss` code. + */ + kPFCachePolicyCacheElseNetwork, + /*! + @abstract The query first tries to load from the network, but if that fails, it loads results from the cache. + If there are no cached results, this causes a `NSError` with `kPFErrorCacheMiss` code. + */ + kPFCachePolicyNetworkElseCache, + /*! + @abstract The query first loads from the cache, then loads from the network. + The callback will be called twice - first with the cached results, then with the network results. + Since it returns two results at different times, this cache policy cannot be used with synchronous or task methods. + */ + kPFCachePolicyCacheThenNetwork +}; + +///-------------------------------------- +/// @name Logging Levels +///-------------------------------------- + +/*! + `PFLogLevel` enum specifies different levels of logging that could be used to limit or display more messages in logs. + + @see [Parse setLogLevel:] + @see [Parse logLevel] + */ +typedef NS_ENUM(uint8_t, PFLogLevel) { + /*! + Log level that disables all logging. + */ + PFLogLevelNone = 0, + /*! + Log level that if set is going to output error messages to the log. + */ + PFLogLevelError = 1, + /*! + Log level that if set is going to output the following messages to log: + - Errors + - Warnings + */ + PFLogLevelWarning = 2, + /*! + Log level that if set is going to output the following messages to log: + - Errors + - Warnings + - Informational messages + */ + PFLogLevelInfo = 3, + /*! + Log level that if set is going to output the following messages to log: + - Errors + - Warnings + - Informational messages + - Debug messages + */ + PFLogLevelDebug = 4 +}; + +///-------------------------------------- +/// @name Errors +///-------------------------------------- + +extern NSString *const PF_NONNULL_S PFParseErrorDomain; + +/*! + `PFErrorCode` enum contains all custom error codes that are used as `code` for `NSError` for callbacks on all classes. + + These codes are used when `domain` of `NSError` that you receive is set to `PFParseErrorDomain`. + */ +typedef NS_ENUM(NSInteger, PFErrorCode) { + /*! + @abstract Internal server error. No information available. + */ + kPFErrorInternalServer = 1, + /*! + @abstract The connection to the Parse servers failed. + */ + kPFErrorConnectionFailed = 100, + /*! + @abstract Object doesn't exist, or has an incorrect password. + */ + kPFErrorObjectNotFound = 101, + /*! + @abstract You tried to find values matching a datatype that doesn't + support exact database matching, like an array or a dictionary. + */ + kPFErrorInvalidQuery = 102, + /*! + @abstract Missing or invalid classname. Classnames are case-sensitive. + They must start with a letter, and `a-zA-Z0-9_` are the only valid characters. + */ + kPFErrorInvalidClassName = 103, + /*! + @abstract Missing object id. + */ + kPFErrorMissingObjectId = 104, + /*! + @abstract Invalid key name. Keys are case-sensitive. + They must start with a letter, and `a-zA-Z0-9_` are the only valid characters. + */ + kPFErrorInvalidKeyName = 105, + /*! + @abstract Malformed pointer. Pointers must be arrays of a classname and an object id. + */ + kPFErrorInvalidPointer = 106, + /*! + @abstract Malformed json object. A json dictionary is expected. + */ + kPFErrorInvalidJSON = 107, + /*! + @abstract Tried to access a feature only available internally. + */ + kPFErrorCommandUnavailable = 108, + /*! + @abstract Field set to incorrect type. + */ + kPFErrorIncorrectType = 111, + /*! + @abstract Invalid channel name. A channel name is either an empty string (the broadcast channel) + or contains only `a-zA-Z0-9_` characters and starts with a letter. + */ + kPFErrorInvalidChannelName = 112, + /*! + @abstract Invalid device token. + */ + kPFErrorInvalidDeviceToken = 114, + /*! + @abstract Push is misconfigured. See details to find out how. + */ + kPFErrorPushMisconfigured = 115, + /*! + @abstract The object is too large. + */ + kPFErrorObjectTooLarge = 116, + /*! + @abstract That operation isn't allowed for clients. + */ + kPFErrorOperationForbidden = 119, + /*! + @abstract The results were not found in the cache. + */ + kPFErrorCacheMiss = 120, + /*! + @abstract Keys in `NSDictionary` values may not include `$` or `.`. + */ + kPFErrorInvalidNestedKey = 121, + /*! + @abstract Invalid file name. + A file name can contain only `a-zA-Z0-9_.` characters and should be between 1 and 36 characters. + */ + kPFErrorInvalidFileName = 122, + /*! + @abstract Invalid ACL. An ACL with an invalid format was saved. This should not happen if you use . + */ + kPFErrorInvalidACL = 123, + /*! + @abstract The request timed out on the server. Typically this indicates the request is too expensive. + */ + kPFErrorTimeout = 124, + /*! + @abstract The email address was invalid. + */ + kPFErrorInvalidEmailAddress = 125, + /*! + A unique field was given a value that is already taken. + */ + kPFErrorDuplicateValue = 137, + /*! + @abstract Role's name is invalid. + */ + kPFErrorInvalidRoleName = 139, + /*! + @abstract Exceeded an application quota. Upgrade to resolve. + */ + kPFErrorExceededQuota = 140, + /*! + @abstract Cloud Code script had an error. + */ + kPFScriptError = 141, + /*! + @abstract Cloud Code validation failed. + */ + kPFValidationError = 142, + /*! + @abstract Product purchase receipt is missing. + */ + kPFErrorReceiptMissing = 143, + /*! + @abstract Product purchase receipt is invalid. + */ + kPFErrorInvalidPurchaseReceipt = 144, + /*! + @abstract Payment is disabled on this device. + */ + kPFErrorPaymentDisabled = 145, + /*! + @abstract The product identifier is invalid. + */ + kPFErrorInvalidProductIdentifier = 146, + /*! + @abstract The product is not found in the App Store. + */ + kPFErrorProductNotFoundInAppStore = 147, + /*! + @abstract The Apple server response is not valid. + */ + kPFErrorInvalidServerResponse = 148, + /*! + @abstract Product fails to download due to file system error. + */ + kPFErrorProductDownloadFileSystemFailure = 149, + /*! + @abstract Fail to convert data to image. + */ + kPFErrorInvalidImageData = 150, + /*! + @abstract Unsaved file. + */ + kPFErrorUnsavedFile = 151, + /*! + @abstract Fail to delete file. + */ + kPFErrorFileDeleteFailure = 153, + /*! + @abstract Application has exceeded its request limit. + */ + kPFErrorRequestLimitExceeded = 155, + /*! + @abstract Invalid event name. + */ + kPFErrorInvalidEventName = 160, + /*! + @abstract Username is missing or empty. + */ + kPFErrorUsernameMissing = 200, + /*! + @abstract Password is missing or empty. + */ + kPFErrorUserPasswordMissing = 201, + /*! + @abstract Username has already been taken. + */ + kPFErrorUsernameTaken = 202, + /*! + @abstract Email has already been taken. + */ + kPFErrorUserEmailTaken = 203, + /*! + @abstract The email is missing, and must be specified. + */ + kPFErrorUserEmailMissing = 204, + /*! + @abstract A user with the specified email was not found. + */ + kPFErrorUserWithEmailNotFound = 205, + /*! + @abstract The user cannot be altered by a client without the session. + */ + kPFErrorUserCannotBeAlteredWithoutSession = 206, + /*! + @abstract Users can only be created through sign up. + */ + kPFErrorUserCanOnlyBeCreatedThroughSignUp = 207, + /*! + @abstract An existing Facebook account already linked to another user. + */ + kPFErrorFacebookAccountAlreadyLinked = 208, + /*! + @abstract An existing account already linked to another user. + */ + kPFErrorAccountAlreadyLinked = 208, + /*! + Error code indicating that the current session token is invalid. + */ + kPFErrorInvalidSessionToken = 209, + kPFErrorUserIdMismatch = 209, + /*! + @abstract Facebook id missing from request. + */ + kPFErrorFacebookIdMissing = 250, + /*! + @abstract Linked id missing from request. + */ + kPFErrorLinkedIdMissing = 250, + /*! + @abstract Invalid Facebook session. + */ + kPFErrorFacebookInvalidSession = 251, + /*! + @abstract Invalid linked session. + */ + kPFErrorInvalidLinkedSession = 251, +}; + +///-------------------------------------- +/// @name Blocks +///-------------------------------------- + +typedef void (^PFBooleanResultBlock)(BOOL succeeded, NSError *PF_NULLABLE_S error); +typedef void (^PFIntegerResultBlock)(int number, NSError *PF_NULLABLE_S error); +typedef void (^PFArrayResultBlock)(NSArray *PF_NULLABLE_S objects, NSError *PF_NULLABLE_S error); +typedef void (^PFObjectResultBlock)(PFObject *PF_NULLABLE_S object, NSError *PF_NULLABLE_S error); +typedef void (^PFSetResultBlock)(NSSet *PF_NULLABLE_S channels, NSError *PF_NULLABLE_S error); +typedef void (^PFUserResultBlock)(PFUser *PF_NULLABLE_S user, NSError *PF_NULLABLE_S error); +typedef void (^PFDataResultBlock)(NSData *PF_NULLABLE_S data, NSError *PF_NULLABLE_S error); +typedef void (^PFDataStreamResultBlock)(NSInputStream *PF_NULLABLE_S stream, NSError *PF_NULLABLE_S error); +typedef void (^PFFilePathResultBlock)(NSString *PF_NULLABLE_S filePath, NSError *PF_NULLABLE_S error); +typedef void (^PFStringResultBlock)(NSString *PF_NULLABLE_S string, NSError *PF_NULLABLE_S error); +typedef void (^PFIdResultBlock)(PF_NULLABLE_S id object, NSError *PF_NULLABLE_S error); +typedef void (^PFProgressBlock)(int percentDone); + +///-------------------------------------- +/// @name Network Notifications +///-------------------------------------- + +/*! + @abstract The name of the notification that is going to be sent before any URL request is sent. + */ +extern NSString *const PF_NONNULL_S PFNetworkWillSendURLRequestNotification; + +/*! + @abstract The name of the notification that is going to be sent after any URL response is received. + */ +extern NSString *const PF_NONNULL_S PFNetworkDidReceiveURLResponseNotification; + +/*! + @abstract The key of request(NSURLRequest) in the userInfo dictionary of a notification. + @note This key is populated in userInfo, only if `PFLogLevel` on `Parse` is set to `PFLogLevelDebug`. + */ +extern NSString *const PF_NONNULL_S PFNetworkNotificationURLRequestUserInfoKey; + +/*! + @abstract The key of response(NSHTTPURLResponse) in the userInfo dictionary of a notification. + @note This key is populated in userInfo, only if `PFLogLevel` on `Parse` is set to `PFLogLevelDebug`. + */ +extern NSString *const PF_NONNULL_S PFNetworkNotificationURLResponseUserInfoKey; + +/*! + @abstract The key of repsonse body (usually `NSString` with JSON) in the userInfo dictionary of a notification. + @note This key is populated in userInfo, only if `PFLogLevel` on `Parse` is set to `PFLogLevelDebug`. + */ +extern NSString *const PF_NONNULL_S PFNetworkNotificationURLResponseBodyUserInfoKey; + + +///-------------------------------------- +/// @name Deprecated Macros +///-------------------------------------- + +#ifndef PARSE_DEPRECATED +# ifdef __deprecated_msg +# define PARSE_DEPRECATED(_MSG) __deprecated_msg(_MSG) +# else +# ifdef __deprecated +# define PARSE_DEPRECATED(_MSG) __attribute__((deprecated)) +# else +# define PARSE_DEPRECATED(_MSG) +# endif +# endif +#endif + +///-------------------------------------- +/// @name Extensions Macros +///-------------------------------------- + +#ifndef PF_EXTENSION_UNAVAILABLE +# if PARSE_IOS_ONLY +# ifdef NS_EXTENSION_UNAVAILABLE_IOS +# define PF_EXTENSION_UNAVAILABLE(_msg) NS_EXTENSION_UNAVAILABLE_IOS(_msg) +# else +# define PF_EXTENSION_UNAVAILABLE(_msg) +# endif +# else +# ifdef NS_EXTENSION_UNAVAILABLE_MAC +# define PF_EXTENSION_UNAVAILABLE(_msg) NS_EXTENSION_UNAVAILABLE_MAC(_msg) +# else +# define PF_EXTENSION_UNAVAILABLE(_msg) +# endif +# endif +#endif + +///-------------------------------------- +/// @name Swift Macros +///-------------------------------------- + +#ifndef PF_SWIFT_UNAVAILABLE +# ifdef NS_SWIFT_UNAVAILABLE +# define PF_SWIFT_UNAVAILABLE NS_SWIFT_UNAVAILABLE("") +# else +# define PF_SWIFT_UNAVAILABLE +# endif +#endif + +///-------------------------------------- +/// @name Obj-C Generics Macros +///-------------------------------------- + +#if __has_feature(objc_generics) || __has_extension(objc_generics) +# define PF_GENERIC(...) <__VA_ARGS__> +#else +# define PF_GENERIC(...) +# define PFGenericObject PFObject * +#endif + +///-------------------------------------- +/// @name Platform Availability Defines +///-------------------------------------- + +#ifndef TARGET_OS_IOS +# define TARGET_OS_IOS TARGET_OS_IPHONE +#endif +#ifndef TARGET_OS_WATCH +# define TARGET_OS_WATCH 0 +#endif +#ifndef TARGET_OS_TV +# define TARGET_OS_TV 0 +#endif + +#ifndef PF_TARGET_OS_OSX +# define PF_TARGET_OS_OSX TARGET_OS_MAC && !TARGET_OS_IOS && !TARGET_OS_WATCH && !TARGET_OS_TV +#endif + +///-------------------------------------- +/// @name Avaiability Macros +///-------------------------------------- + +#ifndef PF_WATCH_UNAVAILABLE +# ifdef __WATCHOS_UNAVAILABLE +# define PF_WATCH_UNAVAILABLE __WATCHOS_UNAVAILABLE +# else +# define PF_WATCH_UNAVAILABLE +# endif +#endif + +#ifndef PF_WATCH_UNAVAILABLE_WARNING +# if TARGET_OS_WATCH +# define PF_WATCH_UNAVAILABLE_WARNING _Pragma("GCC warning \"This file is unavailable on watchOS.\"") +# else +# define PF_WATCH_UNAVAILABLE_WARNING +# endif +#endif + +#ifndef PF_TV_UNAVAILABLE +# ifdef __TVOS_PROHIBITED +# define PF_TV_UNAVAILABLE __TVOS_PROHIBITED +# else +# define PF_TV_UNAVAILABLE +# endif +#endif + +#ifndef PF_TV_UNAVAILABLE_WARNING +# if TARGET_OS_TV +# define PF_TV_UNAVAILABLE_WARNING _Pragma("GCC warning \"This file is unavailable on tvOS.\"") +# else +# define PF_TV_UNAVAILABLE_WARNING +# endif +#endif diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFFile.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFFile.h new file mode 100644 index 0000000..877aa21 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFFile.h @@ -0,0 +1,446 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +#import + +PF_ASSUME_NONNULL_BEGIN + +/*! + `PFFile` representes a file of binary data stored on the Parse servers. + This can be a image, video, or anything else that an application needs to reference in a non-relational way. + */ +@interface PFFile : NSObject + +///-------------------------------------- +/// @name Creating a PFFile +///-------------------------------------- + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/*! + @abstract Creates a file with given data. A name will be assigned to it by the server. + + @param data The contents of the new `PFFile`. + + @returns A new `PFFile`. + */ ++ (PF_NULLABLE instancetype)fileWithData:(NSData *)data; + +/*! + @abstract Creates a file with given data and name. + + @param name The name of the new PFFile. The file name must begin with and + alphanumeric character, and consist of alphanumeric characters, periods, + spaces, underscores, or dashes. + @param data The contents of the new `PFFile`. + + @returns A new `PFFile` object. + */ ++ (PF_NULLABLE instancetype)fileWithName:(PF_NULLABLE NSString *)name data:(NSData *)data; + +/*! + @abstract Creates a file with the contents of another file. + + @warning This method raises an exception if the file at path is not accessible + or if there is not enough disk space left. + + @param name The name of the new `PFFile`. The file name must begin with and alphanumeric character, + and consist of alphanumeric characters, periods, spaces, underscores, or dashes. + @param path The path to the file that will be uploaded to Parse. + + @returns A new `PFFile` instance. + */ ++ (PF_NULLABLE instancetype)fileWithName:(PF_NULLABLE NSString *)name + contentsAtPath:(NSString *)path PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Creates a file with the contents of another file. + + @param name The name of the new `PFFile`. The file name must begin with and alphanumeric character, + and consist of alphanumeric characters, periods, spaces, underscores, or dashes. + @param path The path to the file that will be uploaded to Parse. + @param error On input, a pointer to an error object. + If an error occurs, this pointer is set to an actual error object containing the error information. + You may specify `nil` for this parameter if you do not want the error information. + + @returns A new `PFFile` instance or `nil` if the error occured. + */ ++ (PF_NULLABLE instancetype)fileWithName:(PF_NULLABLE NSString *)name + contentsAtPath:(NSString *)path + error:(NSError **)error; + +/*! + @abstract Creates a file with given data, name and content type. + + @warning This method raises an exception if the data supplied is not accessible or could not be saved. + + @param name The name of the new `PFFile`. The file name must begin with and alphanumeric character, + and consist of alphanumeric characters, periods, spaces, underscores, or dashes. + @param data The contents of the new `PFFile`. + @param contentType Represents MIME type of the data. + + @returns A new `PFFile` instance. + */ ++ (PF_NULLABLE instancetype)fileWithName:(PF_NULLABLE NSString *)name + data:(NSData *)data + contentType:(PF_NULLABLE NSString *)contentType PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Creates a file with given data, name and content type. + + @param name The name of the new `PFFile`. The file name must begin with and alphanumeric character, + and consist of alphanumeric characters, periods, spaces, underscores, or dashes. + @param data The contents of the new `PFFile`. + @param contentType Represents MIME type of the data. + @param error On input, a pointer to an error object. + If an error occurs, this pointer is set to an actual error object containing the error information. + You may specify `nil` for this parameter if you do not want the error information. + + @returns A new `PFFile` instance or `nil` if the error occured. + */ ++ (PF_NULLABLE instancetype)fileWithName:(PF_NULLABLE NSString *)name + data:(NSData *)data + contentType:(PF_NULLABLE NSString *)contentType + error:(NSError **)error; + +/*! + @abstract Creates a file with given data and content type. + + @param data The contents of the new `PFFile`. + @param contentType Represents MIME type of the data. + + @returns A new `PFFile` object. + */ ++ (instancetype)fileWithData:(NSData *)data contentType:(PF_NULLABLE NSString *)contentType; + +///-------------------------------------- +/// @name File Properties +///-------------------------------------- + +/*! + @abstract The name of the file. + + @discussion Before the file is saved, this is the filename given by + the user. After the file is saved, that name gets prefixed with a unique + identifier. + */ +@property (nonatomic, copy, readonly) NSString *name; + +/*! + @abstract The url of the file. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, copy, readonly) NSString *url; + +/*! + @abstract Whether the file has been uploaded for the first time. + */ +@property (nonatomic, assign, readonly) BOOL isDirty; + +///-------------------------------------- +/// @name Storing Data with Parse +///-------------------------------------- + +/*! + @abstract Saves the file *synchronously*. + + @returns Returns whether the save succeeded. + */ +- (BOOL)save PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Saves the file *synchronously* and sets an error if it occurs. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the save succeeded. + */ +- (BOOL)save:(NSError **)error; + +/*! + @abstract Saves the file *asynchronously*. + + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSNumber *)*)saveInBackground; + +/*! + @abstract Saves the file *asynchronously* + + @param progressBlock The block should have the following argument signature: `^(int percentDone)` + + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSNumber *)*)saveInBackgroundWithProgressBlock:(PF_NULLABLE PFProgressBlock)progressBlock; + +/*! + @abstract Saves the file *asynchronously* and executes the given block. + + @param block The block should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ +- (void)saveInBackgroundWithBlock:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract Saves the file *asynchronously* and executes the given block. + + @discussion This method will execute the progressBlock periodically with the percent progress. + `progressBlock` will get called with `100` before `resultBlock` is called. + + @param block The block should have the following argument signature: `^(BOOL succeeded, NSError *error)` + @param progressBlock The block should have the following argument signature: `^(int percentDone)` + */ +- (void)saveInBackgroundWithBlock:(PF_NULLABLE PFBooleanResultBlock)block + progressBlock:(PF_NULLABLE PFProgressBlock)progressBlock; + +/* + @abstract Saves the file *asynchronously* and calls the given callback. + + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ +- (void)saveInBackgroundWithTarget:(PF_NULLABLE_S id)target selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Getting Data from Parse +///-------------------------------------- + +/*! + @abstract Whether the data is available in memory or needs to be downloaded. + */ +@property (nonatomic, assign, readonly) BOOL isDataAvailable; + +/*! + @abstract *Synchronously* gets the data from cache if available or fetches its contents from the network. + + @returns The `NSData` object containing file data. Returns `nil` if there was an error in fetching. + */ +- (PF_NULLABLE NSData *)getData PF_SWIFT_UNAVAILABLE; + +/*! + @abstract This method is like but avoids ever holding the entire `PFFile` contents in memory at once. + + @discussion This can help applications with many large files avoid memory warnings. + + @returns A stream containing the data. Returns `nil` if there was an error in fetching. + */ +- (PF_NULLABLE NSInputStream *)getDataStream PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* gets the data from cache if available or fetches its contents from the network. + Sets an error if it occurs. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns The `NSData` object containing file data. Returns `nil` if there was an error in fetching. + */ +- (PF_NULLABLE NSData *)getData:(NSError **)error; + +/*! + @abstract This method is like but avoids ever holding the entire `PFFile` contents in memory at once. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns A stream containing the data. Returns nil if there was an error in + fetching. + */ +- (PF_NULLABLE NSInputStream *)getDataStream:(NSError **)error; + +/*! + @abstract This method is like but it fetches asynchronously to avoid blocking the current thread. + + @see getData + + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSData *)*)getDataInBackground; + +/*! + @abstract This method is like but it fetches asynchronously to avoid blocking the current thread. + + @discussion This can help applications with many large files avoid memory warnings. + + @see getData + + @param progressBlock The block should have the following argument signature: ^(int percentDone) + + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSData *)*)getDataInBackgroundWithProgressBlock:(PF_NULLABLE PFProgressBlock)progressBlock; + +/*! + @abstract This method is like but avoids + ever holding the entire `PFFile` contents in memory at once. + + @discussion This can help applications with many large files avoid memory warnings. + + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSInputStream *)*)getDataStreamInBackground; + +/*! + @abstract This method is like , but yields a live-updating stream. + + @discussion Instead of , which yields a stream that can be read from only after the request has + completed, this method gives you a stream directly written to by the HTTP session. As this stream is not pre-buffered, + it is strongly advised to use the `NSStreamDelegate` methods, in combination with a run loop, to consume the data in + the stream, to do proper async file downloading. + + @note You MUST open this stream before reading from it. + @note Do NOT call on this task from the main thread. It may result in a deadlock. + + @returns A task that produces a *live* stream that is being written to with the data from the server. + */ +- (BFTask PF_GENERIC(NSInputStream *)*)getDataDownloadStreamInBackground; + +/*! + @abstract This method is like but avoids + ever holding the entire `PFFile` contents in memory at once. + + @discussion This can help applications with many large files avoid memory warnings. + @param progressBlock The block should have the following argument signature: ^(int percentDone) + + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSInputStream *)*)getDataStreamInBackgroundWithProgressBlock:(PF_NULLABLE PFProgressBlock)progressBlock; + +/*! + @abstract This method is like , but yields a live-updating stream. + + @discussion Instead of , which yields a stream that can be read from only after the request has + completed, this method gives you a stream directly written to by the HTTP session. As this stream is not pre-buffered, + it is strongly advised to use the `NSStreamDelegate` methods, in combination with a run loop, to consume the data in + the stream, to do proper async file downloading. + + @note You MUST open this stream before reading from it. + @note Do NOT call on this task from the main thread. It may result in a deadlock. + + @param progressBlock The block should have the following argument signature: `^(int percentDone)` + + @returns A task that produces a *live* stream that is being written to with the data from the server. + */ +- (BFTask PF_GENERIC(NSInputStream *)*)getDataDownloadStreamInBackgroundWithProgressBlock:(PF_NULLABLE PFProgressBlock)progressBlock; + +/*! + @abstract *Asynchronously* gets the data from cache if available or fetches its contents from the network. + + @param block The block should have the following argument signature: `^(NSData *result, NSError *error)` + */ +- (void)getDataInBackgroundWithBlock:(PF_NULLABLE PFDataResultBlock)block; + +/*! + @abstract This method is like but avoids + ever holding the entire `PFFile` contents in memory at once. + + @discussion This can help applications with many large files avoid memory warnings. + + @param block The block should have the following argument signature: `(NSInputStream *result, NSError *error)` + */ +- (void)getDataStreamInBackgroundWithBlock:(PF_NULLABLE PFDataStreamResultBlock)block; + +/*! + @abstract *Asynchronously* gets the data from cache if available or fetches its contents from the network. + + @discussion This method will execute the progressBlock periodically with the percent progress. + `progressBlock` will get called with `100` before `resultBlock` is called. + + @param resultBlock The block should have the following argument signature: ^(NSData *result, NSError *error) + @param progressBlock The block should have the following argument signature: ^(int percentDone) + */ +- (void)getDataInBackgroundWithBlock:(PF_NULLABLE PFDataResultBlock)resultBlock + progressBlock:(PF_NULLABLE PFProgressBlock)progressBlock; + +/*! + @abstract This method is like but avoids + ever holding the entire `PFFile` contents in memory at once. + + @discussion This can help applications with many large files avoid memory warnings. + + @param resultBlock The block should have the following argument signature: `^(NSInputStream *result, NSError *error)`. + @param progressBlock The block should have the following argument signature: `^(int percentDone)`. + */ +- (void)getDataStreamInBackgroundWithBlock:(PF_NULLABLE PFDataStreamResultBlock)resultBlock + progressBlock:(PF_NULLABLE PFProgressBlock)progressBlock; + +/* + @abstract *Asynchronously* gets the data from cache if available or fetches its contents from the network. + + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSData *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + */ +- (void)getDataInBackgroundWithTarget:(PF_NULLABLE_S id)target selector:(PF_NULLABLE_S SEL)selector; + +/*! + @abstract *Asynchronously* gets the file path for file from cache if available or fetches its contents from the network. + + @note The file path may change between versions of SDK. + @note If you overwrite the contents of the file at returned path it will persist those change + until the file cache is cleared. + + @returns The task, with the result set to `NSString` representation of a file path. + */ +- (BFTask PF_GENERIC(NSString *)*)getFilePathInBackground; + +/*! + @abstract *Asynchronously* gets the file path for file from cache if available or fetches its contents from the network. + + @note The file path may change between versions of SDK. + @note If you overwrite the contents of the file at returned path it will persist those change + until the file cache is cleared. + + @param progressBlock The block should have the following argument signature: `^(int percentDone)`. + + @returns The task, with the result set to `NSString` representation of a file path. + */ +- (BFTask PF_GENERIC(NSString *)*)getFilePathInBackgroundWithProgressBlock:(PF_NULLABLE PFProgressBlock)progressBlock; + +/*! + @abstract *Asynchronously* gets the file path for file from cache if available or fetches its contents from the network. + + @note The file path may change between versions of SDK. + @note If you overwrite the contents of the file at returned path it will persist those change + until the file cache is cleared. + + @param block The block should have the following argument signature: `^(NSString *filePath, NSError *error)`. + */ +- (void)getFilePathInBackgroundWithBlock:(PF_NULLABLE PFFilePathResultBlock)block; + +/*! + @abstract *Asynchronously* gets the file path for file from cache if available or fetches its contents from the network. + + @note The file path may change between versions of SDK. + @note If you overwrite the contents of the file at returned path it will persist those change + until the file cache is cleared. + + @param block The block should have the following argument signature: `^(NSString *filePath, NSError *error)`. + @param progressBlock The block should have the following argument signature: `^(int percentDone)`. + */ +- (void)getFilePathInBackgroundWithBlock:(PF_NULLABLE PFFilePathResultBlock)block + progressBlock:(PF_NULLABLE PFProgressBlock)progressBlock; + +///-------------------------------------- +/// @name Interrupting a Transfer +///-------------------------------------- + +/*! + @abstract Cancels the current request (upload or download of file). + */ +- (void)cancel; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFGeoPoint.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFGeoPoint.h new file mode 100644 index 0000000..37d3bb0 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFGeoPoint.h @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import +#import + +#import + +PF_ASSUME_NONNULL_BEGIN + +@class PFGeoPoint; + +typedef void(^PFGeoPointResultBlock)(PFGeoPoint *PF_NULLABLE_S geoPoint, NSError *PF_NULLABLE_S error); + +/*! + `PFGeoPoint` may be used to embed a latitude / longitude point as the value for a key in a . + It could be used to perform queries in a geospatial manner using <[PFQuery whereKey:nearGeoPoint:]>. + + Currently, instances of may only have one key associated with a `PFGeoPoint` type. + */ +@interface PFGeoPoint : NSObject + +///-------------------------------------- +/// @name Creating a Geo Point +///-------------------------------------- + +/*! + @abstract Create a PFGeoPoint object. Latitude and longitude are set to `0.0`. + + @returns Returns a new `PFGeoPoint`. + */ ++ (instancetype)geoPoint; + +/*! + @abstract Creates a new `PFGeoPoint` object for the given `CLLocation`, set to the location's coordinates. + + @param location Instace of `CLLocation`, with set latitude and longitude. + + @returns Returns a new PFGeoPoint at specified location. + */ ++ (instancetype)geoPointWithLocation:(PF_NULLABLE CLLocation *)location; + +/*! + @abstract Create a new `PFGeoPoint` object with the specified latitude and longitude. + + @param latitude Latitude of point in degrees. + @param longitude Longitude of point in degrees. + + @returns New point object with specified latitude and longitude. + */ ++ (instancetype)geoPointWithLatitude:(double)latitude longitude:(double)longitude; + +/*! + @abstract Fetches the current device location and executes a block with a new `PFGeoPoint` object. + + @param resultBlock A block which takes the newly created `PFGeoPoint` as an argument. + It should have the following argument signature: `^(PFGeoPoint *geoPoint, NSError *error)` + */ ++ (void)geoPointForCurrentLocationInBackground:(PF_NULLABLE PFGeoPointResultBlock)resultBlock; + +///-------------------------------------- +/// @name Controlling Position +///-------------------------------------- + +/*! + @abstract Latitude of point in degrees. Valid range is from `-90.0` to `90.0`. + */ +@property (nonatomic, assign) double latitude; + +/*! + @abstract Longitude of point in degrees. Valid range is from `-180.0` to `180.0`. + */ +@property (nonatomic, assign) double longitude; + +///-------------------------------------- +/// @name Calculating Distance +///-------------------------------------- + +/*! + @abstract Get distance in radians from this point to specified point. + + @param point `PFGeoPoint` that represents the location of other point. + + @returns Distance in radians between the receiver and `point`. + */ +- (double)distanceInRadiansTo:(PF_NULLABLE PFGeoPoint *)point; + +/*! + @abstract Get distance in miles from this point to specified point. + + @param point `PFGeoPoint` that represents the location of other point. + + @returns Distance in miles between the receiver and `point`. + */ +- (double)distanceInMilesTo:(PF_NULLABLE PFGeoPoint *)point; + +/*! + @abstract Get distance in kilometers from this point to specified point. + + @param point `PFGeoPoint` that represents the location of other point. + + @returns Distance in kilometers between the receiver and `point`. + */ +- (double)distanceInKilometersTo:(PF_NULLABLE PFGeoPoint *)point; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFInstallation.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFInstallation.h new file mode 100644 index 0000000..8c6755b --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFInstallation.h @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import +#import +#import + +PF_WATCH_UNAVAILABLE_WARNING + +PF_ASSUME_NONNULL_BEGIN + +/*! + A Parse Framework Installation Object that is a local representation of an + installation persisted to the Parse cloud. This class is a subclass of a + , and retains the same functionality of a PFObject, but also extends + it with installation-specific fields and related immutability and validity + checks. + + A valid `PFInstallation` can only be instantiated via + <[PFInstallation currentInstallation]> because the required identifier fields + are readonly. The and fields are also readonly properties which + are automatically updated to match the device's time zone and application badge + when the `PFInstallation` is saved, thus these fields might not reflect the + latest device state if the installation has not recently been saved. + + `PFInstallation` objects which have a valid and are saved to + the Parse cloud can be used to target push notifications. + */ + +PF_TV_UNAVAILABLE PF_WATCH_UNAVAILABLE @interface PFInstallation : PFObject + +///-------------------------------------- +/// @name Accessing the Current Installation +///-------------------------------------- + +/*! + @abstract Gets the currently-running installation from disk and returns an instance of it. + + @discussion If this installation is not stored on disk, returns a `PFInstallation` + with and fields set to those of the + current installation. + + @result Returns a `PFInstallation` that represents the currently-running installation. + */ ++ (instancetype)currentInstallation; + +///-------------------------------------- +/// @name Installation Properties +///-------------------------------------- + +/*! + @abstract The device type for the `PFInstallation`. + */ +@property (nonatomic, copy, readonly) NSString *deviceType; + +/*! + @abstract The installationId for the `PFInstallation`. + */ +@property (nonatomic, copy, readonly) NSString *installationId; + +/*! + @abstract The device token for the `PFInstallation`. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, copy) NSString *deviceToken; + +/*! + @abstract The badge for the `PFInstallation`. + */ +@property (nonatomic, assign) NSInteger badge; + +/*! + @abstract The name of the time zone for the `PFInstallation`. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, copy, readonly) NSString *timeZone; + +/*! + @abstract The channels for the `PFInstallation`. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, copy) NSArray *channels; + +/*! + @abstract Sets the device token string property from an `NSData`-encoded token. + + @param deviceTokenData A token that identifies the device. + */ +- (void)setDeviceTokenFromData:(PF_NULLABLE NSData *)deviceTokenData; + +///-------------------------------------- +/// @name Querying for Installations +///-------------------------------------- + +/*! + @abstract Creates a for `PFInstallation` objects. + + @discussion Only the following types of queries are allowed for installations: + + - `[query getObjectWithId:]` + - `[query whereKey:@"installationId" equalTo:]` + - `[query whereKey:@"installationId" matchesKey: inQuery:]` + + You can add additional query conditions, but one of the above must appear as a top-level `AND` clause in the query. + */ ++ (PF_NULLABLE PFQuery *)query; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFNetworkActivityIndicatorManager.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h similarity index 50% rename from iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFNetworkActivityIndicatorManager.h rename to iphone/assets/Frameworks/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h index f1b82d7..e4d4df0 100644 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFNetworkActivityIndicatorManager.h +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h @@ -1,28 +1,35 @@ -// -// PFNetworkActivityIndicatorManager.h -// Parse -// -// Created by Nikita Lutsenko on 8/14/14. -// Copyright (c) 2014 Parse Inc. All rights reserved. -// +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ #import +#import + +#import +#import + +PF_ASSUME_NONNULL_BEGIN /*! `PFNetworkActivityIndicatorManager` manages the state of the network activity indicator in the status bar. When enabled, it will start managing the network activity indicator in the status bar, - according to the network operations that are performed by Parse SDK. + according to the network operations that are performed by Parse SDK. The number of active requests is incremented or decremented like a stack or a semaphore, the activity indicator will animate, as long as the number is greater than zero. */ -@interface PFNetworkActivityIndicatorManager : NSObject +PF_TV_UNAVAILABLE PF_WATCH_UNAVAILABLE @interface PFNetworkActivityIndicatorManager : NSObject /*! A Boolean value indicating whether the manager is enabled. If `YES` - the manager will start managing the status bar network activity indicator, according to the network operations that are performed by Parse SDK. - The default value is YES. + The default value is `YES`. */ @property (nonatomic, assign, getter = isEnabled) BOOL enabled; @@ -37,22 +44,28 @@ @property (nonatomic, assign, readonly) NSUInteger networkActivityCount; /*! - Returns the shared network activity indicator manager object for the system. + @abstract Returns the shared network activity indicator manager object for the system. - @return The systemwide network activity indicator manager. + @returns The systemwide network activity indicator manager. */ + (instancetype)sharedManager; /*! - Increments the number of active network requests. - If this number was zero before incrementing, this will start animating network activity indicator in the status bar. + @abstract Increments the number of active network requests. + + @discussion If this number was zero before incrementing, + this will start animating network activity indicator in the status bar. */ - (void)incrementActivityCount; /*! - Decrements the number of active network requests. - If this number becomes zero after decrementing, this will stop animating network activity indicator in the status bar. + @abstract Decrements the number of active network requests. + + @discussion If this number becomes zero after decrementing, + this will stop animating network activity indicator in the status bar. */ - (void)decrementActivityCount; @end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFNullability.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFNullability.h new file mode 100644 index 0000000..8c1b958 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFNullability.h @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#ifndef Parse_PFNullability_h +#define Parse_PFNullability_h + +///-------------------------------------- +/// @name Nullability Annotation Support +///-------------------------------------- + +#if __has_feature(nullability) +# define PF_NONNULL nonnull +# define PF_NONNULL_S __nonnull +# define PF_NULLABLE nullable +# define PF_NULLABLE_S __nullable +# define PF_NULLABLE_PROPERTY nullable, +#else +# define PF_NONNULL +# define PF_NONNULL_S +# define PF_NULLABLE +# define PF_NULLABLE_S +# define PF_NULLABLE_PROPERTY +#endif + +#if __has_feature(assume_nonnull) +# ifdef NS_ASSUME_NONNULL_BEGIN +# define PF_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN +# else +# define PF_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin") +# endif +# ifdef NS_ASSUME_NONNULL_END +# define PF_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END +# else +# define PF_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end") +# endif +#else +# define PF_ASSUME_NONNULL_BEGIN +# define PF_ASSUME_NONNULL_END +#endif + +#endif diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFObject+Subclass.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFObject+Subclass.h new file mode 100644 index 0000000..585d5c1 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFObject+Subclass.h @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import +#import + +@class PFQuery PF_GENERIC(PFGenericObject : PFObject *); + +PF_ASSUME_NONNULL_BEGIN + +/*! + ### Subclassing Notes + + Developers can subclass `PFObject` for a more native object-oriented class structure. + Strongly-typed subclasses of `PFObject` must conform to the protocol + and must call before <[Parse setApplicationId:clientKey:]> is called. + After this it will be returned by and other `PFObject` factories. + + All methods in except for <[PFSubclassing parseClassName]> + are already implemented in the `PFObject+Subclass` category. + + Including `PFObject+Subclass.h` in your implementation file provides these implementations automatically. + + Subclasses support simpler initializers, query syntax, and dynamic synthesizers. + The following shows an example subclass: + + \@interface MYGame : PFObject + + // Accessing this property is the same as objectForKey:@"title" + @property (nonatomic, copy) NSString *title; + + + (NSString *)parseClassName; + + @end + + + @implementation MYGame + + @dynamic title; + + + (NSString *)parseClassName { + return @"Game"; + } + + @end + + + MYGame *game = [[MYGame alloc] init]; + game.title = @"Bughouse"; + [game saveInBackground]; + */ +@interface PFObject (Subclass) + +///-------------------------------------- +/// @name Methods for Subclasses +///-------------------------------------- + +/*! + @abstract Creates an instance of the registered subclass with this class's . + + @discussion This helps a subclass ensure that it can be subclassed itself. + For example, `[PFUser object]` will return a `MyUser` object if `MyUser` is a registered subclass of `PFUser`. + For this reason, `[MyClass object]` is preferred to `[[MyClass alloc] init]`. + This method can only be called on subclasses which conform to `PFSubclassing`. + A default implementation is provided by `PFObject` which should always be sufficient. + */ ++ (instancetype)object; + +/*! + @abstract Creates a reference to an existing `PFObject` for use in creating associations between `PFObjects`. + + @discussion Calling on this object will return `NO` until or has been called. + This method can only be called on subclasses which conform to . + A default implementation is provided by `PFObject` which should always be sufficient. + No network request will be made. + + @param objectId The object id for the referenced object. + + @returns An instance of `PFObject` without data. + */ ++ (instancetype)objectWithoutDataWithObjectId:(PF_NULLABLE NSString *)objectId; + +/*! + @abstract Registers an Objective-C class for Parse to use for representing a given Parse class. + + @discussion Once this is called on a `PFObject` subclass, any `PFObject` Parse creates with a class name + that matches `[self parseClassName]` will be an instance of subclass. + This method can only be called on subclasses which conform to . + A default implementation is provided by `PFObject` which should always be sufficient. + */ ++ (void)registerSubclass; + +/*! + @abstract Returns a query for objects of type . + + @discussion This method can only be called on subclasses which conform to . + A default implementation is provided by which should always be sufficient. + */ ++ (PF_NULLABLE PFQuery *)query; + +/*! + @abstract Returns a query for objects of type with a given predicate. + + @discussion A default implementation is provided by which should always be sufficient. + @warning This method can only be called on subclasses which conform to . + + @param predicate The predicate to create conditions from. + + @returns An instance of . + + @see [PFQuery queryWithClassName:predicate:] + */ ++ (PF_NULLABLE PFQuery *)queryWithPredicate:(PF_NULLABLE NSPredicate *)predicate; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFObject.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFObject.h new file mode 100644 index 0000000..8afdc94 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFObject.h @@ -0,0 +1,1429 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +#import +#import + +PF_ASSUME_NONNULL_BEGIN + +@protocol PFSubclassing; +@class PFRelation; + +/*! + The name of the default pin that for PFObject local data store. + */ +extern NSString *const PFObjectDefaultPin; + +/*! + The `PFObject` class is a local representation of data persisted to the Parse cloud. + This is the main class that is used to interact with objects in your app. + */ +NS_REQUIRES_PROPERTY_DEFINITIONS +@interface PFObject : NSObject { + BOOL dirty; + + // An array of NSDictionary of NSString -> PFFieldOperation. + // Each dictionary has a subset of the object's keys as keys, and the + // changes to the value for that key as its value. + // There is always at least one dictionary of pending operations. + // Every time a save is started, a new dictionary is added to the end. + // Whenever a save completes, the new data is put into fetchedData, and + // a dictionary is removed from the start. + NSMutableArray *PF_NULLABLE_S operationSetQueue; +} + +///-------------------------------------- +/// @name Creating a PFObject +///-------------------------------------- + +/*! + @abstract Initializes a new empty `PFObject` instance with a class name. + + @param newClassName A class name can be any alphanumeric string that begins with a letter. + It represents an object in your app, like a 'User' or a 'Document'. + + @returns Returns the object that is instantiated with the given class name. + */ +- (instancetype)initWithClassName:(NSString *)newClassName; + +/*! + @abstract Creates a new PFObject with a class name. + + @param className A class name can be any alphanumeric string that begins with a letter. + It represents an object in your app, like a 'User' or a 'Document'. + + @returns Returns the object that is instantiated with the given class name. + */ ++ (instancetype)objectWithClassName:(NSString *)className; + +/*! + @abstract Creates a new `PFObject` with a class name, initialized with data + constructed from the specified set of objects and keys. + + @param className The object's class. + @param dictionary An `NSDictionary` of keys and objects to set on the new `PFObject`. + + @returns A PFObject with the given class name and set with the given data. + */ ++ (instancetype)objectWithClassName:(NSString *)className dictionary:(PF_NULLABLE NSDictionary PF_GENERIC(NSString *, id)*)dictionary; + +/*! + @abstract Creates a reference to an existing PFObject for use in creating associations between PFObjects. + + @discussion Calling on this object will return `NO` until has been called. + No network request will be made. + + @param className The object's class. + @param objectId The object id for the referenced object. + + @returns A `PFObject` instance without data. + */ ++ (instancetype)objectWithoutDataWithClassName:(NSString *)className objectId:(PF_NULLABLE NSString *)objectId; + +///-------------------------------------- +/// @name Managing Object Properties +///-------------------------------------- + +/*! + @abstract The class name of the object. + */ +@property (nonatomic, strong, readonly) NSString *parseClassName; + +/*! + @abstract The id of the object. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSString *objectId; + +/*! + @abstract When the object was last updated. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong, readonly) NSDate *updatedAt; + +/*! + @abstract When the object was created. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong, readonly) NSDate *createdAt; + +/*! + @abstract The ACL for this object. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong) PFACL *ACL; + +/*! + @abstract Returns an array of the keys contained in this object. + + @discussion This does not include `createdAt`, `updatedAt`, `authData`, or `objectId`. + It does include things like username and ACL. + */ +- (NSArray PF_GENERIC(NSString *)*)allKeys; + +///-------------------------------------- +/// @name Accessors +///-------------------------------------- + +/*! + @abstract Returns the value associated with a given key. + + @param key The key for which to return the corresponding value. + */ +- (PF_NULLABLE_S id)objectForKey:(NSString *)key; + +/*! + @abstract Sets the object associated with a given key. + + @param object The object for `key`. A strong reference to the object is maintained by PFObject. + Raises an `NSInvalidArgumentException` if `object` is `nil`. + If you need to represent a `nil` value - use `NSNull`. + @param key The key for `object`. + Raises an `NSInvalidArgumentException` if `key` is `nil`. + + @see setObject:forKeyedSubscript: + */ +- (void)setObject:(id)object forKey:(NSString *)key; + +/*! + @abstract Unsets a key on the object. + + @param key The key. + */ +- (void)removeObjectForKey:(NSString *)key; + +/*! + @abstract Returns the value associated with a given key. + + @discussion This method enables usage of literal syntax on `PFObject`. + E.g. `NSString *value = object[@"key"];` + + @param key The key for which to return the corresponding value. + + @see objectForKey: + */ +- (PF_NULLABLE_S id)objectForKeyedSubscript:(NSString *)key; + +/*! + @abstract Returns the value associated with a given key. + + @discussion This method enables usage of literal syntax on `PFObject`. + E.g. `object[@"key"] = @"value";` + + @param object The object for `key`. A strong reference to the object is maintained by PFObject. + Raises an `NSInvalidArgumentException` if `object` is `nil`. + If you need to represent a `nil` value - use `NSNull`. + @param key The key for `object`. + Raises an `NSInvalidArgumentException` if `key` is `nil`. + + @see setObject:forKey: + */ +- (void)setObject:(id)object forKeyedSubscript:(NSString *)key; + +/*! + @abstract Returns the relation object associated with the given key. + + @param key The key that the relation is associated with. + */ +- (PFRelation *)relationForKey:(NSString *)key; + +/*! + @abstract Returns the relation object associated with the given key. + + @param key The key that the relation is associated with. + + @deprecated Please use `[PFObject relationForKey:]` instead. + */ +- (PFRelation *)relationforKey:(NSString *)key PARSE_DEPRECATED("Please use -relationForKey: instead."); + +/*! + @abstract Clears any changes to this object made since the last call to save and sets it back to the server state. + */ +- (void)revert; + +/*! + @abstract Clears any changes to this object's key that were done after last successful save and sets it back to the + server state. + + @param key The key to revert changes for. + */ +- (void)revertObjectForKey:(NSString *)key; + +///-------------------------------------- +/// @name Array Accessors +///-------------------------------------- + +/*! + @abstract Adds an object to the end of the array associated with a given key. + + @param object The object to add. + @param key The key. + */ +- (void)addObject:(id)object forKey:(NSString *)key; + +/*! + @abstract Adds the objects contained in another array to the end of the array associated with a given key. + + @param objects The array of objects to add. + @param key The key. + */ +- (void)addObjectsFromArray:(NSArray *)objects forKey:(NSString *)key; + +/*! + @abstract Adds an object to the array associated with a given key, only if it is not already present in the array. + + @discussion The position of the insert is not guaranteed. + + @param object The object to add. + @param key The key. + */ +- (void)addUniqueObject:(id)object forKey:(NSString *)key; + +/*! + @abstract Adds the objects contained in another array to the array associated with a given key, + only adding elements which are not already present in the array. + + @dicsussion The position of the insert is not guaranteed. + + @param objects The array of objects to add. + @param key The key. + */ +- (void)addUniqueObjectsFromArray:(NSArray *)objects forKey:(NSString *)key; + +/*! + @abstract Removes all occurrences of an object from the array associated with a given key. + + @param object The object to remove. + @param key The key. + */ +- (void)removeObject:(id)object forKey:(NSString *)key; + +/*! + @abstract Removes all occurrences of the objects contained in another array from the array associated with a given key. + + @param objects The array of objects to remove. + @param key The key. + */ +- (void)removeObjectsInArray:(NSArray *)objects forKey:(NSString *)key; + +///-------------------------------------- +/// @name Increment +///-------------------------------------- + +/*! + @abstract Increments the given key by `1`. + + @param key The key. + */ +- (void)incrementKey:(NSString *)key; + +/*! + @abstract Increments the given key by a number. + + @param key The key. + @param amount The amount to increment. + */ +- (void)incrementKey:(NSString *)key byAmount:(NSNumber *)amount; + +///-------------------------------------- +/// @name Saving Objects +///-------------------------------------- + +/*! + @abstract *Synchronously* saves the `PFObject`. + + @returns Returns whether the save succeeded. + */ +- (BOOL)save PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* saves the `PFObject` and sets an error if it occurs. + + @param error Pointer to an NSError that will be set if necessary. + + @returns Returns whether the save succeeded. + */ +- (BOOL)save:(NSError **)error; + +/*! + @abstract Saves the `PFObject` *asynchronously*. + + @returns The task that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSNumber *)*)saveInBackground; + +/*! + @abstract Saves the `PFObject` *asynchronously* and executes the given callback block. + + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ +- (void)saveInBackgroundWithBlock:(PF_NULLABLE PFBooleanResultBlock)block; + +/* + @abstract Saves the `PFObject` asynchronously and calls the given callback. + + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ +- (void)saveInBackgroundWithTarget:(PF_NULLABLE_S id)target selector:(PF_NULLABLE_S SEL)selector; + +/*! + @abstract Saves this object to the server at some unspecified time in the future, + even if Parse is currently inaccessible. + + @discussion Use this when you may not have a solid network connection, and don't need to know when the save completes. + If there is some problem with the object such that it can't be saved, it will be silently discarded. If the save + completes successfully while the object is still in memory, then callback will be called. + + Objects saved with this method will be stored locally in an on-disk cache until they can be delivered to Parse. + They will be sent immediately if possible. Otherwise, they will be sent the next time a network connection is + available. Objects saved this way will persist even after the app is closed, in which case they will be sent the + next time the app is opened. If more than 10MB of data is waiting to be sent, subsequent calls to + will cause old saves to be silently discarded until the connection can be re-established, and the queued objects + can be saved. + + @returns The task that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSNumber *)*)saveEventually PF_WATCH_UNAVAILABLE; + +/*! + @abstract Saves this object to the server at some unspecified time in the future, + even if Parse is currently inaccessible. + + @discussion Use this when you may not have a solid network connection, and don't need to know when the save completes. + If there is some problem with the object such that it can't be saved, it will be silently discarded. If the save + completes successfully while the object is still in memory, then callback will be called. + + Objects saved with this method will be stored locally in an on-disk cache until they can be delivered to Parse. + They will be sent immediately if possible. Otherwise, they will be sent the next time a network connection is + available. Objects saved this way will persist even after the app is closed, in which case they will be sent the + next time the app is opened. If more than 10MB of data is waiting to be sent, subsequent calls to + will cause old saves to be silently discarded until the connection can be re-established, and the queued objects + can be saved. + + @param callback The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ +- (void)saveEventually:(PF_NULLABLE PFBooleanResultBlock)callback PF_WATCH_UNAVAILABLE; + +///-------------------------------------- +/// @name Saving Many Objects +///-------------------------------------- + +/*! + @abstract Saves a collection of objects *synchronously all at once. + + @param objects The array of objects to save. + + @returns Returns whether the save succeeded. + */ ++ (BOOL)saveAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Saves a collection of objects *synchronously* all at once and sets an error if necessary. + + @param objects The array of objects to save. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the save succeeded. + */ ++ (BOOL)saveAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects error:(NSError **)error; + +/*! + @abstract Saves a collection of objects all at once *asynchronously*. + + @param objects The array of objects to save. + + @returns The task that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)saveAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects; + +/*! + @abstract Saves a collection of objects all at once `asynchronously` and executes the block when done. + + @param objects The array of objects to save. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ ++ (void)saveAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + block:(PF_NULLABLE PFBooleanResultBlock)block; + +/* + @abstract Saves a collection of objects all at once *asynchronously* and calls a callback when done. + + @param objects The array of objects to save. + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)number error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ ++ (void)saveAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Deleting Many Objects +///-------------------------------------- + +/*! + @abstract *Synchronously* deletes a collection of objects all at once. + + @param objects The array of objects to delete. + + @returns Returns whether the delete succeeded. + */ ++ (BOOL)deleteAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* deletes a collection of objects all at once and sets an error if necessary. + + @param objects The array of objects to delete. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the delete succeeded. + */ ++ (BOOL)deleteAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects error:(NSError **)error; + +/*! + @abstract Deletes a collection of objects all at once asynchronously. + @param objects The array of objects to delete. + @returns The task that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)deleteAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects; + +/*! + @abstract Deletes a collection of objects all at once *asynchronously* and executes the block when done. + + @param objects The array of objects to delete. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ ++ (void)deleteAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + block:(PF_NULLABLE PFBooleanResultBlock)block; + +/* + @abstract Deletes a collection of objects all at once *asynchronously* and calls a callback when done. + + @param objects The array of objects to delete. + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)number error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ ++ (void)deleteAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Getting an Object +///-------------------------------------- + +/*! + @abstract Gets whether the `PFObject` has been fetched. + + @returns `YES` if the PFObject is new or has been fetched or refreshed, otherwise `NO`. + */ +- (BOOL)isDataAvailable; + +#if PARSE_IOS_ONLY + +/*! + @abstract Refreshes the PFObject with the current data from the server. + + @deprecated Please use `-fetch` instead. + */ +- (PF_NULLABLE instancetype)refresh PF_SWIFT_UNAVAILABLE PARSE_DEPRECATED("Please use `-fetch` instead."); + +/*! + @abstract *Synchronously* refreshes the `PFObject` with the current data from the server and sets an error if it occurs. + + @param error Pointer to an `NSError` that will be set if necessary. + + @deprecated Please use `-fetch:` instead. + */ +- (PF_NULLABLE instancetype)refresh:(NSError **)error PARSE_DEPRECATED("Please use `-fetch:` instead."); + +/*! + @abstract *Asynchronously* refreshes the `PFObject` and executes the given callback block. + + @param block The block to execute. + The block should have the following argument signature: `^(PFObject *object, NSError *error)` + + @deprecated Please use `-fetchInBackgroundWithBlock:` instead. + */ +- (void)refreshInBackgroundWithBlock:(PF_NULLABLE PFObjectResultBlock)block PARSE_DEPRECATED("Please use `-fetchInBackgroundWithBlock:` instead."); + +/* + @abstract *Asynchronously* refreshes the `PFObject` and calls the given callback. + + @param target The target on which the selector will be called. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(PFObject *)refreshedObject error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `refreshedObject` will be the `PFObject` with the refreshed data. + + @deprecated Please use `fetchInBackgroundWithTarget:selector:` instead. + */ +- (void)refreshInBackgroundWithTarget:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector PARSE_DEPRECATED("Please use `fetchInBackgroundWithTarget:selector:` instead."); + +#endif + +/*! + @abstract *Synchronously* fetches the PFObject with the current data from the server. + */ +- (PF_NULLABLE instancetype)fetch PF_SWIFT_UNAVAILABLE; +/*! + @abstract *Synchronously* fetches the PFObject with the current data from the server and sets an error if it occurs. + + @param error Pointer to an `NSError` that will be set if necessary. + */ +- (PF_NULLABLE instancetype)fetch:(NSError **)error; + +/*! + @abstract *Synchronously* fetches the `PFObject` data from the server if is `NO`. + */ +- (PF_NULLABLE instancetype)fetchIfNeeded PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* fetches the `PFObject` data from the server if is `NO`. + + @param error Pointer to an `NSError` that will be set if necessary. + */ +- (PF_NULLABLE instancetype)fetchIfNeeded:(NSError **)error; + +/*! + @abstract Fetches the `PFObject` *asynchronously* and sets it as a result for the task. + + @returns The task that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(__kindof PFObject *)*)fetchInBackground; + +/*! + @abstract Fetches the PFObject *asynchronously* and executes the given callback block. + + @param block The block to execute. + It should have the following argument signature: `^(PFObject *object, NSError *error)`. + */ +- (void)fetchInBackgroundWithBlock:(PF_NULLABLE PFObjectResultBlock)block; + +/* + @abstract Fetches the `PFObject *asynchronously* and calls the given callback. + + @param target The target on which the selector will be called. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(PFObject *)refreshedObject error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `refreshedObject` will be the `PFObject` with the refreshed data. + */ +- (void)fetchInBackgroundWithTarget:(PF_NULLABLE_S id)target selector:(PF_NULLABLE_S SEL)selector; + +/*! + @abstract Fetches the `PFObject` data *asynchronously* if isDataAvailable is `NO`, + then sets it as a result for the task. + + @returns The task that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(__kindof PFObject *)*)fetchIfNeededInBackground; + +/*! + @abstract Fetches the `PFObject` data *asynchronously* if is `NO`, then calls the callback block. + + @param block The block to execute. + It should have the following argument signature: `^(PFObject *object, NSError *error)`. + */ +- (void)fetchIfNeededInBackgroundWithBlock:(PF_NULLABLE PFObjectResultBlock)block; + +/* + @abstract Fetches the PFObject's data asynchronously if isDataAvailable is false, then calls the callback. + + @param target The target on which the selector will be called. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(PFObject *)fetchedObject error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `refreshedObject` will be the `PFObject` with the refreshed data. + */ +- (void)fetchIfNeededInBackgroundWithTarget:(PF_NULLABLE_S id)target selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Getting Many Objects +///-------------------------------------- + +/*! + @abstract *Synchronously* fetches all of the `PFObject` objects with the current data from the server. + + @param objects The list of objects to fetch. + */ ++ (PF_NULLABLE NSArray PF_GENERIC(__kindof PFObject *)*)fetchAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* fetches all of the `PFObject` objects with the current data from the server + and sets an error if it occurs. + + @param objects The list of objects to fetch. + @param error Pointer to an `NSError` that will be set if necessary. + */ ++ (PF_NULLABLE NSArray PF_GENERIC(__kindof PFObject *)*)fetchAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + error:(NSError **)error; + +/*! + @abstract *Synchronously* fetches all of the `PFObject` objects with the current data from the server. + @param objects The list of objects to fetch. + */ ++ (PF_NULLABLE NSArray PF_GENERIC(__kindof PFObject *)*)fetchAllIfNeeded:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* fetches all of the `PFObject` objects with the current data from the server + and sets an error if it occurs. + + @param objects The list of objects to fetch. + @param error Pointer to an `NSError` that will be set if necessary. + */ ++ (PF_NULLABLE NSArray PF_GENERIC(__kindof PFObject *)*)fetchAllIfNeeded:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + error:(NSError **)error; + +/*! + @abstract Fetches all of the `PFObject` objects with the current data from the server *asynchronously*. + + @param objects The list of objects to fetch. + + @returns The task that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSArray<__kindof PFObject *> *)*)fetchAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects; + +/*! + @abstract Fetches all of the `PFObject` objects with the current data from the server *asynchronously* + and calls the given block. + + @param objects The list of objects to fetch. + @param block The block to execute. + It should have the following argument signature: `^(NSArray *objects, NSError *error)`. + */ ++ (void)fetchAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + block:(PF_NULLABLE PFArrayResultBlock)block; + +/* + @abstract Fetches all of the `PFObject` objects with the current data from the server *asynchronously* + and calls the given callback. + + @param objects The list of objects to fetch. + @param target The target on which the selector will be called. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSArray *)fetchedObjects error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `fetchedObjects` will the array of `PFObject` objects that were fetched. + */ ++ (void)fetchAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +/*! + @abstract Fetches all of the `PFObject` objects with the current data from the server *asynchronously*. + + @param objects The list of objects to fetch. + + @returns The task that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSArray<__kindof PFObject *> *)*)fetchAllIfNeededInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects; + +/*! + @abstract Fetches all of the PFObjects with the current data from the server *asynchronously* + and calls the given block. + + @param objects The list of objects to fetch. + @param block The block to execute. + It should have the following argument signature: `^(NSArray *objects, NSError *error)`. + */ ++ (void)fetchAllIfNeededInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + block:(PF_NULLABLE PFArrayResultBlock)block; + +/* + @abstract Fetches all of the PFObjects with the current data from the server *asynchronously* + and calls the given callback. + + @param objects The list of objects to fetch. + @param target The target on which the selector will be called. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSArray *)fetchedObjects error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `fetchedObjects` will the array of `PFObject` objects that were fetched. + */ ++ (void)fetchAllIfNeededInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Fetching From Local Datastore +///-------------------------------------- + +/*! + @abstract *Synchronously* loads data from the local datastore into this object, + if it has not been fetched from the server already. + */ +- (PF_NULLABLE instancetype)fetchFromLocalDatastore PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* loads data from the local datastore into this object, if it has not been fetched + from the server already. + + @discussion If the object is not stored in the local datastore, this `error` will be set to + return kPFErrorCacheMiss. + + @param error Pointer to an `NSError` that will be set if necessary. + */ +- (PF_NULLABLE instancetype)fetchFromLocalDatastore:(NSError **)error; + +/*! + @abstract *Asynchronously* loads data from the local datastore into this object, + if it has not been fetched from the server already. + + @returns The task that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(__kindof PFObject *)*)fetchFromLocalDatastoreInBackground; + +/*! + @abstract *Asynchronously* loads data from the local datastore into this object, + if it has not been fetched from the server already. + + @param block The block to execute. + It should have the following argument signature: `^(PFObject *object, NSError *error)`. + */ +- (void)fetchFromLocalDatastoreInBackgroundWithBlock:(PF_NULLABLE PFObjectResultBlock)block; + +///-------------------------------------- +/// @name Deleting an Object +///-------------------------------------- + +/*! + @abstract *Synchronously* deletes the `PFObject`. + + @returns Returns whether the delete succeeded. + */ +- (BOOL)delete PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* deletes the `PFObject` and sets an error if it occurs. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the delete succeeded. + */ +- (BOOL)delete:(NSError **)error; + +/*! + @abstract Deletes the `PFObject` *asynchronously*. + + @returns The task that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSNumber *)*)deleteInBackground; + +/*! + @abstract Deletes the `PFObject` *asynchronously* and executes the given callback block. + + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ +- (void)deleteInBackgroundWithBlock:(PF_NULLABLE PFBooleanResultBlock)block; + +/* + @abstract Deletes the `PFObject` *asynchronously* and calls the given callback. + + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ +- (void)deleteInBackgroundWithTarget:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +/*! + @abstract Deletes this object from the server at some unspecified time in the future, + even if Parse is currently inaccessible. + + @discussion Use this when you may not have a solid network connection, + and don't need to know when the delete completes. If there is some problem with the object + such that it can't be deleted, the request will be silently discarded. + + Delete instructions made with this method will be stored locally in an on-disk cache until they can be transmitted + to Parse. They will be sent immediately if possible. Otherwise, they will be sent the next time a network connection + is available. Delete requests will persist even after the app is closed, in which case they will be sent the + next time the app is opened. If more than 10MB of or commands are waiting + to be sent, subsequent calls to or will cause old requests to be silently discarded + until the connection can be re-established, and the queued requests can go through. + + @returns The task that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSNumber *)*)deleteEventually PF_WATCH_UNAVAILABLE; + +///-------------------------------------- +/// @name Dirtiness +///-------------------------------------- + +/*! + @abstract Gets whether any key-value pair in this object (or its children) + has been added/updated/removed and not saved yet. + + @returns Returns whether this object has been altered and not saved yet. + */ +- (BOOL)isDirty; + +/*! + @abstract Get whether a value associated with a key has been added/updated/removed and not saved yet. + + @param key The key to check for + + @returns Returns whether this key has been altered and not saved yet. + */ +- (BOOL)isDirtyForKey:(NSString *)key; + +///-------------------------------------- +/// @name Pinning +///-------------------------------------- + +/*! + @abstract *Synchronously* stores the object and every object it points to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + <[PFObject objectWithoutDataWithClassName:objectId:]> and then call on it. + + @returns Returns whether the pin succeeded. + + @see unpin: + @see PFObjectDefaultPin + */ +- (BOOL)pin PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* stores the object and every object it points to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + <[PFObject objectWithoutDataWithClassName:objectId:]> and then call on it. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the pin succeeded. + + @see unpin: + @see PFObjectDefaultPin + */ +- (BOOL)pin:(NSError **)error; + +/*! + @abstract *Synchronously* stores the object and every object it points to in the local datastore, recursively. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + <[PFObject objectWithoutDataWithClassName:objectId:]> and then call on it. + + @param name The name of the pin. + + @returns Returns whether the pin succeeded. + + @see unpinWithName: + */ +- (BOOL)pinWithName:(NSString *)name PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* stores the object and every object it points to in the local datastore, recursively. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + <[PFObject objectWithoutDataWithClassName:objectId:]> and then call on it. + + @param name The name of the pin. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the pin succeeded. + + @see unpinWithName: + */ +- (BOOL)pinWithName:(NSString *)name + error:(NSError **)error; + +/*! + @abstract *Asynchronously* stores the object and every object it points to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + <[PFObject objectWithoutDataWithClassName:objectId:]> and then call on it. + + @returns The task that encapsulates the work being done. + + @see unpinInBackground + @see PFObjectDefaultPin + */ +- (BFTask PF_GENERIC(NSNumber *)*)pinInBackground; + +/*! + @abstract *Asynchronously* stores the object and every object it points to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + <[PFObject objectWithoutDataWithClassName:objectId:]> and then call on it. + + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + + @see unpinInBackgroundWithBlock: + @see PFObjectDefaultPin + */ +- (void)pinInBackgroundWithBlock:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract *Asynchronously* stores the object and every object it points to in the local datastore, recursively. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + <[PFObject objectWithoutDataWithClassName:objectId:]> and then call on it. + + @param name The name of the pin. + + @returns The task that encapsulates the work being done. + + @see unpinInBackgroundWithName: + */ +- (BFTask PF_GENERIC(NSNumber *)*)pinInBackgroundWithName:(NSString *)name; + +/*! + @abstract *Asynchronously* stores the object and every object it points to in the local datastore, recursively. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + <[PFObject objectWithoutDataWithClassName:objectId:]> and then call on it. + + @param name The name of the pin. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + + @see unpinInBackgroundWithName:block: + */ +- (void)pinInBackgroundWithName:(NSString *)name block:(PF_NULLABLE PFBooleanResultBlock)block; + +///-------------------------------------- +/// @name Pinning Many Objects +///-------------------------------------- + +/*! + @abstract *Synchronously* stores the objects and every object they point to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + `[PFObject objectWithoutDataWithClassName:objectId:]` and then call `fetchFromLocalDatastore:` on it. + + @param objects The objects to be pinned. + + @returns Returns whether the pin succeeded. + + @see unpinAll: + @see PFObjectDefaultPin + */ ++ (BOOL)pinAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* stores the objects and every object they point to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + `[PFObject objectWithoutDataWithClassName:objectId:]` and then call `fetchFromLocalDatastore:` on it. + + @param objects The objects to be pinned. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the pin succeeded. + + @see unpinAll:error: + @see PFObjectDefaultPin + */ ++ (BOOL)pinAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects error:(NSError **)error; + +/*! + @abstract *Synchronously* stores the objects and every object they point to in the local datastore, recursively. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + `[PFObject objectWithoutDataWithClassName:objectId:]` and then call `fetchFromLocalDatastore:` on it. + + @param objects The objects to be pinned. + @param name The name of the pin. + + @returns Returns whether the pin succeeded. + + @see unpinAll:withName: + */ ++ (BOOL)pinAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects withName:(NSString *)name PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* stores the objects and every object they point to in the local datastore, recursively. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + `[PFObject objectWithoutDataWithClassName:objectId:]` and then call `fetchFromLocalDatastore:` on it. + + @param objects The objects to be pinned. + @param name The name of the pin. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the pin succeeded. + + @see unpinAll:withName:error: + */ ++ (BOOL)pinAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + withName:(NSString *)name + error:(NSError **)error; + +/*! + @abstract *Asynchronously* stores the objects and every object they point to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + `[PFObject objectWithoutDataWithClassName:objectId:]` and then call `fetchFromLocalDatastore:` on it. + + @param objects The objects to be pinned. + + @returns The task that encapsulates the work being done. + + @see unpinAllInBackground: + @see PFObjectDefaultPin + */ ++ (BFTask PF_GENERIC(NSNumber *)*)pinAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects; + +/*! + @abstract *Asynchronously* stores the objects and every object they point to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + `[PFObject objectWithoutDataWithClassName:objectId:]` and then call `fetchFromLocalDatastore:` on it. + + @param objects The objects to be pinned. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + + @see unpinAllInBackground:block: + @see PFObjectDefaultPin + */ ++ (void)pinAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects block:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract *Asynchronously* stores the objects and every object they point to in the local datastore, recursively. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + `[PFObject objectWithoutDataWithClassName:objectId:]` and then call `fetchFromLocalDatastore:` on it. + + @param objects The objects to be pinned. + @param name The name of the pin. + + @returns The task that encapsulates the work being done. + + @see unpinAllInBackground:withName: + */ ++ (BFTask PF_GENERIC(NSNumber *)*)pinAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects withName:(NSString *)name; + +/*! + @abstract *Asynchronously* stores the objects and every object they point to in the local datastore, recursively. + + @discussion If those other objects have not been fetched from Parse, they will not be stored. However, + if they have changed data, all the changes will be retained. To get the objects back later, you can + use a that uses <[PFQuery fromLocalDatastore]>, or you can create an unfetched pointer with + `[PFObject objectWithoutDataWithClassName:objectId:]` and then call `fetchFromLocalDatastore:` on it. + + @param objects The objects to be pinned. + @param name The name of the pin. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + + @see unpinAllInBackground:withName:block: + */ ++ (void)pinAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + withName:(NSString *)name + block:(PF_NULLABLE PFBooleanResultBlock)block; + +///-------------------------------------- +/// @name Unpinning +///-------------------------------------- + +/*! + @abstract *Synchronously* removes the object and every object it points to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @returns Returns whether the unpin succeeded. + + @see pin: + @see PFObjectDefaultPin + */ +- (BOOL)unpin PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* removes the object and every object it points to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the unpin succeeded. + + @see pin: + @see PFObjectDefaultPin + */ +- (BOOL)unpin:(NSError **)error; + +/*! + @abstract *Synchronously* removes the object and every object it points to in the local datastore, recursively. + + @param name The name of the pin. + + @returns Returns whether the unpin succeeded. + + @see pinWithName: + */ +- (BOOL)unpinWithName:(NSString *)name PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* removes the object and every object it points to in the local datastore, recursively. + + @param name The name of the pin. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the unpin succeeded. + + @see pinWithName:error: + */ +- (BOOL)unpinWithName:(NSString *)name + error:(NSError **)error; + +/*! + @abstract *Asynchronously* removes the object and every object it points to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @returns The task that encapsulates the work being done. + + @see pinInBackground + @see PFObjectDefaultPin + */ +- (BFTask PF_GENERIC(NSNumber *)*)unpinInBackground; + +/*! + @abstract *Asynchronously* removes the object and every object it points to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + + @see pinInBackgroundWithBlock: + @see PFObjectDefaultPin + */ +- (void)unpinInBackgroundWithBlock:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract *Asynchronously* removes the object and every object it points to in the local datastore, recursively. + + @param name The name of the pin. + + @returns The task that encapsulates the work being done. + + @see pinInBackgroundWithName: + */ +- (BFTask PF_GENERIC(NSNumber *)*)unpinInBackgroundWithName:(NSString *)name; + +/*! + @abstract *Asynchronously* removes the object and every object it points to in the local datastore, recursively. + + @param name The name of the pin. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + + @see pinInBackgroundWithName:block: + */ +- (void)unpinInBackgroundWithName:(NSString *)name block:(PF_NULLABLE PFBooleanResultBlock)block; + +///-------------------------------------- +/// @name Unpinning Many Objects +///-------------------------------------- + +/*! + @abstract *Synchronously* removes all objects in the local datastore + using a default pin name: `PFObjectDefaultPin`. + + @returns Returns whether the unpin succeeded. + + @see PFObjectDefaultPin + */ ++ (BOOL)unpinAllObjects PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* removes all objects in the local datastore + using a default pin name: `PFObjectDefaultPin`. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the unpin succeeded. + + @see PFObjectDefaultPin + */ ++ (BOOL)unpinAllObjects:(NSError **)error; + +/*! + @abstract *Synchronously* removes all objects with the specified pin name. + + @param name The name of the pin. + + @returns Returns whether the unpin succeeded. + */ ++ (BOOL)unpinAllObjectsWithName:(NSString *)name PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* removes all objects with the specified pin name. + + @param name The name of the pin. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the unpin succeeded. + */ ++ (BOOL)unpinAllObjectsWithName:(NSString *)name + error:(NSError **)error; + +/*! + @abstract *Asynchronously* removes all objects in the local datastore + using a default pin name: `PFObjectDefaultPin`. + + @returns The task that encapsulates the work being done. + + @see PFObjectDefaultPin + */ ++ (BFTask PF_GENERIC(NSNumber *)*)unpinAllObjectsInBackground; + +/*! + @abstract *Asynchronously* removes all objects in the local datastore + using a default pin name: `PFObjectDefaultPin`. + + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + + @see PFObjectDefaultPin + */ ++ (void)unpinAllObjectsInBackgroundWithBlock:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract *Asynchronously* removes all objects with the specified pin name. + + @param name The name of the pin. + + @returns The task that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)unpinAllObjectsInBackgroundWithName:(NSString *)name; + +/*! + @abstract *Asynchronously* removes all objects with the specified pin name. + + @param name The name of the pin. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ ++ (void)unpinAllObjectsInBackgroundWithName:(NSString *)name block:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract *Synchronously* removes the objects and every object they point to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @param objects The objects. + + @returns Returns whether the unpin succeeded. + + @see pinAll: + @see PFObjectDefaultPin + */ ++ (BOOL)unpinAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* removes the objects and every object they point to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @param objects The objects. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the unpin succeeded. + + @see pinAll:error: + @see PFObjectDefaultPin + */ ++ (BOOL)unpinAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects error:(NSError **)error; + +/*! + @abstract *Synchronously* removes the objects and every object they point to in the local datastore, recursively. + + @param objects The objects. + @param name The name of the pin. + + @returns Returns whether the unpin succeeded. + + @see pinAll:withName: + */ ++ (BOOL)unpinAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects withName:(NSString *)name PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* removes the objects and every object they point to in the local datastore, recursively. + + @param objects The objects. + @param name The name of the pin. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the unpin succeeded. + + @see pinAll:withName:error: + */ ++ (BOOL)unpinAll:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + withName:(NSString *)name + error:(NSError **)error; + +/*! + @abstract *Asynchronously* removes the objects and every object they point to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @param objects The objects. + + @returns The task that encapsulates the work being done. + + @see pinAllInBackground: + @see PFObjectDefaultPin + */ ++ (BFTask PF_GENERIC(NSNumber *)*)unpinAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects; + +/*! + @abstract *Asynchronously* removes the objects and every object they point to in the local datastore, recursively, + using a default pin name: `PFObjectDefaultPin`. + + @param objects The objects. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + + @see pinAllInBackground:block: + @see PFObjectDefaultPin + */ ++ (void)unpinAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects block:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract *Asynchronously* removes the objects and every object they point to in the local datastore, recursively. + + @param objects The objects. + @param name The name of the pin. + + @returns The task that encapsulates the work being done. + + @see pinAllInBackground:withName: + */ ++ (BFTask PF_GENERIC(NSNumber *)*)unpinAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects withName:(NSString *)name; + +/*! + @abstract *Asynchronously* removes the objects and every object they point to in the local datastore, recursively. + + @param objects The objects. + @param name The name of the pin. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + + @see pinAllInBackground:withName:block: + */ ++ (void)unpinAllInBackground:(PF_NULLABLE NSArray PF_GENERIC(PFObject *)*)objects + withName:(NSString *)name + block:(PF_NULLABLE PFBooleanResultBlock)block; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFProduct.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFProduct.h new file mode 100644 index 0000000..4b42b1a --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFProduct.h @@ -0,0 +1,72 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import +#import +#import +#import + +PF_WATCH_UNAVAILABLE_WARNING + +PF_ASSUME_NONNULL_BEGIN + +/*! + The `PFProduct` class represents an in-app purchase product on the Parse server. + By default, products can only be created via the Data Browser. Saving a `PFProduct` will result in error. + However, the products' metadata information can be queried and viewed. + + This class is currently for iOS only. + */ +PF_WATCH_UNAVAILABLE @interface PFProduct : PFObject + +///-------------------------------------- +/// @name Product-specific Properties +///-------------------------------------- + +/*! + @abstract The product identifier of the product. + + @discussion This should match the product identifier in iTunes Connect exactly. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSString *productIdentifier; + +/*! + @abstract The icon of the product. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong) PFFile *icon; + +/*! + @abstract The title of the product. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSString *title; + +/*! + @abstract The subtitle of the product. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSString *subtitle; + +/*! + @abstract The order in which the product information is displayed in . + + @discussion The product with a smaller order is displayed earlier in the . + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSNumber *order; + +/*! + @abstract The name of the associated download. + + @discussion If there is no downloadable asset, it should be `nil`. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong, readonly) NSString *downloadName; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFPurchase.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFPurchase.h new file mode 100644 index 0000000..b681cc1 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFPurchase.h @@ -0,0 +1,98 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import +#import + +#import +#import + +@class PFProduct; + +PF_ASSUME_NONNULL_BEGIN + +typedef void (^PFPurchaseProductObservationBlock)(SKPaymentTransaction *transaction); +typedef void (^PFPurchaseBuyProductResultBlock)(NSError *PF_NULLABLE_S error); +typedef void (^PFPurchaseDownloadAssetResultBlock)(NSString *PF_NULLABLE_S filePath, NSError *PF_NULLABLE_S error); + +/*! + `PFPurchase` provides a set of APIs for working with in-app purchases. + + This class is currently for iOS only. + */ +@interface PFPurchase : NSObject + +/*! + @abstract Add application logic block which is run when buying a product. + + @discussion This method should be called once for each product, and should be called before + calling . All invocations to should happen within + the same method, and on the main thread. It is recommended to place all invocations of this method + in `application:didFinishLaunchingWithOptions:`. + + @param productIdentifier the product identifier + @param block The block to be run when buying a product. + */ ++ (void)addObserverForProduct:(NSString *)productIdentifier block:(PFPurchaseProductObservationBlock)block; + +/*! + @abstract *Asynchronously* initiates the purchase for the product. + + @param productIdentifier the product identifier + @param block the completion block. + */ ++ (void)buyProduct:(NSString *)productIdentifier block:(PFPurchaseBuyProductResultBlock)block; + +/*! + @abstract *Asynchronously* download the purchased asset, which is stored on Parse's server. + + @discussion Parse verifies the receipt with Apple and delivers the content only if the receipt is valid. + + @param transaction the transaction, which contains the receipt. + @param completion the completion block. + */ ++ (void)downloadAssetForTransaction:(SKPaymentTransaction *)transaction + completion:(PFPurchaseDownloadAssetResultBlock)completion; + +/*! + @abstract *Asynchronously* download the purchased asset, which is stored on Parse's server. + + @discussion Parse verifies the receipt with Apple and delivers the content only if the receipt is valid. + + @param transaction the transaction, which contains the receipt. + @param completion the completion block. + @param progress the progress block, which is called multiple times to reveal progress of the download. + */ ++ (void)downloadAssetForTransaction:(SKPaymentTransaction *)transaction + completion:(PFPurchaseDownloadAssetResultBlock)completion + progress:(PF_NULLABLE PFProgressBlock)progress; + +/*! + @abstract *Asynchronously* restore completed transactions for the current user. + + @discussion Only nonconsumable purchases are restored. If observers for the products have been added before + calling this method, invoking the method reruns the application logic associated with the purchase. + + @warning This method is only important to developers who want to preserve purchase states across + different installations of the same app. + */ ++ (void)restore; + +/*! + @abstract Returns a content path of the asset of a product, if it was purchased and downloaded. + + @discussion To download and verify purchases use . + + @warning This method will return `nil`, if the purchase wasn't verified or if the asset was not downloaded. + */ ++ (PF_NULLABLE NSString *)assetContentPathForProduct:(PFProduct *)product; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFPush.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFPush.h new file mode 100644 index 0000000..a421113 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFPush.h @@ -0,0 +1,535 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +#import +#import + +PF_TV_UNAVAILABLE_WARNING +PF_WATCH_UNAVAILABLE_WARNING + +@class PFQuery PF_GENERIC(PFGenericObject : PFObject *); + +PF_ASSUME_NONNULL_BEGIN + +/*! + The `PFPush` class defines a push notification that can be sent from a client device. + + The preferred way of modifying or retrieving channel subscriptions is to use + the class, instead of the class methods in `PFPush`. + */ +PF_TV_UNAVAILABLE PF_WATCH_UNAVAILABLE @interface PFPush : NSObject + +///-------------------------------------- +/// @name Creating a Push Notification +///-------------------------------------- + ++ (instancetype)push; + +///-------------------------------------- +/// @name Configuring a Push Notification +///-------------------------------------- + +/*! + @abstract Sets the channel on which this push notification will be sent. + + @param channel The channel to set for this push. + The channel name must start with a letter and contain only letters, numbers, dashes, and underscores. + */ +- (void)setChannel:(PF_NULLABLE NSString *)channel; + +/*! + @abstract Sets the array of channels on which this push notification will be sent. + + @param channels The array of channels to set for this push. + Each channel name must start with a letter and contain only letters, numbers, dashes, and underscores. + */ +- (void)setChannels:(PF_NULLABLE NSArray PF_GENERIC(NSString *) *)channels; + +/*! + @abstract Sets an installation query to which this push notification will be sent. + + @discussion The query should be created via <[PFInstallation query]> and should not specify a skip, limit, or order. + + @param query The installation query to set for this push. + */ +- (void)setQuery:(PF_NULLABLE PFQuery PF_GENERIC(PFInstallation *) *)query; + +/*! + @abstract Sets an alert message for this push notification. + + @warning This will overwrite any data specified in setData. + + @param message The message to send in this push. + */ +- (void)setMessage:(PF_NULLABLE NSString *)message; + +/*! + @abstract Sets an arbitrary data payload for this push notification. + + @discussion See the guide for information about the dictionary structure. + + @warning This will overwrite any data specified in setMessage. + + @param data The data to send in this push. + */ +- (void)setData:(PF_NULLABLE NSDictionary *)data; + +/*! + @abstract Sets whether this push will go to Android devices. + + @param pushToAndroid Whether this push will go to Android devices. + + @deprecated Please use a `[PFInstallation query]` with a constraint on deviceType instead. + */ +- (void)setPushToAndroid:(BOOL)pushToAndroid PARSE_DEPRECATED("Please use a [PFInstallation query] with a constraint on deviceType. This method is deprecated and won't do anything."); + +/*! + @abstract Sets whether this push will go to iOS devices. + + @param pushToIOS Whether this push will go to iOS devices. + + @deprecated Please use a `[PFInstallation query]` with a constraint on deviceType instead. + */ +- (void)setPushToIOS:(BOOL)pushToIOS PARSE_DEPRECATED("Please use a [PFInstallation query] with a constraint on deviceType. This method is deprecated and won't do anything."); + +/*! + @abstract Sets the expiration time for this notification. + + @discussion The notification will be sent to devices which are either online + at the time the notification is sent, or which come online before the expiration time is reached. + Because device clocks are not guaranteed to be accurate, + most applications should instead use . + + @see expireAfterTimeInterval: + + @param date The time at which the notification should expire. + */ +- (void)expireAtDate:(PF_NULLABLE NSDate *)date; + +/*! + @abstract Sets the time interval after which this notification should expire. + + @discussion This notification will be sent to devices which are either online at + the time the notification is sent, or which come online within the given + time interval of the notification being received by Parse's server. + An interval which is less than or equal to zero indicates that the + message should only be sent to devices which are currently online. + + @param timeInterval The interval after which the notification should expire. + */ +- (void)expireAfterTimeInterval:(NSTimeInterval)timeInterval; + +/*! + @abstract Clears both expiration values, indicating that the notification should never expire. + */ +- (void)clearExpiration; + +///-------------------------------------- +/// @name Sending Push Notifications +///-------------------------------------- + +/*! + @abstract *Synchronously* send a push message to a channel. + + @param channel The channel to send to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + @param message The message to send. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the send succeeded. + */ ++ (BOOL)sendPushMessageToChannel:(NSString *)channel + withMessage:(NSString *)message + error:(NSError **)error; + +/*! + @abstract *Asynchronously* send a push message to a channel. + + @param channel The channel to send to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + @param message The message to send. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)sendPushMessageToChannelInBackground:(NSString *)channel + withMessage:(NSString *)message; + +/*! + @abstract *Asynchronously* sends a push message to a channel and calls the given block. + + @param channel The channel to send to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + @param message The message to send. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)` + */ ++ (void)sendPushMessageToChannelInBackground:(NSString *)channel + withMessage:(NSString *)message + block:(PF_NULLABLE PFBooleanResultBlock)block; + +/* + @abstract *Asynchronously* send a push message to a channel. + + @param channel The channel to send to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + @param message The message to send. + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ ++ (void)sendPushMessageToChannelInBackground:(NSString *)channel + withMessage:(NSString *)message + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +/*! + @abstract Send a push message to a query. + + @param query The query to send to. The query must be a query created with <[PFInstallation query]>. + @param message The message to send. + @param error Pointer to an NSError that will be set if necessary. + + @returns Returns whether the send succeeded. + */ ++ (BOOL)sendPushMessageToQuery:(PFQuery PF_GENERIC(PFInstallation *) *)query + withMessage:(NSString *)message + error:(NSError **)error; + +/*! + @abstract *Asynchronously* send a push message to a query. + + @param query The query to send to. The query must be a query created with <[PFInstallation query]>. + @param message The message to send. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)sendPushMessageToQueryInBackground:(PFQuery PF_GENERIC(PFInstallation *) *)query + withMessage:(NSString *)message; + +/*! + @abstract *Asynchronously* sends a push message to a query and calls the given block. + + @param query The query to send to. The query must be a PFInstallation query + created with [PFInstallation query]. + @param message The message to send. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)` + */ ++ (void)sendPushMessageToQueryInBackground:(PFQuery PF_GENERIC(PFInstallation *) *)query + withMessage:(NSString *)message + block:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract *Synchronously* send this push message. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the send succeeded. + */ +- (BOOL)sendPush:(NSError **)error; + +/*! + @abstract *Asynchronously* send this push message. + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSNumber *)*)sendPushInBackground; + +/*! + @abstract *Asynchronously* send this push message and executes the given callback block. + + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ +- (void)sendPushInBackgroundWithBlock:(PF_NULLABLE PFBooleanResultBlock)block; + +/* + @abstract *Asynchronously* send this push message and calls the given callback. + + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ +- (void)sendPushInBackgroundWithTarget:(PF_NULLABLE_S id)target selector:(PF_NULLABLE_S SEL)selector; + +/*! + @abstract *Synchronously* send a push message with arbitrary data to a channel. + + @discussion See the guide for information about the dictionary structure. + + @param channel The channel to send to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + @param data The data to send. + @param error Pointer to an NSError that will be set if necessary. + + @returns Returns whether the send succeeded. + */ ++ (BOOL)sendPushDataToChannel:(NSString *)channel + withData:(NSDictionary *)data + error:(NSError **)error; + +/*! + @abstract *Asynchronously* send a push message with arbitrary data to a channel. + + @discussion See the guide for information about the dictionary structure. + + @param channel The channel to send to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + @param data The data to send. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)sendPushDataToChannelInBackground:(NSString *)channel + withData:(NSDictionary *)data; + +/*! + @abstract Asynchronously sends a push message with arbitrary data to a channel and calls the given block. + + @discussion See the guide for information about the dictionary structure. + + @param channel The channel to send to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + @param data The data to send. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ ++ (void)sendPushDataToChannelInBackground:(NSString *)channel + withData:(NSDictionary *)data + block:(PF_NULLABLE PFBooleanResultBlock)block; + +/* + @abstract *Asynchronously* send a push message with arbitrary data to a channel. + + @discussion See the guide for information about the dictionary structure. + + @param channel The channel to send to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + @param data The data to send. + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ ++ (void)sendPushDataToChannelInBackground:(NSString *)channel + withData:(NSDictionary *)data + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +/*! + @abstract *Synchronously* send a push message with arbitrary data to a query. + + @discussion See the guide for information about the dictionary structure. + + @param query The query to send to. The query must be a query + created with <[PFInstallation query]>. + @param data The data to send. + @param error Pointer to an NSError that will be set if necessary. + + @returns Returns whether the send succeeded. + */ ++ (BOOL)sendPushDataToQuery:(PFQuery PF_GENERIC(PFInstallation *) *)query + withData:(NSDictionary *)data + error:(NSError **)error; + +/*! + @abstract Asynchronously send a push message with arbitrary data to a query. + + @discussion See the guide for information about the dictionary structure. + + @param query The query to send to. The query must be a query + created with <[PFInstallation query]>. + @param data The data to send. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)sendPushDataToQueryInBackground:(PFQuery PF_GENERIC(PFInstallation *) *)query + withData:(NSDictionary *)data; + +/*! + @abstract *Asynchronously* sends a push message with arbitrary data to a query and calls the given block. + + @discussion See the guide for information about the dictionary structure. + + @param query The query to send to. The query must be a query + created with <[PFInstallation query]>. + @param data The data to send. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ ++ (void)sendPushDataToQueryInBackground:(PFQuery PF_GENERIC(PFInstallation *) *)query + withData:(NSDictionary *)data + block:(PF_NULLABLE PFBooleanResultBlock)block; + +///-------------------------------------- +/// @name Handling Notifications +///-------------------------------------- + +/*! + @abstract A default handler for push notifications while the app is active that + could be used to mimic the behavior of iOS push notifications while the app is backgrounded or not running. + + @discussion Call this from `application:didReceiveRemoteNotification:`. + If push has a dictionary containing loc-key and loc-args in the alert, + we support up to 10 items in loc-args (`NSRangeException` if limit exceeded). + + @warning This method is available only on iOS. + + @param userInfo The userInfo dictionary you get in `appplication:didReceiveRemoteNotification:`. + */ ++ (void)handlePush:(PF_NULLABLE NSDictionary *)userInfo NS_AVAILABLE_IOS(3_0) PF_EXTENSION_UNAVAILABLE(""); + +///-------------------------------------- +/// @name Managing Channel Subscriptions +///-------------------------------------- + +/*! + @abstract Store the device token locally for push notifications. + + @discussion Usually called from you main app delegate's `didRegisterForRemoteNotificationsWithDeviceToken:`. + + @param deviceToken Either as an `NSData` straight from `application:didRegisterForRemoteNotificationsWithDeviceToken:` + or as an `NSString` if you converted it yourself. + */ ++ (void)storeDeviceToken:(id)deviceToken; + +/*! + @abstract *Synchronously* get all the channels that this device is subscribed to. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns an `NSSet` containing all the channel names this device is subscribed to. + */ ++ (PF_NULLABLE NSSet *)getSubscribedChannels:(NSError **)error; + +/*! + @abstract *Asynchronously* get all the channels that this device is subscribed to. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSSet *)*)getSubscribedChannelsInBackground; + +/*! + @abstract *Asynchronously* get all the channels that this device is subscribed to. + @param block The block to execute. + It should have the following argument signature: `^(NSSet *channels, NSError *error)`. + */ ++ (void)getSubscribedChannelsInBackgroundWithBlock:(PFSetResultBlock)block; + +/* + @abstract *Asynchronously* get all the channels that this device is subscribed to. + + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSSet *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + */ ++ (void)getSubscribedChannelsInBackgroundWithTarget:(id)target + selector:(SEL)selector; + +/*! + @abstract *Synchrnously* subscribes the device to a channel of push notifications. + + @param channel The channel to subscribe to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the subscribe succeeded. + */ ++ (BOOL)subscribeToChannel:(NSString *)channel error:(NSError **)error; + +/*! + @abstract *Asynchronously* subscribes the device to a channel of push notifications. + + @param channel The channel to subscribe to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)subscribeToChannelInBackground:(NSString *)channel; + +/*! + @abstract *Asynchronously* subscribes the device to a channel of push notifications and calls the given block. + + @param channel The channel to subscribe to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)` + */ ++ (void)subscribeToChannelInBackground:(NSString *)channel + block:(PF_NULLABLE PFBooleanResultBlock)block; + +/* + @abstract *Asynchronously* subscribes the device to a channel of push notifications and calls the given callback. + + @param channel The channel to subscribe to. The channel name must start with + a letter and contain only letters, numbers, dashes, and underscores. + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ ++ (void)subscribeToChannelInBackground:(NSString *)channel + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +/*! + @abstract *Synchronously* unsubscribes the device to a channel of push notifications. + + @param channel The channel to unsubscribe from. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns whether the unsubscribe succeeded. + */ ++ (BOOL)unsubscribeFromChannel:(NSString *)channel error:(NSError **)error; + +/*! + @abstract *Asynchronously* unsubscribes the device from a channel of push notifications. + + @param channel The channel to unsubscribe from. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)unsubscribeFromChannelInBackground:(NSString *)channel; + +/*! + @abstract *Asynchronously* unsubscribes the device from a channel of push notifications and calls the given block. + + @param channel The channel to unsubscribe from. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ ++ (void)unsubscribeFromChannelInBackground:(NSString *)channel + block:(PF_NULLABLE PFBooleanResultBlock)block; + +/* + @abstract *Asynchronously* unsubscribes the device from a channel of push notifications and calls the given callback. + + @param channel The channel to unsubscribe from. + @param target The object to call selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ ++ (void)unsubscribeFromChannelInBackground:(NSString *)channel + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFQuery.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFQuery.h new file mode 100644 index 0000000..08aca7c --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFQuery.h @@ -0,0 +1,892 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +#import +#import +#import +#import + +PF_ASSUME_NONNULL_BEGIN + +/*! + The `PFQuery` class defines a query that is used to query for s. + */ +@interface PFQuery PF_GENERIC(PFGenericObject : PFObject *) : NSObject + +///-------------------------------------- +/// @name Blocks +///-------------------------------------- + +typedef void (^PFQueryArrayResultBlock)(NSArray PF_GENERIC(PFGenericObject) * PF_NULLABLE_S objects, NSError * PF_NULLABLE_S error); + +///-------------------------------------- +/// @name Creating a Query for a Class +///-------------------------------------- + +/*! + @abstract Initializes the query with a class name. + + @param className The class name. + */ +- (instancetype)initWithClassName:(NSString *)className; + +/*! + @abstract Returns a `PFQuery` for a given class. + + @param className The class to query on. + + @returns A `PFQuery` object. + */ ++ (instancetype)queryWithClassName:(NSString *)className; + +/*! + @abstract Creates a PFQuery with the constraints given by predicate. + + @discussion The following types of predicates are supported: + + - Simple comparisons such as `=`, `!=`, `<`, `>`, `<=`, `>=`, and `BETWEEN` with a key and a constant. + - Containment predicates, such as `x IN {1, 2, 3}`. + - Key-existence predicates, such as `x IN SELF`. + - BEGINSWITH expressions. + - Compound predicates with `AND`, `OR`, and `NOT`. + - SubQueries with `key IN %@`, subquery. + + The following types of predicates are NOT supported: + + - Aggregate operations, such as `ANY`, `SOME`, `ALL`, or `NONE`. + - Regular expressions, such as `LIKE`, `MATCHES`, `CONTAINS`, or `ENDSWITH`. + - Predicates comparing one key to another. + - Complex predicates with many ORed clauses. + + @param className The class to query on. + @param predicate The predicate to create conditions from. + */ ++ (instancetype)queryWithClassName:(NSString *)className predicate:(PF_NULLABLE NSPredicate *)predicate; + +/*! + The class name to query for. + */ +@property (nonatomic, strong) NSString *parseClassName; + +///-------------------------------------- +/// @name Adding Basic Constraints +///-------------------------------------- + +/*! + @abstract Make the query include PFObjects that have a reference stored at the provided key. + + @discussion This has an effect similar to a join. You can use dot notation to specify which fields in + the included object are also fetch. + + @param key The key to load child s for. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)includeKey:(NSString *)key; + +/*! + @abstract Make the query restrict the fields of the returned s to include only the provided keys. + + @discussion If this is called multiple times, then all of the keys specified in each of the calls will be included. + + @param keys The keys to include in the result. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)selectKeys:(NSArray PF_GENERIC(NSString *) *)keys; + +/*! + @abstract Add a constraint that requires a particular key exists. + + @param key The key that should exist. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKeyExists:(NSString *)key; + +/*! + @abstract Add a constraint that requires a key not exist. + + @param key The key that should not exist. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKeyDoesNotExist:(NSString *)key; + +/*! + @abstract Add a constraint to the query that requires a particular key's object to be equal to the provided object. + + @param key The key to be constrained. + @param object The object that must be equalled. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key equalTo:(id)object; + +/*! + @abstract Add a constraint to the query that requires a particular key's object to be less than the provided object. + + @param key The key to be constrained. + @param object The object that provides an upper bound. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key lessThan:(id)object; + +/*! + @abstract Add a constraint to the query that requires a particular key's object + to be less than or equal to the provided object. + + @param key The key to be constrained. + @param object The object that must be equalled. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key lessThanOrEqualTo:(id)object; + +/*! + @abstract Add a constraint to the query that requires a particular key's object + to be greater than the provided object. + + @param key The key to be constrained. + @param object The object that must be equalled. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key greaterThan:(id)object; + +/*! + @abstract Add a constraint to the query that requires a particular key's + object to be greater than or equal to the provided object. + + @param key The key to be constrained. + @param object The object that must be equalled. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key greaterThanOrEqualTo:(id)object; + +/*! + @abstract Add a constraint to the query that requires a particular key's object + to be not equal to the provided object. + + @param key The key to be constrained. + @param object The object that must not be equalled. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key notEqualTo:(id)object; + +/*! + @abstract Add a constraint to the query that requires a particular key's object + to be contained in the provided array. + + @param key The key to be constrained. + @param array The possible values for the key's object. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key containedIn:(NSArray *)array; + +/*! + @abstract Add a constraint to the query that requires a particular key's object + not be contained in the provided array. + + @param key The key to be constrained. + @param array The list of values the key's object should not be. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key notContainedIn:(NSArray *)array; + +/*! + @abstract Add a constraint to the query that requires a particular key's array + contains every element of the provided array. + + @param key The key to be constrained. + @param array The array of values to search for. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key containsAllObjectsInArray:(NSArray *)array; + +///-------------------------------------- +/// @name Adding Location Constraints +///-------------------------------------- + +/*! + @abstract Add a constraint to the query that requires a particular key's coordinates (specified via ) + be near a reference point. + + @discussion Distance is calculated based on angular distance on a sphere. Results will be sorted by distance + from reference point. + + @param key The key to be constrained. + @param geopoint The reference point represented as a . + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key nearGeoPoint:(PFGeoPoint *)geopoint; + +/*! + @abstract Add a constraint to the query that requires a particular key's coordinates (specified via ) + be near a reference point and within the maximum distance specified (in miles). + + @discussion Distance is calculated based on a spherical coordinate system. + Results will be sorted by distance (nearest to farthest) from the reference point. + + @param key The key to be constrained. + @param geopoint The reference point represented as a . + @param maxDistance Maximum distance in miles. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key + nearGeoPoint:(PFGeoPoint *)geopoint + withinMiles:(double)maxDistance; + +/*! + @abstract Add a constraint to the query that requires a particular key's coordinates (specified via ) + be near a reference point and within the maximum distance specified (in kilometers). + + @discussion Distance is calculated based on a spherical coordinate system. + Results will be sorted by distance (nearest to farthest) from the reference point. + + @param key The key to be constrained. + @param geopoint The reference point represented as a . + @param maxDistance Maximum distance in kilometers. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key + nearGeoPoint:(PFGeoPoint *)geopoint + withinKilometers:(double)maxDistance; + +/*! + Add a constraint to the query that requires a particular key's coordinates (specified via ) be near + a reference point and within the maximum distance specified (in radians). Distance is calculated based on + angular distance on a sphere. Results will be sorted by distance (nearest to farthest) from the reference point. + + @param key The key to be constrained. + @param geopoint The reference point as a . + @param maxDistance Maximum distance in radians. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key + nearGeoPoint:(PFGeoPoint *)geopoint + withinRadians:(double)maxDistance; + +/*! + @abstract Add a constraint to the query that requires a particular key's coordinates (specified via ) be + contained within a given rectangular geographic bounding box. + + @param key The key to be constrained. + @param southwest The lower-left inclusive corner of the box. + @param northeast The upper-right inclusive corner of the box. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key withinGeoBoxFromSouthwest:(PFGeoPoint *)southwest toNortheast:(PFGeoPoint *)northeast; + +///-------------------------------------- +/// @name Adding String Constraints +///-------------------------------------- + +/*! + @abstract Add a regular expression constraint for finding string values that match the provided regular expression. + + @warning This may be slow for large datasets. + + @param key The key that the string to match is stored in. + @param regex The regular expression pattern to match. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key matchesRegex:(NSString *)regex; + +/*! + @abstract Add a regular expression constraint for finding string values that match the provided regular expression. + + @warning This may be slow for large datasets. + + @param key The key that the string to match is stored in. + @param regex The regular expression pattern to match. + @param modifiers Any of the following supported PCRE modifiers: + - `i` - Case insensitive search + - `m` - Search across multiple lines of input + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key + matchesRegex:(NSString *)regex + modifiers:(PF_NULLABLE NSString *)modifiers; + +/*! + @abstract Add a constraint for finding string values that contain a provided substring. + + @warning This will be slow for large datasets. + + @param key The key that the string to match is stored in. + @param substring The substring that the value must contain. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key containsString:(PF_NULLABLE NSString *)substring; + +/*! + @abstract Add a constraint for finding string values that start with a provided prefix. + + @discussion This will use smart indexing, so it will be fast for large datasets. + + @param key The key that the string to match is stored in. + @param prefix The substring that the value must start with. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key hasPrefix:(PF_NULLABLE NSString *)prefix; + +/*! + @abstract Add a constraint for finding string values that end with a provided suffix. + + @warning This will be slow for large datasets. + + @param key The key that the string to match is stored in. + @param suffix The substring that the value must end with. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key hasSuffix:(PF_NULLABLE NSString *)suffix; + +///-------------------------------------- +/// @name Adding Subqueries +///-------------------------------------- + +/*! + Returns a `PFQuery` that is the `or` of the passed in queries. + + @param queries The list of queries to or together. + + @returns An instance of `PFQuery` that is the `or` of the passed in queries. + */ ++ (instancetype)orQueryWithSubqueries:(NSArray PF_GENERIC(PFQuery *) *)queries; + +/*! + @abstract Adds a constraint that requires that a key's value matches a value in another key + in objects returned by a sub query. + + @param key The key that the value is stored. + @param otherKey The key in objects in the returned by the sub query whose value should match. + @param query The query to run. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key + matchesKey:(NSString *)otherKey + inQuery:(PFQuery *)query; + +/*! + @abstract Adds a constraint that requires that a key's value `NOT` match a value in another key + in objects returned by a sub query. + + @param key The key that the value is stored. + @param otherKey The key in objects in the returned by the sub query whose value should match. + @param query The query to run. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key + doesNotMatchKey:(NSString *)otherKey + inQuery:(PFQuery *)query; + +/*! + @abstract Add a constraint that requires that a key's value matches a `PFQuery` constraint. + + @warning This only works where the key's values are s or arrays of s. + + @param key The key that the value is stored in + @param query The query the value should match + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key matchesQuery:(PFQuery *)query; + +/*! + @abstract Add a constraint that requires that a key's value to not match a `PFQuery` constraint. + + @warning This only works where the key's values are s or arrays of s. + + @param key The key that the value is stored in + @param query The query the value should not match + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)whereKey:(NSString *)key doesNotMatchQuery:(PFQuery *)query; + +///-------------------------------------- +/// @name Sorting +///-------------------------------------- + +/*! + @abstract Sort the results in *ascending* order with the given key. + + @param key The key to order by. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)orderByAscending:(NSString *)key; + +/*! + @abstract Additionally sort in *ascending* order by the given key. + + @discussion The previous keys provided will precedence over this key. + + @param key The key to order by. + */ +- (instancetype)addAscendingOrder:(NSString *)key; + +/*! + @abstract Sort the results in *descending* order with the given key. + + @param key The key to order by. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)orderByDescending:(NSString *)key; + +/*! + @abstract Additionally sort in *descending* order by the given key. + + @discussion The previous keys provided will precedence over this key. + + @param key The key to order by. + */ +- (instancetype)addDescendingOrder:(NSString *)key; + +/*! + @abstract Sort the results using a given sort descriptor. + + @warning If a `sortDescriptor` has custom `selector` or `comparator` - they aren't going to be used. + + @param sortDescriptor The `NSSortDescriptor` to use to sort the results of the query. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)orderBySortDescriptor:(NSSortDescriptor *)sortDescriptor; + +/*! + @abstract Sort the results using a given array of sort descriptors. + + @warning If a `sortDescriptor` has custom `selector` or `comparator` - they aren't going to be used. + + @param sortDescriptors An array of `NSSortDescriptor` objects to use to sort the results of the query. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)orderBySortDescriptors:(PF_NULLABLE NSArray PF_GENERIC(NSSortDescriptor *) *)sortDescriptors; + +///-------------------------------------- +/// @name Getting Objects by ID +///-------------------------------------- + +/*! + @abstract Returns a with a given class and id. + + @param objectClass The class name for the object that is being requested. + @param objectId The id of the object that is being requested. + + @returns The if found. Returns `nil` if the object isn't found, or if there was an error. + */ ++ (PF_NULLABLE PFGenericObject)getObjectOfClass:(NSString *)objectClass + objectId:(NSString *)objectId PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Returns a with a given class and id and sets an error if necessary. + + @param objectClass The class name for the object that is being requested. + @param objectId The id of the object that is being requested. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns The if found. Returns `nil` if the object isn't found, or if there was an `error`. + */ ++ (PF_NULLABLE PFGenericObject)getObjectOfClass:(NSString *)objectClass + objectId:(NSString *)objectId + error:(NSError **)error; + +/*! + @abstract Returns a with the given id. + + @warning This method mutates the query. + It will reset limit to `1`, skip to `0` and remove all conditions, leaving only `objectId`. + + @param objectId The id of the object that is being requested. + + @returns The if found. Returns nil if the object isn't found, or if there was an error. + */ +- (PF_NULLABLE PFGenericObject)getObjectWithId:(NSString *)objectId PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Returns a with the given id and sets an error if necessary. + + @warning This method mutates the query. + It will reset limit to `1`, skip to `0` and remove all conditions, leaving only `objectId`. + + @param objectId The id of the object that is being requested. + @param error Pointer to an `NSError` that will be set if necessary. + + @returns The if found. Returns nil if the object isn't found, or if there was an error. + */ +- (PF_NULLABLE PFGenericObject)getObjectWithId:(NSString *)objectId error:(NSError **)error; + +/*! + @abstract Gets a asynchronously and calls the given block with the result. + + @warning This method mutates the query. + It will reset limit to `1`, skip to `0` and remove all conditions, leaving only `objectId`. + + @param objectId The id of the object that is being requested. + + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(PFGenericObject) *)getObjectInBackgroundWithId:(NSString *)objectId; + +/*! + @abstract Gets a asynchronously and calls the given block with the result. + + @warning This method mutates the query. + It will reset limit to `1`, skip to `0` and remove all conditions, leaving only `objectId`. + + @param objectId The id of the object that is being requested. + @param block The block to execute. + The block should have the following argument signature: `^(NSArray *object, NSError *error)` + */ +- (void)getObjectInBackgroundWithId:(NSString *)objectId + block:(PF_NULLABLE void(^)(PFGenericObject PF_NULLABLE_S object, NSError *PF_NULLABLE_S error))block; + +/* + @abstract Gets a asynchronously. + + This mutates the PFQuery. It will reset limit to `1`, skip to `0` and remove all conditions, leaving only `objectId`. + + @param objectId The id of the object being requested. + @param target The target for the callback selector. + @param selector The selector for the callback. + It should have the following signature: `(void)callbackWithResult:(id)result error:(NSError *)error`. + Result will be `nil` if error is set and vice versa. + */ +- (void)getObjectInBackgroundWithId:(NSString *)objectId + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Getting User Objects +///-------------------------------------- + +/*! + @abstract Returns a with a given id. + + @param objectId The id of the object that is being requested. + + @returns The PFUser if found. Returns nil if the object isn't found, or if there was an error. + */ ++ (PF_NULLABLE PFUser *)getUserObjectWithId:(NSString *)objectId PF_SWIFT_UNAVAILABLE; + +/*! + Returns a PFUser with a given class and id and sets an error if necessary. + @param objectId The id of the object that is being requested. + @param error Pointer to an NSError that will be set if necessary. + @result The PFUser if found. Returns nil if the object isn't found, or if there was an error. + */ ++ (PF_NULLABLE PFUser *)getUserObjectWithId:(NSString *)objectId error:(NSError **)error; + +/*! + @deprecated Please use [PFUser query] instead. + */ ++ (instancetype)queryForUser PARSE_DEPRECATED("Use [PFUser query] instead."); + +///-------------------------------------- +/// @name Getting all Matches for a Query +///-------------------------------------- + +/*! + @abstract Finds objects *synchronously* based on the constructed query. + + @returns Returns an array of objects that were found. + */ +- (PF_NULLABLE NSArray PF_GENERIC(PFGenericObject) *)findObjects PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Finds objects *synchronously* based on the constructed query and sets an error if there was one. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns an array of objects that were found. + */ +- (PF_NULLABLE NSArray PF_GENERIC(PFGenericObject) *)findObjects:(NSError **)error; + +/*! + @abstract Finds objects *asynchronously* and sets the `NSArray` of objects as a result of the task. + + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSArray *)*)findObjectsInBackground; + +/*! + @abstract Finds objects *asynchronously* and calls the given block with the results. + + @param block The block to execute. + It should have the following argument signature: `^(NSArray *objects, NSError *error)` + */ +- (void)findObjectsInBackgroundWithBlock:(PF_NULLABLE PFQueryArrayResultBlock)block; + +/* + @abstract Finds objects *asynchronously* and calls the given callback with the results. + + @param target The object to call the selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(id)result error:(NSError *)error`. + Result will be `nil` if error is set and vice versa. + */ +- (void)findObjectsInBackgroundWithTarget:(PF_NULLABLE_S id)target selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Getting the First Match in a Query +///-------------------------------------- + +/*! + @abstract Gets an object *synchronously* based on the constructed query. + + @warning This method mutates the query. It will reset the limit to `1`. + + @returns Returns a , or `nil` if none was found. + */ +- (PF_NULLABLE PFGenericObject)getFirstObject PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Gets an object *synchronously* based on the constructed query and sets an error if any occurred. + + @warning This method mutates the query. It will reset the limit to `1`. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns a , or `nil` if none was found. + */ +- (PF_NULLABLE PFGenericObject)getFirstObject:(NSError **)error; + +/*! + @abstract Gets an object *asynchronously* and sets it as a result of the task. + + @warning This method mutates the query. It will reset the limit to `1`. + + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(PFGenericObject) *)getFirstObjectInBackground; + +/*! + @abstract Gets an object *asynchronously* and calls the given block with the result. + + @warning This method mutates the query. It will reset the limit to `1`. + + @param block The block to execute. + It should have the following argument signature: `^(PFObject *object, NSError *error)`. + `result` will be `nil` if `error` is set OR no object was found matching the query. + `error` will be `nil` if `result` is set OR if the query succeeded, but found no results. + */ +- (void)getFirstObjectInBackgroundWithBlock:(PF_NULLABLE void(^)(PFGenericObject PF_NULLABLE_S object, NSError *PF_NULLABLE_S error))block; + +/* + @abstract Gets an object *asynchronously* and calls the given callback with the results. + + @warning This method mutates the query. It will reset the limit to `1`. + + @param target The object to call the selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(PFObject *)result error:(NSError *)error`. + `result` will be `nil` if `error` is set OR no object was found matching the query. + `error` will be `nil` if `result` is set OR if the query succeeded, but found no results. + */ +- (void)getFirstObjectInBackgroundWithTarget:(PF_NULLABLE_S id)target selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Counting the Matches in a Query +///-------------------------------------- + +/*! + @abstract Counts objects *synchronously* based on the constructed query. + + @returns Returns the number of objects that match the query, or `-1` if there is an error. + */ +- (NSInteger)countObjects PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Counts objects *synchronously* based on the constructed query and sets an error if there was one. + + @param error Pointer to an `NSError` that will be set if necessary. + + @returns Returns the number of objects that match the query, or `-1` if there is an error. + */ +- (NSInteger)countObjects:(NSError **)error; + +/*! + @abstract Counts objects *asynchronously* and sets `NSNumber` with count as a result of the task. + + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSNumber *)*)countObjectsInBackground; + +/*! + @abstract Counts objects *asynchronously* and calls the given block with the counts. + + @param block The block to execute. + It should have the following argument signature: `^(int count, NSError *error)` + */ +- (void)countObjectsInBackgroundWithBlock:(PF_NULLABLE PFIntegerResultBlock)block; + +/* + @abstract Counts objects *asynchronously* and calls the given callback with the count. + + @param target The object to call the selector on. + @param selector The selector to call. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)result error:(NSError *)error`. + */ +- (void)countObjectsInBackgroundWithTarget:(PF_NULLABLE_S id)target selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Cancelling a Query +///-------------------------------------- + +/*! + @abstract Cancels the current network request (if any). Ensures that callbacks won't be called. + */ +- (void)cancel; + +///-------------------------------------- +/// @name Paginating Results +///-------------------------------------- + +/*! + @abstract A limit on the number of objects to return. The default limit is `100`, with a + maximum of 1000 results being returned at a time. + + @warning If you are calling `findObjects` with `limit = 1`, you may find it easier to use `getFirst` instead. + */ +@property (nonatomic, assign) NSInteger limit; + +/*! + @abstract The number of objects to skip before returning any. + */ +@property (nonatomic, assign) NSInteger skip; + +///-------------------------------------- +/// @name Controlling Caching Behavior +///-------------------------------------- + +/*! + @abstract The cache policy to use for requests. + + Not allowed when Pinning is enabled. + + @see fromLocalDatastore + @see fromPin + @see fromPinWithName: + */ +@property (nonatomic, assign) PFCachePolicy cachePolicy; + +/*! + @abstract The age after which a cached value will be ignored + */ +@property (nonatomic, assign) NSTimeInterval maxCacheAge; + +/*! + @abstract Returns whether there is a cached result for this query. + + @result `YES` if there is a cached result for this query, otherwise `NO`. + */ +- (BOOL)hasCachedResult; + +/*! + @abstract Clears the cached result for this query. If there is no cached result, this is a noop. + */ +- (void)clearCachedResult; + +/*! + @abstract Clears the cached results for all queries. + */ ++ (void)clearAllCachedResults; + +///-------------------------------------- +/// @name Query Source +///-------------------------------------- + +/*! + @abstract Change the source of this query to all pinned objects. + + @warning Requires Local Datastore to be enabled. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + + @see cachePolicy + */ +- (instancetype)fromLocalDatastore; + +/*! + @abstract Change the source of this query to the default group of pinned objects. + + @warning Requires Local Datastore to be enabled. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + + @see PFObjectDefaultPin + @see cachePolicy + */ +- (instancetype)fromPin; + +/*! + @abstract Change the source of this query to a specific group of pinned objects. + + @warning Requires Local Datastore to be enabled. + + @param name The pinned group. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + + @see PFObjectDefaultPin + @see cachePolicy + */ +- (instancetype)fromPinWithName:(PF_NULLABLE NSString *)name; + +/*! + @abstract Ignore ACLs when querying from the Local Datastore. + + @discussion This is particularly useful when querying for objects with Role based ACLs set on them. + + @warning Requires Local Datastore to be enabled. + + @returns The same instance of `PFQuery` as the receiver. This allows method chaining. + */ +- (instancetype)ignoreACLs; + +///-------------------------------------- +/// @name Advanced Settings +///-------------------------------------- + +/*! + @abstract Whether or not performance tracing should be done on the query. + + @warning This should not be set to `YES` in most cases. + */ +@property (nonatomic, assign) BOOL trace; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFRelation.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFRelation.h new file mode 100644 index 0000000..af64ff9 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFRelation.h @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import +#import +#import + +PF_ASSUME_NONNULL_BEGIN + +/*! + The `PFRelation` class that is used to access all of the children of a many-to-many relationship. + Each instance of `PFRelation` is associated with a particular parent object and key. + */ +@interface PFRelation : NSObject + +/*! + @abstract The name of the class of the target child objects. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, copy) NSString *targetClass; + +///-------------------------------------- +/// @name Accessing Objects +///-------------------------------------- + +/*! + @abstract Returns a object that can be used to get objects in this relation. + */ +- (PF_NULLABLE PFQuery *)query; + +///-------------------------------------- +/// @name Modifying Relations +///-------------------------------------- + +/*! + @abstract Adds a relation to the passed in object. + + @param object A object to add relation to. + */ +- (void)addObject:(PFObject *)object; + +/*! + @abstract Removes a relation to the passed in object. + + @param object A object to add relation to. + */ +- (void)removeObject:(PFObject *)object; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFRole.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFRole.h new file mode 100644 index 0000000..18d21c9 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFRole.h @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import +#import +#import + +PF_ASSUME_NONNULL_BEGIN + +/*! + The `PFRole` class represents a Role on the Parse server. + `PFRoles` represent groupings of objects for the purposes of granting permissions + (e.g. specifying a for a ). + Roles are specified by their sets of child users and child roles, + all of which are granted any permissions that the parent role has. + + Roles must have a name (which cannot be changed after creation of the role), and must specify an ACL. + */ +@interface PFRole : PFObject + +///-------------------------------------- +/// @name Creating a New Role +///-------------------------------------- + +/*! + @abstract Constructs a new `PFRole` with the given name. + If no default ACL has been specified, you must provide an ACL for the role. + + @param name The name of the Role to create. + */ +- (instancetype)initWithName:(NSString *)name; + +/*! + @abstract Constructs a new `PFRole` with the given name. + + @param name The name of the Role to create. + @param acl The ACL for this role. Roles must have an ACL. + */ +- (instancetype)initWithName:(NSString *)name acl:(PF_NULLABLE PFACL *)acl; + +/*! + @abstract Constructs a new `PFRole` with the given name. + + @discussion If no default ACL has been specified, you must provide an ACL for the role. + + @param name The name of the Role to create. + */ ++ (instancetype)roleWithName:(NSString *)name; + +/*! + @abstract Constructs a new `PFRole` with the given name. + + @param name The name of the Role to create. + @param acl The ACL for this role. Roles must have an ACL. + */ ++ (instancetype)roleWithName:(NSString *)name acl:(PF_NULLABLE PFACL *)acl; + +///-------------------------------------- +/// @name Role-specific Properties +///-------------------------------------- + +/*! + @abstract Gets or sets the name for a role. + + @discussion This value must be set before the role has been saved to the server, + and cannot be set once the role has been saved. + + @warning A role's name can only contain alphanumeric characters, `_`, `-`, and spaces. + */ +@property (nonatomic, copy) NSString *name; + +/*! + @abstract Gets the for the objects that are direct children of this role. + + @discussion These users are granted any privileges that this role has been granted + (e.g. read or write access through ACLs). You can add or remove users from + the role through this relation. + */ +@property (nonatomic, strong, readonly) PFRelation *users; + +/*! + @abstract Gets the for the `PFRole` objects that are direct children of this role. + + @discussion These roles' users are granted any privileges that this role has been granted + (e.g. read or write access through ACLs). You can add or remove child roles + from this role through this relation. + */ +@property (nonatomic, strong, readonly) PFRelation *roles; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFSession.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFSession.h new file mode 100644 index 0000000..3b5c00c --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFSession.h @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +#import +#import + +PF_ASSUME_NONNULL_BEGIN + +@class PFSession; + +typedef void(^PFSessionResultBlock)(PFSession *PF_NULLABLE_S session, NSError *PF_NULLABLE_S error); + +/*! + `PFSession` is a local representation of a session. + This class is a subclass of a , + and retains the same functionality as any other subclass of . + */ +@interface PFSession : PFObject + +/*! + @abstract The session token string for this session. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, copy, readonly) NSString *sessionToken; + +/*! + *Asynchronously* fetches a `PFSession` object related to the current user. + + @returns A task that is `completed` with an instance of `PFSession` class or is `faulted` if the operation fails. + */ ++ (BFTask PF_GENERIC(PFSession *)*)getCurrentSessionInBackground; + +/*! + *Asynchronously* fetches a `PFSession` object related to the current user. + + @param block The block to execute when the operation completes. + It should have the following argument signature: `^(PFSession *session, NSError *error)`. + */ ++ (void)getCurrentSessionInBackgroundWithBlock:(PF_NULLABLE PFSessionResultBlock)block; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFSubclassing.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFSubclassing.h new file mode 100644 index 0000000..c07743d --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFSubclassing.h @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +@class PFQuery PF_GENERIC(PFGenericObject : PFObject *); + +PF_ASSUME_NONNULL_BEGIN + +/*! + If a subclass of conforms to `PFSubclassing` and calls , + Parse framework will be able to use that class as the native class for a Parse cloud object. + + Classes conforming to this protocol should subclass and + include `PFObject+Subclass.h` in their implementation file. + This ensures the methods in the Subclass category of are exposed in its subclasses only. + */ +@protocol PFSubclassing + +/*! + @abstract Constructs an object of the most specific class known to implement . + + @discussion This method takes care to help subclasses be subclassed themselves. + For example, `[PFUser object]` returns a by default but will return an + object of a registered subclass instead if one is known. + A default implementation is provided by which should always be sufficient. + + @returns Returns the object that is instantiated. + */ ++ (instancetype)object; + +/*! + @abstract Creates a reference to an existing PFObject for use in creating associations between PFObjects. + + @discussion Calling <[PFObject isDataAvailable]> on this object will return `NO` + until <[PFObject fetchIfNeeded]> has been called. No network request will be made. + A default implementation is provided by PFObject which should always be sufficient. + + @param objectId The object id for the referenced object. + + @returns A new without data. + */ ++ (instancetype)objectWithoutDataWithObjectId:(PF_NULLABLE NSString *)objectId; + +/*! + @abstract The name of the class as seen in the REST API. + */ ++ (NSString *)parseClassName; + +/*! + @abstract Create a query which returns objects of this type. + + @discussion A default implementation is provided by which should always be sufficient. + */ ++ (PF_NULLABLE PFQuery *)query; + +/*! + @abstract Returns a query for objects of this type with a given predicate. + + @discussion A default implementation is provided by which should always be sufficient. + + @param predicate The predicate to create conditions from. + + @returns An instance of . + + @see [PFQuery queryWithClassName:predicate:] + */ ++ (PF_NULLABLE PFQuery *)queryWithPredicate:(PF_NULLABLE NSPredicate *)predicate; + +/*! + @abstract Lets Parse know this class should be used to instantiate all objects with class type . + + @warning This method must be called before <[Parse setApplicationId:clientKey:]> + */ ++ (void)registerSubclass; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFUser.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFUser.h new file mode 100644 index 0000000..34340ae --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFUser.h @@ -0,0 +1,519 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +#import +#import +#import + +PF_ASSUME_NONNULL_BEGIN + +typedef void(^PFUserSessionUpgradeResultBlock)(NSError *PF_NULLABLE_S error); +typedef void(^PFUserLogoutResultBlock)(NSError *PF_NULLABLE_S error); + +@class PFQuery PF_GENERIC(PFGenericObject : PFObject *); +@protocol PFUserAuthenticationDelegate; + +/*! + The `PFUser` class is a local representation of a user persisted to the Parse Data. + This class is a subclass of a , and retains the same functionality of a , + but also extends it with various user specific methods, like authentication, signing up, and validation uniqueness. + + Many APIs responsible for linking a `PFUser` with Facebook or Twitter have been deprecated in favor of dedicated + utilities for each social network. See , and for more information. + */ + +@interface PFUser : PFObject + +///-------------------------------------- +/// @name Accessing the Current User +///-------------------------------------- + +/*! + @abstract Gets the currently logged in user from disk and returns an instance of it. + + @returns Returns a `PFUser` that is the currently logged in user. If there is none, returns `nil`. + */ ++ (PF_NULLABLE instancetype)currentUser; + +/*! + @abstract The session token for the `PFUser`. + + @discussion This is set by the server upon successful authentication. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, copy, readonly) NSString *sessionToken; + +/*! + @abstract Whether the `PFUser` was just created from a request. + + @discussion This is only set after a Facebook or Twitter login. + */ +@property (nonatomic, assign, readonly) BOOL isNew; + +/*! + @abstract Whether the user is an authenticated object for the device. + + @discussion An authenticated `PFUser` is one that is obtained via a or method. + An authenticated object is required in order to save (with altered values) or delete it. + + @returns Returns whether the user is authenticated. + */ +- (BOOL)isAuthenticated; + +///-------------------------------------- +/// @name Creating a New User +///-------------------------------------- + +/*! + @abstract Creates a new `PFUser` object. + + @returns Returns a new `PFUser` object. + */ ++ (instancetype)user; + +/*! + @abstract Enables automatic creation of anonymous users. + + @discussion After calling this method, will always have a value. + The user will only be created on the server once the user has been saved, + or once an object with a relation to that user or an ACL that refers to the user has been saved. + + @warning <[PFObject saveEventually]> will not work on if an item being saved has a relation + to an automatic user that has never been saved. + */ ++ (void)enableAutomaticUser; + +/*! + @abstract The username for the `PFUser`. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSString *username; + +/**! + @abstract The password for the `PFUser`. + + @discussion This will not be filled in from the server with the password. + It is only meant to be set. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSString *password; + +/*! + @abstract The email for the `PFUser`. + */ +@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSString *email; + +/*! + @abstract Signs up the user *synchronously*. + + @discussion This will also enforce that the username isn't already taken. + + @warning Make sure that password and username are set before calling this method. + + @returns Returns `YES` if the sign up was successful, otherwise `NO`. + */ +- (BOOL)signUp PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Signs up the user *synchronously*. + + @discussion This will also enforce that the username isn't already taken. + + @warning Make sure that password and username are set before calling this method. + + @param error Error object to set on error. + + @returns Returns whether the sign up was successful. + */ +- (BOOL)signUp:(NSError **)error; + +/*! + @abstract Signs up the user *asynchronously*. + + @discussion This will also enforce that the username isn't already taken. + + @warning Make sure that password and username are set before calling this method. + + @returns The task, that encapsulates the work being done. + */ +- (BFTask PF_GENERIC(NSNumber *)*)signUpInBackground; + +/*! + @abstract Signs up the user *asynchronously*. + + @discussion This will also enforce that the username isn't already taken. + + @warning Make sure that password and username are set before calling this method. + + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ +- (void)signUpInBackgroundWithBlock:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract Signs up the user *asynchronously*. + + @discussion This will also enforce that the username isn't already taken. + + @warning Make sure that password and username are set before calling this method. + + @param target Target object for the selector. + @param selector The selector that will be called when the asynchrounous request is complete. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ +- (void)signUpInBackgroundWithTarget:(PF_NULLABLE_S id)target selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Logging In +///-------------------------------------- + +/*! + @abstract Makes a *synchronous* request to login a user with specified credentials. + + @discussion Returns an instance of the successfully logged in `PFUser`. + This also caches the user locally so that calls to will use the latest logged in user. + + @param username The username of the user. + @param password The password of the user. + + @returns Returns an instance of the `PFUser` on success. + If login failed for either wrong password or wrong username, returns `nil`. + */ ++ (PF_NULLABLE instancetype)logInWithUsername:(NSString *)username + password:(NSString *)password PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Makes a *synchronous* request to login a user with specified credentials. + + @discussion Returns an instance of the successfully logged in `PFUser`. + This also caches the user locally so that calls to will use the latest logged in user. + + @param username The username of the user. + @param password The password of the user. + @param error The error object to set on error. + + @returns Returns an instance of the `PFUser` on success. + If login failed for either wrong password or wrong username, returns `nil`. + */ ++ (PF_NULLABLE instancetype)logInWithUsername:(NSString *)username + password:(NSString *)password + error:(NSError **)error; + +/*! + @abstract Makes an *asynchronous* request to login a user with specified credentials. + + @discussion Returns an instance of the successfully logged in `PFUser`. + This also caches the user locally so that calls to will use the latest logged in user. + + @param username The username of the user. + @param password The password of the user. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(__kindof PFUser *)*)logInWithUsernameInBackground:(NSString *)username + password:(NSString *)password; + +/*! + @abstract Makes an *asynchronous* request to login a user with specified credentials. + + @discussion Returns an instance of the successfully logged in `PFUser`. + This also caches the user locally so that calls to will use the latest logged in user. + + @param username The username of the user. + @param password The password of the user. + @param target Target object for the selector. + @param selector The selector that will be called when the asynchrounous request is complete. + It should have the following signature: `(void)callbackWithUser:(PFUser *)user error:(NSError *)error`. + */ ++ (void)logInWithUsernameInBackground:(NSString *)username + password:(NSString *)password + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +/*! + @abstract Makes an *asynchronous* request to log in a user with specified credentials. + + @discussion Returns an instance of the successfully logged in `PFUser`. + This also caches the user locally so that calls to will use the latest logged in user. + + @param username The username of the user. + @param password The password of the user. + @param block The block to execute. + It should have the following argument signature: `^(PFUser *user, NSError *error)`. + */ ++ (void)logInWithUsernameInBackground:(NSString *)username + password:(NSString *)password + block:(PF_NULLABLE PFUserResultBlock)block; + +///-------------------------------------- +/// @name Becoming a User +///-------------------------------------- + +/*! + @abstract Makes a *synchronous* request to become a user with the given session token. + + @discussion Returns an instance of the successfully logged in `PFUser`. + This also caches the user locally so that calls to will use the latest logged in user. + + @param sessionToken The session token for the user. + + @returns Returns an instance of the `PFUser` on success. + If becoming a user fails due to incorrect token, it returns `nil`. + */ ++ (PF_NULLABLE instancetype)become:(NSString *)sessionToken PF_SWIFT_UNAVAILABLE; + +/*! + @abstract Makes a *synchronous* request to become a user with the given session token. + + @discussion Returns an instance of the successfully logged in `PFUser`. + This will also cache the user locally so that calls to will use the latest logged in user. + + @param sessionToken The session token for the user. + @param error The error object to set on error. + + @returns Returns an instance of the `PFUser` on success. + If becoming a user fails due to incorrect token, it returns `nil`. + */ ++ (PF_NULLABLE instancetype)become:(NSString *)sessionToken error:(NSError **)error; + +/*! + @abstract Makes an *asynchronous* request to become a user with the given session token. + + @discussion Returns an instance of the successfully logged in `PFUser`. + This also caches the user locally so that calls to will use the latest logged in user. + + @param sessionToken The session token for the user. + + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(__kindof PFUser *)*)becomeInBackground:(NSString *)sessionToken; + +/*! + @abstract Makes an *asynchronous* request to become a user with the given session token. + + @discussion Returns an instance of the successfully logged in `PFUser`. This also caches the user locally + so that calls to will use the latest logged in user. + + @param sessionToken The session token for the user. + @param block The block to execute. + The block should have the following argument signature: `^(PFUser *user, NSError *error)`. + */ ++ (void)becomeInBackground:(NSString *)sessionToken block:(PF_NULLABLE PFUserResultBlock)block; + +/*! + @abstract Makes an *asynchronous* request to become a user with the given session token. + + @discussion Returns an instance of the successfully logged in `PFUser`. This also caches the user locally + so that calls to will use the latest logged in user. + + @param sessionToken The session token for the user. + @param target Target object for the selector. + @param selector The selector that will be called when the asynchrounous request is complete. + It should have the following signature: `(void)callbackWithUser:(PFUser *)user error:(NSError *)error`. + */ ++ (void)becomeInBackground:(NSString *)sessionToken + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Revocable Session +///-------------------------------------- + +/*! + @abstract Enables revocable sessions and migrates the currentUser session token to use revocable session if needed. + + @discussion This method is required if you want to use APIs + and your application's 'Require Revocable Session' setting is turned off on `http://parse.com` app settings. + After returned `BFTask` completes - class and APIs will be available for use. + + @returns An instance of `BFTask` that is completed when revocable + sessions are enabled and currentUser token is migrated. + */ ++ (BFTask *)enableRevocableSessionInBackground; + +/*! + @abstract Enables revocable sessions and upgrades the currentUser session token to use revocable session if needed. + + @discussion This method is required if you want to use APIs + and legacy sessions are enabled in your application settings on `http://parse.com/`. + After returned `BFTask` completes - class and APIs will be available for use. + + @param block Block that will be called when revocable sessions are enabled and currentUser token is migrated. + */ ++ (void)enableRevocableSessionInBackgroundWithBlock:(PF_NULLABLE PFUserSessionUpgradeResultBlock)block; + +///-------------------------------------- +/// @name Logging Out +///-------------------------------------- + +/*! + @abstract *Synchronously* logs out the currently logged in user on disk. + */ ++ (void)logOut; + +/*! + @abstract *Asynchronously* logs out the currently logged in user. + + @discussion This will also remove the session from disk, log out of linked services + and all future calls to will return `nil`. This is preferrable to using , + unless your code is already running from a background thread. + + @returns An instance of `BFTask`, that is resolved with `nil` result when logging out completes. + */ ++ (BFTask *)logOutInBackground; + +/*! + @abstract *Asynchronously* logs out the currently logged in user. + + @discussion This will also remove the session from disk, log out of linked services + and all future calls to will return `nil`. This is preferrable to using , + unless your code is already running from a background thread. + + @param block A block that will be called when logging out completes or fails. + */ ++ (void)logOutInBackgroundWithBlock:(PF_NULLABLE PFUserLogoutResultBlock)block; + +///-------------------------------------- +/// @name Requesting a Password Reset +///-------------------------------------- + +/*! + @abstract *Synchronously* Send a password reset request for a specified email. + + @discussion If a user account exists with that email, an email will be sent to that address + with instructions on how to reset their password. + + @param email Email of the account to send a reset password request. + + @returns Returns `YES` if the reset email request is successful. `NO` - if no account was found for the email address. + */ ++ (BOOL)requestPasswordResetForEmail:(NSString *)email PF_SWIFT_UNAVAILABLE; + +/*! + @abstract *Synchronously* send a password reset request for a specified email and sets an error object. + + @discussion If a user account exists with that email, an email will be sent to that address + with instructions on how to reset their password. + + @param email Email of the account to send a reset password request. + @param error Error object to set on error. + @returns Returns `YES` if the reset email request is successful. `NO` - if no account was found for the email address. + */ ++ (BOOL)requestPasswordResetForEmail:(NSString *)email error:(NSError **)error; + +/*! + @abstract Send a password reset request asynchronously for a specified email and sets an + error object. If a user account exists with that email, an email will be sent to + that address with instructions on how to reset their password. + @param email Email of the account to send a reset password request. + @returns The task, that encapsulates the work being done. + */ ++ (BFTask PF_GENERIC(NSNumber *)*)requestPasswordResetForEmailInBackground:(NSString *)email; + +/*! + @abstract Send a password reset request *asynchronously* for a specified email. + + @discussion If a user account exists with that email, an email will be sent to that address + with instructions on how to reset their password. + + @param email Email of the account to send a reset password request. + @param block The block to execute. + It should have the following argument signature: `^(BOOL succeeded, NSError *error)`. + */ ++ (void)requestPasswordResetForEmailInBackground:(NSString *)email + block:(PF_NULLABLE PFBooleanResultBlock)block; + +/*! + @abstract Send a password reset request *asynchronously* for a specified email and sets an error object. + + @discussion If a user account exists with that email, an email will be sent to that address + with instructions on how to reset their password. + + @param email Email of the account to send a reset password request. + @param target Target object for the selector. + @param selector The selector that will be called when the asynchronous request is complete. + It should have the following signature: `(void)callbackWithResult:(NSNumber *)result error:(NSError *)error`. + `error` will be `nil` on success and set if there was an error. + `[result boolValue]` will tell you whether the call succeeded or not. + */ ++ (void)requestPasswordResetForEmailInBackground:(NSString *)email + target:(PF_NULLABLE_S id)target + selector:(PF_NULLABLE_S SEL)selector; + +///-------------------------------------- +/// @name Third-party Authentication +///-------------------------------------- + +/*! + @abstract Registers a third party authentication delegate. + + @note This method shouldn't be invoked directly unless developing a third party authentication library. + @see PFUserAuthenticationDelegate + + @param delegate The third party authenticaiton delegate to be registered. + @param authType The name of the type of third party authentication source. + */ ++ (void)registerAuthenticationDelegate:(id)delegate forAuthType:(NSString *)authType; + +/*! + @abstract Logs in a user with third party authentication credentials. + + @note This method shouldn't be invoked directly unless developing a third party authentication library. + @see PFUserAuthenticationDelegate + + @param authType The name of the type of third party authentication source. + @param authData The user credentials of the third party authentication source. + + @returns A `BFTask` that is resolved to `PFUser` when logging in completes. + */ ++ (BFTask PF_GENERIC(PFUser *) *)logInWithAuthTypeInBackground:(NSString *)authType authData:(NSDictionary *)authData; + +/*! + @abstract Links this user to a third party authentication library. + + @note This method shouldn't be invoked directly unless developing a third party authentication library. + @see PFUserAuthenticationDelegate + + @param authType The name of the type of third party authentication source. + @param authData The user credentials of the third party authentication source. + + @returns A `BFTask` that is resolved to `@YES` if linking succeeds. + */ +- (BFTask PF_GENERIC(NSNumber *) *)linkWithAuthTypeInBackground:(NSString *)authType authData:(NSDictionary *)authData; + +/*! + @abstract Unlinks this user from a third party authentication library. + + @note This method shouldn't be invoked directly unless developing a third party authentication library. + @see PFUserAuthenticationDelegate + + @param authType The name of the type of third party authentication source. + + @returns A `BFTask` that is resolved to `@YES` if unlinking succeeds. + */ +- (BFTask PF_GENERIC(NSNumber *) *)unlinkWithAuthTypeInBackground:(NSString *)authType; + +/*! + @abstract Indicates whether this user is linked with a third party authentication library of a specific type. + + @note This method shouldn't be invoked directly unless developing a third party authentication library. + @see PFUserAuthenticationDelegate + + @param authType The name of the type of third party authentication source. + + @returns `YES` if the user is linked with a provider, otherwise `NO`. + */ +- (BOOL)isLinkedWithAuthType:(NSString *)authType; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/PFUserAuthenticationDelegate.h b/iphone/assets/Frameworks/Parse.framework/Headers/PFUserAuthenticationDelegate.h new file mode 100644 index 0000000..d51c107 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/PFUserAuthenticationDelegate.h @@ -0,0 +1,36 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import + +PF_ASSUME_NONNULL_BEGIN + +/*! + Provides a general interface for delegation of third party authentication with s. + */ +@protocol PFUserAuthenticationDelegate + +/*! + @abstract Called when restoring third party authentication credentials that have been serialized, + such as session keys, user id, etc. + + @note This method will be executed on a background thread. + + @param authData The auth data for the provider. This value may be `nil` when unlinking an account. + + @returns `YES` - if the `authData` was succesfully synchronized, + or `NO` if user should not longer be associated because of bad `authData`. + */ +- (BOOL)restoreAuthenticationWithAuthData:(PF_NULLABLE NSDictionary PF_GENERIC(NSString *, NSString *) *)authData; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Headers/Parse.h b/iphone/assets/Frameworks/Parse.framework/Headers/Parse.h new file mode 100644 index 0000000..8fa645c --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Headers/Parse.h @@ -0,0 +1,200 @@ +/** + * Copyright (c) 2015-present, Parse, LLC. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +#import + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#if TARGET_OS_IOS + +#import +#import +#import +#import +#import + +#elif PF_TARGET_OS_OSX + +#import +#import + +#elif TARGET_OS_TV + +#import +#import + +#endif + +PF_ASSUME_NONNULL_BEGIN + +/*! + The `Parse` class contains static functions that handle global configuration for the Parse framework. + */ +@interface Parse : NSObject + +///-------------------------------------- +/// @name Connecting to Parse +///-------------------------------------- + +/*! + @abstract Sets the applicationId and clientKey of your application. + + @param applicationId The application id of your Parse application. + @param clientKey The client key of your Parse application. + */ ++ (void)setApplicationId:(NSString *)applicationId clientKey:(NSString *)clientKey; + +/*! + @abstract The current application id that was used to configure Parse framework. + */ ++ (NSString *)getApplicationId; + +/*! + @abstract The current client key that was used to configure Parse framework. + */ ++ (NSString *)getClientKey; + +///-------------------------------------- +/// @name Enabling Local Datastore +///-------------------------------------- + +/*! + @abstract Enable pinning in your application. This must be called before your application can use + pinning. The recommended way is to call this method before `setApplicationId:clientKey:`. + */ ++ (void)enableLocalDatastore; + +/*! + @abstract Flag that indicates whether Local Datastore is enabled. + + @returns `YES` if Local Datastore is enabled, otherwise `NO`. + */ ++ (BOOL)isLocalDatastoreEnabled; + +///-------------------------------------- +/// @name Enabling Extensions Data Sharing +///-------------------------------------- + +/*! + @abstract Enables data sharing with an application group identifier. + + @discussion After enabling - Local Datastore, `currentUser`, `currentInstallation` and all eventually commands + are going to be available to every application/extension in a group that have the same Parse applicationId. + + @warning This method is required to be called before . + + @param groupIdentifier Application Group Identifier to share data with. + */ ++ (void)enableDataSharingWithApplicationGroupIdentifier:(NSString *)groupIdentifier PF_EXTENSION_UNAVAILABLE("Use `enableDataSharingWithApplicationGroupIdentifier:containingApplication:`.") PF_WATCH_UNAVAILABLE PF_TV_UNAVAILABLE; + +/*! + @abstract Enables data sharing with an application group identifier. + + @discussion After enabling - Local Datastore, `currentUser`, `currentInstallation` and all eventually commands + are going to be available to every application/extension in a group that have the same Parse applicationId. + + @warning This method is required to be called before . + This method can only be used by application extensions. + + @param groupIdentifier Application Group Identifier to share data with. + @param bundleIdentifier Bundle identifier of the containing application. + */ ++ (void)enableDataSharingWithApplicationGroupIdentifier:(NSString *)groupIdentifier + containingApplication:(NSString *)bundleIdentifier PF_WATCH_UNAVAILABLE PF_TV_UNAVAILABLE; + +/*! + @abstract Application Group Identifier for Data Sharing + + @returns `NSString` value if data sharing is enabled, otherwise `nil`. + */ ++ (NSString *)applicationGroupIdentifierForDataSharing PF_WATCH_UNAVAILABLE PF_TV_UNAVAILABLE; + +/*! + @abstract Containing application bundle identifier. + + @returns `NSString` value if data sharing is enabled, otherwise `nil`. + */ ++ (NSString *)containingApplicationBundleIdentifierForDataSharing PF_WATCH_UNAVAILABLE PF_TV_UNAVAILABLE; + +#if PARSE_IOS_ONLY + +///-------------------------------------- +/// @name Configuring UI Settings +///-------------------------------------- + +/*! + @abstract Set whether to show offline messages when using a Parse view or view controller related classes. + + @param enabled Whether a `UIAlertView` should be shown when the device is offline + and network access is required from a view or view controller. + + @deprecated This method has no effect. + */ ++ (void)offlineMessagesEnabled:(BOOL)enabled PARSE_DEPRECATED("This method is deprecated and has no effect."); + +/*! + @abstract Set whether to show an error message when using a Parse view or view controller related classes + and a Parse error was generated via a query. + + @param enabled Whether a `UIAlertView` should be shown when an error occurs. + + @deprecated This method has no effect. + */ ++ (void)errorMessagesEnabled:(BOOL)enabled PARSE_DEPRECATED("This method is deprecated and has no effect."); + +#endif + +///-------------------------------------- +/// @name Logging +///-------------------------------------- + +/*! + @abstract Sets the level of logging to display. + + @discussion By default: + - If running inside an app that was downloaded from iOS App Store - it is set to + - All other cases - it is set to + + @param logLevel Log level to set. + @see PFLogLevel + */ ++ (void)setLogLevel:(PFLogLevel)logLevel; + +/*! + @abstract Log level that will be displayed. + + @discussion By default: + - If running inside an app that was downloaded from iOS App Store - it is set to + - All other cases - it is set to + + @returns A value. + @see PFLogLevel + */ ++ (PFLogLevel)logLevel; + +@end + +PF_ASSUME_NONNULL_END diff --git a/iphone/assets/Frameworks/Parse.framework/Info.plist b/iphone/assets/Frameworks/Parse.framework/Info.plist new file mode 100644 index 0000000..5a952ad Binary files /dev/null and b/iphone/assets/Frameworks/Parse.framework/Info.plist differ diff --git a/iphone/assets/Frameworks/Parse.framework/Modules/module.modulemap b/iphone/assets/Frameworks/Parse.framework/Modules/module.modulemap new file mode 100644 index 0000000..32a75e9 --- /dev/null +++ b/iphone/assets/Frameworks/Parse.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module Parse { + umbrella header "Parse.h" + + export * + module * { export * } +} diff --git a/iphone/assets/Frameworks/Parse.framework/Parse b/iphone/assets/Frameworks/Parse.framework/Parse deleted file mode 120000 index 1354084..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Parse +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Parse \ No newline at end of file diff --git a/iphone/assets/Frameworks/Parse.framework/Parse b/iphone/assets/Frameworks/Parse.framework/Parse new file mode 100644 index 0000000..a0cc3b4 Binary files /dev/null and b/iphone/assets/Frameworks/Parse.framework/Parse differ diff --git a/iphone/assets/Frameworks/Parse.framework/Resources b/iphone/assets/Frameworks/Parse.framework/Resources deleted file mode 120000 index 953ee36..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Resources +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Resources \ No newline at end of file diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFACL.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFACL.h deleted file mode 100644 index e8942e2..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFACL.h +++ /dev/null @@ -1,234 +0,0 @@ -// PFACL.h -// Copyright 2011 Parse, Inc. All rights reserved. - -#import - -@class PFRole; -@class PFUser; - -/*! - A PFACL is used to control which users can access or modify a particular - object. Each PFObject can have its own PFACL. You can grant - read and write permissions separately to specific users, to groups of users - that belong to roles, or you can grant permissions to "the public" so that, - for example, any user could read a particular object but only a particular - set of users could write to that object. - */ -@interface PFACL : NSObject - -/** @name Creating an ACL */ - -/*! - Creates an ACL with no permissions granted. - */ -+ (PFACL *)ACL; - -/*! - Creates an ACL where only the provided user has access. - - @param user The user to assign access. - */ -+ (PFACL *)ACLWithUser:(PFUser *)user; - -/** @name Controlling Public Access */ - -/*! - Set whether the public is allowed to read this object. - - @param allowed Whether the public can read this object. - */ -- (void)setPublicReadAccess:(BOOL)allowed; - -/*! - Gets whether the public is allowed to read this object. - - @return YES if the public read access is enabled. NO otherwise. - */ -- (BOOL)getPublicReadAccess; - -/*! - Set whether the public is allowed to write this object. - - @param allowed Whether the public can write this object. - */ -- (void)setPublicWriteAccess:(BOOL)allowed; - -/*! - Gets whether the public is allowed to write this object. - - @return YES if the public write access is enabled. NO otherwise. - */ -- (BOOL)getPublicWriteAccess; - -/** @name Controlling Access Per-User */ - -/*! - Set whether the given user id is allowed to read this object. - - @param allowed Whether the given user can write this object. - @param userId The objectId of the user to assign access. - */ -- (void)setReadAccess:(BOOL)allowed forUserId:(NSString *)userId; - -/*! - Gets whether the given user id is *explicitly* allowed to read this object. - Even if this returns NO, the user may still be able to access it if getPublicReadAccess returns YES - or if the user belongs to a role that has access. - - @param userId The objectId of the user for which to retrive access. - @return YES if the user with this objectId has read access. NO otherwise. - */ -- (BOOL)getReadAccessForUserId:(NSString *)userId; - -/*! - Set whether the given user id is allowed to write this object. - - @param allowed Whether the given user can read this object. - @param userId The objectId of the user to assign access. - */ -- (void)setWriteAccess:(BOOL)allowed forUserId:(NSString *)userId; - -/*! - Gets whether the given user id is *explicitly* allowed to write this object. - Even if this returns NO, the user may still be able to write it if getPublicWriteAccess returns YES - or if the user belongs to a role that has access. - - @param userId The objectId of the user for which to retrive access. - @return YES if the user with this objectId has write access. NO otherwise. - */ -- (BOOL)getWriteAccessForUserId:(NSString *)userId; - -/*! - Set whether the given user is allowed to read this object. - - @param allowed Whether the given user can read this object. - @param user The user to assign access. - */ -- (void)setReadAccess:(BOOL)allowed forUser:(PFUser *)user; - -/*! - Gets whether the given user is *explicitly* allowed to read this object. - Even if this returns NO, the user may still be able to access it if getPublicReadAccess returns YES - or if the user belongs to a role that has access. - - @param user The user for which to retrive access. - @return YES if the user has read access. NO otherwise. - */ -- (BOOL)getReadAccessForUser:(PFUser *)user; - -/*! - Set whether the given user is allowed to write this object. - - @param allowed Whether the given user can write this object. - @param user The user to assign access. - */ -- (void)setWriteAccess:(BOOL)allowed forUser:(PFUser *)user; - -/*! - Gets whether the given user is *explicitly* allowed to write this object. - Even if this returns NO, the user may still be able to write it if getPublicWriteAccess returns YES - or if the user belongs to a role that has access. - - @param user The user for which to retrive access. - @return YES if the user has write access. NO otherwise. - */ -- (BOOL)getWriteAccessForUser:(PFUser *)user; - -/** @name Controlling Access Per-Role */ - -/*! - Get whether users belonging to the role with the given name are allowed - to read this object. Even if this returns false, the role may still - be able to read it if a parent role has read access. - - @param name The name of the role. - @return YES if the role has read access. NO otherwise. - */ -- (BOOL)getReadAccessForRoleWithName:(NSString *)name; - -/*! - Set whether users belonging to the role with the given name are allowed - to read this object. - - @param allowed Whether the given role can read this object. - @param name The name of the role. - */ -- (void)setReadAccess:(BOOL)allowed forRoleWithName:(NSString *)name; - -/*! - Get whether users belonging to the role with the given name are allowed - to write this object. Even if this returns false, the role may still - be able to write it if a parent role has write access. - - @param name The name of the role. - @return YES if the role has read access. NO otherwise. - */ -- (BOOL)getWriteAccessForRoleWithName:(NSString *)name; - -/*! - Set whether users belonging to the role with the given name are allowed - to write this object. - - @param allowed Whether the given role can write this object. - @param name The name of the role. - */ -- (void)setWriteAccess:(BOOL)allowed forRoleWithName:(NSString *)name; - -/*! - Get whether users belonging to the given role are allowed to read this - object. Even if this returns NO, the role may still be able to - read it if a parent role has read access. The role must already be saved on - the server and its data must have been fetched in order to use this method. - - @param role The name of the role. - @return YES if the role has read access. NO otherwise. - */ -- (BOOL)getReadAccessForRole:(PFRole *)role; - -/*! - Set whether users belonging to the given role are allowed to read this - object. The role must already be saved on the server and its data must have - been fetched in order to use this method. - - @param allowed Whether the given role can read this object. - @param role The role to assign access. - */ -- (void)setReadAccess:(BOOL)allowed forRole:(PFRole *)role; - -/*! - Get whether users belonging to the given role are allowed to write this - object. Even if this returns NO, the role may still be able to - write it if a parent role has write access. The role must already be saved on - the server and its data must have been fetched in order to use this method. - - @param role The name of the role. - @return YES if the role has write access. NO otherwise. - */ -- (BOOL)getWriteAccessForRole:(PFRole *)role; - -/*! - Set whether users belonging to the given role are allowed to write this - object. The role must already be saved on the server and its data must have - been fetched in order to use this method. - - @param allowed Whether the given role can write this object. - @param role The role to assign access. - */ -- (void)setWriteAccess:(BOOL)allowed forRole:(PFRole *)role; - -/** @name Setting Access Defaults */ - -/*! - Sets a default ACL that will be applied to all PFObjects when they are created. - - @param acl The ACL to use as a template for all PFObjects created after this method has been called. - This value will be copied and used as a template for the creation of new ACLs, so changes to the - instance after this method has been called will not be reflected in new PFObjects. - @param currentUserAccess - If `YES`, the PFACL that is applied to newly-created PFObjects will - provide read and write access to the currentUser at the time of creation. - - If `NO`, the provided ACL will be used without modification. - - If acl is `nil`, this value is ignored. - */ -+ (void)setDefaultACL:(PFACL *)acl withAccessForCurrentUser:(BOOL)currentUserAccess; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFAnalytics.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFAnalytics.h deleted file mode 100644 index 3a19941..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFAnalytics.h +++ /dev/null @@ -1,73 +0,0 @@ -// -// PFAnalytics.h -// Parse -// -// Created by Christine Yen on 1/29/13. -// Copyright (c) 2013 Parse Inc. All rights reserved. -// - -#import - -/*! - PFAnalytics provides an interface to Parse's logging and analytics backend. - - Methods will return immediately and cache the request (+ timestamp) to be - handled "eventually." That is, the request will be sent immediately if possible - or the next time a network connection is available otherwise. - */ -@interface PFAnalytics : NSObject - -/*! - Tracks this application being launched. If this happened as the result of the - user opening a push notification, this method sends along information to - correlate this open with that push. - - Pass in nil to track a standard "application opened" event. - - @param launchOptions The dictionary indicating the reason the application was - launched, if any. This value can be found as a parameter to various - UIApplicationDelegate methods, and can be empty or nil. - */ -+ (void)trackAppOpenedWithLaunchOptions:(NSDictionary *)launchOptions; - -/*! - Tracks this application being launched. If this happened as the result of the - user opening a push notification, this method sends along information to - correlate this open with that push. - - @param userInfo The Remote Notification payload, if any. This value can be - found either under UIApplicationLaunchOptionsRemoteNotificationKey on - launchOptions, or as a parameter to application:didReceiveRemoteNotification:. - This can be empty or nil. - */ -+ (void)trackAppOpenedWithRemoteNotificationPayload:(NSDictionary *)userInfo; - -/*! - Tracks the occurrence of a custom event. Parse will store a data point at the - time of invocation with the given event name. - - @param name The name of the custom event to report to Parse as having happened. - */ -+ (void)trackEvent:(NSString *)name; - -/*! - Tracks the occurrence of a custom event with additional dimensions. Parse will - store a data point at the time of invocation with the given event name. - - Dimensions will allow segmentation of the occurrences of this custom event. - Keys and values should be NSStrings, and will throw otherwise. - - To track a user signup along with additional metadata, consider the following: - NSDictionary *dimensions = @{ @"gender": @"m", - @"source": @"web", - @"dayType": @"weekend" }; - [PFAnalytics trackEvent:@"signup" dimensions:dimensions]; - - There is a default limit of 4 dimensions per event tracked. - - @param name The name of the custom event to report to Parse as having happened. - @param dimensions The dictionary of information by which to segment this event. - */ -+ (void)trackEvent:(NSString *)name dimensions:(NSDictionary *)dimensions; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFAnonymousUtils.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFAnonymousUtils.h deleted file mode 100644 index 179fb43..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFAnonymousUtils.h +++ /dev/null @@ -1,57 +0,0 @@ -// -// PFAnonymousUtils.h -// Parse -// -// Created by David Poll on 3/20/12. -// Copyright (c) 2012 Parse, Inc. All rights reserved. -// - -#import -#import "PFUser.h" -#import "PFConstants.h" - -/*! - Provides utility functions for working with Anonymously logged-in users. Anonymous users have some unique characteristics: -
    -
  • Anonymous users don't need a user name or password.
  • -
  • Once logged out, an anonymous user cannot be recovered.
  • -
  • When the current user is anonymous, the following methods can be used to switch to a different user or convert the - anonymous user into a regular one: -
      -
    • signUp converts an anonymous user to a standard user with the given username and password. - Data associated with the anonymous user is retained.
    • -
    • logIn switches users without converting the anonymous user. Data associated with the anonymous user will be lost.
    • -
    • Service logIn (e.g. Facebook, Twitter) will attempt to convert the anonymous user into a standard user by linking it to the service. - If a user already exists that is linked to the service, it will instead switch to the existing user.
    • -
    • Service linking (e.g. Facebook, Twitter) will convert the anonymous user into a standard user by linking it to the service.
    • -
    -
- */ -@interface PFAnonymousUtils : NSObject - -/*! @name Creating an Anonymous User */ - -/*! - Creates an anonymous user. - @param block The block to execute when anonymous user creation is complete. The block should have the following argument signature: - (PFUser *user, NSError *error) - */ -+ (void)logInWithBlock:(PFUserResultBlock)block; - -/*! - Creates an anonymous user. The selector for the callback should look like: (PFUser *)user error:(NSError *)error - @param target Target object for the selector. - @param selector The selector that will be called when the asynchronous request is complete. - */ -+ (void)logInWithTarget:(id)target selector:(SEL)selector; - -/*! @name Determining Whether a PFUser is Anonymous */ - -/*! - Whether the user is logged in anonymously. - @param user User to check for anonymity. The user must be logged in on this device. - @result True if the user is anonymous. False if the user is not the current user or is not anonymous. - */ -+ (BOOL)isLinkedWithUser:(PFUser *)user; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFCloud.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFCloud.h deleted file mode 100644 index 5773190..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFCloud.h +++ /dev/null @@ -1,55 +0,0 @@ -// -// PFCloud.h -// Parse -// -// Created by Shyam Jayaraman on 8/20/12. -// Copyright (c) 2012 Parse Inc. All rights reserved. -// - -#import - -#import "PFConstants.h" - -/*! - The PFCloud class provides methods for interacting with Parse Cloud Functions. - */ -@interface PFCloud : NSObject - -/*! - Calls the given cloud function with the parameters passed in. - - @param function The function name to call. - @param parameters The parameters to send to the function. - @result The response from the cloud function. - */ -+ (id)callFunction:(NSString *)function withParameters:(NSDictionary *)parameters; - -/*! - Calls the given cloud function with the parameters passed in and sets the error if there is one. - - @param function The function name to call. - @param parameters The parameters to send to the function. - @param error Pointer to an NSError that will be set if necessary. - @result The response from the cloud function. This result could be a NSDictionary, an NSArray, NSInteger or NSString. - */ -+ (id)callFunction:(NSString *)function withParameters:(NSDictionary *)parameters error:(NSError **)error; - -/*! - Calls the given cloud function with the parameters provided asynchronously and calls the given block when it is done. - - @param function The function name to call. - @param parameters The parameters to send to the function. - @param block The block to execute. The block should have the following argument signature:(id result, NSError *error). - */ -+ (void)callFunctionInBackground:(NSString *)function withParameters:(NSDictionary *)parameters block:(PFIdResultBlock)block; - -/*! - Calls the given cloud function with the parameters provided asynchronously and runs the callback when it is done. - - @param function The function name to call. - @param parameters The parameters to send to the function. - @param target The object to call the selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(id) result error:(NSError *)error. result will be nil if error is set and vice versa. - */ -+ (void)callFunctionInBackground:(NSString *)function withParameters:(NSDictionary *)parameters target:(id)target selector:(SEL)selector; -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFConstants.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFConstants.h deleted file mode 100644 index 26f8500..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFConstants.h +++ /dev/null @@ -1,175 +0,0 @@ -// PFConstants.h -// Copyright 2011 Parse, Inc. All rights reserved. - -#import -@class PFObject; -@class PFUser; - -// Version -#define PARSE_VERSION @"1.2.21" - -extern NSInteger const PARSE_API_VERSION; - -// Platform -#define PARSE_IOS_ONLY (TARGET_OS_IPHONE) -#define PARSE_OSX_ONLY (TARGET_OS_MAC && !(TARGET_OS_IPHONE)) - -extern NSString *const kPFDeviceType; - -#if PARSE_IOS_ONLY -#import -#else -#import -@compatibility_alias UIImage NSImage; -@compatibility_alias UIColor NSColor; -@compatibility_alias UIView NSView; -#endif - -// Server -extern NSString *const kPFParseServer; - -// Cache policies -typedef enum { - kPFCachePolicyIgnoreCache = 0, - kPFCachePolicyCacheOnly, - kPFCachePolicyNetworkOnly, - kPFCachePolicyCacheElseNetwork, - kPFCachePolicyNetworkElseCache, - kPFCachePolicyCacheThenNetwork -} PFCachePolicy; - -// Errors - -extern NSString *const PFParseErrorDomain; - -/*! @abstract 1: Internal server error. No information available. */ -extern NSInteger const kPFErrorInternalServer; - -/*! @abstract 100: The connection to the Parse servers failed. */ -extern NSInteger const kPFErrorConnectionFailed; -/*! @abstract 101: Object doesn't exist, or has an incorrect password. */ -extern NSInteger const kPFErrorObjectNotFound; -/*! @abstract 102: You tried to find values matching a datatype that doesn't support exact database matching, like an array or a dictionary. */ -extern NSInteger const kPFErrorInvalidQuery; -/*! @abstract 103: Missing or invalid classname. Classnames are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters. */ -extern NSInteger const kPFErrorInvalidClassName; -/*! @abstract 104: Missing object id. */ -extern NSInteger const kPFErrorMissingObjectId; -/*! @abstract 105: Invalid key name. Keys are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters. */ -extern NSInteger const kPFErrorInvalidKeyName; -/*! @abstract 106: Malformed pointer. Pointers must be arrays of a classname and an object id. */ -extern NSInteger const kPFErrorInvalidPointer; -/*! @abstract 107: Malformed json object. A json dictionary is expected. */ -extern NSInteger const kPFErrorInvalidJSON; -/*! @abstract 108: Tried to access a feature only available internally. */ -extern NSInteger const kPFErrorCommandUnavailable; -/*! @abstract 111: Field set to incorrect type. */ -extern NSInteger const kPFErrorIncorrectType; -/*! @abstract 112: Invalid channel name. A channel name is either an empty string (the broadcast channel) or contains only a-zA-Z0-9_ characters and starts with a letter. */ -extern NSInteger const kPFErrorInvalidChannelName; -/*! @abstract 114: Invalid device token. */ -extern NSInteger const kPFErrorInvalidDeviceToken; -/*! @abstract 115: Push is misconfigured. See details to find out how. */ -extern NSInteger const kPFErrorPushMisconfigured; -/*! @abstract 116: The object is too large. */ -extern NSInteger const kPFErrorObjectTooLarge; -/*! @abstract 119: That operation isn't allowed for clients. */ -extern NSInteger const kPFErrorOperationForbidden; -/*! @abstract 120: The results were not found in the cache. */ -extern NSInteger const kPFErrorCacheMiss; -/*! @abstract 121: Keys in NSDictionary values may not include '$' or '.'. */ -extern NSInteger const kPFErrorInvalidNestedKey; -/*! @abstract 122: Invalid file name. A file name contains only a-zA-Z0-9_. characters and is between 1 and 36 characters. */ -extern NSInteger const kPFErrorInvalidFileName; -/*! @abstract 123: Invalid ACL. An ACL with an invalid format was saved. This should not happen if you use PFACL. */ -extern NSInteger const kPFErrorInvalidACL; -/*! @abstract 124: The request timed out on the server. Typically this indicates the request is too expensive. */ -extern NSInteger const kPFErrorTimeout; -/*! @abstract 125: The email address was invalid. */ -extern NSInteger const kPFErrorInvalidEmailAddress; -/*! @abstract 137: A unique field was given a value that is already taken. */ -extern NSInteger const kPFErrorDuplicateValue; -/*! @abstract 139: Role's name is invalid. */ -extern NSInteger const kPFErrorInvalidRoleName; -/*! @abstract 140: Exceeded an application quota. Upgrade to resolve. */ -extern NSInteger const kPFErrorExceededQuota; -/*! @abstract 141: Cloud Code script had an error. */ -extern NSInteger const kPFScriptError; -/*! @abstract 142: Cloud Code validation failed. */ -extern NSInteger const kPFValidationError; -/*! @abstract 143: Product purchase receipt is missing */ -extern NSInteger const kPFErrorReceiptMissing; -/*! @abstract 144: Product purchase receipt is invalid */ -extern NSInteger const kPFErrorInvalidPurchaseReceipt; -/*! @abstract 145: Payment is disabled on this device */ -extern NSInteger const kPFErrorPaymentDisabled; -/*! @abstract 146: The product identifier is invalid */ -extern NSInteger const kPFErrorInvalidProductIdentifier; -/*! @abstract 147: The product is not found in the App Store */ -extern NSInteger const kPFErrorProductNotFoundInAppStore; -/*! @abstract 148: The Apple server response is not valid */ -extern NSInteger const kPFErrorInvalidServerResponse; -/*! @abstract 149: Product fails to download due to file system error */ -extern NSInteger const kPFErrorProductDownloadFileSystemFailure; -/*! @abstract 150: Fail to convert data to image. */ -extern NSInteger const kPFErrorInvalidImageData; -/*! @abstract 151: Unsaved file. */ -extern NSInteger const kPFErrorUnsavedFile; -/*! @abstract 153: Fail to delete file. */ -extern NSInteger const kPFErrorFileDeleteFailure; - -/*! @abstract 200: Username is missing or empty */ -extern NSInteger const kPFErrorUsernameMissing; -/*! @abstract 201: Password is missing or empty */ -extern NSInteger const kPFErrorUserPasswordMissing; -/*! @abstract 202: Username has already been taken */ -extern NSInteger const kPFErrorUsernameTaken; -/*! @abstract 203: Email has already been taken */ -extern NSInteger const kPFErrorUserEmailTaken; -/*! @abstract 204: The email is missing, and must be specified */ -extern NSInteger const kPFErrorUserEmailMissing; -/*! @abstract 205: A user with the specified email was not found */ -extern NSInteger const kPFErrorUserWithEmailNotFound; -/*! @abstract 206: The user cannot be altered by a client without the session. */ -extern NSInteger const kPFErrorUserCannotBeAlteredWithoutSession; -/*! @abstract 207: Users can only be created through sign up */ -extern NSInteger const kPFErrorUserCanOnlyBeCreatedThroughSignUp; -/*! @abstract 208: An existing Facebook account already linked to another user. */ -extern NSInteger const kPFErrorFacebookAccountAlreadyLinked; -/*! @abstract 208: An existing account already linked to another user. */ -extern NSInteger const kPFErrorAccountAlreadyLinked; -/*! @abstract 209: User ID mismatch */ -extern NSInteger const kPFErrorUserIdMismatch; -/*! @abstract 250: Facebook id missing from request */ -extern NSInteger const kPFErrorFacebookIdMissing; -/*! @abstract 250: Linked id missing from request */ -extern NSInteger const kPFErrorLinkedIdMissing; -/*! @abstract 251: Invalid Facebook session */ -extern NSInteger const kPFErrorFacebookInvalidSession; -/*! @abstract 251: Invalid linked session */ -extern NSInteger const kPFErrorInvalidLinkedSession; - -typedef void (^PFBooleanResultBlock)(BOOL succeeded, NSError *error); -typedef void (^PFIntegerResultBlock)(int number, NSError *error); -typedef void (^PFArrayResultBlock)(NSArray *objects, NSError *error); -typedef void (^PFObjectResultBlock)(PFObject *object, NSError *error); -typedef void (^PFSetResultBlock)(NSSet *channels, NSError *error); -typedef void (^PFUserResultBlock)(PFUser *user, NSError *error); -typedef void (^PFDataResultBlock)(NSData *data, NSError *error); -typedef void (^PFDataStreamResultBlock)(NSInputStream *stream, NSError *error); -typedef void (^PFStringResultBlock)(NSString *string, NSError *error); -typedef void (^PFIdResultBlock)(id object, NSError *error); -typedef void (^PFProgressBlock)(int percentDone); - -// Deprecated Macro -#ifndef PARSE_DEPRECATED -#ifdef __deprecated_msg -#define PARSE_DEPRECATED(_MSG) __deprecated_msg(_MSG) -#else -#ifdef __deprecated -#define PARSE_DEPRECATED(_MSG) __attribute__((deprecated)) -#else -#define PARSE_DEPRECATED(_MSG) -#endif -#endif -#endif diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFFile.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFFile.h deleted file mode 100644 index 6dd80bb..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFFile.h +++ /dev/null @@ -1,217 +0,0 @@ -// -// PFFile.h -// Parse -// -// Created by Ilya Sukhar on 10/11/11. -// Copyright 2011 Ping Labs, Inc. All rights reserved. -// - -#import -#import "PFConstants.h" - -/*! - A file of binary data stored on the Parse servers. This can be a image, video, or anything else - that an application needs to reference in a non-relational way. - */ -@interface PFFile : NSObject -/** @name Creating a PFFile */ - -/*! - Creates a file with given data. A name will be assigned to it by the server. - @param data The contents of the new PFFile. - @result A PFFile. - */ -+ (instancetype)fileWithData:(NSData *)data; - -/*! - Creates a file with given data and name. - @param name The name of the new PFFile. The file name must begin with and - alphanumeric character, and consist of alphanumeric characters, periods, - spaces, underscores, or dashes. - @param data The contents of hte new PFFile. - @result A PFFile. - */ -+ (instancetype)fileWithName:(NSString *)name data:(NSData *)data; - -/*! - Creates a file with the contents of another file. - @param name The name of the new PFFile. The file name must begin with and - alphanumeric character, and consist of alphanumeric characters, periods, - spaces, underscores, or dashes. - @param path The path to the file that will be uploaded to Parse - */ -+ (instancetype)fileWithName:(NSString *)name - contentsAtPath:(NSString *)path; - -/*! - Creates a file with given data, name and content type. - @param name The name of the new PFFile. The file name must begin with and - alphanumeric character, and consist of alphanumeric characters, periods, - spaces, underscores, or dashes. - @param data The contents of the new PFFile. - @param contentType Represents MIME type of the data. - @result A PFFile. - */ -+ (instancetype)fileWithName:(NSString *)name - data:(NSData *)data - contentType:(NSString *)contentType; - -/*! - Creates a file with given data and content type. - @param data The contents of the new PFFile. - @param contentType Represents MIME type of the data. - @result A PFFile. - */ -+ (instancetype)fileWithData:(NSData *)data contentType:(NSString *)contentType; - -/*! - The name of the file. Before save is called, this is the filename given by - the user. After save is called, that name gets prefixed with a unique - identifier. - */ -@property (nonatomic, strong, readonly) NSString *name; - -/*! - The url of the file. - */ -@property (nonatomic, strong, readonly) NSString *url; - -/** @name Storing Data with Parse */ - -/*! - Whether the file has been uploaded for the first time. - */ -@property (nonatomic, assign, readonly) BOOL isDirty; - -/*! - Saves the file. - @result Returns whether the save succeeded. - */ -- (BOOL)save; - -/*! - Saves the file and sets an error if it occurs. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the save succeeded. - */ -- (BOOL)save:(NSError **)error; - -/*! - Saves the file asynchronously. - */ -- (void)saveInBackground; - -/*! - Saves the file asynchronously and executes the given block. - @param block The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -- (void)saveInBackgroundWithBlock:(PFBooleanResultBlock)block; - -/*! - Saves the file asynchronously and executes the given resultBlock. Executes the progressBlock periodically with the percent - progress. progressBlock will get called with 100 before resultBlock is called. - @param block The block should have the following argument signature: (BOOL succeeded, NSError *error) - @param progressBlock The block should have the following argument signature: (int percentDone) - */ -- (void)saveInBackgroundWithBlock:(PFBooleanResultBlock)block - progressBlock:(PFProgressBlock)progressBlock; - -/*! - Saves the file asynchronously and calls the given callback. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not. - */ -- (void)saveInBackgroundWithTarget:(id)target selector:(SEL)selector; - -/** @name Getting Data from Parse */ - -/*! - Whether the data is available in memory or needs to be downloaded. - */ -@property (assign, readonly) BOOL isDataAvailable; - -/*! - Gets the data from cache if available or fetches its contents from the Parse - servers. - @result The data. Returns nil if there was an error in fetching. - */ -- (NSData *)getData; - -/*! - This method is like getData but avoids ever holding the entire PFFile's - contents in memory at once. This can help applications with many large PFFiles - avoid memory warnings. - @result A stream containing the data. Returns nil if there was an error in - fetching. - */ -- (NSInputStream *)getDataStream; - -/*! - Gets the data from cache if available or fetches its contents from the Parse - servers. Sets an error if it occurs. - @param error Pointer to an NSError that will be set if necessary. - @result The data. Returns nil if there was an error in fetching. - */ -- (NSData *)getData:(NSError **)error; - -/*! - This method is like getData: but avoids ever holding the entire PFFile's - contents in memory at once. This can help applications with many large PFFiles - avoid memory warnings. Sets an error if it occurs. - @param error Pointer to an NSError that will be set if necessary. - @result A stream containing the data. Returns nil if there was an error in - fetching. - */ -- (NSInputStream *)getDataStream:(NSError **)error; - -/*! - Asynchronously gets the data from cache if available or fetches its contents - from the Parse servers. Executes the given block. - @param block The block should have the following argument signature: (NSData *result, NSError *error) - */ -- (void)getDataInBackgroundWithBlock:(PFDataResultBlock)block; - -/*! - This method is like getDataInBackgroundWithBlock: but avoids ever holding the - entire PFFile's contents in memory at once. This can help applications with - many large PFFiles avoid memory warnings. - @param block The block should have the following argument signature: (NSInputStream *result, NSError *error) - */ -- (void)getDataStreamInBackgroundWithBlock:(PFDataStreamResultBlock)block; - -/*! - Asynchronously gets the data from cache if available or fetches its contents - from the Parse servers. Executes the resultBlock upon - completion or error. Executes the progressBlock periodically with the percent progress. progressBlock will get called with 100 before resultBlock is called. - @param resultBlock The block should have the following argument signature: (NSData *result, NSError *error) - @param progressBlock The block should have the following argument signature: (int percentDone) - */ -- (void)getDataInBackgroundWithBlock:(PFDataResultBlock)resultBlock - progressBlock:(PFProgressBlock)progressBlock; - -/*! - This method is like getDataInBackgroundWithBlock:progressBlock: but avoids ever - holding the entire PFFile's contents in memory at once. This can help - applications with many large PFFiles avoid memory warnings. - @param resultBlock The block should have the following argument signature: (NSInputStream *result, NSError *error) - @param progressBlock The block should have the following argument signature: (int percentDone) - */ -- (void)getDataStreamInBackgroundWithBlock:(PFDataStreamResultBlock)resultBlock - progressBlock:(PFProgressBlock)progressBlock; - -/*! - Asynchronously gets the data from cache if available or fetches its contents - from the Parse servers. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSData *)result error:(NSError *)error. error will be nil on success and set if there was an error. - */ -- (void)getDataInBackgroundWithTarget:(id)target selector:(SEL)selector; - -/** @name Interrupting a Transfer */ - -/*! - Cancels the current request (whether upload or download of file data). - */ -- (void)cancel; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFGeoPoint.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFGeoPoint.h deleted file mode 100644 index d51d875..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFGeoPoint.h +++ /dev/null @@ -1,84 +0,0 @@ -// -// PFGeoPoint.h -// Parse -// -// Created by Henele Adams on 12/1/11. -// Copyright (c) 2011 Parse, Inc. All rights reserved. -// - -#import -#import - -/*! - Object which may be used to embed a latitude / longitude point as the value for a key in a PFObject. - PFObjects with a PFGeoPoint field may be queried in a geospatial manner using PFQuery's whereKey:nearGeoPoint:. - - This is also used as a point specifier for whereKey:nearGeoPoint: queries. - - Currently, object classes may only have one key associated with a GeoPoint type. - */ - -@interface PFGeoPoint : NSObject - -/** @name Creating a PFGeoPoint */ -/*! - Create a PFGeoPoint object. Latitude and longitude are set to 0.0. - @result Returns a new PFGeoPoint. - */ -+ (PFGeoPoint *)geoPoint; - -/*! - Creates a new PFGeoPoint object for the given CLLocation, set to the location's - coordinates. - @param location CLLocation object, with set latitude and longitude. - @result Returns a new PFGeoPoint at specified location. - */ -+ (PFGeoPoint *)geoPointWithLocation:(CLLocation *)location; - -/*! - Creates a new PFGeoPoint object with the specified latitude and longitude. - @param latitude Latitude of point in degrees. - @param longitude Longitude of point in degrees. - @result New point object with specified latitude and longitude. - */ -+ (PFGeoPoint *)geoPointWithLatitude:(double)latitude longitude:(double)longitude; - -/*! - Fetches the user's current location and returns a new PFGeoPoint object via the - provided block. - @param geoPointHandler A block which takes the newly created PFGeoPoint as an - argument. - */ -+ (void)geoPointForCurrentLocationInBackground:(void(^)(PFGeoPoint *geoPoint, NSError *error))geoPointHandler; - -/** @name Controlling Position */ - -/// Latitude of point in degrees. Valid range (-90.0, 90.0). -@property (nonatomic, assign) double latitude; -/// Longitude of point in degrees. Valid range (-180.0, 180.0). -@property (nonatomic, assign) double longitude; - -/** @name Calculating Distance */ - -/*! - Get distance in radians from this point to specified point. - @param point PFGeoPoint location of other point. - @result distance in radians - */ -- (double)distanceInRadiansTo:(PFGeoPoint*)point; - -/*! - Get distance in miles from this point to specified point. - @param point PFGeoPoint location of other point. - @result distance in miles - */ -- (double)distanceInMilesTo:(PFGeoPoint*)point; - -/*! - Get distance in kilometers from this point to specified point. - @param point PFGeoPoint location of other point. - @result distance in kilometers - */ -- (double)distanceInKilometersTo:(PFGeoPoint*)point; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFImageView.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFImageView.h deleted file mode 100644 index 4ae6440..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFImageView.h +++ /dev/null @@ -1,32 +0,0 @@ -// -// PFImageView.h -// Parse -// -// Created by Qian Wang on 5/16/12. -// Copyright (c) 2012 Parse Inc. All rights reserved. -// - -#import -#import "PFFile.h" - -/*! - An image view that downloads and displays remote image stored on Parse's server. - */ -@interface PFImageView : UIImageView - -/// The remote file on Parse's server that stores the image. -/// Note that the download does not start until loadInBackground: is called. -@property (nonatomic, strong) PFFile *file; - -/*! - Initiate downloading of the remote image. Once the download completes, the remote image will be displayed. - */ -- (void)loadInBackground; - -/*! - Initiate downloading of the remote image. Once the download completes, the remote image will be displayed. - @param completion the completion block. - */ -- (void)loadInBackground:(void (^)(UIImage *image, NSError *error))completion; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFInstallation.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFInstallation.h deleted file mode 100644 index 66e0c36..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFInstallation.h +++ /dev/null @@ -1,90 +0,0 @@ -// -// PFInstallation.h -// Parse -// -// Created by Brian Jacokes on 6/4/12. -// Copyright (c) 2012 Parse, Inc. All rights reserved. -// - -#import - -#import "PFObject.h" -#import "PFSubclassing.h" - -/*! - A Parse Framework Installation Object that is a local representation of an - installation persisted to the Parse cloud. This class is a subclass of a - PFObject, and retains the same functionality of a PFObject, but also extends - it with installation-specific fields and related immutability and validity - checks. - - A valid PFInstallation can only be instantiated via - [PFInstallation currentInstallation] because the required identifier fields - are readonly. The timeZone and badge fields are also readonly properties which - are automatically updated to match the device's time zone and application badge - when the PFInstallation is saved, thus these fields might not reflect the - latest device state if the installation has not recently been saved. - - PFInstallation objects which have a valid deviceToken and are saved to - the Parse cloud can be used to target push notifications. - - This class is currently for iOS only. There is no PFInstallation for Parse - applications running on OS X, because they cannot receive push notifications. - */ - -@interface PFInstallation : PFObject - -/*! The name of the Installation class in the REST API. This is a required - * PFSubclassing method */ -+ (NSString *)parseClassName; - -/** @name Targeting Installations */ - -/*! - Creates a query for PFInstallation objects. The resulting query can only - be used for targeting a PFPush. Calling find methods on the resulting query - will raise an exception. - */ -+ (PFQuery *)query; - -/** @name Accessing the Current Installation */ - -/*! - Gets the currently-running installation from disk and returns an instance of - it. If this installation is not stored on disk, returns a PFInstallation - with deviceType and installationId fields set to those of the - current installation. - - @result Returns a PFInstallation that represents the currently-running - installation. - */ -+ (instancetype)currentInstallation; - -/*! - Sets the device token string property from an NSData-encoded token. - - @param deviceTokenData A token that identifies the device. - */ -- (void)setDeviceTokenFromData:(NSData *)deviceTokenData; - -/** @name Properties */ - -/// The device type for the PFInstallation. -@property (nonatomic, strong, readonly) NSString *deviceType; - -/// The installationId for the PFInstallation. -@property (nonatomic, strong, readonly) NSString *installationId; - -/// The device token for the PFInstallation. -@property (nonatomic, strong) NSString *deviceToken; - -/// The badge for the PFInstallation. -@property (nonatomic, assign) NSInteger badge; - -/// The timeZone for the PFInstallation. -@property (nonatomic, strong, readonly) NSString *timeZone; - -/// The channels for the PFInstallation. -@property (nonatomic, strong) NSArray *channels; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFLogInView.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFLogInView.h deleted file mode 100644 index 55ad47d..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFLogInView.h +++ /dev/null @@ -1,87 +0,0 @@ -// -// PFLogInView.h -// Parse -// -// Created by Qian Wang on 3/9/12. -// Copyright (c) 2012. All rights reserved. -// - -#import - -typedef enum { - PFLogInFieldsNone = 0, - PFLogInFieldsUsernameAndPassword = 1 << 0, - PFLogInFieldsPasswordForgotten = 1 << 1, - PFLogInFieldsLogInButton = 1 << 2, - PFLogInFieldsFacebook = 1 << 3, - PFLogInFieldsTwitter = 1 << 4, - PFLogInFieldsSignUpButton = 1 << 5, - PFLogInFieldsDismissButton = 1 << 6, - - PFLogInFieldsDefault = PFLogInFieldsUsernameAndPassword | PFLogInFieldsLogInButton | PFLogInFieldsSignUpButton | PFLogInFieldsPasswordForgotten | PFLogInFieldsDismissButton -} PFLogInFields; - -/*! - The class provides a standard log in interface for authenticating a PFUser. - */ -@interface PFLogInView : UIView - -/*! @name Creating Log In View */ -/*! - Initializes the view with the specified log in elements. - @param fields A bitmask specifying the log in elements which are enabled in the view - */ -- (instancetype)initWithFields:(PFLogInFields) fields; - -/// The view controller that will present this view. -/// Used to lay out elements correctly when the presenting view controller has translucent elements. -@property (nonatomic, strong) UIViewController *presentingViewController; - -/*! @name Customizing the Logo */ - -/// The logo. By default, it is the Parse logo. -@property (nonatomic, strong) UIView *logo; - -/*! @name Prompt for email as username. */ - -/// By default, this is set to NO. -@property (nonatomic, assign) BOOL emailAsUsername; - -/*! @name Accessing Log In Elements */ - -/// The bitmask which specifies the enabled log in elements in the view -@property (nonatomic, readonly, assign) PFLogInFields fields; - -/// The username text field. It is nil if the element is not enabled. -@property (nonatomic, strong, readonly) UITextField *usernameField; - -/// The password text field. It is nil if the element is not enabled. -@property (nonatomic, strong, readonly) UITextField *passwordField; - -/// The password forgotten button. It is nil if the element is not enabled. -@property (nonatomic, strong, readonly) UIButton *passwordForgottenButton; - -/// The log in button. It is nil if the element is not enabled. -@property (nonatomic, strong, readonly) UIButton *logInButton; - -/// The Facebook button. It is nil if the element is not enabled. -@property (nonatomic, strong, readonly) UIButton *facebookButton; - -/// The Twitter button. It is nil if the element is not enabled. -@property (nonatomic, strong, readonly) UIButton *twitterButton; - -/// The sign up button. It is nil if the element is not enabled. -@property (nonatomic, strong, readonly) UIButton *signUpButton; - -/// The dismiss button. It is nil if the element is not enabled. -@property (nonatomic, strong, readonly) UIButton *dismissButton; - -/// The facebook/twitter login label. It is only shown if the external login is enabled. -@property (nonatomic, strong, readonly) UILabel *externalLogInLabel; - -/// The sign up label. It is only shown if sign up button is enabled. -@property (nonatomic, strong, readonly) UILabel *signUpLabel; - -@end - - diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFLogInViewController.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFLogInViewController.h deleted file mode 100644 index 37c0a71..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFLogInViewController.h +++ /dev/null @@ -1,103 +0,0 @@ -// -// PFLogInViewController.h -// Parse -// -// Created by Andrew Wang on 3/8/12. -// Copyright (c) 2012. All rights reserved. -// - -#import -#import "PFLogInView.h" -#import "PFSignUpViewController.h" -#import "PFUser.h" - -@protocol PFLogInViewControllerDelegate; - -/*! - The class that presents and manages a standard authentication interface for logging in a PFUser. - */ -@interface PFLogInViewController : UIViewController - -/*! @name Configuring Log In Elements */ - -/*! - A bitmask specifying the log in elements which are enabled in the view. - enum { - PFLogInFieldsNone = 0, - PFLogInFieldsUsernameAndPassword = 1 << 0, - PFLogInFieldsPasswordForgotten = 1 << 1, - PFLogInFieldsLogInButton = 1 << 2, - PFLogInFieldsFacebook = 1 << 3, - PFLogInFieldsTwitter = 1 << 4, - PFLogInFieldsSignUpButton = 1 << 5, - PFLogInFieldsDismissButton = 1 << 6, - PFLogInFieldsDefault = PFLogInFieldsUsernameAndPassword | PFLogInFieldsLogInButton | PFLogInFieldsSignUpButton | PFLogInFieldsPasswordForgotten | PFLogInFieldsDismissButton - }; - */ -@property (nonatomic, assign) PFLogInFields fields; - -/// The log in view. It contains all the enabled log in elements. -@property (nonatomic, strong, readonly) PFLogInView *logInView; - -/*! @name Configuring Log In Behaviors */ -/// The delegate that responds to the control events of PFLogInViewController. -@property (nonatomic, weak) id delegate; - -/// The facebook permissions that Facebook log in requests for. -/// If unspecified, the default is basic facebook permissions. -@property (nonatomic, strong) NSArray *facebookPermissions; - -/// The sign up controller if sign up is enabled. -/// Use this to configure the sign up view, and the transition animation to the sign up view. -/// The default is a sign up view with a username, a password, a dismiss button and a sign up button. -@property (nonatomic, strong) PFSignUpViewController *signUpController; - -/*! - Whether to prompt for the email as username on the login view. - If set to YES, we'll prompt for the email in the username field. - This property value propagates to the attached signUpController. - By default, this is set to NO. - */ -@property (nonatomic, assign) BOOL emailAsUsername; - -@end - -/*! @name Notifications */ -/// The notification is posted immediately after the log in succeeds. -extern NSString *const PFLogInSuccessNotification; - -/// The notification is posted immediately after the log in fails. -/// If the delegate prevents the log in from starting, the notification is not sent. -extern NSString *const PFLogInFailureNotification; - -/// The notification is posted immediately after the log in is cancelled. -extern NSString *const PFLogInCancelNotification; - -/*! - The protocol defines methods a delegate of a PFLogInViewController should implement. - All methods of the protocol are optional. - */ -@protocol PFLogInViewControllerDelegate -@optional - -/*! @name Customizing Behavior */ - -/*! - Sent to the delegate to determine whether the log in request should be submitted to the server. - @param username the username the user tries to log in with. - @param password the password the user tries to log in with. - @result a boolean indicating whether the log in should proceed. - */ -- (BOOL)logInViewController:(PFLogInViewController *)logInController shouldBeginLogInWithUsername:(NSString *)username password:(NSString *)password; - -/*! @name Responding to Actions */ -/// Sent to the delegate when a PFUser is logged in. -- (void)logInViewController:(PFLogInViewController *)logInController didLogInUser:(PFUser *)user; - -/// Sent to the delegate when the log in attempt fails. -- (void)logInViewController:(PFLogInViewController *)logInController didFailToLogInWithError:(NSError *)error; - -/// Sent to the delegate when the log in screen is dismissed. -- (void)logInViewControllerDidCancelLogIn:(PFLogInViewController *)logInController; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFObject+Subclass.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFObject+Subclass.h deleted file mode 100644 index fcb20a9..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFObject+Subclass.h +++ /dev/null @@ -1,85 +0,0 @@ -// -// PFObject+Subclass.h -// Parse -// -// Created by Thomas Bouldin on 2/17/13. -// Copyright (c) 2013 Parse Inc. All rights reserved. -// - -#import "PFObject.h" - -@class PFQuery; - -/*! -

Subclassing Notes

- - Developers can subclass PFObject for a more native object-oriented class structure. Strongly-typed subclasses of PFObject must conform to the PFSubclassing protocol and must call registerSubclass to be returned by PFQuery and other PFObject factories. All methods in PFSubclassing except for [PFSubclassing parseClassName] are already implemented in the PFObject(Subclass) category. Inculding PFObject+Subclass.h in your implementation file provides these implementations automatically. - - Subclasses support simpler initializers, query syntax, and dynamic synthesizers. The following shows an example subclass: - - @interface MYGame : PFObject< PFSubclassing > - // Accessing this property is the same as objectForKey:@"title" - @property (strong) NSString *title; - + (NSString *)parseClassName; - @end - - @implementation MYGame - @dynamic title; - + (NSString *)parseClassName { - return @"Game"; - } - @end - - MYGame *game = [[MYGame alloc] init]; - game.title = @"Bughouse"; - [game saveInBackground]; - - */ -@interface PFObject(Subclass) - -/*! @name Methods for Subclasses */ - -/*! - Designated initializer for subclasses. - This method can only be called on subclasses which conform to PFSubclassing. - This method should not be overridden. - */ -- (instancetype)init; - -/*! - Creates an instance of the registered subclass with this class's parseClassName. - This helps a subclass ensure that it can be subclassed itself. For example, [PFUser object] will - return a MyUser object if MyUser is a registered subclass of PFUser. For this reason, [MyClass object] is - preferred to [[MyClass alloc] init]. - This method can only be called on subclasses which conform to PFSubclassing. - A default implementation is provided by PFObject which should always be sufficient. - */ -+ (instancetype)object; - -/*! - Creates a reference to an existing PFObject for use in creating associations between PFObjects. Calling isDataAvailable on this - object will return NO until fetchIfNeeded or refresh has been called. No network request will be made. - This method can only be called on subclasses which conform to PFSubclassing. - A default implementation is provided by PFObject which should always be sufficient. - @param objectId The object id for the referenced object. - @result A PFObject without data. - */ -+ (instancetype)objectWithoutDataWithObjectId:(NSString *)objectId; - -/*! - Registers an Objective-C class for Parse to use for representing a given Parse class. - Once this is called on a PFObject subclass, any PFObject Parse creates with a class - name matching [self parseClassName] will be an instance of subclass. - This method can only be called on subclasses which conform to PFSubclassing. - A default implementation is provided by PFObject which should always be sufficient. - */ -+ (void)registerSubclass; - -/*! - Returns a query for objects of type +parseClassName. - This method can only be called on subclasses which conform to PFSubclassing. - A default implementation is provided by PFObject which should always be sufficient. - */ -+ (PFQuery *)query; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFObject.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFObject.h deleted file mode 100644 index e2ba091..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFObject.h +++ /dev/null @@ -1,590 +0,0 @@ -// PFObject.h -// Copyright 2011 Parse, Inc. All rights reserved. - -#import - -#import "PFACL.h" -#import "PFConstants.h" - -@protocol PFSubclassing; - -/*! - A Parse Framework Object that is a local representation of data persisted to the Parse cloud. - This is the main class that is used to interact with objects in your app. -*/ -@class PFRelation; - -NS_REQUIRES_PROPERTY_DEFINITIONS -@interface PFObject : NSObject { - BOOL dirty; - - // An array of NSDictionary of NSString -> PFFieldOperation. - // Each dictionary has a subset of the object's keys as keys, and the - // changes to the value for that key as its value. - // There is always at least one dictionary of pending operations. - // Every time a save is started, a new dictionary is added to the end. - // Whenever a save completes, the new data is put into fetchedData, and - // a dictionary is removed from the start. - NSMutableArray *operationSetQueue; - - // Our best estimate as to what the current data is, based on - // the last fetch from the server, and the set of pending operations. - NSMutableDictionary *estimatedData; -} - -#pragma mark Constructors - -/*! @name Creating a PFObject */ - -/*! - Creates a new PFObject with a class name. - @param className A class name can be any alphanumeric string that begins with a letter. It represents an object in your app, like a User of a Document. - @result Returns the object that is instantiated with the given class name. - */ -+ (instancetype)objectWithClassName:(NSString *)className; - -/*! - Creates a reference to an existing PFObject for use in creating associations between PFObjects. Calling isDataAvailable on this - object will return NO until fetchIfNeeded or refresh has been called. No network request will be made. - - @param className The object's class. - @param objectId The object id for the referenced object. - @result A PFObject without data. - */ -+ (instancetype)objectWithoutDataWithClassName:(NSString *)className - objectId:(NSString *)objectId; - -/*! - Creates a new PFObject with a class name, initialized with data constructed from the specified set of objects and keys. - @param className The object's class. - @param dictionary An NSDictionary of keys and objects to set on the new PFObject. - @result A PFObject with the given class name and set with the given data. - */ -+ (PFObject *)objectWithClassName:(NSString *)className dictionary:(NSDictionary *)dictionary; - -/*! - Initializes a new PFObject with a class name. - @param newClassName A class name can be any alphanumeric string that begins with a letter. It represents an object in your app, like a User or a Document. - @result Returns the object that is instantiated with the given class name. - */ -- (instancetype)initWithClassName:(NSString *)newClassName; - -#pragma mark - -#pragma mark Properties - -/*! @name Managing Object Properties */ - -/*! - The class name of the object. - */ -@property (strong, readonly) NSString *parseClassName; - -/*! - The id of the object. - */ -@property (nonatomic, strong) NSString *objectId; - -/*! - When the object was last updated. - */ -@property (nonatomic, strong, readonly) NSDate *updatedAt; - -/*! - When the object was created. - */ -@property (nonatomic, strong, readonly) NSDate *createdAt; - -/*! - The ACL for this object. - */ -@property (nonatomic, strong) PFACL *ACL; - -/*! - Returns an array of the keys contained in this object. This does not include - createdAt, updatedAt, authData, or objectId. It does include things like username - and ACL. - */ -- (NSArray *)allKeys; - -#pragma mark - -#pragma mark Get and set - -/*! - Returns the object associated with a given key. - @param key The key that the object is associated with. - @result The value associated with the given key, or nil if no value is associated with key. - */ -- (id)objectForKey:(NSString *)key; - -/*! - Sets the object associated with a given key. - @param object The object. - @param key The key. - */ -- (void)setObject:(id)object forKey:(NSString *)key; - -/*! - Unsets a key on the object. - @param key The key. - */ -- (void)removeObjectForKey:(NSString *)key; - -/*! - * In LLVM 4.0 (XCode 4.5) or higher allows myPFObject[key]. - @param key The key. - */ -- (id)objectForKeyedSubscript:(NSString *)key; - -/*! - * In LLVM 4.0 (XCode 4.5) or higher allows myObject[key] = value - @param object The object. - @param key The key. - */ -- (void)setObject:(id)object forKeyedSubscript:(NSString *)key; - -/*! - Returns the relation object associated with the given key. - @param key The key that the relation is associated with. - */ -- (PFRelation *)relationForKey:(NSString *)key; - -/*! - Returns the relation object associated with the given key. - @param key The key that the relation is associated with. - @deprecated Please use relationForKey: instead. - */ -- (PFRelation *)relationforKey:(NSString *)key PARSE_DEPRECATED("Please use -relationForKey: instead."); - -#pragma mark - -#pragma mark Array add and remove - -/*! - Adds an object to the end of the array associated with a given key. - @param object The object to add. - @param key The key. - */ -- (void)addObject:(id)object forKey:(NSString *)key; - -/*! - Adds the objects contained in another array to the end of the array associated - with a given key. - @param objects The array of objects to add. - @param key The key. - */ -- (void)addObjectsFromArray:(NSArray *)objects forKey:(NSString *)key; - -/*! - Adds an object to the array associated with a given key, only if it is not - already present in the array. The position of the insert is not guaranteed. - @param object The object to add. - @param key The key. - */ -- (void)addUniqueObject:(id)object forKey:(NSString *)key; - -/*! - Adds the objects contained in another array to the array associated with - a given key, only adding elements which are not already present in the array. - The position of the insert is not guaranteed. - @param objects The array of objects to add. - @param key The key. - */ -- (void)addUniqueObjectsFromArray:(NSArray *)objects forKey:(NSString *)key; - -/*! - Removes all occurrences of an object from the array associated with a given - key. - @param object The object to remove. - @param key The key. - */ -- (void)removeObject:(id)object forKey:(NSString *)key; - -/*! - Removes all occurrences of the objects contained in another array from the - array associated with a given key. - @param objects The array of objects to remove. - @param key The key. - */ -- (void)removeObjectsInArray:(NSArray *)objects forKey:(NSString *)key; - -#pragma mark - -#pragma mark Increment - -/*! - Increments the given key by 1. - @param key The key. - */ -- (void)incrementKey:(NSString *)key; - -/*! - Increments the given key by a number. - @param key The key. - @param amount The amount to increment. - */ -- (void)incrementKey:(NSString *)key byAmount:(NSNumber *)amount; - -#pragma mark - -#pragma mark Save - -/*! @name Saving an Object to Parse */ - -/*! - Saves the PFObject. - @result Returns whether the save succeeded. - */ -- (BOOL)save; - -/*! - Saves the PFObject and sets an error if it occurs. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the save succeeded. - */ -- (BOOL)save:(NSError **)error; - -/*! - Saves the PFObject asynchronously. - */ -- (void)saveInBackground; - -/*! - Saves the PFObject asynchronously and executes the given callback block. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -- (void)saveInBackgroundWithBlock:(PFBooleanResultBlock)block; - -/*! - Saves the PFObject asynchronously and calls the given callback. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not. - */ -- (void)saveInBackgroundWithTarget:(id)target selector:(SEL)selector; - -/*! - @see saveEventually: - */ -- (void)saveEventually; - -/*! - Saves this object to the server at some unspecified time in the future, even if Parse is currently inaccessible. - Use this when you may not have a solid network connection, and don't need to know when the save completes. - If there is some problem with the object such that it can't be saved, it will be silently discarded. If the save - completes successfully while the object is still in memory, then callback will be called. - - Objects saved with this method will be stored locally in an on-disk cache until they can be delivered to Parse. - They will be sent immediately if possible. Otherwise, they will be sent the next time a network connection is - available. Objects saved this way will persist even after the app is closed, in which case they will be sent the - next time the app is opened. If more than 10MB of data is waiting to be sent, subsequent calls to saveEventually - will cause old saves to be silently discarded until the connection can be re-established, and the queued objects - can be saved. - - @param callback The block to execute. It should have the following argument signature: (BOOL succeeded, NSError *error) - */ -- (void)saveEventually:(PFBooleanResultBlock)callback; - -#pragma mark - -#pragma mark Save All - -/*! @name Saving Many Objects to Parse */ - -/*! - Saves a collection of objects all at once. - @param objects The array of objects to save. - @result Returns whether the save succeeded. - */ -+ (BOOL)saveAll:(NSArray *)objects; - -/*! - Saves a collection of objects all at once and sets an error if necessary. - @param objects The array of objects to save. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the save succeeded. - */ -+ (BOOL)saveAll:(NSArray *)objects error:(NSError **)error; - -/*! - Saves a collection of objects all at once asynchronously. - @param objects The array of objects to save. - */ -+ (void)saveAllInBackground:(NSArray *)objects; - -/*! - Saves a collection of objects all at once asynchronously and the block when done. - @param objects The array of objects to save. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)saveAllInBackground:(NSArray *)objects - block:(PFBooleanResultBlock)block; - -/*! - Saves a collection of objects all at once asynchronously and calls a callback when done. - @param objects The array of objects to save. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithError:(NSError *)error. error will be nil on success and set if there was an error. - */ -+ (void)saveAllInBackground:(NSArray *)objects - target:(id)target - selector:(SEL)selector; - -#pragma mark - -#pragma mark Delete All - -/*! @name Delete Many Objects from Parse */ - -/*! - Deletes a collection of objects all at once. - @param objects The array of objects to delete. - @result Returns whether the delete succeeded. - */ -+ (BOOL)deleteAll:(NSArray *)objects; - -/*! - Deletes a collection of objects all at once and sets an error if necessary. - @param objects The array of objects to delete. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the delete succeeded. - */ -+ (BOOL)deleteAll:(NSArray *)objects error:(NSError **)error; - -/*! - Deletes a collection of objects all at once asynchronously. - @param objects The array of objects to delete. - */ -+ (void)deleteAllInBackground:(NSArray *)objects; - -/*! - Deletes a collection of objects all at once asynchronously and the block when done. - @param objects The array of objects to delete. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)deleteAllInBackground:(NSArray *)objects - block:(PFBooleanResultBlock)block; - -/*! - Deletes a collection of objects all at once asynchronously and calls a callback when done. - @param objects The array of objects to delete. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithError:(NSError *)error. error will be nil on success and set if there was an error. - */ -+ (void)deleteAllInBackground:(NSArray *)objects - target:(id)target - selector:(SEL)selector; - -#pragma mark - -#pragma mark Refresh - -/*! @name Getting an Object from Parse */ - -/*! - Gets whether the PFObject has been fetched. - @result YES if the PFObject is new or has been fetched or refreshed. NO otherwise. - */ -- (BOOL)isDataAvailable; - -#if PARSE_IOS_ONLY -// Deprecated and intentionally not available on the new OS X SDK - -/*! - Refreshes the PFObject with the current data from the server. - */ -- (void)refresh; - -/*! - Refreshes the PFObject with the current data from the server and sets an error if it occurs. - @param error Pointer to an NSError that will be set if necessary. - */ -- (void)refresh:(NSError **)error; - -/*! - Refreshes the PFObject asynchronously and executes the given callback block. - @param block The block to execute. The block should have the following argument signature: (PFObject *object, NSError *error) - */ -- (void)refreshInBackgroundWithBlock:(PFObjectResultBlock)block; - -/*! - Refreshes the PFObject asynchronously and calls the given callback. - @param target The target on which the selector will be called. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(PFObject *)refreshedObject error:(NSError *)error. error will be nil on success and set if there was an error. refreshedObject will be the PFObject with the refreshed data. - */ -- (void)refreshInBackgroundWithTarget:(id)target selector:(SEL)selector; -#endif - -/*! - Fetches the PFObject with the current data from the server. - */ -- (void)fetch; -/*! - Fetches the PFObject with the current data from the server and sets an error if it occurs. - @param error Pointer to an NSError that will be set if necessary. - */ -- (void)fetch:(NSError **)error; - -/*! - Fetches the PFObject's data from the server if isDataAvailable is false. - */ -- (PFObject *)fetchIfNeeded; - -/*! - Fetches the PFObject's data from the server if isDataAvailable is false. - @param error Pointer to an NSError that will be set if necessary. - */ -- (PFObject *)fetchIfNeeded:(NSError **)error; - -/*! - Fetches the PFObject asynchronously and executes the given callback block. - @param block The block to execute. The block should have the following argument signature: (PFObject *object, NSError *error) - */ -- (void)fetchInBackgroundWithBlock:(PFObjectResultBlock)block; - -/*! - Fetches the PFObject asynchronously and calls the given callback. - @param target The target on which the selector will be called. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(PFObject *)refreshedObject error:(NSError *)error. error will be nil on success and set if there was an error. refreshedObject will be the PFObject with the refreshed data. - */ -- (void)fetchInBackgroundWithTarget:(id)target selector:(SEL)selector; - -/*! - Fetches the PFObject's data asynchronously if isDataAvailable is false, then calls the callback block. - @param block The block to execute. The block should have the following argument signature: (PFObject *object, NSError *error) - */ -- (void)fetchIfNeededInBackgroundWithBlock:(PFObjectResultBlock)block; - -/*! - Fetches the PFObject's data asynchronously if isDataAvailable is false, then calls the callback. - @param target The target on which the selector will be called. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(PFObject *)fetchedObject error:(NSError *)error. error will be nil on success and set if there was an error. - */ -- (void)fetchIfNeededInBackgroundWithTarget:(id)target - selector:(SEL)selector; - -/*! @name Getting Many Objects from Parse */ - -/*! - Fetches all of the PFObjects with the current data from the server - @param objects The list of objects to fetch. - */ -+ (void)fetchAll:(NSArray *)objects; - -/*! - Fetches all of the PFObjects with the current data from the server and sets an error if it occurs. - @param objects The list of objects to fetch. - @param error Pointer to an NSError that will be set if necessary - */ -+ (void)fetchAll:(NSArray *)objects error:(NSError **)error; - -/*! - Fetches all of the PFObjects with the current data from the server - @param objects The list of objects to fetch. - */ -+ (void)fetchAllIfNeeded:(NSArray *)objects; - -/*! - Fetches all of the PFObjects with the current data from the server and sets an error if it occurs. - @param objects The list of objects to fetch. - @param error Pointer to an NSError that will be set if necessary - */ -+ (void)fetchAllIfNeeded:(NSArray *)objects error:(NSError **)error; - -/*! - Fetches all of the PFObjects with the current data from the server asynchronously and calls the given block. - @param objects The list of objects to fetch. - @param block The block to execute. The block should have the following argument signature: (NSArray *objects, NSError *error) - */ -+ (void)fetchAllInBackground:(NSArray *)objects - block:(PFArrayResultBlock)block; - -/*! - Fetches all of the PFObjects with the current data from the server asynchronously and calls the given callback. - @param objects The list of objects to fetch. - @param target The target on which the selector will be called. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSArray *)fetchedObjects error:(NSError *)error. error will be nil on success and set if there was an error. fetchedObjects will the array of PFObjects that were fetched. - */ -+ (void)fetchAllInBackground:(NSArray *)objects - target:(id)target - selector:(SEL)selector; - -/*! - Fetches all of the PFObjects with the current data from the server asynchronously and calls the given block. - @param objects The list of objects to fetch. - @param block The block to execute. The block should have the following argument signature: (NSArray *objects, NSError *error) - */ -+ (void)fetchAllIfNeededInBackground:(NSArray *)objects - block:(PFArrayResultBlock)block; - -/*! - Fetches all of the PFObjects with the current data from the server asynchronously and calls the given callback. - @param objects The list of objects to fetch. - @param target The target on which the selector will be called. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSArray *)fetchedObjects error:(NSError *)error. error will be nil on success and set if there was an error. fetchedObjects will the array of PFObjects - that were fetched. - */ -+ (void)fetchAllIfNeededInBackground:(NSArray *)objects - target:(id)target - selector:(SEL)selector; - -#pragma mark - -#pragma mark Delete - -/*! @name Removing an Object from Parse */ - -/*! - Deletes the PFObject. - @result Returns whether the delete succeeded. - */ -- (BOOL)delete; - -/*! - Deletes the PFObject and sets an error if it occurs. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the delete succeeded. - */ -- (BOOL)delete:(NSError **)error; - -/*! - Deletes the PFObject asynchronously. - */ -- (void)deleteInBackground; - -/*! - Deletes the PFObject asynchronously and executes the given callback block. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -- (void)deleteInBackgroundWithBlock:(PFBooleanResultBlock)block; - -/*! - Deletes the PFObject asynchronously and calls the given callback. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not. - */ -- (void)deleteInBackgroundWithTarget:(id)target - selector:(SEL)selector; - -/*! - Deletes this object from the server at some unspecified time in the future, even if Parse is currently inaccessible. - Use this when you may not have a solid network connection, and don't need to know when the delete completes. - If there is some problem with the object such that it can't be deleted, the request will be silently discarded. - - Delete instructions made with this method will be stored locally in an on-disk cache until they can be transmitted - to Parse. They will be sent immediately if possible. Otherwise, they will be sent the next time a network connection - is available. Delete requests will persist even after the app is closed, in which case they will be sent the - next time the app is opened. If more than 10MB of saveEventually or deleteEventually commands are waiting to be sent, - subsequent calls to saveEventually or deleteEventually will cause old requests to be silently discarded until the - connection can be re-established, and the queued requests can go through. - */ -- (void)deleteEventually; - -#pragma mark - -#pragma mark Dirtiness - -/*! - Gets whether any key-value pair in this object (or its children) has been added/updated/removed and not saved yet. - @result Returns whether this object has been altered and not saved yet. - */ -- (BOOL)isDirty; - -/*! - Get whether a value associated with a key has been added/updated/removed and not saved yet. - @param key The key to check for - @result Returns whether this key has been altered and not saved yet. - */ -- (BOOL)isDirtyForKey:(NSString *)key; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFProduct.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFProduct.h deleted file mode 100644 index 13c5544..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFProduct.h +++ /dev/null @@ -1,67 +0,0 @@ -// -// PFProduct.h -// Parse -// -// Created by Qian Wang on 6/7/12. -// Copyright (c) 2012 Parse Inc. All rights reserved. -// - -#import "PFObject.h" -#import "PFSubclassing.h" -#import "PFFile.h" - -/*! - Represents an in-app purchase product on the Parse server. - By default, products can only be created via the data browser; saving a PFProduct - will result in error. However, the products' metadata information can be queried - and viewed. - - This class is currently for iOS only. - */ -@interface PFProduct : PFObject - -/*! The name of the Product class in the REST API. This is a required - * PFSubclassing method */ -+ (NSString *)parseClassName; - -/** @name Querying for Products */ -/*! - A query that fetches all product instances registered on Parse's server. - */ -+ (PFQuery *)query; - -/** @name Accessing Product-specific Properties */ -/*! - The product identifier of the product. - This should match the product identifier in iTunes Connect exactly. - */ -@property (nonatomic, strong) NSString *productIdentifier; - -/*! - The icon of the product. - */ -@property (nonatomic, strong) PFFile *icon; - -/*! - The title of the product. - */ -@property (nonatomic, strong) NSString *title; - -/*! - The subtitle of the product. - */ -@property (nonatomic, strong) NSString *subtitle; - -/*! - The order in which the product information is displayed in PFProductTableViewController. - The product with a smaller order is displayed earlier in the PFProductTableViewController. - */ -@property (nonatomic, strong) NSNumber *order; - -/*! - The name of the associated download. If there is no downloadable asset, it should be nil. - */ -@property (nonatomic, strong, readonly) NSString *downloadName; - - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFProductTableViewController.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFProductTableViewController.h deleted file mode 100644 index 8ba06f5..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFProductTableViewController.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// PFProductsTableViewController.h -// Parse -// -// Created by Qian Wang on 5/15/12. -// Copyright (c) 2012 Parse Inc. All rights reserved. -// - -#import "PFQueryTableViewController.h" - -/*! - PFProductTableViewController displays in-app purchase products stored on Parse. - In addition to setting up in-app purchases in iTunesConnect, the app developer needs - to register product information on Parse, in the Product class. - */ -@interface PFProductTableViewController : PFQueryTableViewController - -/*! - Initializes a product table view controller. - */ -- (instancetype)init; -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFPurchase.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFPurchase.h deleted file mode 100644 index c3e0e6e..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFPurchase.h +++ /dev/null @@ -1,69 +0,0 @@ -// -// PFPurchase.h -// Parse -// -// Created by Qian Wang on 5/2/12. -// Copyright (c) 2012 Parse Inc. All rights reserved. -// - -#import -#import - -#import "PFConstants.h" - -/*! - PFPurchase provides a set of APIs for working with in-app purchases. - - This class is currently for iOS only. - */ -@interface PFPurchase : NSObject - -/*! - Use this method to add application logic block which is run when buying a product. - This method should be called once for each product, and should be called before - calling buyProduct:block. All invocations to addObserverForProduct:block: should happen within - the same method, and on the main thread. It is recommended to place all invocations of this method - in application:didFinishLaunchingWithOptions:. - - @param productIdentifier the product identifier - @param block The block to be run when buying a product. - */ -+ (void)addObserverForProduct:(NSString *)productIdentifier block:(void(^)(SKPaymentTransaction *transaction))block; - -/*! - Asynchronously initiates the purchase for the product. - - @param productIdentifier the product identifier - @param block the completion block. - */ -+ (void)buyProduct:(NSString *)productIdentifier block:(void(^)(NSError *error))block; - -/*! - Asynchronously download the purchased asset, which is stored on Parse's server. - Parse verifies the receipt with Apple and delivers the content only if the receipt is valid. - - @param transaction the transaction, which contains the receipt. - @param completion the completion block. - */ -+ (void)downloadAssetForTransaction:(SKPaymentTransaction *)transaction completion:(void(^)(NSString *filePath, NSError *error))completion; - -/*! - Asynchronously download the purchased asset, which is stored on Parse's server. - Parse verifies the receipt with Apple and delivers the content only if the receipt is valid. - - @param transaction the transaction, which contains the receipt. - @param completion the completion block. - @param progress the progress block, which is called multiple times to reveal progress of the download. - */ -+ (void)downloadAssetForTransaction:(SKPaymentTransaction *)transaction completion:(void(^)(NSString *filePath, NSError *error))completion progress:(PFProgressBlock)progress; - -/*! - Asynchronously restore completed transactions for the current user. - Note: This method is only important to developers who want to preserve purchase states across - different installations of the same app. - Only nonconsumable purchases are restored. If observers for the products have been added before - calling this method, invoking the method reruns the application logic associated with the purchase. - */ -+ (void)restore; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFPurchaseTableViewCell.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFPurchaseTableViewCell.h deleted file mode 100644 index 0ca8361..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFPurchaseTableViewCell.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// PFPurchaseTableViewCell.h -// Parse -// -// Created by Qian Wang on 5/21/12. -// Copyright (c) 2012 Parse Inc. All rights reserved. -// - -#import -#import "PFTableViewCell.h" - -typedef enum { - PFPurchaseTableViewCellStateNormal, - PFPurchaseTableViewCellStateDownloading, - PFPurchaseTableViewCellStateDownloaded -} PFPurchaseTableViewCellState; - -@interface PFPurchaseTableViewCell : PFTableViewCell -@property (nonatomic, assign) PFPurchaseTableViewCellState state; -@property (nonatomic, strong, readonly) UILabel *priceLabel; -@property (nonatomic, strong, readonly) UIProgressView *progressView; -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFPush.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFPush.h deleted file mode 100644 index 69251c7..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFPush.h +++ /dev/null @@ -1,400 +0,0 @@ -// -// PFPush.h -// Parse -// -// Created by Ilya Sukhar on 7/4/11. -// Copyright 2011 Parse, Inc. All rights reserved. -// - -#import -#import - -#import "PFConstants.h" -#import "PFQuery.h" - -/*! - A class which defines a push notification that can be sent from - a client device. - - The preferred way of modifying or retrieving channel subscriptions is to use - the PFInstallation class, instead of the class methods in PFPush. - - This class is currently for iOS only. Parse does not handle Push Notifications - to Parse applications running on OS X. Push Notifications can be sent from OS X - applications via Cloud Code or the REST API to push-enabled devices (e.g. iOS - or Android). - */ -@interface PFPush : NSObject - -/*! @name Creating a Push Notification */ -+ (PFPush *)push; - -/*! @name Configuring a Push Notification */ - -/*! - Sets the channel on which this push notification will be sent. - @param channel The channel to set for this push. The channel name must start - with a letter and contain only letters, numbers, dashes, and underscores. - */ -- (void)setChannel:(NSString *)channel; - -/*! - Sets the array of channels on which this push notification will - be sent. - @param channels The array of channels to set for this push. Each channel name - must start with a letter and contain only letters, numbers, dashes, and underscores. - */ -- (void)setChannels:(NSArray *)channels; - -/*! - Sets an installation query to which this push notification will be sent. The - query should be created via [PFInstallation query] and should not specify a - skip, limit, or order. - @param query The installation query to set for this push. - */ -- (void)setQuery:(PFQuery *)query; - -/*! - Sets an alert message for this push notification. This will overwrite - any data specified in setData. - @param message The message to send in this push. - */ -- (void)setMessage:(NSString *)message; - -/*! - Sets an arbitrary data payload for this push notification. See the guide - for information about the dictionary structure. This will overwrite any - data specified in setMessage. - @param data The data to send in this push. - */ -- (void)setData:(NSDictionary *)data; - -/*! - Sets whether this push will go to Android devices. - @param pushToAndroid Whether this push will go to Android devices. - @deprecated Please use a [PFInstallation query] with a constraint on deviceType instead. - */ -- (void)setPushToAndroid:(BOOL)pushToAndroid PARSE_DEPRECATED("Please use a [PFInstallation query] with a constraint on deviceType."); - -/*! - Sets whether this push will go to iOS devices. - @param pushToIOS Whether this push will go to iOS devices. - @deprecated Please use a [PFInstallation query] with a constraint on deviceType instead. - */ -- (void)setPushToIOS:(BOOL)pushToIOS PARSE_DEPRECATED("Please use a [PFInstallation query] with a constraint on deviceType."); - -/*! - Sets the expiration time for this notification. The notification will be - sent to devices which are either online at the time the notification - is sent, or which come online before the expiration time is reached. - Because device clocks are not guaranteed to be accurate, most applications - should instead use expireAfterTimeInterval. - @param date The time at which the notification should expire. - */ -- (void)expireAtDate:(NSDate *)date; - -/*! - Sets the time interval after which this notification should expire. - This notification will be sent to devices which are either online at - the time the notification is sent, or which come online within the given - time interval of the notification being received by Parse's server. - An interval which is less than or equal to zero indicates that the - message should only be sent to devices which are currently online. - @param timeInterval The interval after which the notification should expire. - */ -- (void)expireAfterTimeInterval:(NSTimeInterval)timeInterval; - -/*! - Clears both expiration values, indicating that the notification should - never expire. - */ -- (void)clearExpiration; - -/*! @name Sending Push Notifications */ - -/*! - Send a push message to a channel. - @param channel The channel to send to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - @param message The message to send. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the send succeeded. - */ -+ (BOOL)sendPushMessageToChannel:(NSString *)channel - withMessage:(NSString *)message - error:(NSError **)error; - -/*! - Asynchronously send a push message to a channel. - @param channel The channel to send to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - @param message The message to send. - */ -+ (void)sendPushMessageToChannelInBackground:(NSString *)channel - withMessage:(NSString *)message; - -/*! - Asynchronously sends a push message to a channel and calls the given block. - @param channel The channel to send to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - @param message The message to send. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)sendPushMessageToChannelInBackground:(NSString *)channel - withMessage:(NSString *)message - block:(PFBooleanResultBlock)block; - -/*! - Asynchronously send a push message to a channel. - @param channel The channel to send to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - @param message The message to send. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not. - */ -+ (void)sendPushMessageToChannelInBackground:(NSString *)channel - withMessage:(NSString *)message - target:(id)target - selector:(SEL)selector; - -/*! - Send a push message to a query. - @param query The query to send to. The query must be a PFInstallation query - created with [PFInstallation query]. - @param message The message to send. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the send succeeded. - */ -+ (BOOL)sendPushMessageToQuery:(PFQuery *)query - withMessage:(NSString *)message - error:(NSError **)error; - -/*! - Asynchronously send a push message to a query. - @param query The query to send to. The query must be a PFInstallation query - created with [PFInstallation query]. - @param message The message to send. - */ -+ (void)sendPushMessageToQueryInBackground:(PFQuery *)query - withMessage:(NSString *)message; - -/*! - Asynchronously sends a push message to a query and calls the given block. - @param query The query to send to. The query must be a PFInstallation query - created with [PFInstallation query]. - @param message The message to send. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)sendPushMessageToQueryInBackground:(PFQuery *)query - withMessage:(NSString *)message - block:(PFBooleanResultBlock)block; - -/*! - Send this push message. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the send succeeded. - */ -- (BOOL)sendPush:(NSError **)error; - -/*! - Asynchronously send this push message. - */ -- (void)sendPushInBackground; - -/*! - Asynchronously send this push message and executes the given callback block. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -- (void)sendPushInBackgroundWithBlock:(PFBooleanResultBlock)block; - -/*! - Asynchronously send this push message and calls the given callback. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not. - */ -- (void)sendPushInBackgroundWithTarget:(id)target selector:(SEL)selector; - -/*! - Send a push message with arbitrary data to a channel. See the guide for information about the dictionary structure. - @param channel The channel to send to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - @param data The data to send. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the send succeeded. - */ -+ (BOOL)sendPushDataToChannel:(NSString *)channel - withData:(NSDictionary *)data - error:(NSError **)error; - -/*! - Asynchronously send a push message with arbitrary data to a channel. See the guide for information about the dictionary structure. - @param channel The channel to send to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - @param data The data to send. - */ -+ (void)sendPushDataToChannelInBackground:(NSString *)channel - withData:(NSDictionary *)data; - -/*! - Asynchronously sends a push message with arbitrary data to a channel and calls the given block. See the guide for information about the dictionary structure. - @param channel The channel to send to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - @param data The data to send. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)sendPushDataToChannelInBackground:(NSString *)channel - withData:(NSDictionary *)data - block:(PFBooleanResultBlock)block; - -/*! - Asynchronously send a push message with arbitrary data to a channel. See the guide for information about the dictionary structure. - @param channel The channel to send to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - @param data The data to send. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not. - */ -+ (void)sendPushDataToChannelInBackground:(NSString *)channel - withData:(NSDictionary *)data - target:(id)target - selector:(SEL)selector; - -/*! - Send a push message with arbitrary data to a query. See the guide for information about the dictionary structure. - @param query The query to send to. The query must be a PFInstallation query - created with [PFInstallation query]. - @param data The data to send. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the send succeeded. - */ -+ (BOOL)sendPushDataToQuery:(PFQuery *)query - withData:(NSDictionary *)data - error:(NSError **)error; - -/*! - Asynchronously send a push message with arbitrary data to a query. See the guide for information about the dictionary structure. - @param query The query to send to. The query must be a PFInstallation query - created with [PFInstallation query]. - @param data The data to send. - */ -+ (void)sendPushDataToQueryInBackground:(PFQuery *)query - withData:(NSDictionary *)data; - -/*! - Asynchronously sends a push message with arbitrary data to a query and calls the given block. See the guide for information about the dictionary structure. - @param query The query to send to. The query must be a PFInstallation query - created with [PFInstallation query]. - @param data The data to send. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)sendPushDataToQueryInBackground:(PFQuery *)query - withData:(NSDictionary *)data - block:(PFBooleanResultBlock)block; - -/*! @name Handling Notifications */ - -/*! - A default handler for push notifications while the app is active to mimic the behavior of iOS push notifications while the app is backgrounded or not running. Call this from didReceiveRemoteNotification. - @param userInfo The userInfo dictionary you get in didReceiveRemoteNotification. - */ -+ (void)handlePush:(NSDictionary *)userInfo; - -/*! @name Managing Channel Subscriptions */ - -/*! - Store the device token locally for push notifications. Usually called from you main app delegate's didRegisterForRemoteNotificationsWithDeviceToken. - @param deviceToken Either as an NSData straight from didRegisterForRemoteNotificationsWithDeviceToken or as an NSString if you converted it yourself. - */ -+ (void)storeDeviceToken:(id)deviceToken; - -/*! - Get all the channels that this device is subscribed to. - @param error Pointer to an NSError that will be set if necessary. - @result Returns an NSSet containing all the channel names this device is subscribed to. - */ -+ (NSSet *)getSubscribedChannels:(NSError **)error; - -/*! - Get all the channels that this device is subscribed to. - @param block The block to execute. The block should have the following argument signature: (NSSet *channels, NSError *error) - */ -+ (void)getSubscribedChannelsInBackgroundWithBlock:(PFSetResultBlock)block; - -/*! - Asynchronously get all the channels that this device is subscribed to. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSSet *)result error:(NSError *)error. error will be nil on success and set if there was an error. - @result Returns an NSSet containing all the channel names this device is subscribed to. - */ -+ (void)getSubscribedChannelsInBackgroundWithTarget:(id)target - selector:(SEL)selector; - -/*! - Subscribes the device to a channel of push notifications. - @param channel The channel to subscribe to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the subscribe succeeded. - */ -+ (BOOL)subscribeToChannel:(NSString *)channel error:(NSError **)error; - -/*! - Asynchronously subscribes the device to a channel of push notifications. - @param channel The channel to subscribe to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - */ -+ (void)subscribeToChannelInBackground:(NSString *)channel; - -/*! - Asynchronously subscribes the device to a channel of push notifications and calls the given block. - @param channel The channel to subscribe to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)subscribeToChannelInBackground:(NSString *)channel - block:(PFBooleanResultBlock)block; - -/*! - Asynchronously subscribes the device to a channel of push notifications and calls the given callback. - @param channel The channel to subscribe to. The channel name must start with - a letter and contain only letters, numbers, dashes, and underscores. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not. - */ -+ (void)subscribeToChannelInBackground:(NSString *)channel - target:(id)target - selector:(SEL)selector; - -/*! - Unsubscribes the device to a channel of push notifications. - @param channel The channel to unsubscribe from. - @param error Pointer to an NSError that will be set if necessary. - @result Returns whether the unsubscribe succeeded. - */ -+ (BOOL)unsubscribeFromChannel:(NSString *)channel error:(NSError **)error; - -/*! - Asynchronously unsubscribes the device from a channel of push notifications. - @param channel The channel to unsubscribe from. - */ -+ (void)unsubscribeFromChannelInBackground:(NSString *)channel; - -/*! - Asynchronously unsubscribes the device from a channel of push notifications and calls the given block. - @param channel The channel to unsubscribe from. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)unsubscribeFromChannelInBackground:(NSString *)channel - block:(PFBooleanResultBlock)block; - -/*! - Asynchronously unsubscribes the device from a channel of push notifications and calls the given callback. - @param channel The channel to unsubscribe from. - @param target The object to call selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not. - */ -+ (void)unsubscribeFromChannelInBackground:(NSString *)channel - target:(id)target - selector:(SEL)selector; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFQuery.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFQuery.h deleted file mode 100644 index cf542ce..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFQuery.h +++ /dev/null @@ -1,600 +0,0 @@ -// PFQuery.m -// Copyright 2011 Parse, Inc. All rights reserved. - -#import - -#import "PFConstants.h" -#import "PFGeoPoint.h" -#import "PFObject.h" -#import "PFUser.h" - -/*! - A class that defines a query that is used to query for PFObjects. - */ -@interface PFQuery : NSObject - -#pragma mark Query options - -/** @name Creating a Query for a Class */ - -/*! - Returns a PFQuery for a given class. - @param className The class to query on. - @return A PFQuery object. - */ -+ (PFQuery *)queryWithClassName:(NSString *)className; - -/*! - Creates a PFQuery with the constraints given by predicate. - - @param className The class to query on. - @param predicate The predicate to create conditions from. - - The following types of predicates are supported: - * Simple comparisons such as =, !=, <, >, <=, >=, and BETWEEN with a key and a constant. - * Containment predicates, such as "x IN {1, 2, 3}". - * Key-existence predicates, such as "x IN SELF". - * BEGINSWITH expressions. - * Compound predicates with AND, OR, and NOT. - * SubQueries with "key IN %@", subquery. - - The following types of predicates are NOT supported: - * Aggregate operations, such as ANY, SOME, ALL, or NONE. - * Regular expressions, such as LIKE, MATCHES, CONTAINS, or ENDSWITH. - * Predicates comparing one key to another. - * Complex predicates with many ORed clauses. - - */ -+ (PFQuery *)queryWithClassName:(NSString *)className predicate:(NSPredicate *)predicate; - -/*! - Initializes the query with a class name. - @param newClassName The class name. - */ -- (instancetype)initWithClassName:(NSString *)newClassName; - -/*! - The class name to query for - */ -@property (nonatomic, strong) NSString *parseClassName; - -/** @name Adding Basic Constraints */ - -/*! - Make the query include PFObjects that have a reference stored at the provided key. - This has an effect similar to a join. You can use dot notation to specify which fields in - the included object are also fetch. - @param key The key to load child PFObjects for. - */ -- (void)includeKey:(NSString *)key; - -/*! - Make the query restrict the fields of the returned PFObjects to include only the provided keys. - If this is called multiple times, then all of the keys specified in each of the calls will be included. - @param keys The keys to include in the result. - */ -- (void)selectKeys:(NSArray *)keys; - -/*! - Add a constraint that requires a particular key exists. - @param key The key that should exist. - */ -- (void)whereKeyExists:(NSString *)key; - -/*! - Add a constraint that requires a key not exist. - @param key The key that should not exist. - */ -- (void)whereKeyDoesNotExist:(NSString *)key; - -/*! - Add a constraint to the query that requires a particular key's object to be equal to the provided object. - @param key The key to be constrained. - @param object The object that must be equalled. - */ -- (void)whereKey:(NSString *)key equalTo:(id)object; - -/*! - Add a constraint to the query that requires a particular key's object to be less than the provided object. - @param key The key to be constrained. - @param object The object that provides an upper bound. - */ -- (void)whereKey:(NSString *)key lessThan:(id)object; - -/*! - Add a constraint to the query that requires a particular key's object to be less than or equal to the provided object. - @param key The key to be constrained. - @param object The object that must be equalled. - */ -- (void)whereKey:(NSString *)key lessThanOrEqualTo:(id)object; - -/*! - Add a constraint to the query that requires a particular key's object to be greater than the provided object. - @param key The key to be constrained. - @param object The object that must be equalled. - */ -- (void)whereKey:(NSString *)key greaterThan:(id)object; - -/*! - Add a constraint to the query that requires a particular key's - object to be greater than or equal to the provided object. - @param key The key to be constrained. - @param object The object that must be equalled. - */ -- (void)whereKey:(NSString *)key greaterThanOrEqualTo:(id)object; - -/*! - Add a constraint to the query that requires a particular key's object to be not equal to the provided object. - @param key The key to be constrained. - @param object The object that must not be equalled. - */ -- (void)whereKey:(NSString *)key notEqualTo:(id)object; - -/*! - Add a constraint to the query that requires a particular key's object to be contained in the provided array. - @param key The key to be constrained. - @param array The possible values for the key's object. - */ -- (void)whereKey:(NSString *)key containedIn:(NSArray *)array; - -/*! - Add a constraint to the query that requires a particular key's object not be contained in the provided array. - @param key The key to be constrained. - @param array The list of values the key's object should not be. - */ -- (void)whereKey:(NSString *)key notContainedIn:(NSArray *)array; - -/*! - Add a constraint to the query that requires a particular key's array contains every element of the provided array. - @param key The key to be constrained. - @param array The array of values to search for. - */ -- (void)whereKey:(NSString *)key containsAllObjectsInArray:(NSArray *)array; - -/** @name Adding Location Constraints */ - -/*! - Add a constraint to the query that requires a particular key's coordinates (specified via PFGeoPoint) be near - a reference point. Distance is calculated based on angular distance on a sphere. Results will be sorted by distance - from reference point. - @param key The key to be constrained. - @param geopoint The reference point. A PFGeoPoint. - */ -- (void)whereKey:(NSString *)key nearGeoPoint:(PFGeoPoint *)geopoint; - -/*! - Add a constraint to the query that requires a particular key's coordinates (specified via PFGeoPoint) be near - a reference point and within the maximum distance specified (in miles). Distance is calculated based on - a spherical coordinate system. Results will be sorted by distance (nearest to farthest) from the reference point. - @param key The key to be constrained. - @param geopoint The reference point. A PFGeoPoint. - @param maxDistance Maximum distance in miles. - */ -- (void)whereKey:(NSString *)key nearGeoPoint:(PFGeoPoint *)geopoint withinMiles:(double)maxDistance; - -/*! - Add a constraint to the query that requires a particular key's coordinates (specified via PFGeoPoint) be near - a reference point and within the maximum distance specified (in kilometers). Distance is calculated based on - a spherical coordinate system. Results will be sorted by distance (nearest to farthest) from the reference point. - @param key The key to be constrained. - @param geopoint The reference point. A PFGeoPoint. - @param maxDistance Maximum distance in kilometers. - */ -- (void)whereKey:(NSString *)key nearGeoPoint:(PFGeoPoint *)geopoint withinKilometers:(double)maxDistance; - -/*! - Add a constraint to the query that requires a particular key's coordinates (specified via PFGeoPoint) be near - a reference point and within the maximum distance specified (in radians). Distance is calculated based on - angular distance on a sphere. Results will be sorted by distance (nearest to farthest) from the reference point. - @param key The key to be constrained. - @param geopoint The reference point. A PFGeoPoint. - @param maxDistance Maximum distance in radians. - */ -- (void)whereKey:(NSString *)key nearGeoPoint:(PFGeoPoint *)geopoint withinRadians:(double)maxDistance; - -/*! - Add a constraint to the query that requires a particular key's coordinates (specified via PFGeoPoint) be - contained within a given rectangular geographic bounding box. - @param key The key to be constrained. - @param southwest The lower-left inclusive corner of the box. - @param northeast The upper-right inclusive corner of the box. - */ -- (void)whereKey:(NSString *)key withinGeoBoxFromSouthwest:(PFGeoPoint *)southwest toNortheast:(PFGeoPoint *)northeast; - -/** @name Adding String Constraints */ - -/*! - Add a regular expression constraint for finding string values that match the provided regular expression. - This may be slow for large datasets. - @param key The key that the string to match is stored in. - @param regex The regular expression pattern to match. - */ -- (void)whereKey:(NSString *)key matchesRegex:(NSString *)regex; - -/*! - Add a regular expression constraint for finding string values that match the provided regular expression. - This may be slow for large datasets. - @param key The key that the string to match is stored in. - @param regex The regular expression pattern to match. - @param modifiers Any of the following supported PCRE modifiers:
i - Case insensitive search
m - Search across multiple lines of input - */ -- (void)whereKey:(NSString *)key matchesRegex:(NSString *)regex modifiers:(NSString *)modifiers; - -/*! - Add a constraint for finding string values that contain a provided substring. - This will be slow for large datasets. - @param key The key that the string to match is stored in. - @param substring The substring that the value must contain. - */ -- (void)whereKey:(NSString *)key containsString:(NSString *)substring; - -/*! - Add a constraint for finding string values that start with a provided prefix. - This will use smart indexing, so it will be fast for large datasets. - @param key The key that the string to match is stored in. - @param prefix The substring that the value must start with. - */ -- (void)whereKey:(NSString *)key hasPrefix:(NSString *)prefix; - -/*! - Add a constraint for finding string values that end with a provided suffix. - This will be slow for large datasets. - @param key The key that the string to match is stored in. - @param suffix The substring that the value must end with. - */ -- (void)whereKey:(NSString *)key hasSuffix:(NSString *)suffix; - -/** @name Adding Subqueries */ - -/*! - Returns a PFQuery that is the or of the passed in PFQuerys. - @param queries The list of queries to or together. - @result a PFQuery that is the or of the passed in PFQuerys. - */ -+ (PFQuery *)orQueryWithSubqueries:(NSArray *)queries; - -/*! - Adds a constraint that requires that a key's value matches a value in another key - in objects returned by a sub query. - @param key The key that the value is stored - @param otherKey The key in objects in the returned by the sub query whose value should match - @param query The query to run. - */ -- (void)whereKey:(NSString *)key matchesKey:(NSString *)otherKey inQuery:(PFQuery *)query; - -/*! - Adds a constraint that requires that a key's value NOT match a value in another key - in objects returned by a sub query. - @param key The key that the value is stored - @param otherKey The key in objects in the returned by the sub query whose value should match - @param query The query to run. - */ -- (void)whereKey:(NSString *)key doesNotMatchKey:(NSString *)otherKey inQuery:(PFQuery *)query; - -/*! - Add a constraint that requires that a key's value matches a PFQuery constraint. - This only works where the key's values are PFObjects or arrays of PFObjects. - @param key The key that the value is stored in - @param query The query the value should match - */ -- (void)whereKey:(NSString *)key matchesQuery:(PFQuery *)query; - -/*! - Add a constraint that requires that a key's value to not match a PFQuery constraint. - This only works where the key's values are PFObjects or arrays of PFObjects. - @param key The key that the value is stored in - @param query The query the value should not match - */ -- (void)whereKey:(NSString *)key doesNotMatchQuery:(PFQuery *)query; - -#pragma mark - -#pragma mark Sorting - -/** @name Sorting */ - -/*! - Sort the results in ascending order with the given key. - @param key The key to order by. - */ -- (void)orderByAscending:(NSString *)key; - -/*! - Also sort in ascending order by the given key. The previous keys provided will - precedence over this key. - @param key The key to order bye - */ -- (void)addAscendingOrder:(NSString *)key; - -/*! - Sort the results in descending order with the given key. - @param key The key to order by. - */ -- (void)orderByDescending:(NSString *)key; -/*! - Also sort in descending order by the given key. The previous keys provided will - precedence over this key. - @param key The key to order bye - */ -- (void)addDescendingOrder:(NSString *)key; - -/*! - Sort the results in descending order with the given descriptor. - @param sortDescriptor The NSSortDescriptor to order by. - */ -- (void)orderBySortDescriptor:(NSSortDescriptor *)sortDescriptor; - -/*! - Sort the results in descending order with the given descriptors. - @param sortDescriptors An NSArray of NSSortDescriptor instances to order by. - */ -- (void)orderBySortDescriptors:(NSArray *)sortDescriptors; - -#pragma mark - -#pragma mark Get methods - -/** @name Getting Objects by ID */ - -/*! - Returns a PFObject with a given class and id. - @param objectClass The class name for the object that is being requested. - @param objectId The id of the object that is being requested. - @result The PFObject if found. Returns nil if the object isn't found, or if there was an error. - */ -+ (PFObject *)getObjectOfClass:(NSString *)objectClass - objectId:(NSString *)objectId; - -/*! - Returns a PFObject with a given class and id and sets an error if necessary. - @param objectClass The class name for the object that is being requested. - @param objectId The id of the object that is being requested. - @param error Pointer to an NSError that will be set if necessary. - @result The PFObject if found. Returns nil if the object isn't found, or if there was an error. - */ -+ (PFObject *)getObjectOfClass:(NSString *)objectClass - objectId:(NSString *)objectId - error:(NSError **)error; - -/*! - Returns a PFObject with the given id. - - This mutates the PFQuery. It will reset limit to `1`, skip to `0` and remove all conditions, leaving only `objectId`. - - @param objectId The id of the object that is being requested. - @result The PFObject if found. Returns nil if the object isn't found, or if there was an error. - */ -- (PFObject *)getObjectWithId:(NSString *)objectId; - -/*! - Returns a PFObject with the given id and sets an error if necessary. - - This mutates the PFQuery. It will reset limit to `1`, skip to `0` and remove all conditions, leaving only `objectId`. - - @param objectId The id of the object that is being requested. - @param error Pointer to an NSError that will be set if necessary. - @result The PFObject if found. Returns nil if the object isn't found, or if there was an error. - */ -- (PFObject *)getObjectWithId:(NSString *)objectId error:(NSError **)error; - -/*! - Gets a PFObject asynchronously and calls the given block with the result. - - This mutates the PFQuery. It will reset limit to `1`, skip to `0` and remove all conditions, leaving only `objectId`. - - @param objectId The id of the object that is being requested. - @param block The block to execute. The block should have the following argument signature: (NSArray *object, NSError *error) - */ -- (void)getObjectInBackgroundWithId:(NSString *)objectId - block:(PFObjectResultBlock)block; - -/*! - Gets a PFObject asynchronously. - - This mutates the PFQuery. It will reset limit to `1`, skip to `0` and remove all conditions, leaving only `objectId`. - - @param objectId The id of the object being requested. - @param target The target for the callback selector. - @param selector The selector for the callback. It should have the following signature: (void)callbackWithResult:(PFObject *)result error:(NSError *)error. result will be nil if error is set and vice versa. - */ -- (void)getObjectInBackgroundWithId:(NSString *)objectId - target:(id)target - selector:(SEL)selector; - -#pragma mark - -#pragma mark Getting Users - -/*! @name Getting User Objects */ - -/*! - Returns a PFUser with a given id. - @param objectId The id of the object that is being requested. - @result The PFUser if found. Returns nil if the object isn't found, or if there was an error. - */ -+ (PFUser *)getUserObjectWithId:(NSString *)objectId; - -/*! - Returns a PFUser with a given class and id and sets an error if necessary. - @param objectId The id of the object that is being requested. - @param error Pointer to an NSError that will be set if necessary. - @result The PFUser if found. Returns nil if the object isn't found, or if there was an error. - */ -+ (PFUser *)getUserObjectWithId:(NSString *)objectId - error:(NSError **)error; - -/*! - @deprecated Please use [PFUser query] instead. - */ -+ (PFQuery *)queryForUser PARSE_DEPRECATED("Use [PFUser query] instead."); - -#pragma mark - -#pragma mark Find methods - -/** @name Getting all Matches for a Query */ - -/*! - Finds objects based on the constructed query. - @result Returns an array of PFObjects that were found. - */ -- (NSArray *)findObjects; - -/*! - Finds objects based on the constructed query and sets an error if there was one. - @param error Pointer to an NSError that will be set if necessary. - @result Returns an array of PFObjects that were found. - */ -- (NSArray *)findObjects:(NSError **)error; - -/*! - Finds objects asynchronously and calls the given block with the results. - @param block The block to execute. The block should have the following argument signature:(NSArray *objects, NSError *error) - */ -- (void)findObjectsInBackgroundWithBlock:(PFArrayResultBlock)block; - -/*! - Finds objects asynchronously and calls the given callback with the results. - @param target The object to call the selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSArray *)result error:(NSError *)error. result will be nil if error is set and vice versa. - */ -- (void)findObjectsInBackgroundWithTarget:(id)target selector:(SEL)selector; - -/** @name Getting the First Match in a Query */ - -/*! - Gets an object based on the constructed query. - - This method mutates the PFQuery instance. It will reset the limit to `1`. - - @result Returns a PFObject, or nil if none was found. - */ -- (PFObject *)getFirstObject; - -/*! - Gets an object based on the constructed query and sets an error if any occurred. - - This method mutates the PFQuery instance. It will reset the limit to `1`. - - @param error Pointer to an NSError that will be set if necessary. - @result Returns a PFObject, or nil if none was found. - */ -- (PFObject *)getFirstObject:(NSError **)error; - -/*! - Gets an object asynchronously and calls the given block with the result. - - This method mutates the PFQuery instance. It will reset the limit to `1`. - - @param block The block to execute. The block should have the following argument signature:(PFObject *object, NSError *error) result will be nil if error is set OR no object was found matching the query. error will be nil if result is set OR if the query succeeded, but found no results. - */ -- (void)getFirstObjectInBackgroundWithBlock:(PFObjectResultBlock)block; - -/*! - Gets an object asynchronously and calls the given callback with the results. - - This method mutates the PFQuery instance. It will reset the limit to `1`. - - @param target The object to call the selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(PFObject *)result error:(NSError *)error. result will be nil if error is set OR no object was found matching the query. error will be nil if result is set OR if the query succeeded, but found no results. - */ -- (void)getFirstObjectInBackgroundWithTarget:(id)target selector:(SEL)selector; - -#pragma mark - -#pragma mark Count methods - -/** @name Counting the Matches in a Query */ - -/*! - Counts objects based on the constructed query. - @result Returns the number of PFObjects that match the query, or -1 if there is an error. - */ -- (NSInteger)countObjects; - -/*! - Counts objects based on the constructed query and sets an error if there was one. - @param error Pointer to an NSError that will be set if necessary. - @result Returns the number of PFObjects that match the query, or -1 if there is an error. - */ -- (NSInteger)countObjects:(NSError **)error; - -/*! - Counts objects asynchronously and calls the given block with the counts. - @param block The block to execute. The block should have the following argument signature: - (int count, NSError *error) - */ -- (void)countObjectsInBackgroundWithBlock:(PFIntegerResultBlock)block; - -/*! - Counts objects asynchronously and calls the given callback with the count. - @param target The object to call the selector on. - @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. */ -- (void)countObjectsInBackgroundWithTarget:(id)target selector:(SEL)selector; - -#pragma mark - -#pragma mark Cancel methods - -/** @name Cancelling a Query */ - -/*! - Cancels the current network request (if any). Ensures that callbacks won't be called. - */ -- (void)cancel; - -#pragma mark - -#pragma mark Pagination properties - -/** @name Paginating Results */ -/*! - A limit on the number of objects to return. The default limit is 100, with a - maximum of 1000 results being returned at a time. - - Note: If you are calling findObject with limit=1, you may find it easier to use getFirst instead. - */ -@property (nonatomic, assign) NSInteger limit; - -/*! - The number of objects to skip before returning any. - */ -@property (nonatomic, assign) NSInteger skip; - -#pragma mark - -#pragma mark Cache methods - -/** @name Controlling Caching Behavior */ - -/*! - The cache policy to use for requests. - */ -@property (assign, readwrite) PFCachePolicy cachePolicy; - -/* ! - The age after which a cached value will be ignored - */ -@property (assign, readwrite) NSTimeInterval maxCacheAge; - -/*! - Returns whether there is a cached result for this query. - @result YES if there is a cached result for this query, and NO otherwise. - */ -- (BOOL)hasCachedResult; - -/*! - Clears the cached result for this query. If there is no cached result, this is a noop. - */ -- (void)clearCachedResult; - -/*! - Clears the cached results for all queries. - */ -+ (void)clearAllCachedResults; - -#pragma mark - -#pragma mark Advanced Settings - -/** @name Advanced Settings */ - -/*! - Whether or not performance tracing should be done on the query. - This should not be set in most cases. - */ -@property (nonatomic, assign) BOOL trace; - - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFQueryTableViewController.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFQueryTableViewController.h deleted file mode 100644 index 7ade8ee..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFQueryTableViewController.h +++ /dev/null @@ -1,152 +0,0 @@ -// -// PFUITableViewController.h -// Posse -// -// Created by James Yu on 11/20/11. -// Copyright (c) 2011 Parse Inc. All rights reserved. -// - -#import -#import "PFQuery.h" -#import "PFTableViewCell.h" -#import "PF_EGORefreshTableHeaderView.h" - -@interface PFQueryTableViewController : UITableViewController - -/*! @name Creating a PFQueryTableViewController */ - -/*! - The designated initializer. - Initializes with a class name of the PFObjects that will be associated with this table. - @param style The UITableViewStyle for the table - @param aClassName The class name of the PFObjects that this table will display - @result The initialized PFQueryTableViewController - */ -- (instancetype)initWithStyle:(UITableViewStyle)style className:(NSString *)aClassName; - -/*! - Initializes with a class name of the PFObjects that will be associated with this table. - @param aClassName The class name of the PFObjects that this table will display - @result The initialized PFQueryTableViewController - */ -- (instancetype)initWithClassName:(NSString *)aClassName; - -/*! @name Configuring Behavior */ - -/// The class of the PFObject this table will use as a datasource -@property (nonatomic, strong) NSString *parseClassName; - -/// The key to use to display for the cell text label. This won't apply if you override tableView:cellForRowAtIndexPath:object: -@property (nonatomic, strong) NSString *textKey; - -/// The key to use to display for the cell image view. This won't apply if you override tableView:cellForRowAtIndexPath:object: -@property (nonatomic, strong) NSString *imageKey; - -/// The image to use as a placeholder for the cell images. This won't apply if you override tableView:cellForRowAtIndexPath:object: -@property (nonatomic, strong) UIImage *placeholderImage; - -/// Whether the table should use the default loading view (default:YES) -@property (nonatomic, assign) BOOL loadingViewEnabled; - -/// Whether the table should use the built-in pull-to-refresh feature (default:YES) -@property (nonatomic, assign) BOOL pullToRefreshEnabled; - -/// Whether the table should use the built-in pagination feature (default:YES) -@property (nonatomic, assign) BOOL paginationEnabled; - -/// The number of objects to show per page (default: 25) -@property (nonatomic, assign) NSUInteger objectsPerPage; - -/// Whether the table is actively loading new data from the server -@property (nonatomic, assign) BOOL isLoading; - -/*! @name Responding to Events */ - -/*! - Called when objects have loaded from Parse. If you override this method, you must - call [super objectsDidLoad:] in your implementation. - @param error The Parse error from running the PFQuery, if there was any. -*/ -- (void)objectsDidLoad:(NSError *)error; - -/*! - Called when objects will loaded from Parse. If you override this method, you must - call [super objectsWillLoad] in your implementation. -*/ -- (void)objectsWillLoad; - -/*! @name Accessing Results */ - -/// The array of PFObjects that is the UITableView data source -@property (nonatomic, strong, readonly) NSArray *objects; - -/*! - Returns an object at a particular indexPath. The default impementation returns - the object at indexPath.row. If you want to return objects in a different - indexPath order, like for sections, override this method. - @param indexPath The indexPath - @result The object at the specified index -*/ -- (PFObject *)objectAtIndexPath:(NSIndexPath *)indexPath; - -/*! @name Querying */ - -/*! - Override to construct your own custom PFQuery to get the objects. - @result PFQuery that loadObjects will use to the objects for this table. -*/ -- (PFQuery *)queryForTable; - -/*! - Clears the table of all objects. -*/ -- (void)clear; - -/*! - Clears the table and loads the first page of objects. - */ -- (void)loadObjects; - -/*! - Loads the objects of the className at the specified page and appends it to the - objects already loaded and refreshes the table. - @param page The page of objects to load. - @param clear Whether to clear the table after receiving the objects. - */ -- (void)loadObjects:(NSInteger)page clear:(BOOL)clear; - -/*! - Loads the next page of objects, appends to table, and refreshes. - */ -- (void)loadNextPage; - -/*! @name Data Source Methods */ - -/*! - Override this method to customize each cell given a PFObject that is loaded. If you - don't override this method, it will use a default style cell and display either - the first data key from the object, or it will display the key as specified - with keyToDisplay. - - The cell should inherit from PFTableViewCell which is a subclass of UITableViewCell. - - @param tableView The table view object associated with this controller. - @param indexPath The indexPath of the cell. - @param object The PFObject that is associated with the cell. - @result The cell that represents this object. -*/ -- (PFTableViewCell *)tableView:(UITableView *)tableView - cellForRowAtIndexPath:(NSIndexPath *)indexPath - object:(PFObject *)object; - -/*! - Override this method to customize the cell that allows the user to load the - next page when pagination is turned on. - @param tableView The table view object associated with this controller. - @param indexPath The indexPath of the cell. - @result The cell that allows the user to paginate. - */ -- (PFTableViewCell *)tableView:(UITableView *)tableView cellForNextPageAtIndexPath:(NSIndexPath *)indexPath; - - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFRelation.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFRelation.h deleted file mode 100644 index 654d399..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFRelation.h +++ /dev/null @@ -1,44 +0,0 @@ -// -// PFRelation.h -// Parse -// -// Created by Shyam Jayaraman on 5/11/12. -// Copyright (c) 2012 Parse Inc. All rights reserved. -// - -#import -#import "PFObject.h" -#import "PFQuery.h" - -/*! - A class that is used to access all of the children of a many-to-many relationship. Each instance - of PFRelation is associated with a particular parent object and key. - */ -@interface PFRelation : NSObject - -@property (nonatomic, strong) NSString *targetClass; - -#pragma mark - -#pragma mark Accessing objects - -/*! - @return A ParseQuery that can be used to get objects in this relation. - */ -- (PFQuery *)query; - -#pragma mark - -#pragma mark Modifying relations - -/*! - Adds a relation to the passed in object. - @param object ParseObject to add relation to. - */ -- (void)addObject:(PFObject *)object; - -/*! - Removes a relation to the passed in object. - @param object ParseObject to add relation to. - */ -- (void)removeObject:(PFObject *)object; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFRole.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFRole.h deleted file mode 100644 index b875a22..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFRole.h +++ /dev/null @@ -1,98 +0,0 @@ -// -// PFRole.h -// Parse -// -// Created by David Poll on 5/17/12. -// Copyright (c) 2012 Parse Inc. All rights reserved. -// - -#import - -#import "PFObject.h" -#import "PFSubclassing.h" - -/*! - Represents a Role on the Parse server. PFRoles represent groupings - of PFUsers for the purposes of granting permissions (e.g. specifying a - PFACL for a PFObject). Roles are specified by their sets of child users - and child roles, all of which are granted any permissions that the - parent role has.
-
- Roles must have a name (which cannot be changed after creation of the role), - and must specify an ACL. - */ -@interface PFRole : PFObject - -#pragma mark Creating a New Role - -/** @name Creating a New Role */ - -/*! - Constructs a new PFRole with the given name. If no default ACL has been - specified, you must provide an ACL for the role. - - @param name The name of the Role to create. - */ -- (instancetype)initWithName:(NSString *)name; - -/*! - Constructs a new PFRole with the given name. - - @param name The name of the Role to create. - @param acl The ACL for this role. Roles must have an ACL. - */ -- (instancetype)initWithName:(NSString *)name acl:(PFACL *)acl; - -/*! - Constructs a new PFRole with the given name. If no default ACL has been - specified, you must provide an ACL for the role. - - @param name The name of the Role to create. - */ -+ (instancetype)roleWithName:(NSString *)name; - -/*! - Constructs a new PFRole with the given name. - - @param name The name of the Role to create. - @param acl The ACL for this role. Roles must have an ACL. - */ -+ (instancetype)roleWithName:(NSString *)name acl:(PFACL *)acl; - -#pragma mark - -#pragma mark Role-specific Properties - -/** @name Role-specific Properties */ - -/*! - Gets or sets the name for a role. This value must be set before the role - has been saved to the server, and cannot be set once the role has been - saved.
-
- A role's name can only contain alphanumeric characters, _, -, and spaces. - */ -@property (nonatomic, copy) NSString *name; - -/*! - Gets the PFRelation for the PFUsers that are direct children of this role. - These users are granted any privileges that this role has been granted - (e.g. read or write access through ACLs). You can add or remove users from - the role through this relation. - */ -@property (nonatomic, strong, readonly) PFRelation *users; - -/*! - Gets the PFRelation for the PFRoles that are direct children of this role. - These roles' users are granted any privileges that this role has been granted - (e.g. read or write access through ACLs). You can add or remove child roles - from this role through this relation. - */ -@property (nonatomic, strong, readonly) PFRelation *roles; - -#pragma mark - -#pragma mark Querying for Roles - -/** @name Querying for Roles */ -+ (PFQuery *)query; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFSignUpView.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFSignUpView.h deleted file mode 100644 index 1a71284..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFSignUpView.h +++ /dev/null @@ -1,71 +0,0 @@ -// -// PFLogInView.h -// Parse -// -// Created by Qian Wang on 3/9/12. -// Copyright (c) 2012. All rights reserved. -// - -#import - -typedef enum { - PFSignUpFieldsUsernameAndPassword = 0, - PFSignUpFieldsEmail = 1 << 0, - PFSignUpFieldsAdditional = 1 << 1, // this field can be used for something else - PFSignUpFieldsSignUpButton = 1 << 2, - PFSignUpFieldsDismissButton = 1 << 3, - PFSignUpFieldsDefault = PFSignUpFieldsUsernameAndPassword | PFSignUpFieldsEmail | PFSignUpFieldsSignUpButton | PFSignUpFieldsDismissButton -} PFSignUpFields; - -/*! - The class provides a standard sign up interface for authenticating a PFUser. - */ -@interface PFSignUpView : UIScrollView - -/*! @name Creating Sign Up View */ -/*! - Initializes the view with the specified sign up elements. - @param fields A bitmask specifying the sign up elements which are enabled in the view - */ -- (instancetype)initWithFields:(PFSignUpFields) fields; - -/// The view controller that will present this view. -/// Used to lay out elements correctly when the presenting view controller has translucent elements. -@property (nonatomic, strong) UIViewController *presentingViewController; - -/*! @name Customizing the Logo */ - -/// The logo. By default, it is the Parse logo. -@property (nonatomic, strong) UIView *logo; - -/*! @name Prompt for email as username. */ - -/// By default, this is set to NO. -@property (nonatomic, assign) BOOL emailAsUsername; - -/*! @name Accessing Sign Up Elements */ - -/// The bitmask which specifies the enabled sign up elements in the view -@property (nonatomic, assign, readonly) PFSignUpFields fields; - -/// The username text field. -@property (nonatomic, strong, readonly) UITextField *usernameField; - -/// The password text field. -@property (nonatomic, strong, readonly) UITextField *passwordField; - -/// The email text field. It is nil if the element is not enabled. -@property (nonatomic, strong, readonly) UITextField *emailField; - -/// The additional text field. It is nil if the element is not enabled. -/// This field is intended to be customized. -@property (nonatomic, strong, readonly) UITextField *additionalField; - -/// The sign up button. It is nil if the element is not enabled. -@property (nonatomic, strong, readonly) UIButton *signUpButton; - -/// The dismiss button. It is nil if the element is not enabled. -@property (nonatomic, strong, readonly) UIButton *dismissButton; -@end - - diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFSignUpViewController.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFSignUpViewController.h deleted file mode 100644 index 62fa922..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFSignUpViewController.h +++ /dev/null @@ -1,92 +0,0 @@ -// -// PFLogInViewController.h -// Parse -// -// Created by Andrew Wang on 3/8/12. -// Copyright (c) 2012. All rights reserved. -// - -#import -#import "PFSignUpView.h" -#import "PFUser.h" - -@protocol PFSignUpViewControllerDelegate; - -/*! - The class that presents and manages a standard authentication interface for signing up a PFUser. - */ -@interface PFSignUpViewController : UIViewController - -/*! @name Configuring Sign Up Elements */ - -/// -/*! - A bitmask specifying the log in elements which are enabled in the view. - enum { - PFSignUpFieldsUsernameAndPassword = 0, - PFSignUpFieldsEmail = 1 << 0, - PFSignUpFieldsAdditional = 1 << 1, // this field can be used for something else - PFSignUpFieldsSignUpButton = 1 << 2, - PFSignUpFieldsDismissButton = 1 << 3, - PFSignUpFieldsDefault = PFSignUpFieldsUsernameAndPassword | PFSignUpFieldsEmail | PFSignUpFieldsSignUpButton | PFSignUpFieldsDismissButton - }; - */ -@property (nonatomic, assign) PFSignUpFields fields; - -/// The sign up view. It contains all the enabled log in elements. -@property (nonatomic, strong, readonly) PFSignUpView *signUpView; - -/*! @name Configuring Sign Up Behaviors */ -/// The delegate that responds to the control events of PFSignUpViewController. -@property (nonatomic, weak) id delegate; - -/// Minimum required password length for user signups, defaults to 0. -@property (nonatomic, assign) NSUInteger minPasswordLength; - -/*! - Whether to use the email as username on the attached signUpView. - If set to YES, we'll hide the email field, prompt for the email in - the username field, and save the email into both username and email - fields on the new PFUser object. By default, this is set to NO. - */ -@property (nonatomic, assign) BOOL emailAsUsername; - -@end - -/*! @name Notifications */ -/// The notification is posted immediately after the sign up succeeds. -extern NSString *const PFSignUpSuccessNotification; - -/// The notification is posted immediately after the sign up fails. -/// If the delegate prevents the sign up to start, the notification is not sent. -extern NSString *const PFSignUpFailureNotification; - -/// The notification is posted immediately after the user cancels sign up. -extern NSString *const PFSignUpCancelNotification; - -/*! - The protocol defines methods a delegate of a PFSignUpViewController should implement. - All methods of the protocol are optional. - */ -@protocol PFSignUpViewControllerDelegate -@optional - -/*! @name Customizing Behavior */ - -/*! - Sent to the delegate to determine whether the sign up request should be submitted to the server. - @param info a dictionary which contains all sign up information that the user entered. - @result a boolean indicating whether the sign up should proceed. - */ -- (BOOL)signUpViewController:(PFSignUpViewController *)signUpController shouldBeginSignUp:(NSDictionary *)info; - -/// Sent to the delegate when a PFUser is signed up. -- (void)signUpViewController:(PFSignUpViewController *)signUpController didSignUpUser:(PFUser *)user; - -/// Sent to the delegate when the sign up attempt fails. -- (void)signUpViewController:(PFSignUpViewController *)signUpController didFailToSignUpWithError:(NSError *)error; - -/// Sent to the delegate when the sign up screen is dismissed. -- (void)signUpViewControllerDidCancelSignUp:(PFSignUpViewController *)signUpController; -@end - diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFSubclassing.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFSubclassing.h deleted file mode 100644 index 4f80b51..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFSubclassing.h +++ /dev/null @@ -1,54 +0,0 @@ -// -// PFSubclassing.h -// Parse -// -// Created by Thomas Bouldin on 3/11/13. -// Copyright (c) 2013 Parse Inc. All rights reserved. -// - -#import - -@class PFQuery; - -/*! - If a subclass of PFObject conforms to PFSubclassing and calls registerSubclass, Parse will be able to use that class as the native class for a Parse cloud object. - - Classes conforming to this protocol should subclass PFObject and include PFObject+Subclass.h in their implementation file. This ensures the methods in the Subclass category of PFObject are exposed in its subclasses only. - */ -@protocol PFSubclassing - -/*! - Constructs an object of the most specific class known to implement parseClassName. - This method takes care to help PFObject subclasses be subclassed themselves. - For example, [PFUser object] returns a PFUser by default but will return an - object of a registered subclass instead if one is known. - A default implementation is provided by PFObject which should always be sufficient. - @result Returns the object that is instantiated. - */ -+ (instancetype)object; - -/*! - Creates a reference to an existing PFObject for use in creating associations between PFObjects. Calling isDataAvailable on this - object will return NO until fetchIfNeeded or refresh has been called. No network request will be made. - A default implementation is provided by PFObject which should always be sufficient. - @param objectId The object id for the referenced object. - @result A PFObject without data. - */ -+ (instancetype)objectWithoutDataWithObjectId:(NSString *)objectId; - -/*! The name of the class as seen in the REST API. */ -+ (NSString *)parseClassName; - -/*! - Create a query which returns objects of this type. - A default implementation is provided by PFObject which should always be sufficient. - */ -+ (PFQuery *)query; - -/*! - Lets Parse know this class should be used to instantiate all objects with class type parseClassName. - This method must be called before [Parse setApplicationId:clientKey:] - */ -+ (void)registerSubclass; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFTableViewCell.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFTableViewCell.h deleted file mode 100644 index 34571a5..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFTableViewCell.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// PFImageViewCell.h -// Parse -// -// Created by Qian Wang on 5/16/12. -// Copyright (c) 2012 Parse Inc. All rights reserved. -// - -#import -#import "PFImageView.h" - -/*! - The PFTableViewCell is a table view cell which can download and display remote images stored on Parse's server. When used in a PFQueryTableViewController, the downloading and displaying of the remote images are automatically managed by the PFQueryTableViewController. - */ -@interface PFTableViewCell : UITableViewCell - -/// The imageView of the table view cell. PFImageView supports remote image downloading. -@property (nonatomic, strong, readonly) PFImageView *imageView; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFTwitterUtils.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFTwitterUtils.h deleted file mode 100644 index 096581c..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFTwitterUtils.h +++ /dev/null @@ -1,203 +0,0 @@ -// -// PFTwitterUtils.h -// Copyright (c) 2012 Parse, Inc. All rights reserved. -// - -#import -#import "PF_Twitter.h" -#import "PFUser.h" -#import "PFConstants.h" - -/*! - Provides utility functions for working with Twitter in a Parse application. - - This class is currently for iOS only. - */ -@interface PFTwitterUtils : NSObject - -/** @name Interacting With Twitter */ - -/*! - Gets the instance of the Twitter object that Parse uses. - @result The Twitter instance. - */ -+ (PF_Twitter *)twitter; - -/*! - Initializes the Twitter singleton. You must invoke this in order to use the Twitter functionality in Parse. - @param consumerKey Your Twitter application's consumer key. - @param consumerSecret Your Twitter application's consumer secret. - */ -+ (void)initializeWithConsumerKey:(NSString *)consumerKey - consumerSecret:(NSString *)consumerSecret; - -/*! - Whether the user has their account linked to Twitter. - @param user User to check for a Twitter link. The user must be logged in on this device. - @result True if the user has their account linked to Twitter. - */ -+ (BOOL)isLinkedWithUser:(PFUser *)user; - -/** @name Logging In & Creating Twitter-Linked Users */ - -/*! - Logs in a user using Twitter. This method delegates to Twitter to authenticate - the user, and then automatically logs in (or creates, in the case where it is a new user) - a PFUser. - @param block The block to execute. The block should have the following argument signature: - (PFUser *user, NSError *error) - */ -+ (void)logInWithBlock:(PFUserResultBlock)block; - -/*! - Logs in a user using Twitter. This method delegates to Twitter to authenticate - the user, and then automatically logs in (or creates, in the case where it is a new user) - a PFUser. The selector for the callback should look like: (PFUser *)user error:(NSError **)error - @param target Target object for the selector - @param selector The selector that will be called when the asynchrounous request is complete. - */ -+ (void)logInWithTarget:(id)target selector:(SEL)selector; - -/*! - Logs in a user using Twitter. Allows you to handle user login to Twitter, then provide authentication - data to log in (or create, in the case where it is a new user) the PFUser. - @param twitterId The id of the Twitter user being linked - @param screenName The screen name of the Twitter user being linked - @param authToken The auth token for the user's session - @param authTokenSecret The auth token secret for the user's session - @param block The block to execute. The block should have the following argument signature: - (PFUser *user, NSError *error) - */ -+ (void)logInWithTwitterId:(NSString *)twitterId - screenName:(NSString *)screenName - authToken:(NSString *)authToken - authTokenSecret:(NSString *)authTokenSecret - block:(PFUserResultBlock)block; - -/*! - Logs in a user using Twitter. Allows you to handle user login to Twitter, then provide authentication - data to log in (or create, in the case where it is a new user) the PFUser. - The selector for the callback should look like: (PFUser *)user error:(NSError *)error - @param twitterId The id of the Twitter user being linked - @param screenName The screen name of the Twitter user being linked - @param authToken The auth token for the user's session - @param authTokenSecret The auth token secret for the user's session - @param target Target object for the selector - @param selector The selector that will be called when the asynchronous request is complete - */ -+ (void)logInWithTwitterId:(NSString *)twitterId - screenName:(NSString *)screenName - authToken:(NSString *)authToken - authTokenSecret:(NSString *)authTokenSecret - target:(id)target - selector:(SEL)selector; - -/** @name Linking Users with Twitter */ - -/*! - Links Twitter to an existing PFUser. This method delegates to Twitter to authenticate - the user, and then automatically links the account to the PFUser. - @param user User to link to Twitter. - */ -+ (void)linkUser:(PFUser *)user; - -/*! - Links Twitter to an existing PFUser. This method delegates to Twitter to authenticate - the user, and then automatically links the account to the PFUser. - @param user User to link to Twitter. - @param block The block to execute. The block should have the following argument signature: - (BOOL *success, NSError *error) - */ -+ (void)linkUser:(PFUser *)user block:(PFBooleanResultBlock)block; - -/*! - Links Twitter to an existing PFUser. This method delegates to Twitter to authenticate - the user, and then automatically links the account to the PFUser. - The selector for the callback should look like: (NSNumber *)result error:(NSError *)error - @param user User to link to Twitter. - @param target Target object for the selector - @param selector The selector that will be called when the asynchrounous request is complete. - */ -+ (void)linkUser:(PFUser *)user - target:(id)target - selector:(SEL)selector; - -/*! - Links Twitter to an existing PFUser. Allows you to handle user login to Twitter, then provide authentication - data to link the account to the PFUser. - @param user User to link to Twitter. - @param twitterId The id of the Twitter user being linked - @param screenName The screen name of the Twitter user being linked - @param authToken The auth token for the user's session - @param authTokenSecret The auth token secret for the user's session - @param block The block to execute. The block should have the following argument signature: - (BOOL *success, NSError *error) - */ -+ (void)linkUser:(PFUser *)user - twitterId:(NSString *)twitterId - screenName:(NSString *)screenName - authToken:(NSString *)authToken - authTokenSecret:(NSString *)authTokenSecret - block:(PFBooleanResultBlock)block; - -/*! - Links Twitter to an existing PFUser. Allows you to handle user login to Twitter, then provide authentication - data to link the account to the PFUser. - The selector for the callback should look like: (NSNumber *)result error:(NSError *)error - @param user User to link to Twitter. - @param twitterId The id of the Twitter user being linked - @param screenName The screen name of the Twitter user being linked - @param authToken The auth token for the user's session - @param authTokenSecret The auth token secret for the user's session - @param target Target object for the selector - @param selector The selector that will be called when the asynchronous request is complete - */ -+ (void)linkUser:(PFUser *)user - twitterId:(NSString *)twitterId - screenName:(NSString *)screenName - authToken:(NSString *)authToken - authTokenSecret:(NSString *)authTokenSecret - target:(id)target - selector:(SEL)selector; - -/** @name Unlinking Users from Twitter */ - -/*! - Unlinks the PFUser from a Twitter account. - @param user User to unlink from Twitter. - @result Returns true if the unlink was successful. - */ -+ (BOOL)unlinkUser:(PFUser *)user; - -/*! - Unlinks the PFUser from a Twitter account. - @param user User to unlink from Twitter. - @param error Error object to set on error. - @result Returns true if the unlink was successful. - */ -+ (BOOL)unlinkUser:(PFUser *)user error:(NSError **)error; - -/*! - Makes an asynchronous request to unlink a user from a Twitter account. - @param user User to unlink from Twitter. - */ -+ (void)unlinkUserInBackground:(PFUser *)user; - -/*! - Makes an asynchronous request to unlink a user from a Twitter account. - @param user User to unlink from Twitter. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)unlinkUserInBackground:(PFUser *)user - block:(PFBooleanResultBlock)block; - -/*! - Makes an asynchronous request to unlink a user from a Twitter account. - @param user User to unlink from Twitter - @param target Target object for the selector - @param selector The selector that will be called when the asynchrounous request is complete. - */ -+ (void)unlinkUserInBackground:(PFUser *)user - target:(id)target selector:(SEL)selector; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFUser.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFUser.h deleted file mode 100644 index 12ceb4d..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PFUser.h +++ /dev/null @@ -1,290 +0,0 @@ -// PFUser.h -// Copyright 2011 Parse, Inc. All rights reserved. - -#import -#import "PFConstants.h" -#import "PFObject.h" -#import "PFSubclassing.h" - -@class PFQuery; - -/*! -A Parse Framework User Object that is a local representation of a user persisted to the Parse cloud. This class - is a subclass of a PFObject, and retains the same functionality of a PFObject, but also extends it with various - user specific methods, like authentication, signing up, and validation uniqueness. - - Many APIs responsible for linking a PFUser with Facebook or Twitter have been deprecated in favor of dedicated - utilities for each social network. See PFFacebookUtils and PFTwitterUtils for more information. - */ - -@interface PFUser : PFObject - -/*! The name of the PFUser class in the REST API. This is a required - * PFSubclassing method */ -+ (NSString *)parseClassName; - -/** @name Accessing the Current User */ - -/*! - Gets the currently logged in user from disk and returns an instance of it. - @result Returns a PFUser that is the currently logged in user. If there is none, returns nil. - */ -+ (instancetype)currentUser; - -/// The session token for the PFUser. This is set by the server upon successful authentication. -@property (nonatomic, strong) NSString *sessionToken; - -/// Whether the PFUser was just created from a request. This is only set after a Facebook or Twitter login. -@property (assign, readonly) BOOL isNew; - -/*! - Whether the user is an authenticated object for the device. An authenticated PFUser is one that is obtained via - a signUp or logIn method. An authenticated object is required in order to save (with altered values) or delete it. - @result Returns whether the user is authenticated. - */ -- (BOOL)isAuthenticated; - -/** @name Creating a New User */ - -/*! - Creates a new PFUser object. - @result Returns a new PFUser object. - */ -+ (PFUser *)user; - -/*! - Enables automatic creation of anonymous users. After calling this method, [PFUser currentUser] will always have a value. - The user will only be created on the server once the user has been saved, or once an object with a relation to that user or - an ACL that refers to the user has been saved. - - Note: saveEventually will not work if an item being saved has a relation to an automatic user that has never been saved. - */ -+ (void)enableAutomaticUser; - -/// The username for the PFUser. -@property (nonatomic, strong) NSString *username; - -/** - The password for the PFUser. This will not be filled in from the server with - the password. It is only meant to be set. - */ -@property (nonatomic, strong) NSString *password; - -/// The email for the PFUser. -@property (nonatomic, strong) NSString *email; - -/*! - Signs up the user. Make sure that password and username are set. This will also enforce that the username isn't already taken. - @result Returns true if the sign up was successful. - */ -- (BOOL)signUp; - -/*! - Signs up the user. Make sure that password and username are set. This will also enforce that the username isn't already taken. - @param error Error object to set on error. - @result Returns whether the sign up was successful. - */ -- (BOOL)signUp:(NSError **)error; - -/*! - Signs up the user asynchronously. Make sure that password and username are set. This will also enforce that the username isn't already taken. - */ -- (void)signUpInBackground; - -/*! - Signs up the user asynchronously. Make sure that password and username are set. This will also enforce that the username isn't already taken. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -- (void)signUpInBackgroundWithBlock:(PFBooleanResultBlock)block; - -/*! - Signs up the user asynchronously. Make sure that password and username are set. This will also enforce that the username isn't already taken. - @param target Target object for the selector. - @param selector The selector that will be called when the asynchrounous request is complete. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError **)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not. - */ -- (void)signUpInBackgroundWithTarget:(id)target selector:(SEL)selector; - -/** @name Logging in */ - -/*! - Makes a request to login a user with specified credentials. Returns an instance - of the successfully logged in PFUser. This will also cache the user locally so - that calls to currentUser will use the latest logged in user. - @param username The username of the user. - @param password The password of the user. - @result Returns an instance of the PFUser on success. If login failed for either wrong password or wrong username, returns nil. - */ -+ (instancetype)logInWithUsername:(NSString *)username - password:(NSString *)password; - -/*! - Makes a request to login a user with specified credentials. Returns an - instance of the successfully logged in PFUser. This will also cache the user - locally so that calls to currentUser will use the latest logged in user. - @param username The username of the user. - @param password The password of the user. - @param error The error object to set on error. - @result Returns an instance of the PFUser on success. If login failed for either wrong password or wrong username, returns nil. - */ -+ (instancetype)logInWithUsername:(NSString *)username - password:(NSString *)password - error:(NSError **)error; - -/*! - Makes an asynchronous request to login a user with specified credentials. - Returns an instance of the successfully logged in PFUser. This will also cache - the user locally so that calls to currentUser will use the latest logged in user. - @param username The username of the user. - @param password The password of the user. - */ -+ (void)logInWithUsernameInBackground:(NSString *)username - password:(NSString *)password; - -/*! - Makes an asynchronous request to login a user with specified credentials. - Returns an instance of the successfully logged in PFUser. This will also cache - the user locally so that calls to currentUser will use the latest logged in user. - The selector for the callback should look like: myCallback:(PFUser *)user error:(NSError **)error - @param username The username of the user. - @param password The password of the user. - @param target Target object for the selector. - @param selector The selector that will be called when the asynchrounous request is complete. - */ -+ (void)logInWithUsernameInBackground:(NSString *)username - password:(NSString *)password - target:(id)target - selector:(SEL)selector; - -/*! - Makes an asynchronous request to log in a user with specified credentials. - Returns an instance of the successfully logged in PFUser. This will also cache - the user locally so that calls to currentUser will use the latest logged in user. - @param username The username of the user. - @param password The password of the user. - @param block The block to execute. The block should have the following argument signature: (PFUser *user, NSError *error) - */ -+ (void)logInWithUsernameInBackground:(NSString *)username - password:(NSString *)password - block:(PFUserResultBlock)block; - -/** @name Becoming a user */ - -/*! - Makes a request to become a user with the given session token. Returns an - instance of the successfully logged in PFUser. This also caches the user locally - so that calls to currentUser will use the latest logged in user. - @param sessionToken The session token for the user. - @result Returns an instance of the PFUser on success. If becoming a user fails due to incorrect token, it returns nil. - */ -+ (instancetype)become:(NSString *)sessionToken; - -/*! - Makes a request to become a user with the given session token. Returns an - instance of the successfully logged in PFUser. This will also cache the user - locally so that calls to currentUser will use the latest logged in user. - @param sessionToken The session token for the user. - @param error The error object to set on error. - @result Returns an instance of the PFUser on success. If becoming a user fails due to incorrect token, it returns nil. - */ -+ (instancetype)become:(NSString *)sessionToken - error:(NSError **)error; - -/*! - Makes an asynchronous request to become a user with the given session token. Returns an - instance of the successfully logged in PFUser. This also caches the user locally - so that calls to currentUser will use the latest logged in user. - @param sessionToken The session token for the user. - */ -+ (void)becomeInBackground:(NSString *)sessionToken; - -/*! - Makes an asynchronous request to become a user with the given session token. Returns an - instance of the successfully logged in PFUser. This also caches the user locally - so that calls to currentUser will use the latest logged in user. - The selector for the callback should look like: myCallback:(PFUser *)user error:(NSError **)error - @param sessionToken The session token for the user. - @param target Target object for the selector. - @param selector The selector that will be called when the asynchrounous request is complete. - */ -+ (void)becomeInBackground:(NSString *)sessionToken - target:(id)target - selector:(SEL)selector; - -/*! - Makes an asynchronous request to become a user with the given session token. Returns an - instance of the successfully logged in PFUser. This also caches the user locally - so that calls to currentUser will use the latest logged in user. - The selector for the callback should look like: myCallback:(PFUser *)user error:(NSError **)error - @param sessionToken The session token for the user. - @param block The block to execute. The block should have the following argument signature: (PFUser *user, NSError *error) - */ -+ (void)becomeInBackground:(NSString *)sessionToken - block:(PFUserResultBlock)block; - -/** @name Logging Out */ - -/*! - Logs out the currently logged in user on disk. - */ -+ (void)logOut; - -/** @name Requesting a Password Reset */ - -/*! - Send a password reset request for a specified email. If a user account exists with that email, - an email will be sent to that address with instructions on how to reset their password. - @param email Email of the account to send a reset password request. - @result Returns true if the reset email request is successful. False if no account was found for the email address. - */ -+ (BOOL)requestPasswordResetForEmail:(NSString *)email; - -/*! - Send a password reset request for a specified email and sets an error object. If a user - account exists with that email, an email will be sent to that address with instructions - on how to reset their password. - @param email Email of the account to send a reset password request. - @param error Error object to set on error. - @result Returns true if the reset email request is successful. False if no account was found for the email address. - */ -+ (BOOL)requestPasswordResetForEmail:(NSString *)email - error:(NSError **)error; - -/*! - Send a password reset request asynchronously for a specified email and sets an - error object. If a user account exists with that email, an email will be sent to - that address with instructions on how to reset their password. - @param email Email of the account to send a reset password request. - */ -+ (void)requestPasswordResetForEmailInBackground:(NSString *)email; - -/*! - Send a password reset request asynchronously for a specified email and sets an error object. - If a user account exists with that email, an email will be sent to that address with instructions - on how to reset their password. - @param email Email of the account to send a reset password request. - @param target Target object for the selector. - @param selector The selector that will be called when the asynchronous request is complete. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError **)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not. - */ -+ (void)requestPasswordResetForEmailInBackground:(NSString *)email - target:(id)target - selector:(SEL)selector; - -/*! - Send a password reset request asynchronously for a specified email. - If a user account exists with that email, an email will be sent to that address with instructions - on how to reset their password. - @param email Email of the account to send a reset password request. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)requestPasswordResetForEmailInBackground:(NSString *)email - block:(PFBooleanResultBlock)block; - -/** @name Querying for Users */ - -/*! - Creates a query for PFUser objects. - */ -+ (PFQuery *)query; - - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PF_EGORefreshTableHeaderView.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PF_EGORefreshTableHeaderView.h deleted file mode 100755 index fab923f..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PF_EGORefreshTableHeaderView.h +++ /dev/null @@ -1,49 +0,0 @@ -// -// EGORefreshTableHeaderView.h -// Demo -// -// Created by Devin Doty on 10/14/09October14. -// Copyright 2009 enormego. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// - -#import - -@protocol PF_EGORefreshTableHeaderDelegate; -@interface PF_EGORefreshTableHeaderView : UIView - -@property (nonatomic, weak) id delegate; -@property (nonatomic, strong, readonly) UILabel *lastUpdatedLabel; -@property (nonatomic, strong, readonly) UILabel *statusLabel; -@property (nonatomic, strong, readonly) UIActivityIndicatorView *activityView; - -- (void)refreshLastUpdatedDate; -- (void)egoRefreshScrollViewDidScroll:(UIScrollView *)scrollView; -- (void)egoRefreshScrollViewDidEndDragging:(UIScrollView *)scrollView; -- (void)egoRefreshScrollViewDataSourceDidFinishedLoading:(UIScrollView *)scrollView; - -@end - -@protocol PF_EGORefreshTableHeaderDelegate -- (void)egoRefreshTableHeaderDidTriggerRefresh:(PF_EGORefreshTableHeaderView*)view; -- (BOOL)egoRefreshTableHeaderDataSourceIsLoading:(PF_EGORefreshTableHeaderView*)view; -@optional -- (NSDate*)egoRefreshTableHeaderDataSourceLastUpdated:(PF_EGORefreshTableHeaderView*)view; -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PF_MBProgressHUD.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PF_MBProgressHUD.h deleted file mode 100755 index 42080df..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PF_MBProgressHUD.h +++ /dev/null @@ -1,348 +0,0 @@ -// -// MBProgressHUD.h -// Version 0.4 -// Created by Matej Bukovinski on 2.4.09. -// - -// This code is distributed under the terms and conditions of the MIT license. - -// Copyright (c) 2011 Matej Bukovinski -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#import - -#import "PFConstants.h" - -@protocol PF_MBProgressHUDDelegate; - -///////////////////////////////////////////////////////////////////////////////////////////// - -typedef enum { - /** Progress is shown using an UIActivityIndicatorView. This is the default. */ - PF_MBProgressHUDModeIndeterminate, - /** Progress is shown using a MBRoundProgressView. */ - PF_MBProgressHUDModeDeterminate, - /** Shows a custom view */ - PF_MBProgressHUDModeCustomView -} PF_MBProgressHUDMode; - -typedef enum { - /** Opacity animation */ - PF_MBProgressHUDAnimationFade, - /** Opacity + scale animation */ - PF_MBProgressHUDAnimationZoom -} PF_MBProgressHUDAnimation; - -///////////////////////////////////////////////////////////////////////////////////////////// - -/** - * Displays a simple HUD window containing a progress indicator and two optional labels for short messages. - * - * This is a simple drop-in class for displaying a progress HUD view similar to Apples private UIProgressHUD class. - * The MBProgressHUD window spans over the entire space given to it by the initWithFrame constructor and catches all - * user input on this region, thereby preventing the user operations on components below the view. The HUD itself is - * drawn centered as a rounded semi-transparent view witch resizes depending on the user specified content. - * - * This view supports three modes of operation: - * - MBProgressHUDModeIndeterminate - shows a UIActivityIndicatorView - * - MBProgressHUDModeDeterminate - shows a custom round progress indicator (MBRoundProgressView) - * - MBProgressHUDModeCustomView - shows an arbitrary, user specified view (@see customView) - * - * All three modes can have optional labels assigned: - * - If the labelText property is set and non-empty then a label containing the provided content is placed below the - * indicator view. - * - If also the detailsLabelText property is set then another label is placed below the first label. - */ -@interface PF_MBProgressHUD : UIView { - PF_MBProgressHUDMode mode; - -#if __has_feature(objc_arc) - id __weak delegate; -#else - id delegate; -#endif - - SEL methodForExecution; - id targetForExecution; - id objectForExecution; - BOOL useAnimation; - - UILabel *label; - UILabel *detailsLabel; - - float progress; - - NSString *labelText; - NSString *detailsLabelText; - - BOOL isFinished; - - CGAffineTransform rotationTransform; -} - -/** - * Creates a new HUD, adds it to provided view and shows it. The counterpart to this method is hideHUDForView:animated:. - * - * @param view The view that the HUD will be added to - * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use - * animations while disappearing. - * @return A reference to the created HUD. - * - * @see hideHUDForView:animated: - */ -+ (PF_MBProgressHUD *)showHUDAddedTo:(UIView *)view animated:(BOOL)animated; - -/** - * Finds a HUD sibview and hides it. The counterpart to this method is showHUDAddedTo:animated:. - * - * @param view The view that is going to be searched for a HUD subview. - * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use - * animations while disappearing. - * @return YES if a HUD was found and removed, NO otherwise. - * - * @see hideHUDForView:animated: - */ -+ (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated; - -/** - * A convenience constructor that initializes the HUD with the window's bounds. Calls the designated constructor with - * window.bounds as the parameter. - * - * @param window The window instance that will provide the bounds for the HUD. Should probably be the same instance as - * the HUD's superview (i.e., the window that the HUD will be added to). - */ -- (id)initWithWindow:(UIWindow *)window; - -/** - * A convenience constructor that initializes the HUD with the view's bounds. Calls the designated constructor with - * view.bounds as the parameter - * - * @param view The view instance that will provide the bounds for the HUD. Should probably be the same instance as - * the HUD's superview (i.e., the view that the HUD will be added to). - */ -- (id)initWithView:(UIView *)view; - -/** - * The UIView (i.g., a UIIMageView) to be shown when the HUD is in MBProgressHUDModeCustomView. - * For best results use a 37 by 37 pixel view (so the bounds match the build in indicator bounds). - */ -@property (strong) UIView *customView; - -/** - * MBProgressHUD operation mode. Switches between indeterminate (MBProgressHUDModeIndeterminate) and determinate - * progress (MBProgressHUDModeDeterminate). The default is MBProgressHUDModeIndeterminate. - * - * @see MBProgressHUDMode - */ -@property (assign) PF_MBProgressHUDMode mode; - -/** - * The animation type that should be used when the HUD is shown and hidden. - * - * @see MBProgressHUDAnimation - */ -@property (assign) PF_MBProgressHUDAnimation animationType; - -/** - * The HUD delegate object. If set the delegate will receive hudWasHidden callbacks when the HUD was hidden. The - * delegate should conform to the MBProgressHUDDelegate protocol and implement the hudWasHidden method. The delegate - * object will not be retained. - */ -@property (weak) id delegate; - -/** - * An optional short message to be displayed below the activity indicator. The HUD is automatically resized to fit - * the entire text. If the text is too long it will get clipped by displaying "..." at the end. If left unchanged or - * set to @"", then no message is displayed. - */ -@property (copy) NSString *labelText; - -/** - * An optional details message displayed below the labelText message. This message is displayed only if the labelText - * property is also set and is different from an empty string (@""). - */ -@property (copy) NSString *detailsLabelText; - -/** - * The opacity of the HUD window. Defaults to 0.9 (90% opacity). - */ -@property (assign) float opacity; - -/** - * The x-axis offset of the HUD relative to the centre of the superview. - */ -@property (assign) float xOffset; - -/** - * The y-ayis offset of the HUD relative to the centre of the superview. - */ -@property (assign) float yOffset; - -/** - * The amounth of space between the HUD edge and the HUD elements (labels, indicators or custom views). - * - * Defaults to 20.0 - */ -@property (assign) float margin; - -/** - * Cover the HUD background view with a radial gradient. - */ -@property (assign) BOOL dimBackground; - -/* - * Grace period is the time (in seconds) that the invoked method may be run without - * showing the HUD. If the task finishes befor the grace time runs out, the HUD will - * not be shown at all. - * This may be used to prevent HUD display for very short tasks. - * Defaults to 0 (no grace time). - * Grace time functionality is only supported when the task status is known! - * @see taskInProgress - */ -@property (assign) float graceTime; - - -/** - * The minimum time (in seconds) that the HUD is shown. - * This avoids the problem of the HUD being shown and than instantly hidden. - * Defaults to 0 (no minimum show time). - */ -@property (assign) float minShowTime; - -/** - * Indicates that the executed operation is in progress. Needed for correct graceTime operation. - * If you don't set a graceTime (different than 0.0) this does nothing. - * This property is automatically set when using showWhileExecuting:onTarget:withObject:animated:. - * When threading is done outside of the HUD (i.e., when the show: and hide: methods are used directly), - * you need to set this property when your task starts and completes in order to have normal graceTime - * functunality. - */ -@property (assign) BOOL taskInProgress; - -/** - * Removes the HUD from it's parent view when hidden. - * Defaults to NO. - */ -@property (assign) BOOL removeFromSuperViewOnHide; - -/** - * Font to be used for the main label. Set this property if the default is not adequate. - */ -@property (strong) UIFont* labelFont; - -/** - * Font to be used for the details label. Set this property if the default is not adequate. - */ -@property (strong) UIFont* detailsLabelFont; - -/** - * The progress of the progress indicator, from 0.0 to 1.0. Defaults to 0.0. - */ -@property (assign) float progress; - - -/** - * Display the HUD. You need to make sure that the main thread completes its run loop soon after this method call so - * the user interface can be updated. Call this method when your task is already set-up to be executed in a new thread - * (e.g., when using something like NSOperation or calling an asynchronous call like NSUrlRequest). - * - * If you need to perform a blocking thask on the main thread, you can try spining the run loop imeidiately after calling this - * method by using: - * - * [[NSRunLoop currentRunLoop] runUntilDate:[NSDate distantPast]]; - * - * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use - * animations while disappearing. - */ -- (void)show:(BOOL)animated; - -/** - * Hide the HUD. This still calls the hudWasHidden delegate. This is the counterpart of the hide: method. Use it to - * hide the HUD when your task completes. - * - * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use - * animations while disappearing. - */ -- (void)hide:(BOOL)animated; - -/** - * Hide the HUD after a delay. This still calls the hudWasHidden delegate. This is the counterpart of the hide: method. Use it to - * hide the HUD when your task completes. - * - * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use - * animations while disappearing. - * @param delay Delay in secons until the HUD is hidden. - */ -- (void)hide:(BOOL)animated afterDelay:(NSTimeInterval)delay; - -/** - * Shows the HUD while a background task is executing in a new thread, then hides the HUD. - * - * This method also takes care of NSAutoreleasePools so your method does not have to be concerned with setting up a - * pool. - * - * @param method The method to be executed while the HUD is shown. This method will be executed in a new thread. - * @param target The object that the target method belongs to. - * @param object An optional object to be passed to the method. - * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use - * animations while disappearing. - */ -- (void)showWhileExecuting:(SEL)method onTarget:(id)target withObject:(id)object animated:(BOOL)animated; - -@end - -///////////////////////////////////////////////////////////////////////////////////////////// - -@protocol PF_MBProgressHUDDelegate - -@optional - -/** - * Called after the HUD was fully hidden from the screen. - */ -- (void)hudWasHidden:(PF_MBProgressHUD *)hud; - -/** - * @deprecated use hudWasHidden: instead - * @see hudWasHidden: - */ -- (void)hudWasHidden PARSE_DEPRECATED("Use -hudWasHidden: instead."); - -@end - -///////////////////////////////////////////////////////////////////////////////////////////// - -/** - * A progress view for showing definite progress by filling up a circle (pie chart). - */ -@interface PF_MBRoundProgressView : UIView { -@private - float _progress; -} - -/** - * Progress (0.0 to 1.0) - */ -@property (nonatomic, assign) float progress; - -@end - -///////////////////////////////////////////////////////////////////////////////////////////// - diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PF_Twitter.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PF_Twitter.h deleted file mode 100644 index 4d504e8..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/PF_Twitter.h +++ /dev/null @@ -1,43 +0,0 @@ -// -// PF_Twitter.h -// Copyright (c) 2012 Parse, Inc. All rights reserved. -// - -#import - -/*! - A simple interface for interacting with the Twitter REST API, automating sign-in and OAuth signing of requests against the API. - */ -@interface PF_Twitter : NSObject { -@private - NSString *consumerKey; - NSString *consumerSecret; - NSString *authToken; - NSString *authTokenSecret; - NSString *userId; - NSString *screenName; -} - -@property (nonatomic, copy) NSString *consumerKey; -@property (nonatomic, copy) NSString *consumerSecret; -@property (nonatomic, copy) NSString *authToken; -@property (nonatomic, copy) NSString *authTokenSecret; -@property (nonatomic, copy) NSString *userId; -@property (nonatomic, copy) NSString *screenName; - -/*! - Displays an auth dialog and populates the authToken, authTokenSecret, userId, and screenName properties if the Twitter user - grants permission to the application. - @param success Invoked upon successful authorization. - @param failure Invoked upon an error occurring in the authorization process. - @param cancel Invoked when the user cancels authorization. - */ -- (void)authorizeWithSuccess:(void (^)(void))success failure:(void (^)(NSError *error))failure cancel:(void (^)(void))cancel; - -/*! - Adds a 3-legged OAuth signature to an NSMutableURLRequest based upon the properties set for the Twitter object. Use this - function to sign requests being made to the Twitter API. - */ -- (void)signRequest:(NSMutableURLRequest *)request; - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/Parse.h b/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/Parse.h deleted file mode 100644 index 354c726..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Headers/Parse.h +++ /dev/null @@ -1,72 +0,0 @@ -// -// Parse.h -// Parse -// -// Created by Ilya Sukhar on 9/29/11. -// Copyright 2011 Parse, Inc. All rights reserved. -// - -#import -#import "PFACL.h" -#import "PFAnalytics.h" -#import "PFAnonymousUtils.h" -#import "PFCloud.h" -#import "PFConstants.h" -#import "PFFile.h" -#import "PFGeoPoint.h" -#import "PFObject.h" -#import "PFQuery.h" -#import "PFRelation.h" -#import "PFRole.h" -#import "PFSubclassing.h" -#import "PFUser.h" - -#if PARSE_IOS_ONLY -#import "PFImageView.h" -#import "PFInstallation.h" -#import "PFLogInViewController.h" -#import "PFProduct.h" -#import "PFProductTableViewController.h" -#import "PFPurchase.h" -#import "PFPush.h" -#import "PFQueryTableViewController.h" -#import "PFSignUpViewController.h" -#import "PFTableViewCell.h" -#import "PFTwitterUtils.h" -#endif - -/*! - The Parse class contains static functions that handle global configuration for the Parse framework. - */ -@interface Parse : NSObject - -/** @name Connecting to Parse */ - -/*! - Sets the applicationId and clientKey of your application. - @param applicationId The application id for your Parse application. - @param clientKey The client key for your Parse application. - */ -+ (void)setApplicationId:(NSString *)applicationId clientKey:(NSString *)clientKey; -+ (NSString *)getApplicationId; -+ (NSString *)getClientKey; - -#if PARSE_IOS_ONLY -/** @name Configuring UI Settings */ - -/*! - Set whether to show offline messages when using a Parse view or view controller related classes. - @param enabled Whether a UIAlertView should be shown when the device is offline and network access is required - from a view or view controller. - */ -+ (void)offlineMessagesEnabled:(BOOL)enabled; - -/*! - Set whether to show an error message when using a Parse view or view controller related classes - and a Parse error was generated via a query. - @param enabled Whether a UIAlertView should be shown when a Parse error occurs. - */ -+ (void)errorMessagesEnabled:(BOOL)enabled; -#endif - -@end diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Parse b/iphone/assets/Frameworks/Parse.framework/Versions/A/Parse deleted file mode 100644 index b24dcc5..0000000 Binary files a/iphone/assets/Frameworks/Parse.framework/Versions/A/Parse and /dev/null differ diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Resources/Info.plist b/iphone/assets/Frameworks/Parse.framework/Versions/A/Resources/Info.plist deleted file mode 100644 index e534227..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/A/Resources/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - Parse - CFBundleIdentifier - com.parse.Parse - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.2.21 - CFBundleSignature - ???? - CFBundleVersion - 1.2.21 - - diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/A/Resources/Localizable.strings b/iphone/assets/Frameworks/Parse.framework/Versions/A/Resources/Localizable.strings deleted file mode 100644 index dca067e..0000000 Binary files a/iphone/assets/Frameworks/Parse.framework/Versions/A/Resources/Localizable.strings and /dev/null differ diff --git a/iphone/assets/Frameworks/Parse.framework/Versions/Current b/iphone/assets/Frameworks/Parse.framework/Versions/Current deleted file mode 120000 index 8c7e5a6..0000000 --- a/iphone/assets/Frameworks/Parse.framework/Versions/Current +++ /dev/null @@ -1 +0,0 @@ -A \ No newline at end of file diff --git a/iphone/assets/Frameworks/Parse.framework/en.lproj/Parse.strings b/iphone/assets/Frameworks/Parse.framework/en.lproj/Parse.strings new file mode 100644 index 0000000..815195a Binary files /dev/null and b/iphone/assets/Frameworks/Parse.framework/en.lproj/Parse.strings differ diff --git a/iphone/assets/Frameworks/Parse.framework/third_party_licenses.txt b/iphone/assets/Frameworks/Parse.framework/third_party_licenses.txt index 63ee96f..a49d8d1 100644 --- a/iphone/assets/Frameworks/Parse.framework/third_party_licenses.txt +++ b/iphone/assets/Frameworks/Parse.framework/third_party_licenses.txt @@ -1,120 +1,68 @@ -THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THE PARSE PRODUCT. - ------ - -The following software may be included in this product: AFNetworking. This software contains the following license and notice below: - -Copyright (c) 2011 Gowalla (http://gowalla.com/) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - ------ - -The following software may be included in this product: EGOTableViewPullRefresh. This software contains the following license and notice below: - -// -// EGORefreshTableHeaderView.h -// Demo -// -// Created by Devin Doty on 10/14/09October14. -// Copyright 2009 enormego. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// - ------ - -The following software may be included in this product: MBProgressHUD. This software contains the following license and notice below: - -Copyright (c) 2013 Matej Bukovinski - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - ------ - -The following software may be included in this product: OAuthCore. This software contains the following license and notice below: - -Copyright (C) 2012 Loren Brichter - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ------ - -The following software may be included in this product: SBJson. This software contains the following license and notice below: - -Copyright (C) 2007-2011 Stig Brautaset. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. -* Neither the name of the author nor the names of its contributors may be used - to endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file +THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THE PARSE PRODUCT. + +----- + +The following software may be included in this product: OAuthCore. This software contains the following license and notice below: + +Copyright (C) 2012 Loren Brichter + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +----- + +The following software may be included in this product: google-breakpad. This software contains the following license and notice below: + +Copyright (c) 2006, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. +* Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +-------------------------------------------------------------------- + +Copyright 2001-2004 Unicode, Inc. + +Disclaimer + +This source code is provided as is by Unicode, Inc. No claims are +made as to fitness for any particular purpose. No warranties of any +kind are expressed or implied. The recipient agrees to determine +applicability of information provided. If this file has been +purchased on magnetic or optical media from Unicode, Inc., the +sole remedy for any claim will be exchange of defective media +within 90 days of receipt. + +Limitations on Rights to Redistribute This Code + +Unicode, Inc. hereby grants the right to freely use the information +supplied in this file in the creation of products supporting the +Unicode Standard, and to make copies of this file in any form +for internal or external distribution as long as this notice +remains attached. diff --git a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Headers b/iphone/assets/Frameworks/ParseFacebookUtils.framework/Headers deleted file mode 120000 index a177d2a..0000000 --- a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Headers +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Headers \ No newline at end of file diff --git a/iphone/assets/Frameworks/ParseFacebookUtils.framework/ParseFacebookUtils b/iphone/assets/Frameworks/ParseFacebookUtils.framework/ParseFacebookUtils deleted file mode 120000 index ba6dfdf..0000000 --- a/iphone/assets/Frameworks/ParseFacebookUtils.framework/ParseFacebookUtils +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/ParseFacebookUtils \ No newline at end of file diff --git a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Resources b/iphone/assets/Frameworks/ParseFacebookUtils.framework/Resources deleted file mode 120000 index 953ee36..0000000 --- a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Resources +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Resources \ No newline at end of file diff --git a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/Headers/PFFacebookUtils.h b/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/Headers/PFFacebookUtils.h deleted file mode 100644 index eb16d79..0000000 --- a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/Headers/PFFacebookUtils.h +++ /dev/null @@ -1,290 +0,0 @@ -// -// PFFacebookUtils.h -// Copyright (c) 2012 Parse, Inc. All rights reserved. -// - -#import - -#import - -#import -#import - -/*! - Provides utility functions for working with Facebook in a Parse application. - - This class is currently for iOS only. - */ -@interface PFFacebookUtils : NSObject - -/** @name Interacting With Facebook */ - -/*! - Gets the Facebook session for the current user. - */ -+ (FBSession *)session; - -/*! - Initializes the Facebook singleton. You must invoke this in order to use the Facebook functionality in Parse. - - @param appId The Facebook application id that you are using with your Parse application. - @deprecated Please use [PFFacebookUtils initializeFacebook] instead. - */ -+ (void)initializeWithApplicationId:(NSString *)appId PARSE_DEPRECATED("Use [PFFacebookUtils initializeFacebook] instead."); - -/*! - Initializes the Facebook singleton. You must invoke this in order to use the Facebook functionality in Parse. - - @param appId The Facebook application id that you are using with your Parse application. - @param urlSchemeSuffix The URL suffix for this application - used when multiple applications with the same - @deprecated Please use [PFFacebookUtils initializeFacebookWithUrlShemeSuffix:] instead. - */ -+ (void)initializeWithApplicationId:(NSString *)appId - urlSchemeSuffix:(NSString *)urlSchemeSuffix PARSE_DEPRECATED("Use [PFFacebookUtils initializeFacebookWithUrlShemeSuffix:] instead."); - -/*! - Initializes the Facebook singleton. You must invoke this in order to use the Facebook functionality in Parse. - You must provide your Facebook application ID as the value for FacebookAppID in your bundle's plist file as - described here: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/ - */ -+ (void)initializeFacebook; - -/*! - Initializes the Facebook singleton. You must invoke this in order to use the Facebook functionality in Parse. - You must provide your Facebook application ID as the value for FacebookAppID in your bundle's plist file as - described here: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/ - - @param urlSchemeSuffix The URL suffix for this application - used when multiple applications with the same - Facebook application ID may be on the same device. - */ -+ (void)initializeFacebookWithUrlShemeSuffix:(NSString *)urlSchemeSuffix; - -/*! - Whether the user has their account linked to Facebook. - - @param user User to check for a facebook link. The user must be logged in on this device. - @result True if the user has their account linked to Facebook. - */ -+ (BOOL)isLinkedWithUser:(PFUser *)user; - -/** @name Logging In & Creating Facebook-Linked Users */ - -/*! - Logs in a user using Facebook. This method delegates to the Facebook SDK to authenticate - the user, and then automatically logs in (or creates, in the case where it is a new user) - a PFUser. - - @param permissions The permissions required for Facebook log in. This passed to the authorize method on - the Facebook instance. - @param block The block to execute. The block should have the following argument signature: - (PFUser *user, NSError *error) - */ -+ (void)logInWithPermissions:(NSArray *)permissions block:(PFUserResultBlock)block; - -/*! - Logs in a user using Facebook. This method delegates to the Facebook SDK to authenticate - the user, and then automatically logs in (or creates, in the case where it is a new user) - a PFUser. The selector for the callback should look like: (PFUser *)user error:(NSError **)error - - @param permissions The permissions required for Facebook log in. This passed to the authorize method on - the Facebook instance. - @param target Target object for the selector - @param selector The selector that will be called when the asynchronous request is complete. - */ -+ (void)logInWithPermissions:(NSArray *)permissions target:(id)target selector:(SEL)selector; - -/*! - Logs in a user using Facebook. Allows you to handle user login to Facebook, then provide authentication - data to log in (or create, in the case where it is a new user) the PFUser. - - @param facebookId The id of the Facebook user being linked - @param accessToken The access token for the user's session - @param expirationDate The expiration date for the access token - @param block The block to execute. The block should have the following argument signature: - (PFUser *user, NSError *error) - */ -+ (void)logInWithFacebookId:(NSString *)facebookId - accessToken:(NSString *)accessToken - expirationDate:(NSDate *)expirationDate - block:(PFUserResultBlock)block; - -/*! - Logs in a user using Facebook. Allows you to handle user login to Facebook, then provide authentication - data to log in (or create, in the case where it is a new user) the PFUser. - The selector for the callback should look like: (PFUser *)user error:(NSError *)error - - @param facebookId The id of the Facebook user being linked - @param accessToken The access token for the user's session - @param expirationDate The expiration date for the access token - @param target Target object for the selector - @param selector The selector that will be called when the asynchronous request is complete - */ -+ (void)logInWithFacebookId:(NSString *)facebookId - accessToken:(NSString *)accessToken - expirationDate:(NSDate *)expirationDate - target:(id)target - selector:(SEL)selector; - -/** @name Linking Users with Facebook */ - -/*! - Links Facebook to an existing PFUser. This method delegates to the Facebook SDK to authenticate - the user, and then automatically links the account to the PFUser. - - @param user User to link to Facebook. - @param permissions The permissions required for Facebook log in. This passed to the authorize method on - the Facebook instance. - */ -+ (void)linkUser:(PFUser *)user permissions:(NSArray *)permissions; - -/*! - Links Facebook to an existing PFUser. This method delegates to the Facebook SDK to authenticate - the user, and then automatically links the account to the PFUser. - - @param user User to link to Facebook. - @param permissions The permissions required for Facebook log in. This passed to the authorize method on - the Facebook instance. - @param block The block to execute. The block should have the following argument signature: - (BOOL *success, NSError *error) - */ -+ (void)linkUser:(PFUser *)user permissions:(NSArray *)permissions block:(PFBooleanResultBlock)block; - -/*! - Links Facebook to an existing PFUser. This method delegates to the Facebook SDK to authenticate - the user, and then automatically links the account to the PFUser. - The selector for the callback should look like: (NSNumber *)result error:(NSError *)error - - @param user User to link to Facebook. - @param permissions The permissions required for Facebook log in. This passed to the authorize method on - the Facebook instance. - @param target Target object for the selector - @param selector The selector that will be called when the asynchronous request is complete. - */ -+ (void)linkUser:(PFUser *)user permissions:(NSArray *)permissions target:(id)target selector:(SEL)selector; - -/*! - Links Facebook to an existing PFUser. Allows you to handle user login to Facebook, then provide authentication - data to link the account to the PFUser. - - @param user User to link to Facebook. - @param facebookId The id of the Facebook user being linked - @param accessToken The access token for the user's session - @param expirationDate The expiration date for the access token - @param block The block to execute. The block should have the following argument signature: - (BOOL *success, NSError *error) - */ -+ (void)linkUser:(PFUser *)user - facebookId:(NSString *)facebookId - accessToken:(NSString *)accessToken - expirationDate:(NSDate *)expirationDate - block:(PFBooleanResultBlock)block; - -/*! - Links Facebook to an existing PFUser. Allows you to handle user login to Facebook, then provide authentication - data to link the account to the PFUser. - The selector for the callback should look like: (NSNumber *)result error:(NSError *)error - - @param user User to link to Facebook. - @param facebookId The id of the Facebook user being linked - @param accessToken The access token for the user's session - @param expirationDate The expiration date for the access token - @param target Target object for the selector - @param selector The selector that will be called when the asynchronous request is complete - */ -+ (void)linkUser:(PFUser *)user - facebookId:(NSString *)facebookId - accessToken:(NSString *)accessToken - expirationDate:(NSDate *)expirationDate - target:(id)target - selector:(SEL)selector; - -/** @name Unlinking Users from Facebook */ - -/*! - Unlinks the PFUser from a Facebook account. - - @param user User to unlink from Facebook. - @result Returns true if the unlink was successful. - */ -+ (BOOL)unlinkUser:(PFUser *)user; - -/*! - Unlinks the PFUser from a Facebook account. - - @param user User to unlink from Facebook. - @param error Error object to set on error. - @result Returns true if the unlink was successful. - */ -+ (BOOL)unlinkUser:(PFUser *)user error:(NSError **)error; - -/*! - Makes an asynchronous request to unlink a user from a Facebook account. - - @param user User to unlink from Facebook. - */ -+ (void)unlinkUserInBackground:(PFUser *)user; - -/*! - Makes an asynchronous request to unlink a user from a Facebook account. - - @param user User to unlink from Facebook. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)unlinkUserInBackground:(PFUser *)user block:(PFBooleanResultBlock)block; - -/*! - Makes an asynchronous request to unlink a user from a Facebook account. - - @param user User to unlink from Facebook - @param target Target object for the selector - @param selector The selector that will be called when the asynchronous request is complete. - */ -+ (void)unlinkUserInBackground:(PFUser *)user target:(id)target selector:(SEL)selector; - -/** @name Obtaining new permissions */ - -/*! - Requests new Facebook publish permissions for the given user. This may prompt the user to - reauthorize the application. The user will be saved as part of this operation. - - @param user User to request new permissions for. The user must be linked to Facebook. - @param permissions The new publishing permissions to request. - @param audience The default audience for publishing permissions to request. - @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) - */ -+ (void)reauthorizeUser:(PFUser *)user - withPublishPermissions:(NSArray *)permissions - audience:(FBSessionDefaultAudience)audience - block:(PFBooleanResultBlock)block; - -/*! - Requests new Facebook publish permissions for the given user. This may prompt the user to - reauthorize the application. The user will be saved as part of this operation. - - @param user User to request new permissions for. The user must be linked to Facebook. - @param permissions The new publishing permissions to request. - @param audience The default audience for publishing permissions to request. - @param target Target object for the selector - @param selector The selector that will be called when the asynchronous request is complete. - */ -+ (void)reauthorizeUser:(PFUser *)user - withPublishPermissions:(NSArray *)permissions - audience:(FBSessionDefaultAudience)audience - target:(id)target - selector:(SEL)selector; - -/** @name Delegating URL Actions */ - -/*! - Handles URLs being opened by your AppDelegate. Invoke and return this from application:handleOpenURL: - or application:openURL:sourceApplication:annotation in your AppDelegate. - - @param url URL being opened by your application. - @result True if Facebook will handle this URL. - @deprecated Please use [FBAppCall handleOpenURL:url - sourceApplication:sourceApplication - withSession:[PFFacebookUtils session]]; instead - */ -+ (BOOL)handleOpenURL:(NSURL *)url PARSE_DEPRECATED("Use [FBAppCall handleOpenURL:sourceApplication:withSession:] instead."); - -@end diff --git a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/ParseFacebookUtils b/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/ParseFacebookUtils deleted file mode 100644 index d0362f5..0000000 Binary files a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/ParseFacebookUtils and /dev/null differ diff --git a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/Resources/Info.plist b/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/Resources/Info.plist deleted file mode 100644 index e010b72..0000000 --- a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/Resources/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - ParseFacebookUtils - CFBundleIdentifier - com.parse.ParseFacebookUtils - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.2.21 - CFBundleSignature - ???? - CFBundleVersion - 1.2.21 - - diff --git a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/Resources/Localizable.strings b/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/Resources/Localizable.strings deleted file mode 100644 index dca067e..0000000 Binary files a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/A/Resources/Localizable.strings and /dev/null differ diff --git a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/Current b/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/Current deleted file mode 120000 index 8c7e5a6..0000000 --- a/iphone/assets/Frameworks/ParseFacebookUtils.framework/Versions/Current +++ /dev/null @@ -1 +0,0 @@ -A \ No newline at end of file diff --git a/iphone/assets/Frameworks/ParseFacebookUtils.framework/third_party_licenses.txt b/iphone/assets/Frameworks/ParseFacebookUtils.framework/third_party_licenses.txt deleted file mode 100644 index 63ee96f..0000000 --- a/iphone/assets/Frameworks/ParseFacebookUtils.framework/third_party_licenses.txt +++ /dev/null @@ -1,120 +0,0 @@ -THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THE PARSE PRODUCT. - ------ - -The following software may be included in this product: AFNetworking. This software contains the following license and notice below: - -Copyright (c) 2011 Gowalla (http://gowalla.com/) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - ------ - -The following software may be included in this product: EGOTableViewPullRefresh. This software contains the following license and notice below: - -// -// EGORefreshTableHeaderView.h -// Demo -// -// Created by Devin Doty on 10/14/09October14. -// Copyright 2009 enormego. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// - ------ - -The following software may be included in this product: MBProgressHUD. This software contains the following license and notice below: - -Copyright (c) 2013 Matej Bukovinski - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - ------ - -The following software may be included in this product: OAuthCore. This software contains the following license and notice below: - -Copyright (C) 2012 Loren Brichter - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ------ - -The following software may be included in this product: SBJson. This software contains the following license and notice below: - -Copyright (C) 2007-2011 Stig Brautaset. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. -* Neither the name of the author nor the names of its contributors may be used - to endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/iphone/build.py b/iphone/build.py index c78cace..757a144 100755 --- a/iphone/build.py +++ b/iphone/build.py @@ -9,7 +9,7 @@ cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) -required_module_keys = ['name','version','moduleid','description','copyright','license','copyright','platform','minsdk'] +required_module_keys = ['architectures', 'name','version','moduleid','description','copyright','license','copyright','platform','minsdk'] module_defaults = { 'description':'My module', 'author': 'Your Name', @@ -69,9 +69,9 @@ def generate_doc(config): return documentation def compile_js(manifest,config): - js_file = os.path.join(cwd,'assets','rebel.Parse.js') + js_file = os.path.join(cwd,'assets','eu.rebelcorp.parse.js') if not os.path.exists(js_file): - js_file = os.path.join(cwd,'..','assets','rebel.Parse.js') + js_file = os.path.join(cwd,'..','assets','eu.rebelcorp.parse.js') if not os.path.exists(js_file): return from compiler import Compiler @@ -101,7 +101,7 @@ def compile_js(manifest,config): from tools import splice_code - assets_router = os.path.join(cwd,'Classes','RebelParseModuleAssets.m') + assets_router = os.path.join(cwd,'Classes','ComEz2010Ios64parseModuleAssets.m') splice_code(assets_router, 'asset', root_asset_content) splice_code(assets_router, 'resolve_asset', module_asset_content) @@ -139,6 +139,7 @@ def validate_manifest(): manifest[key.strip()]=value.strip() for key in required_module_keys: if not manifest.has_key(key): die("missing required manifest key '%s'" % key) + if manifest[key].strip() == '': die("manifest key '%s' missing required value" % key) if module_defaults.has_key(key): defvalue = module_defaults[key] curvalue = manifest[key] @@ -187,6 +188,24 @@ def build_module(manifest,config): os.system("lipo %s -create -output build/lib%s.a" %(libpaths,moduleid)) +def verify_build_arch(manifest, config): + binaryname = 'lib%s.a' % manifest['moduleid'] + binarypath = os.path.join('build', binaryname) + manifestarch = set(manifest['architectures'].split(' ')) + + output = subprocess.check_output('xcrun lipo -info %s' % binarypath, shell=True) + + builtarch = set(output.split(':')[-1].strip().split(' ')) + + if ('arm64' not in builtarch): + warn('built module is missing 64-bit support.') + + if (manifestarch != builtarch): + warn('there is discrepancy between the architectures specified in module manifest and compiled binary.') + warn('architectures in manifest: %s' % ', '.join(manifestarch)) + warn('compiled binary architectures: %s' % ', '.join(builtarch)) + die('please update manifest to match module binary architectures.') + def package_module(manifest,mf,config): name = manifest['name'].lower() moduleid = manifest['moduleid'].lower() @@ -242,6 +261,6 @@ def package_module(manifest,mf,config): compile_js(manifest,config) build_module(manifest,config) + verify_build_arch(manifest, config) package_module(manifest,mf,config) - sys.exit(0) - + sys.exit(0) \ No newline at end of file diff --git a/iphone/RebelParse_Prefix.pch b/iphone/eu.rebelcorp.parse_Prefix.pch similarity index 100% rename from iphone/RebelParse_Prefix.pch rename to iphone/eu.rebelcorp.parse_Prefix.pch diff --git a/iphone/manifest b/iphone/manifest index 07517a6..bae9ef4 100644 --- a/iphone/manifest +++ b/iphone/manifest @@ -11,7 +11,8 @@ copyright: Copyright (c) 2014 by Timan Rebel # these should not be edited name: Parse -moduleid: rebel.Parse +moduleid: eu.rebelcorp.parse guid: e700fd13-7783-4f1c-9201-1442922524fc platform: iphone -minsdk: 3.3.0.GA +minsdk: 3.5.1.GA +architectures: armv7 i386 x86_64 arm64 diff --git a/iphone/module.xcconfig b/iphone/module.xcconfig index 4348ee0..8176359 100644 --- a/iphone/module.xcconfig +++ b/iphone/module.xcconfig @@ -5,28 +5,7 @@ // see the following webpage for instructions on the settings // for this file: // http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeBuildSystem/400-Build_Configurations/build_configs.html -// -FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/rebel.parse/0.1.0/assets/Frameworks +FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/eu.rebelcorp.parse/0.1.0/assets/Frameworks -OTHER_LDFLAGS=$(inherited) /usr/lib/libsqlite3.dylib /usr/lib/libz.1.1.3.dylib -framework Parse -framework ParseFacebookUtils -framework FacebookSDK -weak_framework Accounts -framework AdSupport -framework AudioToolbox -framework CFNetwork -framework CoreLocation -framework MobileCoreServices -framework QuartzCore -framework Security -weak_framework Social -framework StoreKit -framework SystemConfiguration -framework Foundation -framework UIKit -framework CoreGraphics - - -// -// How to add a Framework (example) -// - -// -// Adding a framework for a specific version(s) of iPhone: -// -// OTHER_LDFLAGS[sdk=iphoneos4*]=$(inherited) -framework Foo -// OTHER_LDFLAGS[sdk=iphonesimulator4*]=$(inherited) -framework Foo -// -// -// How to add a compiler define: -// -// OTHER_CFLAGS=$(inherited) -DFOO=1 -// -// -// IMPORTANT NOTE: always use $(inherited) in your overrides -// +OTHER_LDFLAGS=$(inherited) -framework Bolts -framework Parse diff --git a/iphone/titanium.xcconfig b/iphone/titanium.xcconfig index e028f90..215b163 100644 --- a/iphone/titanium.xcconfig +++ b/iphone/titanium.xcconfig @@ -4,13 +4,13 @@ // OF YOUR TITANIUM SDK YOU'RE BUILDING FOR // // -TITANIUM_SDK_VERSION = 3.3.0.GA +TITANIUM_SDK_VERSION = 5.0.2.GA // // THESE SHOULD BE OK GENERALLY AS-IS // -TITANIUM_SDK = /Users/timanrebel/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA +TITANIUM_SDK = /Users/thibz/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA TITANIUM_BASE_SDK = "$(TITANIUM_SDK)/iphone/include" TITANIUM_BASE_SDK2 = "$(TITANIUM_SDK)/iphone/include/TiCore" HEADER_SEARCH_PATHS= $(TITANIUM_BASE_SDK) $(TITANIUM_BASE_SDK2)