-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject.swift
More file actions
86 lines (85 loc) · 3.37 KB
/
Copy pathProject.swift
File metadata and controls
86 lines (85 loc) · 3.37 KB
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
import ProjectDescription
import ProjectDescriptionHelpers
let project = Project(
name: "DevLogApp",
options: .options(
disableBundleAccessors: true,
disableSynthesizedResourceAccessors: true
),
packages: DevLogPackages.defaultPackages,
settings: .devlogProject(versionXcconfigPath: "../Shared/Version.xcconfig"),
targets: [
.target(
name: "DevLogApp",
destinations: .iOS,
product: .app,
productName: "DevLog",
bundleId: "opfic.DevLog",
infoPlist: .file(path: "Sources/Resource/Info.plist"),
sources: ["Sources/**/*.swift"],
resources: [
"Sources/Resource/Assets.xcassets",
"Sources/Resource/GoogleService-Info.plist",
"Sources/Resource/Localizable.xcstrings",
],
entitlements: .file(path: "Sources/Resource/DevLog.entitlements"),
scripts: [
DevLogScripts.swiftLint(
sourcePath: "Sources",
configPath: "Sources/.swiftlint.yml"
),
],
dependencies: [
.project(target: "DevLogPresentation", path: "../DevLogPresentation"),
.project(target: "DevLogPersistence", path: "../DevLogPersistence"),
.project(target: "DevLogInfra", path: "../DevLogInfra"),
.project(target: "DevLogData", path: "../DevLogData"),
.project(target: "DevLogDomain", path: "../DevLogDomain"),
.project(target: "DevLogCore", path: "../DevLogCore"),
.project(target: "DevLogWidgetCore", path: "../../Widget/DevLogWidgetCore"),
.project(target: "DevLogWidgetExtension", path: "../../Widget/DevLogWidgetExtension"),
],
settings: .devlog(
versionXcconfigPath: "Sources/Resource/App.xcconfig",
base: [
"ASSETCATALOG_COMPILER_APPICON_NAME": "AppIcon",
"CODE_SIGN_STYLE": "Automatic",
"ENABLE_USER_SCRIPT_SANDBOXING": "NO",
"PRODUCT_MODULE_NAME": "DevLogApp",
],
debug: [
"APS_ENVIRONMENT": "development",
],
release: [
"APS_ENVIRONMENT": "production",
]
)
),
.target(
name: "DevLogAppTests",
destinations: .iOS,
product: .unitTests,
bundleId: "opfic.DevLogAppTests",
infoPlist: .file(path: "../Shared/InfoPlists/UnitTests-Info.plist"),
sources: ["Tests/**/*.swift"],
scripts: [
DevLogScripts.swiftLint(
sourcePath: "Tests",
configPath: "Tests/.swiftlint.yml"
),
],
dependencies: [
.target(name: "DevLogApp"),
],
settings: .devlog(
base: [
"BUNDLE_LOADER": "$(TEST_HOST)",
"CODE_SIGN_STYLE": "Automatic",
"ENABLE_USER_SCRIPT_SANDBOXING": "NO",
"TEST_HOST": "$(BUILT_PRODUCTS_DIR)/DevLog.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/DevLog",
"TEST_TARGET_NAME": "DevLogApp",
]
)
),
]
)