Fix icons not showing up for some users app crashing on launch, app crashing when going to share files
This commit is contained in:
Donato Fiore
2023-12-02 22:01:30 -05:00
committed by GitHub
parent d7946435ec
commit 54d9adfdd9
26 changed files with 340 additions and 85 deletions

View File

@@ -0,0 +1,37 @@
#import <MobileCoreServices/LSApplicationProxy.h>
#import <MobileCoreServices/LSApplicationWorkspace.h>
@interface LSApplicationRecord : NSObject
@property (nonatomic,readonly) NSArray* appTags; // 'hidden'
@property (getter=isLaunchProhibited,readonly) BOOL launchProhibited;
@end
@interface LSApplicationProxy (Additions)
@property (readonly, nonatomic) NSString *shortVersionString;
@property (nonatomic,readonly) NSString* localizedName;
@property (nonatomic,readonly) NSString* applicationType; // (User/System)
@property (nonatomic,readonly) NSArray* appTags; // 'hidden'
@property (getter=isLaunchProhibited,nonatomic,readonly) BOOL launchProhibited;
+ (instancetype)applicationProxyForIdentifier:(NSString*)identifier;
- (LSApplicationRecord*)correspondingApplicationRecord;
@end
@interface LSApplicationWorkspace (Additions)
- (void)addObserver:(id)arg1;
- (void)removeObserver:(id)arg1;
- (void)enumerateApplicationsOfType:(NSUInteger)type block:(void (^)(LSApplicationProxy*))block;
@end
@interface LSApplicationProxy (AltList)
- (BOOL)atl_isSystemApplication;
- (BOOL)atl_isUserApplication;
- (BOOL)atl_isHidden;
- (NSString*)atl_fastDisplayName;
- (NSString*)atl_nameToDisplay;
- (NSString*)atl_shortVersionString;
@property (nonatomic,readonly) NSString* atl_bundleIdentifier;
@end
@interface LSApplicationWorkspace (AltList)
- (NSArray*)atl_allInstalledApplications;
@end