class Fastlane::Helper::IonicIntegrationHelper

Constants

HELPER_PATH
IOS_RESOURCES_PATH

Public Class Methods

copy_ios_sample_tests(scheme_name) click to toggle source
# File lib/fastlane/plugin/ionic_integration/helper/ionic_integration_helper.rb, line 24
def self.copy_ios_sample_tests(scheme_name)
  source_folder = "#{IOS_RESOURCES_PATH}/#{IonicIntegration::IONIC_DEFAULT_UNIT_TEST_NAME}"
  dest_folder = "#{IonicIntegration::IONIC_IOS_CONFIG_UITESTS_PATH}/#{scheme_name}"
  copy_ios_ui_test_code(source_folder, dest_folder)
end
copy_ios_ui_test_code(src_folder, project_folder) click to toggle source

Copy over to the xcode project our pre-configured UI Test Code

# File lib/fastlane/plugin/ionic_integration/helper/ionic_integration_helper.rb, line 13
def self.copy_ios_ui_test_code(src_folder, project_folder)
  if src_folder && Dir.exist?(src_folder)
    dest_folder = project_folder.to_s
    UI.message "Copying iOS UI Tests from #{src_folder} to #{dest_folder}"
    Dir.exist?(dest_folder) || FileUtils.mkdir_p(dest_folder)
    FileUtils.cp_r(src_folder + "/.", dest_folder)
  elsif
    UI.user_error! "Copying iOS UI Test Files: #{src_folder} does not exist."
  end
end
find_default_ios_xcode_workspace() click to toggle source

Find any existing Xcode Workspace generated by Ionic/Cordova

# File lib/fastlane/plugin/ionic_integration/helper/ionic_integration_helper.rb, line 33
def self.find_default_ios_xcode_workspace
  Dir["#{IonicIntegration::IONIC_IOS_BUILD_PATH}/*.xcodeproj"].last || nil
end