Skip to content

Commit 82714fa

Browse files
committed
Se agrego soporte para TestFlight
1 parent 25755aa commit 82714fa

File tree

95 files changed

+9006
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+9006
-1
lines changed

FacebookSDK.framework/FacebookSDK

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./Versions/A/FacebookSDK

FacebookSDK.framework/Headers

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./Versions/A/Headers

FacebookSDK.framework/Resources

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./Versions/A/Resources
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright 2012 Facebook
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#import <Foundation/Foundation.h>
18+
#import "FBSession.h"
19+
20+
/*!
21+
@class
22+
23+
@abstract
24+
Base class from which CacheDescriptors derive, provides a method to fetch data for later use
25+
26+
@discussion
27+
Cache descriptors allow your application to specify the arguments that will be
28+
later used with another object, such as the FBFriendPickerViewController. By using a cache descriptor
29+
instance, an application can choose to fetch data ahead of the point in time where the data is needed.
30+
*/
31+
@interface FBCacheDescriptor : NSObject
32+
33+
/*!
34+
@method
35+
@abstract
36+
Fetches and caches the data described by the cache descriptor instance, for the given session.
37+
38+
@param session the <FBSession> to use for fetching data
39+
*/
40+
- (void)prefetchAndCacheForSession:(FBSession*)session;
41+
42+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright 2010 Facebook
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
18+
#include "Facebook.h"
19+
#include "FBDialog.h"
20+
#include "FBLoginDialog.h"
21+
#include "FBRequest.h"
22+
#include "FBSBJSON.h"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
/*
2+
* Copyright 2010 Facebook
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#import <Foundation/Foundation.h>
18+
#import <UIKit/UIKit.h>
19+
20+
@protocol FBDialogDelegate;
21+
@class FBFrictionlessRequestSettings;
22+
23+
/**
24+
* Do not use this interface directly, instead, use dialog in Facebook.h
25+
*
26+
* Facebook dialog interface for start the facebook webView UIServer Dialog.
27+
*/
28+
29+
@interface FBDialog : UIView <UIWebViewDelegate> {
30+
id<FBDialogDelegate> _delegate;
31+
NSMutableDictionary *_params;
32+
NSString * _serverURL;
33+
NSURL* _loadingURL;
34+
UIWebView* _webView;
35+
UIActivityIndicatorView* _spinner;
36+
UIButton* _closeButton;
37+
UIInterfaceOrientation _orientation;
38+
BOOL _showingKeyboard;
39+
BOOL _isViewInvisible;
40+
FBFrictionlessRequestSettings* _frictionlessSettings;
41+
42+
// Ensures that UI elements behind the dialog are disabled.
43+
UIView* _modalBackgroundView;
44+
}
45+
46+
/**
47+
* The delegate.
48+
*/
49+
@property(nonatomic,assign) id<FBDialogDelegate> delegate;
50+
51+
/**
52+
* The parameters.
53+
*/
54+
@property(nonatomic, retain) NSMutableDictionary* params;
55+
56+
- (NSString *) getStringFromUrl: (NSString*) url needle:(NSString *) needle;
57+
58+
- (id)initWithURL: (NSString *) loadingURL
59+
params: (NSMutableDictionary *) params
60+
isViewInvisible: (BOOL) isViewInvisible
61+
frictionlessSettings: (FBFrictionlessRequestSettings *) frictionlessSettings
62+
delegate: (id <FBDialogDelegate>) delegate;
63+
64+
/**
65+
* Displays the view with an animation.
66+
*
67+
* The view will be added to the top of the current key window.
68+
*/
69+
- (void)show;
70+
71+
/**
72+
* Displays the first page of the dialog.
73+
*
74+
* Do not ever call this directly. It is intended to be overriden by subclasses.
75+
*/
76+
- (void)load;
77+
78+
/**
79+
* Displays a URL in the dialog.
80+
*/
81+
- (void)loadURL:(NSString*)url
82+
get:(NSDictionary*)getParams;
83+
84+
/**
85+
* Hides the view and notifies delegates of success or cancellation.
86+
*/
87+
- (void)dismissWithSuccess:(BOOL)success animated:(BOOL)animated;
88+
89+
/**
90+
* Hides the view and notifies delegates of an error.
91+
*/
92+
- (void)dismissWithError:(NSError*)error animated:(BOOL)animated;
93+
94+
/**
95+
* Subclasses may override to perform actions just prior to showing the dialog.
96+
*/
97+
- (void)dialogWillAppear;
98+
99+
/**
100+
* Subclasses may override to perform actions just after the dialog is hidden.
101+
*/
102+
- (void)dialogWillDisappear;
103+
104+
/**
105+
* Subclasses should override to process data returned from the server in a 'fbconnect' url.
106+
*
107+
* Implementations must call dismissWithSuccess:YES at some point to hide the dialog.
108+
*/
109+
- (void)dialogDidSucceed:(NSURL *)url;
110+
111+
/**
112+
* Subclasses should override to process data returned from the server in a 'fbconnect' url.
113+
*
114+
* Implementations must call dismissWithSuccess:YES at some point to hide the dialog.
115+
*/
116+
- (void)dialogDidCancel:(NSURL *)url;
117+
@end
118+
119+
///////////////////////////////////////////////////////////////////////////////////////////////////
120+
121+
/*
122+
*Your application should implement this delegate
123+
*/
124+
@protocol FBDialogDelegate <NSObject>
125+
126+
@optional
127+
128+
/**
129+
* Called when the dialog succeeds and is about to be dismissed.
130+
*/
131+
- (void)dialogDidComplete:(FBDialog *)dialog;
132+
133+
/**
134+
* Called when the dialog succeeds with a returning url.
135+
*/
136+
- (void)dialogCompleteWithUrl:(NSURL *)url;
137+
138+
/**
139+
* Called when the dialog get canceled by the user.
140+
*/
141+
- (void)dialogDidNotCompleteWithUrl:(NSURL *)url;
142+
143+
/**
144+
* Called when the dialog is cancelled and is about to be dismissed.
145+
*/
146+
- (void)dialogDidNotComplete:(FBDialog *)dialog;
147+
148+
/**
149+
* Called when dialog failed to load due to an error.
150+
*/
151+
- (void)dialog:(FBDialog*)dialog didFailWithError:(NSError *)error;
152+
153+
/**
154+
* Asks if a link touched by a user should be opened in an external browser.
155+
*
156+
* If a user touches a link, the default behavior is to open the link in the Safari browser,
157+
* which will cause your app to quit. You may want to prevent this from happening, open the link
158+
* in your own internal browser, or perhaps warn the user that they are about to leave your app.
159+
* If so, implement this method on your delegate and return NO. If you warn the user, you
160+
* should hold onto the URL and once you have received their acknowledgement open the URL yourself
161+
* using [[UIApplication sharedApplication] openURL:].
162+
*/
163+
- (BOOL)dialog:(FBDialog*)dialog shouldOpenURLInExternalBrowser:(NSURL *)url;
164+
165+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
/*
2+
* Copyright 2012 Facebook
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#import <Foundation/Foundation.h>
18+
19+
/// The error domain of all error codes returned by the Facebook SDK
20+
extern NSString *const FacebookSDKDomain;
21+
22+
// ----------------------------------------------------------------------------
23+
// Keys in the userInfo NSDictionary of NSError where you can find additional
24+
// information about the error. All are optional.
25+
26+
/// The key for an inner NSError.
27+
extern NSString *const FBErrorInnerErrorKey;
28+
29+
/// The key for parsed JSON response from the server. In case of a batch,
30+
/// includes the JSON for a single FBRequest.
31+
extern NSString *const FBErrorParsedJSONResponseKey;
32+
33+
/// The key for HTTP status code.
34+
extern NSString *const FBErrorHTTPStatusCodeKey;
35+
36+
// ----------------------------------------------------------------------------
37+
/*!
38+
@abstract Error codes returned by the Facebook SDK in NSError.
39+
40+
@discussion
41+
These are valid only in the scope of FacebookSDKDomain.
42+
*/
43+
typedef enum FBErrorCode {
44+
/*!
45+
Like nil for FBErrorCode values, represents an error code that
46+
has not been initialized yet.
47+
*/
48+
FBErrorInvalid = 0,
49+
50+
/// The operation failed because it was cancelled.
51+
FBErrorOperationCancelled,
52+
53+
/// A login attempt failed
54+
FBErrorLoginFailedOrCancelled,
55+
56+
/// The graph API returned an error for this operation.
57+
FBErrorRequestConnectionApi,
58+
59+
/*!
60+
The operation failed because the server returned an unexpected
61+
response. You can get this error if you are not using the most
62+
recent SDK, or if you set your application's migration settings
63+
incorrectly for the version of the SDK you are using.
64+
65+
If this occurs on the current SDK with proper app migration
66+
settings, you may need to try changing to one request per batch.
67+
*/
68+
FBErrorProtocolMismatch,
69+
70+
/// Non-success HTTP status code was returned from the operation.
71+
FBErrorHTTPError,
72+
73+
/// An endpoint that returns a binary response was used with FBRequestConnection;
74+
/// endpoints that return image/jpg, etc. should be accessed using NSURLRequest
75+
FBErrorNonTextMimeTypeReturned,
76+
77+
/// An error occurred while trying to display a native dialog
78+
FBErrorNativeDialog,
79+
} FBErrorCode;
80+
81+
/*!
82+
The key in the userInfo NSDictionary of NSError where you can find
83+
the inner NSError (if any).
84+
*/
85+
extern NSString *const FBErrorInnerErrorKey;
86+
87+
/// The NSError key used by session to capture login failure reason
88+
extern NSString *const FBErrorLoginFailedReason;
89+
90+
/// the NSError key used by session to capture login failure error code
91+
extern NSString *const FBErrorLoginFailedOriginalErrorCode;
92+
93+
/// used by session when an inline dialog fails
94+
extern NSString *const FBErrorLoginFailedReasonInlineCancelledValue;
95+
extern NSString *const FBErrorLoginFailedReasonInlineNotCancelledValue;
96+
extern NSString *const FBErrorLoginFailedReasonUnitTestResponseUnrecognized;
97+
98+
/// used by session when a reauthorize fails
99+
extern NSString *const FBErrorReauthorizeFailedReasonSessionClosed;
100+
extern NSString *const FBErrorReauthorizeFailedReasonUserCancelled;
101+
extern NSString *const FBErrorReauthorizeFailedReasonWrongUser;
102+
103+
/// The key to retrieve the reason for a native dialog error
104+
extern NSString *const FBErrorNativeDialogReasonKey;
105+
106+
/// indicates that a native dialog is not supported in the current OS
107+
extern NSString *const FBErrorNativeDialogNotSupported;
108+
/// indicates that a native dialog can't be displayed because it is not appropriate for the current session
109+
extern NSString *const FBErrorNativeDialogInvalidForSession;
110+
/// indicates that a native dialog can't be displayed for some other reason
111+
extern NSString *const FBErrorNativeDialogCantBeDisplayed;
112+
113+
// Exception strings raised by the Facebook SDK
114+
115+
/*!
116+
This exception is raised by methods in the Facebook SDK to indicate
117+
that an attempted operation is invalid
118+
*/
119+
extern NSString *const FBInvalidOperationException;
120+
121+
// Facebook SDK also raises exceptions the following common exceptions:
122+
// NSInvalidArgumentException
123+

0 commit comments

Comments
 (0)