Skip to content

Commit 28e2a0a

Browse files
authored
Fix Package.swift (#6982)
1 parent 324f8cf commit 28e2a0a

File tree

2 files changed

+3
-31
lines changed

2 files changed

+3
-31
lines changed

FirebaseMLModelDownloader/Sources/UserDefaultsBacked.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import Foundation
16+
1517
private protocol OptionalProtocol {
1618
var isNil: Bool { get }
1719
}

Package.swift

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ let package = Package(
564564
name: "FirebaseMLModelDownloader",
565565
dependencies: [
566566
"FirebaseCore",
567+
"FirebaseInstallations",
567568
],
568569
path: "FirebaseMLModelDownloader/Sources",
569570
cSettings: [
@@ -576,37 +577,6 @@ let package = Package(
576577
path: "FirebaseMLModelDownloader/Tests/Unit"
577578
),
578579

579-
.target(
580-
name: "FirebaseMessaging",
581-
dependencies: [
582-
"FirebaseCore",
583-
"FirebaseInstanceID",
584-
"GoogleUtilities_AppDelegateSwizzler",
585-
"GoogleUtilities_Environment",
586-
"GoogleUtilities_Reachability",
587-
"GoogleUtilities_UserDefaults",
588-
],
589-
path: "FirebaseMessaging/Sources",
590-
publicHeadersPath: "Public",
591-
cSettings: [
592-
.headerSearchPath("../../"),
593-
],
594-
linkerSettings: [
595-
.linkedFramework("SystemConfiguration", .when(platforms: .some([.iOS, .macOS, .tvOS]))),
596-
]
597-
),
598-
.testTarget(
599-
name: "MessagingUnit",
600-
dependencies: ["FirebaseMessaging", "OCMock"],
601-
path: "FirebaseMessaging/Tests/UnitTests",
602-
exclude: [
603-
"FIRMessagingContextManagerServiceTest.m", // TODO: Adapt its NSBundle usage to SPM.
604-
],
605-
cSettings: [
606-
.headerSearchPath("../../.."),
607-
]
608-
),
609-
610580
.target(
611581
name: "FirebaseMessaging",
612582
dependencies: [

0 commit comments

Comments
 (0)