]> git.cameronkatri.com Git - tweaks.git/commitdiff
Fix iOS 15+ main
authorCameron Katri <me@cameronkatri.com>
Tue, 25 Apr 2023 01:34:44 +0000 (18:34 -0700)
committerCameron Katri <me@cameronkatri.com>
Tue, 25 Apr 2023 01:34:44 +0000 (18:34 -0700)
QuickActions/Makefile
QuickActions/QuickActionsPrefs/Makefile
QuickActions/Tweak.h
QuickActions/Tweak.x
QuickActions/control

index 91a854868178fa331ad3d186de41ff13fa6ec7e9..8b91b4635f341930ce4d3f02a211171e91a85bc8 100644 (file)
@@ -1,6 +1,6 @@
 #THEOS_PACKAGE_SCHEME=rootless
 
-TARGET := iphone:14.5:15.0
+TARGET := iphone:14.5:14.0
 INSTALL_TARGET_PROCESSES = SpringBoard
 
 ARCHS := arm64 arm64e
index a00d795a5851601271aff4dd8860a7db2ceb9667..06352da32d4d4df85522eb9e5e01577567a99e37 100644 (file)
@@ -1,4 +1,4 @@
-TARGET := iphone:14.5:15.0
+TARGET := iphone:14.5:14.0
 
 include $(THEOS)/makefiles/common.mk
 
index 1c74481c0f7dec24402610097e81f756bb80686b..e14a4f09748b4e4a76855e033452c0c5531a8ec8 100644 (file)
 +(id)optionsWithDictionary:(id)arg1;
 @end
 
-@interface FBSystemServiceOpenApplicationRequest : NSObject
-@property (assign,getter=isTrusted,nonatomic) BOOL trusted;
-@property (nonatomic,copy) NSString * bundleIdentifier;
-@property (nonatomic,copy) FBSOpenApplicationOptions * options;
-@property (nonatomic,retain) FBProcess * clientProcess;
-+(id)request;
+@interface FBSOpenApplicationService : NSObject
+-(void)openApplication:(NSString *)arg1 withOptions:(FBSOpenApplicationOptions *)arg2 completion:(id)arg3;
 @end
 
 @interface CSQuickActionsButton : UIView {
 @property (nonatomic, readonly) CGRect _referenceBounds;
 @end
 
-int SBFEffectiveHomeButtonType();
\ No newline at end of file
+int SBFEffectiveHomeButtonType();
index 7e9a505f8c0a78b56d6eee0a837f78f70423566a..8e6af39243bb9f7a0a0de2ff813d2dbccd21eb83 100644 (file)
 
 void openApplication(NSString *bundleID)
 {
-       FBSOpenApplicationOptionsopts = [%c(FBSOpenApplicationOptions) optionsWithDictionary:@{
+       FBSOpenApplicationOptions *opts = [%c(FBSOpenApplicationOptions) optionsWithDictionary:@{
                @"__LaunchOrigin" : @"BulletinDestinationCoverSheet",
                @"__PromptUnlockDevice" : @YES,
                @"__UnlockDevice" : @YES,
                @"__LaunchImage" : @"",
                @"__Actions" : @[]
        }];
-       FBSystemServiceOpenApplicationRequest* request = [%c(FBSystemServiceOpenApplicationRequest) request];
-       request.options = opts;
-       request.bundleIdentifier = bundleID;
-       request.trusted = YES;
-       request.clientProcess = [[%c(FBProcessManager) sharedInstance] systemApplicationProcess];
 
-       [[%c(SBMainWorkspace) sharedInstance] systemService:[%c(FBSystemService) sharedInstance] handleOpenApplicationRequest:request withCompletion:^{}];
+       FBSOpenApplicationService *openService = [[%c(FBSOpenApplicationService) alloc] init];
+       [openService openApplication:bundleID withOptions:opts completion:nil];
 }
 
 %hook CSQuickActionsView
index 89ec28385fe6b7c8fc05df6c85cc436856560cb8..2031df91adb5b88ef741803f05f8c2512a190682 100644 (file)
@@ -1,6 +1,6 @@
 Package: com.cameronkatri.quickactions
 Name: QuickActions
-Version: 1.0.0
+Version: 1.0.0-1
 Architecture: iphoneos-arm
 Description: Quickly launch apps from the lockscreen
 Maintainer: Cameron Katri <me+quickactions@cameronkatri.com>