|
@@ -15,7 +15,7 @@
|
|
|
|
|
|
|
|
@implementation FLEXShortcutsFactory (UIApplication)
|
|
@implementation FLEXShortcutsFactory (UIApplication)
|
|
|
|
|
|
|
|
-+ (void)load { FLEX_EXIT_IF_TESTING()
|
|
|
|
|
|
|
++ (void)load { FLEX_EXIT_IF_NO_CTORS()
|
|
|
// sharedApplication class property possibly not added
|
|
// sharedApplication class property possibly not added
|
|
|
// as a literal class property until iOS 10
|
|
// as a literal class property until iOS 10
|
|
|
FLEXRuntimeUtilityTryAddObjectProperty(
|
|
FLEXRuntimeUtilityTryAddObjectProperty(
|
|
@@ -40,7 +40,7 @@
|
|
|
|
|
|
|
|
@implementation FLEXShortcutsFactory (Views)
|
|
@implementation FLEXShortcutsFactory (Views)
|
|
|
|
|
|
|
|
-+ (void)load { FLEX_EXIT_IF_TESTING()
|
|
|
|
|
|
|
++ (void)load { FLEX_EXIT_IF_NO_CTORS()
|
|
|
// A quirk of UIView and some other classes: a lot of the `@property`s are
|
|
// A quirk of UIView and some other classes: a lot of the `@property`s are
|
|
|
// not actually properties from the perspective of the runtime.
|
|
// not actually properties from the perspective of the runtime.
|
|
|
//
|
|
//
|
|
@@ -131,7 +131,7 @@
|
|
|
|
|
|
|
|
@implementation FLEXShortcutsFactory (ViewControllers)
|
|
@implementation FLEXShortcutsFactory (ViewControllers)
|
|
|
|
|
|
|
|
-+ (void)load { FLEX_EXIT_IF_TESTING()
|
|
|
|
|
|
|
++ (void)load { FLEX_EXIT_IF_NO_CTORS()
|
|
|
// toolbarItems is not really a property, make it one
|
|
// toolbarItems is not really a property, make it one
|
|
|
FLEXRuntimeUtilityTryAddObjectProperty(3, toolbarItems, UIViewController.class, NSArray);
|
|
FLEXRuntimeUtilityTryAddObjectProperty(3, toolbarItems, UIViewController.class, NSArray);
|
|
|
|
|
|
|
@@ -151,7 +151,7 @@
|
|
|
|
|
|
|
|
@implementation FLEXShortcutsFactory (UIImage)
|
|
@implementation FLEXShortcutsFactory (UIImage)
|
|
|
|
|
|
|
|
-+ (void)load { FLEX_EXIT_IF_TESTING()
|
|
|
|
|
|
|
++ (void)load { FLEX_EXIT_IF_NO_CTORS()
|
|
|
self.append.methods(@[
|
|
self.append.methods(@[
|
|
|
@"CGImage", @"CIImage"
|
|
@"CGImage", @"CIImage"
|
|
|
]).properties(@[
|
|
]).properties(@[
|
|
@@ -171,7 +171,7 @@
|
|
|
|
|
|
|
|
@implementation FLEXShortcutsFactory (NSBundle)
|
|
@implementation FLEXShortcutsFactory (NSBundle)
|
|
|
|
|
|
|
|
-+ (void)load { FLEX_EXIT_IF_TESTING()
|
|
|
|
|
|
|
++ (void)load { FLEX_EXIT_IF_NO_CTORS()
|
|
|
self.append.properties(@[
|
|
self.append.properties(@[
|
|
|
@"bundleIdentifier", @"principalClass",
|
|
@"bundleIdentifier", @"principalClass",
|
|
|
@"infoDictionary", @"bundlePath",
|
|
@"infoDictionary", @"bundlePath",
|
|
@@ -186,7 +186,7 @@
|
|
|
|
|
|
|
|
@implementation FLEXShortcutsFactory (Classes)
|
|
@implementation FLEXShortcutsFactory (Classes)
|
|
|
|
|
|
|
|
-+ (void)load { FLEX_EXIT_IF_TESTING()
|
|
|
|
|
|
|
++ (void)load { FLEX_EXIT_IF_NO_CTORS()
|
|
|
self.append.classMethods(@[@"new", @"alloc"]).forClass(NSObject.flex_metaclass);
|
|
self.append.classMethods(@[@"new", @"alloc"]).forClass(NSObject.flex_metaclass);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -197,7 +197,7 @@
|
|
|
|
|
|
|
|
@implementation FLEXShortcutsFactory (Activities)
|
|
@implementation FLEXShortcutsFactory (Activities)
|
|
|
|
|
|
|
|
-+ (void)load { FLEX_EXIT_IF_TESTING()
|
|
|
|
|
|
|
++ (void)load { FLEX_EXIT_IF_NO_CTORS()
|
|
|
// Property was added in iOS 10 but we want it on iOS 9 too
|
|
// Property was added in iOS 10 but we want it on iOS 9 too
|
|
|
FLEXRuntimeUtilityTryAddNonatomicProperty(9, item, UIActivityItemProvider.class, id, PropertyKey(ReadOnly));
|
|
FLEXRuntimeUtilityTryAddNonatomicProperty(9, item, UIActivityItemProvider.class, id, PropertyKey(ReadOnly));
|
|
|
|
|
|
|
@@ -217,7 +217,7 @@
|
|
|
|
|
|
|
|
@implementation FLEXShortcutsFactory (Blocks)
|
|
@implementation FLEXShortcutsFactory (Blocks)
|
|
|
|
|
|
|
|
-+ (void)load { FLEX_EXIT_IF_TESTING()
|
|
|
|
|
|
|
++ (void)load { FLEX_EXIT_IF_NO_CTORS()
|
|
|
self.append.methods(@[@"invoke"]).forClass(NSClassFromString(@"NSBlock"));
|
|
self.append.methods(@[@"invoke"]).forClass(NSClassFromString(@"NSBlock"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -227,7 +227,7 @@
|
|
|
|
|
|
|
|
@implementation FLEXShortcutsFactory (Foundation)
|
|
@implementation FLEXShortcutsFactory (Foundation)
|
|
|
|
|
|
|
|
-+ (void)load { FLEX_EXIT_IF_TESTING()
|
|
|
|
|
|
|
++ (void)load { FLEX_EXIT_IF_NO_CTORS()
|
|
|
self.append.properties(@[
|
|
self.append.properties(@[
|
|
|
@"configuration", @"delegate", @"delegateQueue", @"sessionDescription",
|
|
@"configuration", @"delegate", @"delegateQueue", @"sessionDescription",
|
|
|
]).methods(@[
|
|
]).methods(@[
|