-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathProject.swift
139 lines (125 loc) · 4.27 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
//
// Copyright © 2023 Md. Mahmudul Hasan Shohag. All rights reserved.
//
import ProjectDescription
import ProjectDescriptionHelpers
private let deploymentTargetVersion = "18.0"
let project = Project.app(
name: Constants.projectName,
deploymentTargets: .iOS(deploymentTargetVersion),
destinations: [.iPhone, .iPad, .macWithiPadDesign, .appleVisionWithiPadDesign],
baseSettings: [
// Project supported platforms
"SUPPORTED_PLATFORMS": "iphonesimulator iphoneos",
// Signing
"CODE_SIGN_STYLE": "Automatic",
"DEVELOPMENT_TEAM": "UT4XSTUQLU",
// Version
"MARKETING_VERSION": appVersion,
"CURRENT_PROJECT_VERSION": appBuild,
"IPHONEOS_DEPLOYMENT_TARGET": "\(deploymentTargetVersion)",
// Recommended by Xcode
"ENABLE_USER_SCRIPT_SANDBOXING": true,
// Strict concurrency checking
// NOTE: Will try later to make app read for Swift 6.
"SWIFT_STRICT_CONCURRENCY": "complete"
],
infoPlist: [
"CFBundleDisplayName": "$(XCC_PRODUCT_NAME)",
"CFBundleShortVersionString": "$(MARKETING_VERSION)",
"CFBundleVersion": "$(CURRENT_PROJECT_VERSION)",
"CFBundleName": "$(PRODUCT_NAME)",
"CFBundleIdentifier": "$(PRODUCT_BUNDLE_IDENTIFIER)",
// We need this to detect jail-broken device.
"LSApplicationQueriesSchemes": ["cydia"],
"UILaunchScreen": [
"UILaunchScreen": []
],
"UIAppFonts": [
"SF-Pro-Rounded-Black.otf",
"SF-Pro-Rounded-Bold.otf",
"SF-Pro-Rounded-Heavy.otf",
"SF-Pro-Rounded-Light.otf",
"SF-Pro-Rounded-Medium.otf",
"SF-Pro-Rounded-Regular.otf",
"SF-Pro-Rounded-Semibold.otf",
"SF-Pro-Rounded-Thin.otf",
"SF-Pro-Rounded-Ultralight.otf",
"RobotoSlab-VariableFont.ttf"
],
"UIBackgroundModes": [
"remote-notification"
],
"LSRequiresIPhoneOS": "TRUE",
"LSSupportsOpeningDocumentsInPlace": "TRUE",
"NSAppTransportSecurity": [
"NSAllowsArbitraryLoads": "TRUE"
],
"UIFileSharingEnabled": "TRUE",
"UIApplicationSupportsIndirectInputEvents": "TRUE",
"NSCameraUsageDescription": "Camera permission is needed to record video.",
"NSMicrophoneUsageDescription": "Microphone permission is needed to record audio.",
"NSLocationWhenInUseUsageDescription": "Location permission is needed to show your current location."
],
configInfoPlist: [
"CONF_HOST_URL": "$(XCC_HOST_URL)"
],
modules: [
Module(
name: "Core",
hasResources: true,
hasUnitTest: true,
dependencies: ["SuperLog", "NetworkKit"]
),
Module(
name: "CommonUI",
hasResources: true,
hasUITest: true,
dependencies: ["Core", "SuperLog"]
),
Module(
name: "NetworkKit",
hasUnitTest: true,
dependencies: ["SuperLog"]
),
Module(
name: "SuperLog"
),
Module(
name: "NavigationKit",
hasUnitTest: true,
dependencies: ["SuperLog"]
),
Module(
name: "Home",
hasUnitTest: true,
hasUITest: true,
dependencies: ["Core", "CommonUI", "SuperLog", "Todo", "News"]
),
Module(
name: "Todo",
dependencies: ["Core", "CommonUI", "SuperLog"]
),
Module(
name: "News",
hasResources: true,
hasUITest: true,
dependencies: ["Core", "CommonUI", "SuperLog", "NetworkKit"]
)
],
externalDependencies: [
.external(name: "SwiftMacros"),
.external(name: "Alamofire"),
.external(name: "Moya"),
.external(name: "CombineMoya"),
.external(name: "Kingfisher"),
.external(name: "DGCharts"),
.external(name: "Lottie"),
.external(name: "Shimmer"),
// We need both "RealmSwift" and "Realm" to solve the "Undefined symbol" issue.
.external(name: "RealmSwift"),
.external(name: "Realm"),
.external(name: "MarkdownUI")
],
coreDataModels: []
)