Skip to content

Commit

Permalink
Update fastfile
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Aug 30, 2024
1 parent e32ce12 commit 2d5a331
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
25 changes: 17 additions & 8 deletions Fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,24 @@ platform :ios do
sh("cd .. && xcodebuild -scheme " + name + " -derivedDataPath .build -destination 'generic/platform=" + platform + "';")
end

lane :build_all do
build(platform: "iOS")
build(platform: "OS X")
build(platform: "tvOS")
build(platform: "watchOS")
build(platform: "xrOS")
end


# Test ==================

lane :test_ios do
sh("cd .. && xcodebuild test -scheme " + name + " -derivedDataPath .build -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2' -enableCodeCoverage YES;")
lane :test do |options|
destination = options[:destination]
sh("cd .. && xcodebuild test -scheme " + name + " -derivedDataPath .build -destination '" + destination + "' -enableCodeCoverage YES;")
end

lane :test_all do
test(destination: "platform=iOS Simulator,name=iPhone 15,OS=17.2")
end


Expand All @@ -42,12 +55,8 @@ platform :ios do
ensure_git_status_clean
ensure_git_branch(branch: main_branch)
swiftlint(strict: true)
build(platform: "iOS")
build(platform: "OS X")
build(platform: "tvOS")
build(platform: "watchOS")
build(platform: "xrOS")
test_ios
build_all
test_all
end

end
3 changes: 2 additions & 1 deletion Sources/SwiftUIKit/Navigation/NavigationButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import SwiftUI

/**
This view embeds a regular `Button` then appends a trailing ``NavigationLinkArrow`` to render as a `NavigationLink`.
This view embeds a regular `Button` then appends a trailing
``NavigationLinkArrow`` to render as a `NavigationLink`.
*/
public struct NavigationButton<Content: View>: View {

Expand Down

0 comments on commit 2d5a331

Please sign in to comment.