mirror of
https://github.com/opa334/TrollStore.git
synced 2025-07-07 00:38:46 +08:00
Create TSExploitDescriptor.m
This commit is contained in:
parent
50a7142b2d
commit
53117219a9
16
ExploitManager/TSExploitDescriptor.m
Normal file
16
ExploitManager/TSExploitDescriptor.m
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
@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
|
Loading…
Reference in New Issue
Block a user