Skip to content

Commit

Permalink
Temporarily expose CoreKit types for Swift conversion (3/n)
Browse files Browse the repository at this point in the history
Reviewed By: josueBrizuelaXD

Differential Revision: D38997117

fbshipit-source-id: e12c4fb691cd4c6603a344bae27685c75beddcf5
  • Loading branch information
samodom authored and facebook-github-bot committed Aug 26, 2022
1 parent 1ead6ff commit f2e2022
Show file tree
Hide file tree
Showing 122 changed files with 818 additions and 660 deletions.
16 changes: 14 additions & 2 deletions FBAEMKit/FBAEMKit/FBAEMReporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ NS_SWIFT_NAME(AEMReporter)
@interface FBAEMReporter : NSObject

/**
Internal method exposed to facilitate transition to Swift.
API Subject to change or removal without warning. Do not use.
@warning INTERNAL - DO NOT USE
Configure networker used for calling Facebook AEM Graph API endpoint
Facebook App ID and SKAdNetwork reporter
Expand All @@ -35,9 +40,15 @@ NS_SWIFT_NAME(AEMReporter)
*/
+ (void)configureWithNetworker:(nullable id<FBAEMNetworking>)networker
appID:(nullable NSString *)appID
reporter:(nullable id<FBSKAdNetworkReporting>)reporter;
reporter:(nullable id<FBSKAdNetworkReporting>)reporter
NS_SWIFT_NAME(configure(networker:appID:reporter:));

/**
Internal method exposed to facilitate transition to Swift.
API Subject to change or removal without warning. Do not use.
@warning INTERNAL - DO NOT USE
Configure networker used for calling Facebook AEM Graph API endpoint
Facebook App ID, SKAdNetwork reporter and Analytics App ID
Expand All @@ -53,7 +64,8 @@ NS_SWIFT_NAME(AEMReporter)
+ (void)configureWithNetworker:(nullable id<FBAEMNetworking>)networker
appID:(nullable NSString *)appID
reporter:(nullable id<FBSKAdNetworkReporting>)reporter
analyticsAppID:(nullable NSString *)analyticsAppID;
analyticsAppID:(nullable NSString *)analyticsAppID
NS_SWIFT_NAME(configure(networker:appID:reporter:analyticsAppID:));

/**
Enable AEM reporting
Expand Down
3 changes: 0 additions & 3 deletions FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
#import "FBSDKAppEventParameterProduct+Internal.h"
#import "FBSDKAppEventUserDataType.h"
#import "FBSDKAppEventsConfiguration.h"
#import "FBSDKAppEventsDeviceInfo.h"
#import "FBSDKAppEventsState.h"
#import "FBSDKAppEventsUtility.h"
#import "FBSDKAppEventsWKWebViewKeys.h"
#import "FBSDKAtePublishing.h"
#import "FBSDKConstants.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#import <sys/utsname.h>

#import "FBSDKAppEventUserDataType.h"
#import "FBSDKAppEventsUtility.h"
#import "FBSDKServerConfigurationManager.h"
#import "FBSDKUtility.h"
#import "FBSDKViewHierarchy.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

#import "FBSDKCodelessIndexer.h"
#import "FBSDKGraphRequestConnectionFactoryProtocol.h"
#import "FBSDKGraphRequestFactoryProtocol.h"
#import "FBSDKSettingsProtocol.h"
Expand All @@ -22,17 +21,6 @@ NS_ASSUME_NONNULL_BEGIN

@interface FBSDKCodelessIndexer (Internal) <FBSDKCodelessIndexing>

// UNCRUSTIFY_FORMAT_OFF
+ (void)configureWithGraphRequestFactory:(id<FBSDKGraphRequestFactory>)graphRequestFactory
serverConfigurationProvider:(id<FBSDKServerConfigurationProviding>)serverConfigurationProvider
dataStore:(id<FBSDKDataPersisting>)dataStore
graphRequestConnectionFactory:(id<FBSDKGraphRequestConnectionFactory>)graphRequestConnectionFactory
swizzler:(Class<FBSDKSwizzling>)swizzler
settings:(id<FBSDKSettings>)settings
advertiserIDProvider:(id<FBSDKAdvertiserIDProviding>)advertisingIDProvider
NS_SWIFT_NAME(configure(graphRequestFactory:serverConfigurationProvider:dataStore:graphRequestConnectionFactory:swizzler:settings:advertiserIDProvider:));
// UNCRUSTIFY_FORMAT_ON

@end

NS_ASSUME_NONNULL_END
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#if !TARGET_OS_TV

#import "FBSDKCodelessIndexer.h"
#import "FBSDKCodelessIndexer+Internal.h"

#import <UIKit/UIKit.h>

Expand All @@ -18,7 +18,6 @@
#import <sys/sysctl.h>
#import <sys/utsname.h>

#import "FBSDKAppEventsUtility.h"
#import "FBSDKGraphRequestConnecting.h"
#import "FBSDKGraphRequestConnectionFactoryProtocol.h"
#import "FBSDKGraphRequestFactoryProtocol.h"
Expand All @@ -27,7 +26,6 @@
#import "FBSDKInternalUtility+Internal.h"
#import "FBSDKObjectDecoding.h"
#import "FBSDKServerConfiguration.h"
#import "FBSDKServerConfigurationManager.h"
#import "FBSDKSettings+Internal.h"
#import "FBSDKSettingsProtocol.h"
#import "FBSDKUnarchiverProvider.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@

#import "FBSDKEventDeactivationManager.h"

#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

#import "FBSDKServerConfigurationManager.h"

static NSString *const DEPRECATED_PARAM_KEY = @"deprecated_param";
static NSString *const DEPRECATED_EVENT_KEY = @"is_deprecated_event";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

#import <FBSDKCoreKit/FBSDKCoreKit.h>

#import "FBSDKAppEventsUtilityProtocol.h"
#import "FBSDKEventLogging.h"
#import "FBSDKLoggingNotifying.h"

NS_ASSUME_NONNULL_BEGIN

Expand All @@ -22,7 +20,6 @@ FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogOutcomeValue_Completed;
FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogOutcomeValue_Failed;

@interface FBSDKAppEvents (Internal) <
FBSDKAppEventsConfiguring,
FBSDKApplicationActivating,
FBSDKApplicationLifecycleObserving,
FBSDKApplicationStateSetting,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@

#import "FBSDKAppEventsATEPublisher.h"

#import <FBSDKCoreKit/FBSDKGraphRequestFlags.h>
#import <FBSDKCoreKit/FBSDKGraphRequestHTTPMethod.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

#import "FBSDKAppEventsDeviceInfo.h"
#import "FBSDKGraphRequestConnecting.h"
#import "FBSDKGraphRequestFactoryProtocol.h"
#import "FBSDKGraphRequestProtocol.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import "FBSDKAppEventsConfigurationManager.h"
#import <FBSDKCoreKit/FBSDKAppEventsConfigurationManager.h>

#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* LICENSE file in the root directory of this source tree.
*/

#import "FBSDKAppEventsDeviceInfo.h"
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

#import <sys/sysctl.h>
#import <sys/utsname.h>
Expand All @@ -19,8 +20,6 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

#import "FBSDKDynamicFrameworkLoader.h"
#import "FBSDKInternalUtility+Internal.h"
#import "FBSDKSettings+Internal.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import "FBSDKAppEventsState.h"
#import <FBSDKCoreKit/FBSDKAppEventsState.h>

#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@

#import "FBSDKAppEventsStateFactory.h"

#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <Foundation/Foundation.h>

#import "FBSDKAppEventsState.h"

@implementation FBSDKAppEventsStateFactory

- (FBSDKAppEventsState *)createStateWithToken:(NSString *)tokenString appID:(NSString *)appID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <Foundation/Foundation.h>

#import "FBSDKAppEventsState.h"

NS_ASSUME_NONNULL_BEGIN

NS_SWIFT_NAME(AppEventsStateManager)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@

#import "FBSDKAppEventsStateManager.h"

#import <Foundation/Foundation.h>

#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>
#import <Foundation/Foundation.h>

#import "FBSDKAppEventsState.h"
#import "FBSDKLogger.h"
#import "FBSDKUnarchiverProvider.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
* LICENSE file in the root directory of this source tree.
*/

#import "FBSDKAppEventsUtility.h"

#import <AdSupport/AdSupport.h>

#import <FBSDKCoreKit/FBSDKCoreKit.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

#if !TARGET_OS_TV

#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>

#import "FBSDKEventLogging.h"
#import "FBSDKLoggingNotifying.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

#import "FBSDKIntegrityProcessing.h"

@interface FBSDKIntegrityManager ()

@property (nonatomic) Class<FBSDKGateKeeperManaging> gateKeeperManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

#import "FBSDKServerConfigurationManager.h"

@interface FBSDKRestrictiveEventFilter : NSObject

@property (nonatomic, readonly, copy) NSString *eventName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

#import <StoreKit/StoreKit.h>

#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>
#import <objc/message.h>

#import "FBSDKAppEventsUtility.h"
#import "FBSDKConversionValueUpdating.h"
#import "FBSDKGraphRequestFactoryProtocol.h"
#import "FBSDKGraphRequestProtocol.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

#if !TARGET_OS_TV

#import "FBSDKFeatureExtractor.h"

#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#import <sys/utsname.h>

#import "FBSDKAppEvents+Internal.h"
#import "FBSDKAppEventsUtility.h"
#import "FBSDKInternalUtility+Internal.h"
#import "FBSDKMLMacros.h"
#import "FBSDKModelUtility.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

#import <QuartzCore/QuartzCore.h>

#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>
#import <objc/runtime.h>

#import "FBSDKAppEventsUtility.h"
#import "FBSDKCodelessPathComponent.h"
#import "FBSDKSafeCast.h"
#import "FBSDKUtility.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ NS_ASSUME_NONNULL_BEGIN
@property (class, nullable, nonatomic) id<FBSDKAppLinkEventPosting> appLinkEventPoster;
@property (class, nullable, nonatomic) id<FBSDKAppLinkResolving> appLinkResolver;

+ (void)configureWithSettings:(id<FBSDKSettings>)settings
urlOpener:(id<FBSDKInternalURLOpener>)urlOpener
appLinkEventPoster:(id<FBSDKAppLinkEventPosting>)appLinkEventPoster
appLinkResolver:(id<FBSDKAppLinkResolving>)appLinkResolver;

@end

NS_ASSUME_NONNULL_END
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import "FBSDKServerConfigurationProvider.h"

#import "FBSDKServerConfigurationManager.h"
#import <FBSDKCoreKit/FBSDKCoreKit.h>

@implementation FBSDKServerConfigurationProvider

Expand Down
3 changes: 2 additions & 1 deletion FBSDKCoreKit/FBSDKCoreKit/FBSDKShareDialogConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@

#import "FBSDKShareDialogConfiguration.h"

#import <FBSDKCoreKit/FBSDKCoreKit.h>

#import "FBSDKServerConfiguration.h"
#import "FBSDKServerConfigurationManager.h"

@interface FBSDKShareDialogConfiguration ()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ NS_ASSUME_NONNULL_BEGIN

@property (nonatomic, readwrite) id<FBSDKBridgeAPIProtocol> protocol;

+ (void)configureWithInternalURLOpener:(id<FBSDKInternalURLOpener>)internalURLOpener
internalUtility:(id<FBSDKInternalUtility>)internalUtility
settings:(id<FBSDKSettings>)settings;

// UNCRUSTIFY_FORMAT_OFF
- (nullable instancetype)initWithProtocol:(nullable id<FBSDKBridgeAPIProtocol>)protocol
protocolType:(FBSDKBridgeAPIProtocolType)protocolType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#import "FBSDKErrorFactory+Internal.h"
#import "FBSDKErrorReporter.h"
#import "FBSDKInternalUtility+Internal.h"
#import "FBSDKServerConfigurationManager.h"

@implementation FBSDKBridgeAPIProtocolWebV2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public final class _BridgeAPIRequestFactory: NSObject, BridgeAPIRequestCreating
parameters: [String: Any]?,
userInfo: [String: Any]? = nil
) -> BridgeAPIRequestProtocol? {
BridgeAPIRequest(
_BridgeAPIRequest(
protocolType: protocolType,
scheme: URLScheme(rawValue: scheme),
methodName: methodName,
Expand Down
Loading

0 comments on commit f2e2022

Please sign in to comment.