Skip to content

Commit

Permalink
iOS 12.2(added LimitedLogin) and Android 12.3 SDK update
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrules44 committed Jan 19, 2022
1 parent 83a883e commit acc2e3a
Show file tree
Hide file tree
Showing 1,281 changed files with 15,802 additions and 40,032 deletions.
6 changes: 3 additions & 3 deletions plugins/2020.3569/android/corona.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dependencies {
implementation("com.facebook.android:facebook-core:8.2.0")
implementation("com.facebook.android:facebook-login:8.2.0")
implementation("com.facebook.android:facebook-share:8.2.0")
implementation("com.facebook.android:facebook-core:12.3.0")
implementation("com.facebook.android:facebook-login:12.3.0")
implementation("com.facebook.android:facebook-share:12.3.0")
}
Binary file modified plugins/2020.3569/android/facebook.aar
Binary file not shown.
Binary file added plugins/2020.3569/iphone-sim/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

NS_SWIFT_NAME(Base64)
@interface FBSDKBase64 : NSObject

/**
Decodes a base-64 encoded string.
@param string The base-64 encoded string.
@return NSData containing the decoded bytes.
*/
+ (nullable NSData *)decodeAsData:(nullable NSString *)string;

/**
Decodes a base-64 encoded string into a string.
@param string The base-64 encoded string.
@return NSString with the decoded UTF-8 value.
*/
+ (nullable NSString *)decodeAsString:(nullable NSString *)string;

/**
Encodes data into a string.
@param data The data to be encoded.
@return The base-64 encoded string.
*/
+ (nullable NSString *)encodeData:(nullable NSData *)data;

/**
Encodes string into a base-64 representation.
@param string The string to be encoded.
@return The base-64 encoded string.
*/
+ (nullable NSString *)encodeString:(nullable NSString *)string;

/**
Encodes URL string into a base-64 representation.
@param base64Url The URL string to be encoded.
@return The base-64 encoded string.
*/
+ (NSString *)base64FromBase64Url:(NSString *)base64Url;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/**
Dispatches the specified block on the main thread.
@param block the block to dispatch
*/
extern void fb_dispatch_on_main_thread(dispatch_block_t block);

/**
Dispatches the specified block on the default thread.
@param block the block to dispatch
*/
extern void fb_dispatch_on_default_thread(dispatch_block_t block);

/**
Describes the callback for appLinkFromURLInBackground.
@param object the FBSDKAppLink representing the deferred App Link
@param stop the error during the request, if any
*/
typedef id _Nullable (^ FBSDKInvalidObjectHandler)(id object, BOOL *stop)
NS_SWIFT_NAME(InvalidObjectHandler);

NS_SWIFT_NAME(BasicUtility)
@interface FBSDKBasicUtility : NSObject

/**
Converts an object into a JSON string.
@param object The object to convert to JSON.
@param errorRef If an error occurs, upon return contains an NSError object that describes the problem.
@param invalidObjectHandler Handles objects that are invalid, returning a replacement value or nil to ignore.
@return A JSON string or nil if the object cannot be converted to JSON.
*/
+ (nullable NSString *)JSONStringForObject:(id)object
error:(NSError *__autoreleasing *)errorRef
invalidObjectHandler:(nullable FBSDKInvalidObjectHandler)invalidObjectHandler;

/**
Sets an object for a key in a dictionary if it is not nil.
@param dictionary The dictionary to set the value for.
@param object The value to set after serializing to JSON.
@param key The key to set the value for.
@param errorRef If an error occurs, upon return contains an NSError object that describes the problem.
@return NO if an error occurred while serializing the object, otherwise YES.
*/
+ (BOOL) dictionary:(NSMutableDictionary<id, id> *)dictionary
setJSONStringForObject:(id)object
forKey:(id<NSCopying>)key
error:(NSError *__autoreleasing *)errorRef;

/**
Converts a JSON string into an object
@param string The JSON string to convert.
@param errorRef If an error occurs, upon return contains an NSError object that describes the problem.
@return An NSDictionary, NSArray, NSString or NSNumber containing the object representation, or nil if the string
cannot be converted.
*/
+ (nullable id)objectForJSONString:(NSString *)string error:(NSError *__autoreleasing *)errorRef;

/**
Constructs a query string from a dictionary.
@param dictionary The dictionary with key/value pairs for the query string.
@param errorRef If an error occurs, upon return contains an NSError object that describes the problem.
@param invalidObjectHandler Handles objects that are invalid, returning a replacement value or nil to ignore.
@return Query string representation of the parameters.
*/
+ (nullable NSString *)queryStringWithDictionary:(NSDictionary<NSString *, id> *)dictionary
error:(NSError *__autoreleasing *)errorRef
invalidObjectHandler:(nullable FBSDKInvalidObjectHandler)invalidObjectHandler;

/**
Converts simple value types to the string equivalent for serializing to a request query or body.
@param value The value to be converted.
@return The value that may have been converted if able (otherwise the input param).
*/
+ (id)convertRequestValue:(id)value;

/**
Encodes a value for an URL.
@param value The value to encode.
@return The encoded value.
*/
+ (NSString *)URLEncode:(NSString *)value;

/**
Parses a query string into a dictionary.
@param queryString The query string value.
@return A dictionary with the key/value pairs.
*/
+ (NSDictionary<NSString *, NSString *> *)dictionaryWithQueryString:(NSString *)queryString;

/**
Decodes a value from an URL.
@param value The value to decode.
@return The decoded value.
*/
+ (NSString *)URLDecode:(NSString *)value;

/**
Gzip data with default compression level if possible.
@param data The raw data.
@return nil if unable to gzip the data, otherwise gzipped data.
*/
+ (nullable NSData *)gzip:(NSData *)data;

+ (NSString *)anonymousID;
+ (NSString *)persistenceFilePath:(NSString *)filename;
+ (nullable NSString *)SHA256Hash:(nullable NSObject *)input;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/

#import <FBSDKCoreKit_Basics/FBSDKBase64.h>
#import <FBSDKCoreKit_Basics/FBSDKBasicUtility.h>
#import <FBSDKCoreKit_Basics/FBSDKCrashHandler.h>
#import <FBSDKCoreKit_Basics/FBSDKCrashHandlerProtocol.h>
#import <FBSDKCoreKit_Basics/FBSDKCrashObserving.h>
#import <FBSDKCoreKit_Basics/FBSDKFileDataExtracting.h>
#import <FBSDKCoreKit_Basics/FBSDKFileManaging.h>
#import <FBSDKCoreKit_Basics/FBSDKInfoDictionaryProviding.h>
#import <FBSDKCoreKit_Basics/FBSDKJSONValue.h>
#import <FBSDKCoreKit_Basics/FBSDKLibAnalyzer.h>
#import <FBSDKCoreKit_Basics/FBSDKSafeCast.h>
#import <FBSDKCoreKit_Basics/FBSDKSessionProviding.h>
#import <FBSDKCoreKit_Basics/FBSDKTypeUtility.h>
#import <FBSDKCoreKit_Basics/FBSDKURLSession.h>
#import <FBSDKCoreKit_Basics/FBSDKURLSessionTask.h>
#import <FBSDKCoreKit_Basics/NSBundle+InfoDictionaryProviding.h>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/

#import <Foundation/Foundation.h>

#import <FBSDKCoreKit_Basics/FBSDKCrashHandlerProtocol.h>
#import <FBSDKCoreKit_Basics/FBSDKCrashObserving.h>

NS_ASSUME_NONNULL_BEGIN

NS_SWIFT_NAME(CrashHandler)
@interface FBSDKCrashHandler : NSObject <FBSDKCrashHandler>

@property (class, nonatomic, readonly) FBSDKCrashHandler *shared;

- (instancetype)init DEPRECATED_MSG_ATTRIBUTE("`init` is deprecated and will be removed in the next major release.");
+ (instancetype)new DEPRECATED_MSG_ATTRIBUTE("`new` is deprecated and will be removed in the next major release.");

+ (void)disable;
+ (void)addObserver:(id<FBSDKCrashObserving>)observer;
+ (void)removeObserver:(id<FBSDKCrashObserving>)observer;
+ (void)clearCrashReportFiles;
+ (NSString *)getFBSDKVersion;

- (void)disable;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/

NS_ASSUME_NONNULL_BEGIN

@protocol FBSDKCrashObserving;

NS_SWIFT_NAME(CrashHandlerProtocol)
@protocol FBSDKCrashHandler

- (void)addObserver:(id<FBSDKCrashObserving>)observer;
- (void)clearCrashReportFiles;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

NS_SWIFT_NAME(CrashObserving)
@protocol FBSDKCrashObserving

@property (nonatomic, copy) NSArray<NSString *> *prefixes;
@property (nullable, nonatomic, copy) NSArray<NSString *> *frameworks;

- (void)didReceiveCrashLogs:(NSArray<NSDictionary<NSString *, id> *> *)crashLogs;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/// An internal protocol used to describe a type that can extract data from a file
NS_SWIFT_NAME(FileDataExtracting)
@protocol FBSDKFileDataExtracting

+ (nullable NSData *)dataWithContentsOfFile:(NSString *)path
options:(NSDataReadingOptions)readOptionsMask
error:(NSError *_Nullable *)errorPtr;

@end

@interface NSData (FileDataExtracting) <FBSDKFileDataExtracting>
@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/// An internal protocol used to describe a file manager
NS_SWIFT_NAME(FileManaging)
@protocol FBSDKFileManaging

- (nullable NSURL *)URLForDirectory:(NSSearchPathDirectory)directory
inDomain:(NSSearchPathDomainMask)domain
appropriateForURL:(NSURL *)url
create:(BOOL)shouldCreate
error:(NSError *_Nullable *)error;

- (BOOL)createDirectoryAtPath:(NSString *)path
withIntermediateDirectories:(BOOL)createIntermediates
attributes:(NSDictionary<NSFileAttributeKey, id> *_Nullable)attributes
error:(NSError *_Nullable *)error;

- (BOOL)fileExistsAtPath:(NSString *)path;

- (BOOL)removeItemAtPath:(NSString *)path
error:(NSError *_Nullable *)error;

- (NSArray<NSString *> *)contentsOfDirectoryAtPath:(NSString *)path
error:(NSError *_Nullable *)error;

@end

@interface NSFileManager (FBSDKFileManaging) <FBSDKFileManaging>
@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

NS_SWIFT_NAME(InfoDictionaryProviding)
@protocol FBSDKInfoDictionaryProviding

@property (nullable, readonly, copy) NSDictionary<NSString *, id> *infoDictionary;

- (nullable id)objectForInfoDictionaryKey:(NSString *)key;

@end

NS_ASSUME_NONNULL_END
Loading

0 comments on commit acc2e3a

Please sign in to comment.