Skip to content

Commit 47d9c10

Browse files
author
DevelopLab
committed
1. Add Home screen quick action
2. Add Lock screen widget 3. Add Shortcuts 4. Add quick action options
1 parent d96ae80 commit 47d9c10

20 files changed

Lines changed: 1096 additions & 50 deletions

File tree

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ before-package::
2525
fi
2626
@echo -e "\033[32mRemoving _CodeSignature folder..."
2727
@rm -rf $(THEOS_STAGING_DIR)/Applications/$(XCODEPROJ_NAME).app/_CodeSignature
28-
# @echo -e "\033[32mRemoving Frameworks folder..."
29-
# @rm -rf $(THEOS_STAGING_DIR)/Applications/$(XCODEPROJ_NAME).app/Frameworks
30-
# @cp -f SIMSwitcherHelper/SIMSwitcherHelper $(THEOS_STAGING_DIR)/Applications/$(XCODEPROJ_NAME).app/
28+
@echo -e "\033[32mRemoving Frameworks folder..."
29+
@rm -rf $(THEOS_STAGING_DIR)/Applications/$(XCODEPROJ_NAME).app/Frameworks
3130

3231
# 包装完成后重命名为 .tipa
3332
after-package::

TrollSIMSwitcher.xcodeproj/project.pbxproj

Lines changed: 183 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,41 @@
88

99
/* Begin PBXBuildFile section */
1010
17CE42892ED9948D00045AE5 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 17CE42882ED9948D00045AE5 /* CoreTelephony.framework */; };
11+
17CE43E92EDC146800045AE5 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 17CE43E82EDC146800045AE5 /* WidgetKit.framework */; };
12+
17CE43EB2EDC146800045AE5 /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 17CE43EA2EDC146800045AE5 /* SwiftUI.framework */; };
13+
17CE43F62EDC146900045AE5 /* TrollSIMSwitcherWidgetExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 17CE43E72EDC146800045AE5 /* TrollSIMSwitcherWidgetExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
1114
/* End PBXBuildFile section */
1215

16+
/* Begin PBXContainerItemProxy section */
17+
17CE43F42EDC146900045AE5 /* PBXContainerItemProxy */ = {
18+
isa = PBXContainerItemProxy;
19+
containerPortal = 174CC6502ED813F5003CA997 /* Project object */;
20+
proxyType = 1;
21+
remoteGlobalIDString = 17CE43E62EDC146800045AE5;
22+
remoteInfo = TrollSIMSwitcherWidgetExtension;
23+
};
24+
/* End PBXContainerItemProxy section */
25+
26+
/* Begin PBXCopyFilesBuildPhase section */
27+
17CE43FB2EDC146900045AE5 /* Embed Foundation Extensions */ = {
28+
isa = PBXCopyFilesBuildPhase;
29+
buildActionMask = 2147483647;
30+
dstPath = "";
31+
dstSubfolderSpec = 13;
32+
files = (
33+
17CE43F62EDC146900045AE5 /* TrollSIMSwitcherWidgetExtension.appex in Embed Foundation Extensions */,
34+
);
35+
name = "Embed Foundation Extensions";
36+
runOnlyForDeploymentPostprocessing = 0;
37+
};
38+
/* End PBXCopyFilesBuildPhase section */
39+
1340
/* Begin PBXFileReference section */
1441
174CC6582ED813F5003CA997 /* TrollSIMSwitcher.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TrollSIMSwitcher.app; sourceTree = BUILT_PRODUCTS_DIR; };
1542
17CE42882ED9948D00045AE5 /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; };
43+
17CE43E72EDC146800045AE5 /* TrollSIMSwitcherWidgetExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = TrollSIMSwitcherWidgetExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
44+
17CE43E82EDC146800045AE5 /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; };
45+
17CE43EA2EDC146800045AE5 /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; };
1646
/* End PBXFileReference section */
1747

1848
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
@@ -23,6 +53,13 @@
2353
);
2454
target = 174CC6572ED813F5003CA997 /* TrollSIMSwitcher */;
2555
};
56+
17CE43FA2EDC146900045AE5 /* Exceptions for "TrollSIMSwitcherWidget" folder in "TrollSIMSwitcherWidgetExtension" target */ = {
57+
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
58+
membershipExceptions = (
59+
Info.plist,
60+
);
61+
target = 17CE43E62EDC146800045AE5 /* TrollSIMSwitcherWidgetExtension */;
62+
};
2663
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
2764

2865
/* Begin PBXFileSystemSynchronizedRootGroup section */
@@ -34,6 +71,14 @@
3471
path = TrollSIMSwitcher;
3572
sourceTree = "<group>";
3673
};
74+
17CE43EC2EDC146800045AE5 /* TrollSIMSwitcherWidget */ = {
75+
isa = PBXFileSystemSynchronizedRootGroup;
76+
exceptions = (
77+
17CE43FA2EDC146900045AE5 /* Exceptions for "TrollSIMSwitcherWidget" folder in "TrollSIMSwitcherWidgetExtension" target */,
78+
);
79+
path = TrollSIMSwitcherWidget;
80+
sourceTree = "<group>";
81+
};
3782
/* End PBXFileSystemSynchronizedRootGroup section */
3883

3984
/* Begin PBXFrameworksBuildPhase section */
@@ -45,13 +90,23 @@
4590
);
4691
runOnlyForDeploymentPostprocessing = 0;
4792
};
93+
17CE43E42EDC146800045AE5 /* Frameworks */ = {
94+
isa = PBXFrameworksBuildPhase;
95+
buildActionMask = 2147483647;
96+
files = (
97+
17CE43EB2EDC146800045AE5 /* SwiftUI.framework in Frameworks */,
98+
17CE43E92EDC146800045AE5 /* WidgetKit.framework in Frameworks */,
99+
);
100+
runOnlyForDeploymentPostprocessing = 0;
101+
};
48102
/* End PBXFrameworksBuildPhase section */
49103

50104
/* Begin PBXGroup section */
51105
174CC64F2ED813F5003CA997 = {
52106
isa = PBXGroup;
53107
children = (
54108
174CC65A2ED813F5003CA997 /* TrollSIMSwitcher */,
109+
17CE43EC2EDC146800045AE5 /* TrollSIMSwitcherWidget */,
55110
174CC7732ED8360D003CA997 /* Frameworks */,
56111
174CC6592ED813F5003CA997 /* Products */,
57112
);
@@ -61,6 +116,7 @@
61116
isa = PBXGroup;
62117
children = (
63118
174CC6582ED813F5003CA997 /* TrollSIMSwitcher.app */,
119+
17CE43E72EDC146800045AE5 /* TrollSIMSwitcherWidgetExtension.appex */,
64120
);
65121
name = Products;
66122
sourceTree = "<group>";
@@ -69,6 +125,8 @@
69125
isa = PBXGroup;
70126
children = (
71127
17CE42882ED9948D00045AE5 /* CoreTelephony.framework */,
128+
17CE43E82EDC146800045AE5 /* WidgetKit.framework */,
129+
17CE43EA2EDC146800045AE5 /* SwiftUI.framework */,
72130
);
73131
name = Frameworks;
74132
sourceTree = "<group>";
@@ -83,10 +141,12 @@
83141
174CC6542ED813F5003CA997 /* Sources */,
84142
174CC6552ED813F5003CA997 /* Frameworks */,
85143
174CC6562ED813F5003CA997 /* Resources */,
144+
17CE43FB2EDC146900045AE5 /* Embed Foundation Extensions */,
86145
);
87146
buildRules = (
88147
);
89148
dependencies = (
149+
17CE43F52EDC146900045AE5 /* PBXTargetDependency */,
90150
);
91151
fileSystemSynchronizedGroups = (
92152
174CC65A2ED813F5003CA997 /* TrollSIMSwitcher */,
@@ -98,6 +158,28 @@
98158
productReference = 174CC6582ED813F5003CA997 /* TrollSIMSwitcher.app */;
99159
productType = "com.apple.product-type.application";
100160
};
161+
17CE43E62EDC146800045AE5 /* TrollSIMSwitcherWidgetExtension */ = {
162+
isa = PBXNativeTarget;
163+
buildConfigurationList = 17CE43F72EDC146900045AE5 /* Build configuration list for PBXNativeTarget "TrollSIMSwitcherWidgetExtension" */;
164+
buildPhases = (
165+
17CE43E32EDC146800045AE5 /* Sources */,
166+
17CE43E42EDC146800045AE5 /* Frameworks */,
167+
17CE43E52EDC146800045AE5 /* Resources */,
168+
);
169+
buildRules = (
170+
);
171+
dependencies = (
172+
);
173+
fileSystemSynchronizedGroups = (
174+
17CE43EC2EDC146800045AE5 /* TrollSIMSwitcherWidget */,
175+
);
176+
name = TrollSIMSwitcherWidgetExtension;
177+
packageProductDependencies = (
178+
);
179+
productName = TrollSIMSwitcherWidgetExtension;
180+
productReference = 17CE43E72EDC146800045AE5 /* TrollSIMSwitcherWidgetExtension.appex */;
181+
productType = "com.apple.product-type.app-extension";
182+
};
101183
/* End PBXNativeTarget section */
102184

103185
/* Begin PBXProject section */
@@ -112,6 +194,9 @@
112194
CreatedOnToolsVersion = 16.4;
113195
LastSwiftMigration = 1640;
114196
};
197+
17CE43E62EDC146800045AE5 = {
198+
CreatedOnToolsVersion = 16.4;
199+
};
115200
};
116201
};
117202
buildConfigurationList = 174CC6532ED813F5003CA997 /* Build configuration list for PBXProject "TrollSIMSwitcher" */;
@@ -130,6 +215,7 @@
130215
projectRoot = "";
131216
targets = (
132217
174CC6572ED813F5003CA997 /* TrollSIMSwitcher */,
218+
17CE43E62EDC146800045AE5 /* TrollSIMSwitcherWidgetExtension */,
133219
);
134220
};
135221
/* End PBXProject section */
@@ -142,6 +228,13 @@
142228
);
143229
runOnlyForDeploymentPostprocessing = 0;
144230
};
231+
17CE43E52EDC146800045AE5 /* Resources */ = {
232+
isa = PBXResourcesBuildPhase;
233+
buildActionMask = 2147483647;
234+
files = (
235+
);
236+
runOnlyForDeploymentPostprocessing = 0;
237+
};
145238
/* End PBXResourcesBuildPhase section */
146239

147240
/* Begin PBXSourcesBuildPhase section */
@@ -152,8 +245,23 @@
152245
);
153246
runOnlyForDeploymentPostprocessing = 0;
154247
};
248+
17CE43E32EDC146800045AE5 /* Sources */ = {
249+
isa = PBXSourcesBuildPhase;
250+
buildActionMask = 2147483647;
251+
files = (
252+
);
253+
runOnlyForDeploymentPostprocessing = 0;
254+
};
155255
/* End PBXSourcesBuildPhase section */
156256

257+
/* Begin PBXTargetDependency section */
258+
17CE43F52EDC146900045AE5 /* PBXTargetDependency */ = {
259+
isa = PBXTargetDependency;
260+
target = 17CE43E62EDC146800045AE5 /* TrollSIMSwitcherWidgetExtension */;
261+
targetProxy = 17CE43F42EDC146900045AE5 /* PBXContainerItemProxy */;
262+
};
263+
/* End PBXTargetDependency section */
264+
157265
/* Begin XCBuildConfiguration section */
158266
174CC66C2ED813F6003CA997 /* Debug */ = {
159267
isa = XCBuildConfiguration;
@@ -163,7 +271,7 @@
163271
CLANG_ENABLE_MODULES = YES;
164272
CODE_SIGN_STYLE = Automatic;
165273
CURRENT_PROJECT_VERSION = 1;
166-
DEVELOPMENT_TEAM = X2WABLB38D;
274+
DEVELOPMENT_TEAM = "";
167275
GENERATE_INFOPLIST_FILE = YES;
168276
INFOPLIST_FILE = TrollSIMSwitcher/Info.plist;
169277
INFOPLIST_KEY_CFBundleDisplayName = "Troll SIM Switcher";
@@ -199,7 +307,7 @@
199307
CLANG_ENABLE_MODULES = YES;
200308
CODE_SIGN_STYLE = Automatic;
201309
CURRENT_PROJECT_VERSION = 1;
202-
DEVELOPMENT_TEAM = X2WABLB38D;
310+
DEVELOPMENT_TEAM = "";
203311
GENERATE_INFOPLIST_FILE = YES;
204312
INFOPLIST_FILE = TrollSIMSwitcher/Info.plist;
205313
INFOPLIST_KEY_CFBundleDisplayName = "Troll SIM Switcher";
@@ -349,6 +457,70 @@
349457
};
350458
name = Release;
351459
};
460+
17CE43F82EDC146900045AE5 /* Debug */ = {
461+
isa = XCBuildConfiguration;
462+
buildSettings = {
463+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
464+
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
465+
CODE_SIGN_STYLE = Automatic;
466+
CURRENT_PROJECT_VERSION = 1;
467+
DEVELOPMENT_TEAM = "";
468+
GENERATE_INFOPLIST_FILE = YES;
469+
INFOPLIST_FILE = TrollSIMSwitcherWidget/Info.plist;
470+
INFOPLIST_KEY_CFBundleDisplayName = TrollSIMSwitcherWidget;
471+
INFOPLIST_KEY_NSHumanReadableCopyright = "";
472+
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
473+
LD_RUNPATH_SEARCH_PATHS = (
474+
"$(inherited)",
475+
"@executable_path/Frameworks",
476+
"@executable_path/../../Frameworks",
477+
);
478+
MARKETING_VERSION = 1.0;
479+
PRODUCT_BUNDLE_IDENTIFIER = com.developlab.TrollSIMSwitcher.TrollSIMSwitcherWidget;
480+
PRODUCT_NAME = "$(TARGET_NAME)";
481+
SKIP_INSTALL = YES;
482+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
483+
SUPPORTS_MACCATALYST = NO;
484+
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
485+
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
486+
SWIFT_EMIT_LOC_STRINGS = YES;
487+
SWIFT_VERSION = 5.0;
488+
TARGETED_DEVICE_FAMILY = "1,2";
489+
};
490+
name = Debug;
491+
};
492+
17CE43F92EDC146900045AE5 /* Release */ = {
493+
isa = XCBuildConfiguration;
494+
buildSettings = {
495+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
496+
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
497+
CODE_SIGN_STYLE = Automatic;
498+
CURRENT_PROJECT_VERSION = 1;
499+
DEVELOPMENT_TEAM = "";
500+
GENERATE_INFOPLIST_FILE = YES;
501+
INFOPLIST_FILE = TrollSIMSwitcherWidget/Info.plist;
502+
INFOPLIST_KEY_CFBundleDisplayName = TrollSIMSwitcherWidget;
503+
INFOPLIST_KEY_NSHumanReadableCopyright = "";
504+
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
505+
LD_RUNPATH_SEARCH_PATHS = (
506+
"$(inherited)",
507+
"@executable_path/Frameworks",
508+
"@executable_path/../../Frameworks",
509+
);
510+
MARKETING_VERSION = 1.0;
511+
PRODUCT_BUNDLE_IDENTIFIER = com.developlab.TrollSIMSwitcher.TrollSIMSwitcherWidget;
512+
PRODUCT_NAME = "$(TARGET_NAME)";
513+
SKIP_INSTALL = YES;
514+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
515+
SUPPORTS_MACCATALYST = NO;
516+
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
517+
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
518+
SWIFT_EMIT_LOC_STRINGS = YES;
519+
SWIFT_VERSION = 5.0;
520+
TARGETED_DEVICE_FAMILY = "1,2";
521+
};
522+
name = Release;
523+
};
352524
/* End XCBuildConfiguration section */
353525

354526
/* Begin XCConfigurationList section */
@@ -370,6 +542,15 @@
370542
defaultConfigurationIsVisible = 0;
371543
defaultConfigurationName = Release;
372544
};
545+
17CE43F72EDC146900045AE5 /* Build configuration list for PBXNativeTarget "TrollSIMSwitcherWidgetExtension" */ = {
546+
isa = XCConfigurationList;
547+
buildConfigurations = (
548+
17CE43F82EDC146900045AE5 /* Debug */,
549+
17CE43F92EDC146900045AE5 /* Release */,
550+
);
551+
defaultConfigurationIsVisible = 0;
552+
defaultConfigurationName = Release;
553+
};
373554
/* End XCConfigurationList section */
374555
};
375556
rootObject = 174CC6502ED813F5003CA997 /* Project object */;

0 commit comments

Comments
 (0)