diff --git a/lib/fastlane/actions/actions_helper.rb b/lib/fastlane/actions/actions_helper.rb
index <HASH>..<HASH> 100644
--- a/lib/fastlane/actions/actions_helper.rb
+++ b/lib/fastlane/actions/actions_helper.rb
@@ -30,6 +30,8 @@ module Fastlane
 
     # Is the required gem installed on the current machine
     def self.gem_available?(name)
+      return true if Helper.is_test?
+      
       Gem::Specification.find_by_name(name)
     rescue Gem::LoadError
       false
diff --git a/lib/fastlane/actions/deliver.rb b/lib/fastlane/actions/deliver.rb
index <HASH>..<HASH> 100644
--- a/lib/fastlane/actions/deliver.rb
+++ b/lib/fastlane/actions/deliver.rb
@@ -1,8 +1,15 @@
 module Fastlane
   module Actions
     def self.deliver(params)
+      need_gem!'deliver'
+
+      require 'deliver'
       ENV["DELIVER_SCREENSHOTS_PATH"] = self.snapshot_screenshots_folder
-      sh "deliver --force"
+      
+      force = false
+      force = true if params.first == :force
+
+      Deliver::Deliverer.new(Deliver::Deliverfile::Deliverfile::FILE_NAME, force: force)
     end
   end
 end
\ No newline at end of file
Added native deliver integratoin with :force flag