MIBundle.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. typedef NS_ENUM(NSInteger, MIBundleType) {
  2. MIBundleTypeSystemApp = 1,
  3. MIBundleTypeInternalApp,
  4. MIBundleTypeDiskImageApp,
  5. MIBundleTypeUserApp,
  6. MIBundleTypeVPNPlugin,
  7. MIBundleTypeCarrierBundle,
  8. MIBundleTypeAppExtension,
  9. MIBundleTypeFramework
  10. };
  11. @interface MIBundle : NSObject
  12. + (BOOL)bundleIsBlacklisted:(MIBundle *)bundle;
  13. + (instancetype)bundleForURL:(NSURL *)url error:(NSError *)arg2;
  14. + (instancetype)bundleWithExtension:(NSString *)directory withExtension:(NSString *)extension error:(NSError *)error;
  15. - (instancetype)initWithBundleInDirectory:(NSString *)directory withExtension:(NSString *)extension error:(NSError *)error;
  16. - (instancetype)initWithBundleURL:(NSURL *)url error:(NSError *)error;
  17. - (BOOL)isApplicableToCurrentDeviceCapabilitiesWithError:(NSError *)error;
  18. - (BOOL)isApplicableToCurrentDeviceFamilyWithError:(NSError *)error;
  19. - (BOOL)isApplicableToCurrentOSVersionWithError:(NSError *)error;
  20. - (BOOL)isApplicableToOSVersion:(id)arg1 error:(NSError *)error;
  21. - (BOOL)isCompatibleWithDeviceFamily:(int)deviceFamily; // TODO
  22. - (BOOL)thinningMatchesCurrentDeviceWithError:(NSError *)error;
  23. - (NSArray *)frameworkBundlesWithError:(NSError *)error;
  24. - (NSArray *)pluginKitBundlesWithError:(NSError *)error;
  25. - (BOOL)_scanForBundleInDirectory:(NSString *)directory withExtension:(NSString *)extension error:(NSError *)error;
  26. - (BOOL)_validateWithError:(NSError *)error;
  27. @property (readonly, copy) NSString *identifier;
  28. @property (readonly) NSURL *bundleURL;
  29. @property (retain) NSURL *bundleParentDirectoryURL;
  30. @property (readonly, copy) NSString *bundleName;
  31. @property (readonly) NSDictionary *infoPlistSubset;
  32. @property (readonly, copy) NSString *minimumOSVersion;
  33. @property (readonly) MIBundleType bundleType;
  34. @property (readonly, copy) NSString *bundleTypeDescription;
  35. @property (readonly) BOOL needsDataContainer;
  36. @property (readonly) NSArray *deviceFamilies;
  37. @property (readonly) NSArray *supportedDevices;
  38. @end