Files
2026-11-03 09:30:50 -08:00

68 lines
2.2 KiB
Swift

// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
// Copyright 2024 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.
import PackageDescription
let package = Package(
name: "GoogleAdsOnDeviceConversion",
platforms: [.iOS(.v12), .macOS(.v10_15), .tvOS(.v13), .watchOS(.v7)],
products: [
.library(
name: "GoogleAdsOnDeviceConversion",
targets: ["GoogleAdsOnDeviceConversionTarget"]
),
],
dependencies: [
.package(
name: "GoogleUtilities",
url: "https://github.com/google/GoogleUtilities.git",
"8.1.0" ..< "9.0.0"
),
.package(
name: "nanopb",
url: "https://github.com/firebase/nanopb.git",
"2.30910.0" ..< "2.30911.0"
),
],
targets: [
.target(
name: "GoogleAdsOnDeviceConversionTarget",
dependencies: [
.target(
name: "GoogleAdsOnDeviceConversion",
condition: .when(platforms: [.iOS])
),
.product(name: "GULEnvironment", package: "GoogleUtilities"),
.product(name: "GULLogger", package: "GoogleUtilities"),
.product(name: "GULNetwork", package: "GoogleUtilities"),
.product(name: "nanopb", package: "nanopb"),
],
path: "GoogleAdsOnDeviceConversionWrapper",
linkerSettings: [
.linkedLibrary("c++"),
]
),
.binaryTarget(
name: "GoogleAdsOnDeviceConversion",
url: "https://dl.google.com/firebase/ios/appads/3.8.0/GoogleAdsOnDeviceConversion.zip",
checksum: "58c6e6f9c147710ea946a5537333ee62f702e7a13a45f3f3170acb25ad99eab7"
),
],
cLanguageStandard: .c99,
cxxLanguageStandard: CXXLanguageStandard.gnucxx14
)