-
Notifications
You must be signed in to change notification settings - Fork 4k
/
Package.swift
48 lines (44 loc) · 1.55 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
// Copyright 2024, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import Foundation
import PackageDescription
// auto-generated by melos post commit hook script
let firebase_core_version: String = "3.9.0"
let firebase_ios_sdk_version: String = "11.4.0"
// Shared Swift package manager code for firebase core
let package = Package(
name: "remote_firebase_core",
platforms: [
.iOS("13.0"),
.macOS("10.15"),
],
products: [
.library(name: "firebase-core-shared", targets: ["firebase_core_shared"]),
],
dependencies: [
// TODO: this is fine for now, but will require a way of retrieving the firebase-ios-sdk
// likely create a script that runs in preCommit hook of melos
.package(
url: "https://github.com/firebase/firebase-ios-sdk",
from: Version(firebase_ios_sdk_version)!
),
],
targets: [
.target(
name: "firebase_core_shared",
dependencies: [
.product(name: "FirebaseInstallations", package: "firebase-ios-sdk"),
],
path: "Sources/firebase_core_shared",
publicHeadersPath: "include",
cSettings: [
.headerSearchPath("include/firebase_core"),
.define("LIBRARY_VERSION", to: "\"\(firebase_core_version)\""),
.define("LIBRARY_NAME", to: "\"flutter-fire-core\""),
]
),
]
)