diff --git a/Example/fastlane/Appfile b/Example/fastlane/Appfile new file mode 100644 index 0000000..1803063 --- /dev/null +++ b/Example/fastlane/Appfile @@ -0,0 +1,6 @@ +# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app +# apple_id("[[APPLE_ID]]") # Your Apple email address + + +# For more information about the Appfile, see: +# https://docs.fastlane.tools/advanced/#appfile diff --git a/Example/fastlane/Fastfile b/Example/fastlane/Fastfile new file mode 100644 index 0000000..3708a2e --- /dev/null +++ b/Example/fastlane/Fastfile @@ -0,0 +1,49 @@ +# This file contains the fastlane.tools configuration +# You can find the documentation at https://docs.fastlane.tools +# +# For a list of all available actions, check out +# +# https://docs.fastlane.tools/actions +# +# For a list of all available plugins, check out +# +# https://docs.fastlane.tools/plugins/available-plugins +# + +# Uncomment the line if you want fastlane to automatically update itself +# update_fastlane + +default_platform(:ios) + +platform :ios do + desc "Execute SwiftFormat and treat any formatting errors as real errors." + lane :format do + swiftformat(executable: "Pods/SwiftFormat/CommandLineTool/swiftformat", + path: "../", + lint: true) + end + + desc "Execute SwiftLint and treat any formatting errors as real errors." + lane :lint do + swiftlint( + config_file: ".swiftlint.yml", + strict: true, + executable: "Pods/SwiftLint/swiftlint" + ) + end + + desc "Execute tests." + lane :tests do + run_tests(workspace: "GradientLoadingBar.xcworkspace", + devices: ["iPhone 11 Pro"], + scheme: "GradientLoadingBar-Example") + end + + desc "Execute validation of library." + lane :pod_lint do + Dir.chdir("..") do + # Move outside of `Example/` directory. + pod_lib_lint() + end + end +end diff --git a/Example/fastlane/Pluginfile b/Example/fastlane/Pluginfile new file mode 100644 index 0000000..c9eb1c3 --- /dev/null +++ b/Example/fastlane/Pluginfile @@ -0,0 +1,5 @@ +# Autogenerated by fastlane +# +# Ensure this file is checked in to source control! + +gem 'fastlane-plugin-swiftformat'