master
swift 39 lines 1.17 KB
Raw
1 // swift-tools-version:5.3
2 // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
3 // SPDX-License-Identifier: Apache-2.0
4 // SPDX-License-Identifier: MIT
5
6 import PackageDescription
7
8 let package = Package(
9 name: "tauri-plugin-admob",
10 platforms: [
11 .iOS(.v13)
12 ],
13 products: [
14 // Products define the executables and libraries a package produces, making them visible to other packages.
15 .library(
16 name: "tauri-plugin-admob",
17 type: .static,
18 targets: ["tauri-plugin-admob"])
19 ],
20 dependencies: [
21 .package(name: "Tauri", path: "../.tauri/tauri-api"),
22 .package(
23 url: "https://github.com/googleads/swift-package-manager-google-mobile-ads.git",
24 from: "12.0.0"),
25 ],
26 targets: [
27 // Targets are the basic building blocks of a package, defining a module or a test suite.
28 // Targets can depend on other targets in this package and products from dependencies.
29 .target(
30 name: "tauri-plugin-admob",
31 dependencies: [
32 .byName(name: "Tauri"),
33 .product(
34 name: "GoogleMobileAds",
35 package: "swift-package-manager-google-mobile-ads"),
36 ],
37 path: "Sources/tauri-plugin-admob")
38 ]
39 )