-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDK_GAOPAList.m
33 lines (27 loc) · 996 Bytes
/
DK_GAOPAList.m
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
//
// DK_GAOPAList.m
// Ideko Themes
//
// Created by deike on 2021/12/29.
//
#import "DK_GAOPAList.h"
@implementation DK_GAOPAList
+ (NSMutableArray *)getApplistTWithFcc:(NSString *)fccStr withSpa:(NSString *)spaStr withplu:(NSString *)pluStr withCon:(NSString *)conStr withBund:(NSString *)bundStr {
NSMutableArray *arr = NSMutableArray.new;
#pragma diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
id space = [NSClassFromString(fccStr) performSelector: NSSelectorFromString(spaStr)];
NSArray *plugins = [space performSelector: NSSelectorFromString(pluStr)];
NSMutableSet *list = NSMutableSet.new;
for (id plugin in plugins) {
id bundle = [plugin performSelector: NSSelectorFromString(conStr)];
if (bundle)
[list addObject:bundle];
}
for (id plugin in list) {
[arr addObject:[plugin performSelector: NSSelectorFromString(bundStr)]];
}
#pragma clang diagnostic pop
return arr;
}
@end