lib/ProMotion/delegate/delegate_module.rb in ProMotion-2.2.2 vs lib/ProMotion/delegate/delegate_module.rb in ProMotion-2.3.0

- old
+ new

@@ -1,7 +1,8 @@ module ProMotion module DelegateModule + include ProMotion::Support include ProMotion::Tabs include ProMotion::SplitScreen if UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad attr_accessor :window, :home_screen @@ -40,22 +41,10 @@ def application(application, openURL: url, sourceApplication:source_app, annotation: annotation) try :on_open_url, { url: url, source_app: source_app, annotation: annotation } end - def app - UIApplication.sharedApplication - end - - def app_delegate - self - end - - def app_window - window - end - def ui_window (defined?(Motion) && defined?(Motion::Xray) && defined?(Motion::Xray::XrayWindow)) ? Motion::Xray::XrayWindow : UIWindow end def open(screen, args={}) @@ -79,13 +68,9 @@ private def apply_status_bar self.class.send(:apply_status_bar) - end - - def try(method, *args) - send(method, *args) if respond_to?(method) end public module ClassMethods