Repository navigation
Expand file tree
/
Copy pathproject.yml
More file actions
152 lines (149 loc) · 5.46 KB
/
Copy pathproject.yml
File metadata and controls
152 lines (149 loc) · 5.46 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
name: LocalControl
options:
bundleIdPrefix: com.example
deploymentTarget:
iOS: "17.0"
macOS: "14.0"
settings:
base:
CODE_SIGN_STYLE: Automatic
# Reverse-DNS prefix for every bundle ID, app group and iCloud store, from the environment (build.sh/phone.sh set it).
BUNDLE_PREFIX: ${BUNDLE_PREFIX}
SWIFT_VERSION: "5.0"
MARKETING_VERSION: "1.0"
CURRENT_PROJECT_VERSION: "1"
packages:
MLXSwiftLM:
url: https://github.com/ml-explore/mlx-swift-lm
from: "3.32.3"
SwiftHuggingFace:
url: https://github.com/huggingface/swift-huggingface
from: "0.9.0"
SwiftTransformers:
url: https://github.com/huggingface/swift-transformers
from: "1.3.0"
targets:
LocalControl:
type: application
platform: macOS
sources:
- Mac
- Shared
dependencies:
- target: LocalControlFilter
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: $(BUNDLE_PREFIX).localcontrol
INFOPLIST_FILE: Mac/Info.plist
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
ENABLE_HARDENED_RUNTIME: NO
postBuildScripts:
# SMAppService.agent looks for its plist inside the bundle.
- name: Embed LaunchAgent
script: |
DIR="$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/LaunchAgents"
mkdir -p "$DIR"
sed "s/__LABEL__/$PRODUCT_BUNDLE_IDENTIFIER.agent/" "$SRCROOT/Mac/agent.plist" > "$DIR/$PRODUCT_BUNDLE_IDENTIFIER.agent.plist"
basedOnDependencyAnalysis: false
entitlements:
path: Mac/Mac.entitlements
properties:
com.apple.developer.ubiquity-kvstore-identifier: $(TeamIdentifierPrefix)$(BUNDLE_PREFIX).localcontrol
com.apple.developer.system-extension.install: true
com.apple.developer.networking.networkextension: [content-filter-provider]
com.apple.security.application-groups: [$(TeamIdentifierPrefix)$(BUNDLE_PREFIX).localcontrol]
# Network content filter (system extension), embedded in the Mac app.
LocalControlFilter:
type: system-extension
platform: macOS
sources:
- Filter
- path: Shared/FilterAPI.swift
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: $(BUNDLE_PREFIX).localcontrol.filter
# macOS requires the bundle to be named after its identifier.
# (spelled out: XcodeGen needs the name when generating the embed phase)
PRODUCT_NAME: ${BUNDLE_PREFIX}.localcontrol.filter
PRODUCT_MODULE_NAME: LocalControlFilter
ENABLE_HARDENED_RUNTIME: YES
info:
path: Filter/Info.plist
properties:
CFBundleDisplayName: LocalControl Filter
CFBundleExecutable: $(EXECUTABLE_NAME)
CFBundlePackageType: SYSX
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
NSSystemExtensionUsageDescription: Blocks websites that don't fit your rule, in every app and browser.
NetworkExtension:
NEMachServiceName: $(TeamIdentifierPrefix)$(BUNDLE_PREFIX).localcontrol.filter
NEProviderClasses:
com.apple.networkextension.filter-data: $(PRODUCT_MODULE_NAME).FilterProvider
entitlements:
path: Filter/Filter.entitlements
properties:
com.apple.developer.networking.networkextension: [content-filter-provider]
com.apple.security.app-sandbox: true
com.apple.security.application-groups: [$(TeamIdentifierPrefix)$(BUNDLE_PREFIX).localcontrol]
LocalControlPhone:
type: application
platform: iOS
sources:
- iOS/App
- Shared
dependencies:
- target: LocalControlMonitor
- package: MLXSwiftLM
product: MLXLLM
- package: MLXSwiftLM
product: MLXLMCommon
- package: MLXSwiftLM
product: MLXGuidedGeneration
- package: SwiftHuggingFace
product: HuggingFace
- package: SwiftTransformers
product: Tokenizers
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: $(BUNDLE_PREFIX).localcontrol.phone
PRODUCT_NAME: LocalControl
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
TARGETED_DEVICE_FAMILY: "1"
info:
path: iOS/App/Info.plist
properties:
CFBundleDisplayName: LocalControl
LCAppGroup: group.$(BUNDLE_PREFIX).localcontrol
UILaunchScreen: {}
UISupportedInterfaceOrientations: [UIInterfaceOrientationPortrait]
ITSAppUsesNonExemptEncryption: false
entitlements:
path: iOS/App/App.entitlements
properties:
com.apple.developer.family-controls: true
com.apple.security.application-groups: [group.$(BUNDLE_PREFIX).localcontrol]
com.apple.developer.ubiquity-kvstore-identifier: $(TeamIdentifierPrefix)$(BUNDLE_PREFIX).localcontrol
LocalControlMonitor:
type: app-extension
platform: iOS
sources:
- iOS/Monitor
- path: Shared/Rule.swift
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: $(BUNDLE_PREFIX).localcontrol.phone.monitor
TARGETED_DEVICE_FAMILY: "1"
info:
path: iOS/Monitor/Info.plist
properties:
CFBundleDisplayName: LocalControl Monitor
LCAppGroup: group.$(BUNDLE_PREFIX).localcontrol
NSExtension:
NSExtensionPointIdentifier: com.apple.deviceactivity.monitor-extension
NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).Monitor
entitlements:
path: iOS/Monitor/Monitor.entitlements
properties:
com.apple.developer.family-controls: true
com.apple.security.application-groups: [group.$(BUNDLE_PREFIX).localcontrol]