-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
103 lines (99 loc) · 3.21 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
// Copyright 2021 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 googleSignInVersion = "6.2.0"
let package = Package(
name: "GoogleSignIn",
defaultLocalization: "en",
platforms: [
.macOS(.v10_15),
.iOS(.v9)
],
products: [
.library(
name: "GoogleSignIn",
targets: ["GoogleSignIn"]
),
],
dependencies: [
.package(
name: "AppAuth",
url: "https://github.com/openid/AppAuth-iOS.git",
"1.5.0" ..< "2.0.0"),
.package(
name: "GTMAppAuth",
url: "https://github.com/google/GTMAppAuth.git",
"1.2.0" ..< "2.0.0"),
.package(
name: "GTMSessionFetcher",
url: "https://github.com/google/gtm-session-fetcher.git",
"1.5.0" ..< "2.0.0"),
.package(
name: "OCMock",
url: "https://github.com/firebase/ocmock.git",
.revision("7291762d3551c5c7e31c49cce40a0e391a52e889")),
.package(
name: "GoogleUtilities",
url: "https://github.com/google/GoogleUtilities.git",
"7.3.0" ..< "8.0.0"),
],
targets: [
.target(
name: "GoogleSignIn",
dependencies: [
.product(name: "AppAuth", package: "AppAuth"),
.product(name: "GTMAppAuth", package: "GTMAppAuth"),
.product(name: "GTMSessionFetcherCore", package: "GTMSessionFetcher"),
],
path: "GoogleSignIn/Sources",
resources: [
.process("Resources"),
.process("Strings"),
],
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../"),
.define("GID_SDK_VERSION", to: googleSignInVersion),
],
linkerSettings: [
.linkedFramework("CoreGraphics"),
.linkedFramework("CoreText"),
.linkedFramework("Foundation"),
.linkedFramework("LocalAuthentication"),
.linkedFramework("Security"),
.linkedFramework("AppKit", .when(platforms: [.macOS])),
.linkedFramework("UIKit", .when(platforms: [.iOS])),
]
),
.testTarget(
name: "GoogleSignIn-UnitTests",
dependencies: [
"GoogleSignIn",
"OCMock",
.product(name: "AppAuth", package: "AppAuth"),
.product(name: "GTMAppAuth", package: "GTMAppAuth"),
.product(name: "GTMSessionFetcherCore", package: "GTMSessionFetcher"),
.product(name: "GULMethodSwizzler", package: "GoogleUtilities"),
.product(name: "GULSwizzlerTestHelpers", package: "GoogleUtilities"),
],
path: "GoogleSignIn/Tests/Unit",
cSettings: [
.headerSearchPath("../../../"),
.define("GID_SDK_VERSION", to: googleSignInVersion),
]
),
]
)