-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProject.swift
111 lines (109 loc) · 4.42 KB
/
Project.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
104
105
106
107
108
109
110
111
import ProjectDescription
let projectName = "Zeno"
let orgName = "https://github.com/APPSCHOOL3-iOS/final-zeno"
let bundleID = "zeno.newyoungman"
let infoPlist: [String: InfoPlist.Value] = [
"BundleDisplayName": "Zeno",
"BundleShortVersionString": "1.0",
"BundleVersion": "1.0.0",
"UILaunchStoryboardName": "LaunchScreen",
"UIBackgroundModes": [
"fetch",
"processing",
"remote-notification"
],
"LSApplicationQueriesSchemes": [
"kakaokompassauth",
"kakaolink",
"kakao$(KAKAO_APP_KEY)"
],
"NSCameraUsageDescription": "사진 및 동영상 촬영을 위한 카메라 사용 권한",
"NSPhotoLibraryUsageDescription": "사진 및 동영상 첨부를 위한 앨범 사용 권한",
"CFBundleURLTypes": [
[
"CFBundleTypeRole": "Editor",
"CFBundleURLSchemes": ["kakao$(KAKAO_APP_KEY)"]
],
[
"CFBundleTypeRole": "Viewer",
"CFBundleURLName": "education.techit.zeno.dev",
"CFBundleURLSchemes": ["zenoapp"]
]
],
"KAKAO_APP_KEY" : "$(KAKAO_APP_KEY)",
"FIREBASE_PUSH_API_KEY" : "$(FIREBASE_PUSH_API_KEY)",
"UISupportedInterfaceOrientations": ["UIInterfaceOrientationPortrait"],
"BGTaskSchedulerPermittedIdentifiers" : ["zeno.newyoungman"]
]
let config = Settings.settings(configurations: [
.debug(name: "Debug", xcconfig: .relativeToRoot("\(projectName)/Resources/Config/Secrets.xcconfig")),
.release(name: "Release", xcconfig: .relativeToRoot("\(projectName)/Resources/Config/Secrets.xcconfig")),
])
let project = Project(
name: projectName,
organizationName: orgName,
packages: [
.remote(url: "https://github.com/simibac/ConfettiSwiftUI", requirement: .upToNextMajor(from: "1.0.0")),
.remote(url: "https://github.com/firebase/firebase-ios-sdk", requirement: .upToNextMajor(from: "10.0.0")),
.remote(url: "https://github.com/kakao/kakao-ios-sdk", requirement: .upToNextMajor(from: "2.0.0")),
.remote(url: "https://github.com/airbnb/lottie-ios", requirement: .upToNextMajor(from: "4.0.0")),
.remote(url: "https://github.com/onevcat/Kingfisher", requirement: .upToNextMajor(from: "7.0.0")),
],
targets: [
.init(
name: "Zeno",
platform: .iOS,
product: .app,
bundleId: bundleID,
deploymentTarget: .iOS(targetVersion: "16.4", devices: .iphone),
infoPlist: .extendingDefault(with: infoPlist),
sources: ["\(projectName)/Sources/**"],
resources: ["\(projectName)/Resources/**"],
entitlements: "\(projectName)/\(projectName).entitlements",
// scripts: [
// .pre(path: "Scripts/SwiftLintRunScript.sh", arguments: [], name: "SwiftLint", basedOnDependencyAnalysis: false),
// ],
dependencies: [
.package(product: "ConfettiSwiftUI"),
.package(product: "FirebaseAnalytics"),
.package(product: "FirebaseMessaging"),
.package(product: "FirebaseFirestore"),
.package(product: "FirebaseFirestoreSwift"),
.package(product: "FirebaseAuth"),
.package(product: "FirebaseStorage"),
.package(product: "FirebaseDynamicLinks"),
.package(product: "KakaoSDKUser"),
.package(product: "KakaoSDKAuth"),
.package(product: "KakaoSDKCommon"),
.package(product: "KakaoSDKTalk"),
.package(product: "KakaoSDKTemplate"),
.package(product: "KakaoSDKShare"),
.package(product: "Lottie"),
.package(product: "Kingfisher")
],
settings: config
)
],
schemes: [
.init(
name: "Zeno",
shared: true,
buildAction: BuildAction(targets: ["Zeno"]),
runAction: .runAction(
configuration: .debug,
// attachDebugger: true,
executable: "Zeno",
options: .options(
storeKitConfigurationPath: .relativeToRoot(
"Zeno/Resources/Product.storekit"
),
enableGPUFrameCaptureMode: .autoEnabled
),
diagnosticsOptions: [
.mainThreadChecker,
.performanceAntipatternChecker
]
)
)
]
)