Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Package.swift 23.18 KB
Copy Edit Raw Blame History
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This Package.swift is a Work in Progress. We intend to keep it functional
// on the master branch, but it is rapidly evolving and may have occasional
// breakages. Please report any issues at
// https://github.com/firebase/firebase-ios-sdk/issues/new/choose.
import PackageDescription
let package = Package(
name: "Firebase",
platforms: [.iOS(.v9), .macOS(.v10_11), .tvOS(.v10)],
products: [
.library(
name: "Firebase",
targets: ["Firebase"]
),
.library(
name: "FirebaseCore",
targets: ["FirebaseCore"]
),
.library(
name: "FirebaseAnalytics",
targets: ["FirebaseAnalyticsWrapper"]
),
.library(
name: "FirebaseAuth",
targets: ["FirebaseAuth"]
),
.library(
name: "FirebaseCrashlytics",
targets: ["FirebaseCrashlytics"]
),
.library(
name: "FirebaseDatabase",
targets: ["FirebaseDatabase"]
),
.library(
name: "FirebaseDynamicLinks",
targets: ["FirebaseDynamicLinks"]
),
.library(
name: "FirebaseFirestore",
targets: ["FirebaseFirestore"]
),
.library(
name: "FirebaseFirestoreSwift",
targets: ["FirebaseFirestoreSwift"]
),
.library(
name: "FirebaseFunctions",
targets: ["FirebaseFunctions"]
),
.library(
name: "FirebaseInAppMessaging-Beta",
targets: ["FirebaseInAppMessaging"]
),
.library(
name: "FirebaseInstallations",
targets: ["FirebaseInstallations"]
),
// .library(
// name: "FirebaseInstanceID",
// targets: ["FirebaseInstanceID"]
// ),
.library(
name: "FirebaseRemoteConfig",
targets: ["FirebaseRemoteConfig"]
),
.library(
name: "FirebaseStorage",
targets: ["FirebaseStorage"]
),
.library(
name: "FirebaseStorageSwift",
targets: ["FirebaseStorageSwift"]
),
// Not intended for public consumption, but needed for FirebaseUI.
.library(
name: "GoogleUtilities_UserDefaults",
targets: ["GoogleUtilities_UserDefaults"]
),
],
dependencies: [
.package(name: "Promises", url: "https://github.com/google/promises.git", "1.2.8" ..< "1.3.0"),
.package(
name: "GTMSessionFetcher",
url: "https://github.com/google/gtm-session-fetcher.git",
"1.4.0" ..< "2.0.0"
),
.package(
name: "nanopb",
url: "https://github.com/nanopb/nanopb.git",
// This revision adds SPM enablement to the 0.3.9.6 release tag.
.revision("3cfa21200eea012d8765239ad4c50d8a36c283f1")
),
.package(
name: "abseil",
url: "https://github.com/firebase/abseil-cpp.git",
.revision("d30bd7751ce343a05fca6413de0dec062163e5e9")
),
.package(
name: "gRPC",
url: "https://github.com/firebase/grpc.git",
.revision("cae939a8823bbc39912aa2990cf95e29ace381b3")
),
.package(
name: "OCMock",
url: "https://github.com/firebase/ocmock.git",
.revision("7291762d3551c5c7e31c49cce40a0e391a52e889")
),
.package(
name: "leveldb",
url: "https://github.com/firebase/leveldb.git",
.revision("3f046978ecffd57ea6eb9a0897cc8a3b45b44df8")
),
// Branches need a force update with a run with the revision set like below.
// .package(url: "https://github.com/paulb777/nanopb.git", .revision("564392bd87bd093c308a3aaed3997466efb95f74"))
],
targets: [
.target(
name: "Firebase",
path: "CoreOnly/Sources",
publicHeadersPath: "./"
),
.target(
name: "FirebaseCore",
dependencies: [
"FirebaseCoreDiagnostics",
"GoogleUtilities_Environment",
"GoogleUtilities_Logger",
],
path: "FirebaseCore/Sources",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../.."),
.define("FIRCore_VERSION", to: "0.0.1"), // TODO: Fix version
.define("Firebase_VERSION", to: "0.0.1"), // TODO: Fix version
// TODO: - Add support for cflags cSetting so that we can set the -fno-autolink option
]
),
.testTarget(
name: "CoreUnit",
dependencies: ["FirebaseCore", "OCMock"],
path: "FirebaseCore/Tests/Unit",
exclude: ["Resources/GoogleService-Info.plist"],
cSettings: [
.headerSearchPath("../../.."),
]
),
.target(
name: "FirebaseCoreDiagnostics",
dependencies: [
"GoogleDataTransport",
"GoogleUtilities_Environment",
"GoogleUtilities_Logger",
.product(name: "nanopb", package: "nanopb"),
],
path: "Firebase/CoreDiagnostics/FIRCDLibrary",
publicHeadersPath: ".",
cSettings: [
.headerSearchPath("../../.."),
.define("PB_FIELD_32BIT", to: "1"),
.define("PB_NO_PACKED_STRUCTS", to: "1"),
.define("PB_ENABLE_MALLOC", to: "1"),
]
),
.target(
name: "FirebaseABTesting",
dependencies: ["FirebaseCore"],
path: "FirebaseABTesting/Sources",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../"),
.define("FIRABTesting_VERSION", to: "0.0.1"), // TODO: Fix version
]
),
.testTarget(
name: "ABTestingUnit",
dependencies: ["FirebaseABTesting", "OCMock"],
path: "FirebaseABTesting/Tests/Unit",
resources: [.process("Resources")],
cSettings: [
.headerSearchPath("../../.."),
]
),
.target(
name: "FirebaseAnalyticsWrapper",
dependencies: [
"FirebaseAnalytics",
"FIRAnalyticsConnector",
"GoogleAppMeasurement",
"FirebaseCore",
"FirebaseInstallations",
"GoogleUtilities_AppDelegateSwizzler",
"GoogleUtilities_MethodSwizzler",
"GoogleUtilities_NSData",
"GoogleUtilities_Network",
.product(name: "nanopb", package: "nanopb"),
],
path: "FirebaseAnalyticsWrapper",
publicHeadersPath: "Public",
linkerSettings: [
.linkedLibrary("sqlite3"),
.linkedLibrary("c++"),
.linkedLibrary("z"),
.linkedFramework("StoreKit"),
]
),
.binaryTarget(
name: "FirebaseAnalytics",
url: "https://dl.google.com/firebase/ios/swiftpm/6.31.0/FirebaseAnalytics.zip",
checksum: "533fae2d17c7224bf6f43485bff74e44c5f2fcdf4b56992167a6c5dbc43e5fdb"
),
.binaryTarget(
name: "FIRAnalyticsConnector",
url: "https://dl.google.com/firebase/ios/swiftpm/6.31.0/FIRAnalyticsConnector.zip",
checksum: "6b194824b7705ede04195364a2c0f2a70bdc6da274fb28ce7aa39853b3796e0d"
),
.binaryTarget(
name: "GoogleAppMeasurement",
url: "https://dl.google.com/firebase/ios/swiftpm/6.31.0/GoogleAppMeasurement.zip",
checksum: "f71ab5ca97f8763c67ab052ee083f21a0464867369e2223c0973fce38b677075"
),
.target(
name: "FirebaseAuth",
dependencies: ["FirebaseCore",
"GoogleUtilities_Environment",
"GoogleUtilities_AppDelegateSwizzler",
.product(name: "GTMSessionFetcherCore", package: "GTMSessionFetcher")],
path: "FirebaseAuth/Sources",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../"),
.define("FIRAuth_VERSION", to: "0.0.1"), // TODO: Fix version
.define("FIRAuth_MINOR_VERSION", to: "1.1"), // TODO: Fix version
]
),
.testTarget(
name: "AuthUnit",
dependencies: ["FirebaseAuth", "OCMock"],
path: "FirebaseAuth/Tests/Unit",
exclude: [
"FIRAuthKeychainServicesTests.m", // TODO: figure out SPM keychain testing
"FIRAuthTests.m",
"FIRUserTests.m",
],
cSettings: [
.headerSearchPath("../../.."),
]
),
.target(
name: "FirebaseCrashlytics",
dependencies: ["FirebaseCore", "FirebaseInstallations", "GoogleDataTransport",
.product(name: "FBLPromises", package: "Promises"),
.product(name: "nanopb", package: "nanopb")],
path: "Crashlytics",
exclude: [
"run",
"CHANGELOG.md",
"LICENSE",
"README.md",
"Data/",
"Protos/",
"ProtoSupport/",
"UnitTests/",
"generate_project.sh",
"upload-symbols",
"third_party/libunwind/LICENSE",
],
sources: [
"Crashlytics/",
"Protogen/",
"Shared/",
"third_party/libunwind/dwarf.h",
],
publicHeadersPath: "Crashlytics/Public",
cSettings: [
.headerSearchPath(".."),
.define("DISPLAY_VERSION", to: "0.0.1"), // TODO: Fix version
.define("CLS_SDK_NAME", to: "Crashlytics iOS SDK", .when(platforms: .some([.iOS]))),
.define("CLS_SDK_NAME", to: "Crashlytics macOS SDK", .when(platforms: .some([.macOS]))),
.define("CLS_SDK_NAME", to: "Crashlytics tvOS SDK", .when(platforms: .some([.tvOS]))),
.define("PB_FIELD_32BIT", to: "1"),
.define("PB_NO_PACKED_STRUCTS", to: "1"),
.define("PB_ENABLE_MALLOC", to: "1"),
]
),
.target(
name: "FirebaseDatabase",
dependencies: [
"FirebaseCore",
"leveldb",
],
path: "FirebaseDatabase/Sources",
exclude: [
"third_party/Wrap-leveldb/LICENSE",
"third_party/SocketRocket/LICENSE",
"third_party/FImmutableSortedDictionary/LICENSE",
"third_party/SocketRocket/aa2297808c225710e267afece4439c256f6efdb3",
],
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../"),
.define("FIRDatabase_VERSION", to: "0.0.1"), // TODO: Fix version
]
),
.testTarget(
name: "DatabaseUnit",
dependencies: ["FirebaseDatabase", "OCMock", "SharedTestUtilities"],
path: "FirebaseDatabase/Tests/",
exclude: [
"Integration/",
],
resources: [.process("Resources")],
cSettings: [
.headerSearchPath("../.."),
]
),
.target(
name: "FirebaseDynamicLinks",
dependencies: ["FirebaseCore"],
path: "FirebaseDynamicLinks/Sources",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../"),
.define("FIRDynamicLinks3P", to: "1"),
.define("GIN_SCION_LOGGING", to: "1"),
.define("FIRDynamicLinks_VERSION", to: "0.0.1"), // TODO: Fix version
]
),
.target(
name: "FirebaseFirestore",
dependencies: [
"FirebaseCore",
"leveldb",
.product(name: "nanopb", package: "nanopb"),
.product(name: "abseil", package: "abseil"),
.product(name: "gRPC-cpp", package: "gRPC"),
],
path: "Firestore",
exclude: [
"CHANGELOG.md",
"CMakeLists.txt",
"Example/",
"Protos/CMakeLists.txt",
"Protos/Podfile",
"Protos/README.md",
"Protos/build_protos.py",
"Protos/cpp/",
"Protos/lib/",
"Protos/nanopb_cpp_generator.py",
"Protos/protos/",
"README.md",
"Source/CMakeLists.txt",
"Swift/",
"core/CMakeLists.txt",
"core/src/util/config_detected.h.in",
"core/test/",
"fuzzing/",
"test.sh",
"third_party/",
// Exclude alternate implementations for other platforms
"core/src/api/input_validation_std.cc",
"core/src/remote/connectivity_monitor_noop.cc",
"core/src/util/filesystem_win.cc",
"core/src/util/hard_assert_stdio.cc",
"core/src/util/log_stdio.cc",
"core/src/util/secure_random_openssl.cc",
],
sources: [
"Source/",
"Protos/nanopb/",
"core/include/",
"core/src",
],
publicHeadersPath: "Source/Public",
cSettings: [
.headerSearchPath("../"),
.headerSearchPath("Source/Public/FirebaseFirestore"),
.headerSearchPath("Protos/nanopb"),
.define("PB_FIELD_32BIT", to: "1"),
.define("PB_NO_PACKED_STRUCTS", to: "1"),
.define("PB_ENABLE_MALLOC", to: "1"),
.define("FIRFirestore_VERSION", to: "0.0.1"), // TODO: Fix version
]
),
.target(
name: "FirebaseFirestoreSwift",
dependencies: ["FirebaseFirestore"],
path: "Firestore",
exclude: [
"CHANGELOG.md",
"CMakeLists.txt",
"Example/",
"Protos/",
"README.md",
"Source/",
"core/",
"fuzzing/",
"test.sh",
"Swift/CHANGELOG.md",
"Swift/README.md",
"Swift/Tests/",
"third_party/FirestoreEncoder/LICENSE",
"third_party/FirestoreEncoder/METADATA",
],
sources: [
"Swift/Source/",
"third_party/FirestoreEncoder/",
]
),
.target(
name: "FirebaseFunctions",
dependencies: [
"FirebaseCore",
.product(name: "GTMSessionFetcherCore", package: "GTMSessionFetcher"),
],
path: "Functions/FirebaseFunctions",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../"),
.define("FIRFunctions_VERSION", to: "0.0.1"), // TODO: Fix version
]
),
.target(
name: "FirebaseInAppMessaging",
dependencies: [
"FirebaseCore",
"FirebaseInstallations",
"FirebaseABTesting",
"GoogleUtilities_Environment",
.product(name: "nanopb", package: "nanopb"),
],
path: "FirebaseInAppMessaging/Sources",
exclude: [
"DefaultUI/CHANGELOG.md",
"DefaultUI/README.md",
],
resources: [.process("Resources")],
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../"),
.define("FIRInAppMessaging_LIB_VERSION", to: "0.0.1"), // TODO: Fix version
.define("PB_FIELD_32BIT", to: "1"),
.define("PB_NO_PACKED_STRUCTS", to: "1"),
.define("PB_ENABLE_MALLOC", to: "1"),
]
),
// .target(
// name: "FirebaseInstanceID",
// dependencies: ["FirebaseCore", "FirebaseInstallations",
// "GoogleUtilities_Environment", "GoogleUtilities_UserDefaults"],
// path: "Firebase/InstanceID",
// publicHeadersPath: "Public",
// cSettings: [
// .headerSearchPath("../../"),
// .define("FIRInstanceID_LIB_VERSION", to: "0.0.1"), // TODO: Fix version
// ]
// ),
.target(
name: "FirebaseInstallations",
dependencies: ["FirebaseCore", .product(name: "FBLPromises", package: "Promises"),
"GoogleUtilities_Environment", "GoogleUtilities_UserDefaults"],
path: "FirebaseInstallations/Source/Library",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../../"),
]
),
.target(
name: "SharedTestUtilities",
dependencies: ["FirebaseCore"],
path: "SharedTestUtilities",
publicHeadersPath: "./",
cSettings: [
.headerSearchPath("../"),
]
),
.target(
name: "FirebaseRemoteConfig",
dependencies: [
"FirebaseCore",
"FirebaseABTesting",
"FirebaseInstallations",
"GoogleUtilities_NSData",
],
path: "FirebaseRemoteConfig/Sources",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../"),
.define("FIRRemoteConfig_VERSION", to: "0.0.1"), // TODO: Fix version
]
),
.testTarget(
name: "RemoteConfigUnit",
dependencies: ["FirebaseRemoteConfig", "OCMock"],
path: "FirebaseRemoteConfig/Tests/Unit",
exclude: [
// Need to be evaluated/ported to RC V2.
"RCNConfigAnalyticsTest.m",
"RCNConfigSettingsTest.m",
"RCNConfigTest.m",
"RCNRemoteConfig+FIRAppTest.m",
"RCNThrottlingTests.m",
],
resources: [
.process("SecondApp-GoogleService-Info.plist"),
.process("Defaults-testInfo.plist"),
.process("TestABTPayload.txt"),
],
cSettings: [
.headerSearchPath("../../.."),
]
),
.target(
name: "FirebaseStorage",
dependencies: [
"FirebaseCore",
.product(name: "GTMSessionFetcherCore", package: "GTMSessionFetcher"),
],
path: "FirebaseStorage/Sources",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../"),
.define("FIRStorage_VERSION", to: "0.0.1"), // TODO: Fix version
]
),
.testTarget(
name: "StorageUnit",
dependencies: ["FirebaseStorage", "OCMock", "SharedTestUtilities"],
path: "FirebaseStorage/Tests/Unit",
cSettings: [
.headerSearchPath("../../.."),
]
),
.target(
name: "FirebaseStorageSwift",
dependencies: ["FirebaseStorage"],
path: "FirebaseStorageSwift/Sources"
),
.target(
name: "GoogleDataTransport",
dependencies: [
.product(name: "nanopb", package: "nanopb"),
],
path: "GoogleDataTransport",
exclude: [
"CHANGELOG.md",
"README.md",
"generate_project.sh",
"GDTCCTWatchOSTestApp/",
"GDTWatchOSTestApp/",
"GDTCCTTestApp/",
"GDTTestApp/",
"GDTCCTTests/",
"GDTCORTests/",
"ProtoSupport/",
],
sources: [
"GDTCORLibrary",
"GDTCCTLibrary",
],
publicHeadersPath: "GDTCORLibrary/Public",
cSettings: [
.headerSearchPath("../"),
.define("GDTCOR_VERSION", to: "0.0.1"),
.define("PB_FIELD_32BIT", to: "1"),
.define("PB_NO_PACKED_STRUCTS", to: "1"),
.define("PB_ENABLE_MALLOC", to: "1"),
]
),
.testTarget(
name: "swift-test",
dependencies: [
"FirebaseAuth",
"FirebaseABTesting",
"Firebase",
"FirebaseCrashlytics",
"FirebaseCore",
"FirebaseDatabase",
"FirebaseDynamicLinks",
"FirebaseFirestore",
"FirebaseFirestoreSwift",
"FirebaseFunctions",
"FirebaseInAppMessaging",
"FirebaseInstallations",
// "FirebaseInstanceID",
"FirebaseRemoteConfig",
"FirebaseStorage",
"FirebaseStorageSwift",
"GoogleDataTransport",
"GoogleUtilities_AppDelegateSwizzler",
"GoogleUtilities_Environment",
// "GoogleUtilities_ISASwizzler", // Build needs to disable ARC.
"GoogleUtilities_Logger",
"GoogleUtilities_MethodSwizzler",
"GoogleUtilities_Network",
"GoogleUtilities_NSData",
"GoogleUtilities_Reachability",
"GoogleUtilities_UserDefaults",
.product(name: "nanopb", package: "nanopb"),
],
path: "SwiftPMTests/swift-test"
),
.testTarget(
name: "objc-import-test",
dependencies: [
"FirebaseAuth",
"FirebaseABTesting",
"Firebase",
"FirebaseCrashlytics",
"FirebaseCore",
"FirebaseDatabase",
"FirebaseDynamicLinks",
"FirebaseFirestore",
"FirebaseFunctions",
"FirebaseInAppMessaging",
"FirebaseInstallations",
"FirebaseRemoteConfig",
"FirebaseStorage",
],
path: "SwiftPMTests/objc-import-test"
),
.target(
name: "GoogleUtilities_AppDelegateSwizzler",
dependencies: ["GoogleUtilities_Environment", "GoogleUtilities_Logger",
"GoogleUtilities_Network"],
path: "GoogleUtilities",
exclude: [
"CHANGELOG.md",
"CMakeLists.txt",
"LICENSE",
"README.md",
"AppDelegateSwizzler/README.md",
"Environment/",
"Network/",
"ISASwizzler/",
"Logger/",
"MethodSwizzler/",
"NSData+zlib/",
"Reachability",
"SwizzlerTestHelpers/",
"Tests",
"UserDefaults/",
],
sources: [
"AppDelegateSwizzler/",
"SceneDelegateSwizzler/",
"Common/*.h",
],
publicHeadersPath: "AppDelegateSwizzler/Public",
cSettings: [
.headerSearchPath("../"),
]
),
.target(
name: "GoogleUtilities_Environment",
dependencies: [.product(name: "FBLPromises", package: "Promises")],
path: "GoogleUtilities/Environment",
exclude: ["third_party/LICENSE"],
publicHeadersPath: "Private",
cSettings: [
.headerSearchPath("../../"),
]
),
.target(
name: "GoogleUtilities_Logger",
dependencies: ["GoogleUtilities_Environment"],
path: "GoogleUtilities/Logger",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../"),
]
),
// TODO: ISA_Swizzler requires building without ARC.
.target(
name: "GoogleUtilities_MethodSwizzler",
dependencies: ["GoogleUtilities_Logger"],
path: "GoogleUtilities/MethodSwizzler",
publicHeadersPath: "Private",
cSettings: [
.headerSearchPath("../../"),
]
),
.target(
name: "GoogleUtilities_Network",
dependencies: ["GoogleUtilities_Logger", "GoogleUtilities_NSData",
"GoogleUtilities_Reachability"],
path: "GoogleUtilities/Network",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../.."),
]
),
.target(
name: "GoogleUtilities_NSData",
path: "GoogleUtilities/NSData+zlib",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../.."),
],
linkerSettings: [
.linkedLibrary("z"),
]
),
.target(
name: "GoogleUtilities_Reachability",
dependencies: ["GoogleUtilities_Logger"],
path: "GoogleUtilities/Reachability",
publicHeadersPath: "Private",
cSettings: [
.headerSearchPath("../../"),
]
),
.target(
name: "GoogleUtilities_UserDefaults",
dependencies: ["GoogleUtilities_Logger"],
path: "GoogleUtilities/UserDefaults",
publicHeadersPath: "Private",
cSettings: [
.headerSearchPath("../../"),
]
),
// TODO: - need to port Network/third_party/GTMHTTPServer.m to ARC.
// .testTarget(
// name: "UtilitiesUnit",
// dependencies: [
// "OCMock",
// "GoogleUtilities_AppDelegateSwizzler",
// "GoogleUtilities_Environment",
// // "GoogleUtilities_ISASwizzler", // Build needs to disable ARC.
// "GoogleUtilities_Logger",
// "GoogleUtilities_MethodSwizzler",
// "GoogleUtilities_Network",
// "GoogleUtilities_NSData",
// "GoogleUtilities_Reachability",
// "GoogleUtilities_UserDefaults",
// ],
// path: "GoogleUtilities/Tests/Unit",
// exclude: [
// "Network/third_party/LICENSE",
// "Network/third_party/GTMHTTPServer.m", // Requires disabling ARC
// ],
// cSettings: [
// .headerSearchPath("../../.."),
// ]
// ),
],
cLanguageStandard: .c99,
cxxLanguageStandard: CXXLanguageStandard.gnucxx14
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化