Skip to content

Commit 6866c75

Browse files
authored
[chore]: relax swiftui experimental dependency constraints & bump version (#265)
the current experimental swift ui target is versioned independently from the other pods. this change relaxes the version requirements for its dependencies to allow any minor or patch changes to be made without this podspec having to be changed.
1 parent e2139cc commit 6866c75

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

WorkflowSwiftUIExperimental.podspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ require_relative('version')
22

33
Pod::Spec.new do |s|
44
s.name = 'WorkflowSwiftUIExperimental'
5-
s.version = '0.1'
5+
s.version = '0.2'
66
s.summary = 'Infrastructure for Workflow-powered SwiftUI'
77
s.homepage = 'https://www.github.com/square/workflow-swift'
88
s.license = 'Apache License, Version 2.0'
@@ -18,8 +18,8 @@ Pod::Spec.new do |s|
1818

1919
s.source_files = 'WorkflowSwiftUIExperimental/Sources/*.swift'
2020

21-
s.dependency 'Workflow', WORKFLOW_VERSION
22-
s.dependency 'WorkflowUI', WORKFLOW_VERSION
21+
s.dependency 'Workflow', "~> #{WORKFLOW_MAJOR_VERSION}.0"
22+
s.dependency 'WorkflowUI', "~> #{WORKFLOW_MAJOR_VERSION}.0"
2323

2424
s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES' }
2525
end

version.rb

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# frozen_string_literal: true
22

3-
# The primary version number for Workflow-related pods
4-
WORKFLOW_VERSION ||= '3.6.0'
3+
# The primary version numbers for Workflow-related pods
4+
WORKFLOW_MAJOR_VERSION ||= '3'
5+
WORKFLOW_MINOR_VERSION ||= '6'
6+
WORKFLOW_PATCH_VERSION ||= '0'
7+
WORKFLOW_VERSION ||= "#{WORKFLOW_MAJOR_VERSION}.#{WORKFLOW_MINOR_VERSION}.#{WORKFLOW_PATCH_VERSION}"
58

69
# iOS deployment target
710
WORKFLOW_IOS_DEPLOYMENT_TARGET ||= '14.0'

0 commit comments

Comments
 (0)