mirror of
https://github.com/zhigang1992/facebook-ios-sdk.git
synced 2026-01-12 09:03:54 +08:00
Remove TestTools.h
Summary: - TestTools is now 100% Swift - FBSDKCoreKit imports had to be added since it was no longer imported globally via TestTools.h - A few line breaks had to be added above the new import to prevent the "Imports should be sorted" violation from SwiftLint Reviewed By: samodom Differential Revision: D40077738 fbshipit-source-id: 2cb5cbeceb90214f58fa0f6fe635eef133faa336
This commit is contained in:
committed by
Facebook GitHub Bot
parent
492bf192a9
commit
090b00cc2f
@@ -11,7 +11,7 @@
|
||||
#import <FBAEMKit/FBAEMKit.h>
|
||||
#import <FBSDKCoreKit/FBSDKCoreKit.h>
|
||||
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>
|
||||
#import <TestTools/TestTools.h>
|
||||
@import TestTools;
|
||||
|
||||
#import "XCTestCase+Extensions.h"
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
@testable import FBSDKCoreKit
|
||||
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
final class AppEventsDeviceInfoTests: XCTestCase {
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
*/
|
||||
|
||||
@testable import FBSDKGamingServicesKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
@testable import FBSDKGamingServicesKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
*/
|
||||
|
||||
@testable import FBSDKGamingServicesKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
*/
|
||||
|
||||
@testable import FBSDKGamingServicesKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
*/
|
||||
|
||||
@testable import FBSDKGamingServicesKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import FBSDKShareKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
@testable import FBSDKGamingServicesKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
*/
|
||||
|
||||
@testable import FBSDKGamingServicesKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
*/
|
||||
|
||||
@testable import FBSDKGamingServicesKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
*/
|
||||
|
||||
@testable import FBSDKGamingServicesKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
|
||||
enum SampleContextDialogs {
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
*/
|
||||
|
||||
@testable import FBSDKGamingServicesKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
*/
|
||||
|
||||
@testable import FBSDKGamingServicesKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import FBSDKCoreKit
|
||||
import Foundation
|
||||
import TestTools
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
import FBSDKShareKit
|
||||
import TestTools
|
||||
import UIKit
|
||||
|
||||
enum ShareModelTestUtility {
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
@testable import FBSDKShareKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import Photos
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
@testable import FBSDKShareKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import Photos
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
@testable import FBSDKShareKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
*/
|
||||
|
||||
@testable import FBSDKShareKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
*/
|
||||
|
||||
@testable import FBSDKShareKit
|
||||
|
||||
import FBSDKCoreKit
|
||||
import TestTools
|
||||
import XCTest
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
BF1AFE1973B52493C7B6D03C /* SampleUserProfiles.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAD0C12E3DCAF88D1A6D0E0A /* SampleUserProfiles.swift */; };
|
||||
C267A09733E0B5399A583086 /* TestSDKError.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1261F972AA29EAF48DA1D6B /* TestSDKError.swift */; };
|
||||
C975A94CFA4522D7A5194379 /* TestKeychainStoreFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = FEA859E1F31F30B29819BC2F /* TestKeychainStoreFactory.swift */; };
|
||||
CD78B55C79B11804946E08EE /* TestTools.h in Headers */ = {isa = PBXBuildFile; fileRef = CC38C544BAC3F3485C5F699F /* TestTools.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
CDF18EF7B43D29D705F3FCDD /* TestAuthenticationTokenWallet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 791B050D2D078864251AB3F2 /* TestAuthenticationTokenWallet.swift */; };
|
||||
D8D8E4F13BCAEEF3BFEB564F /* TestURLHoster.swift in Sources */ = {isa = PBXBuildFile; fileRef = B26F9D497DC3FEC7192A188F /* TestURLHoster.swift */; };
|
||||
E9F7C901C033B4975EA0AB2A /* Fuzzer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03A8D4BE357D16D0721EE967 /* Fuzzer.swift */; };
|
||||
@@ -100,7 +99,6 @@
|
||||
BCFB16AD8A9E8D19987885E4 /* TestGraphRequestFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestGraphRequestFactory.swift; sourceTree = "<group>"; };
|
||||
C0C7B46D8CAABDBF309B458A /* TestAccessTokenWallet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestAccessTokenWallet.swift; sourceTree = "<group>"; };
|
||||
C1261F972AA29EAF48DA1D6B /* TestSDKError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestSDKError.swift; sourceTree = "<group>"; };
|
||||
CC38C544BAC3F3485C5F699F /* TestTools.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestTools.h; sourceTree = "<group>"; };
|
||||
CEDC22C4008A0E09368CF757 /* SampleError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleError.swift; sourceTree = "<group>"; };
|
||||
D07160C9DDB965A64C22AE60 /* TestGraphRequestConnectionFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestGraphRequestConnectionFactory.swift; sourceTree = "<group>"; };
|
||||
D44853480B9144B4E2A10493 /* TestInternalUtility.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestInternalUtility.swift; sourceTree = "<group>"; };
|
||||
@@ -160,7 +158,6 @@
|
||||
8640C198FCE46662467AD22C /* TestSessionProvider.swift */,
|
||||
BCFA80AADB26410AC60714D8 /* TestSettings.swift */,
|
||||
5EADCEC319126E782252276B /* TestSKAdNetworkReporter.swift */,
|
||||
CC38C544BAC3F3485C5F699F /* TestTools.h */,
|
||||
B26F9D497DC3FEC7192A188F /* TestURLHoster.swift */,
|
||||
B965B179D2246C48C0EF89B6 /* TestURLOpener.swift */,
|
||||
E4BAFA46C11FE8AD599E3549 /* TestWindowFinder.swift */,
|
||||
@@ -200,24 +197,12 @@
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXHeadersBuildPhase section */
|
||||
8DB9EAC958C8DBE41CFBE228 /* Headers */ = {
|
||||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
CD78B55C79B11804946E08EE /* TestTools.h in Headers */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXHeadersBuildPhase section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
7EE1BFF550650C49854D563A /* TestTools */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 8484440B93FEF66A21A7D2E1 /* Build configuration list for PBXNativeTarget "TestTools" */;
|
||||
buildPhases = (
|
||||
DC1ECA2D21D9A8B0E51DB831 /* Run Swiftlint */,
|
||||
8DB9EAC958C8DBE41CFBE228 /* Headers */,
|
||||
514FB552E0988BBC0743E3FC /* Sources */,
|
||||
);
|
||||
buildRules = (
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import Foundation
|
||||
|
||||
public struct SampleError: Error, Equatable {
|
||||
private let uuid = UUID()
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import FBSDKCoreKit
|
||||
import Foundation
|
||||
|
||||
@objcMembers
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import FBSDKCoreKit
|
||||
import Foundation
|
||||
|
||||
@objcMembers
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import FBSDKCoreKit
|
||||
import Foundation
|
||||
|
||||
@objcMembers
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import FBSDKCoreKit
|
||||
import Foundation
|
||||
|
||||
@objcMembers
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and 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;
|
||||
@@ -23,7 +23,6 @@ targets:
|
||||
platform: iOS
|
||||
sources:
|
||||
- path: TestTools
|
||||
headerVisibility: public
|
||||
excludes:
|
||||
- Info.plist
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user