mirror of
https://github.com/opa334/TrollStore.git
synced 2025-07-07 00:38:46 +08:00
17 lines
402 B
Objective-C
17 lines
402 B
Objective-C
@implementation TSExploitDescriptor
|
|
|
|
+ (instancetype)descriptorWithJSON:(NSDictionary *)json {
|
|
TSExploitDescriptor *desc = [TSExploitDescriptor new];
|
|
desc.identifier = json[@"id"];
|
|
desc.minOS = json[@"min_ios"];
|
|
desc.maxOS = json[@"max_ios"];
|
|
return desc;
|
|
}
|
|
|
|
- (BOOL)isCompatibleWithCurrentDevice {
|
|
// 实际实现需要检查系统版本和设备型号
|
|
return YES;
|
|
}
|
|
|
|
@end
|