Fix private method definition inconsistency and add a few missing imports

Summary:
All of the other public "configureWithNetworker" methods have an override for NS_SWIFT_NAME that renames the Swift method to use "networker" instead of "withNetworker". This "fixes" the definition of what the private method should be in Swift.
Also adding a few missing imports that will have to be eventually added when the FBAEMKit.h file is removed.

Reviewed By: samodom

Differential Revision: D40191595

fbshipit-source-id: 033c316c42ec976702bb40aba7e074703200df68
This commit is contained in:
Jawwad Ahmad
2022-10-10 11:52:21 -07:00
committed by Facebook GitHub Bot
parent 64ffc737f2
commit b3ec797cda
9 changed files with 14 additions and 2 deletions

View File

@@ -8,6 +8,8 @@
#if !os(tvOS)
import Foundation
/**
Internal Type exposed to facilitate transition to Swift.
API Subject to change or removal without warning. Do not use.

View File

@@ -8,6 +8,8 @@
#if !os(tvOS)
import Foundation
/**
Internal Type exposed to facilitate transition to Swift.
API Subject to change or removal without warning. Do not use.

View File

@@ -8,6 +8,8 @@
#if !os(tvOS)
import Foundation
/**
Internal Type exposed to facilitate transition to Swift.
API Subject to change or removal without warning. Do not use.

View File

@@ -8,6 +8,8 @@
#if !os(tvOS)
import Foundation
/**
Internal Type exposed to facilitate transition to Swift.
API Subject to change or removal without warning. Do not use.

View File

@@ -73,7 +73,7 @@ final class AEMReporterTests: XCTestCase {
AEMReporter.reset()
removeReportFile()
AEMReporter.configure(
withNetworker: networker,
networker: networker,
appID: "123",
reporter: reporter,
analyticsAppID: analyticsAppID,

View File

@@ -38,7 +38,8 @@ typedef void (^FBAEMReporterBlock)(NSError *_Nullable);
appID:(nullable NSString *)appID
reporter:(nullable id<FBSKAdNetworkReporting>)reporter
analyticsAppID:(nullable NSString *)analyticsAppID
store:(nullable id<FBSDKDataPersisting>)store;
store:(nullable id<FBSDKDataPersisting>)store
NS_SWIFT_NAME(configure(networker:appID:reporter:analyticsAppID:store:));
+ (void)enable;

View File

@@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/
@testable import FBAEMKit
@testable import FBSDKCoreKit
import XCTest

View File

@@ -7,6 +7,7 @@
*/
import FBAEMKit
import Foundation
public final class TestAEMNetworker: NSObject, AEMNetworking {

View File

@@ -7,6 +7,7 @@
*/
import FBAEMKit
import Foundation
public final class TestSKAdNetworkReporter: NSObject, SKAdNetworkReporting {