fastlane-plugin-versioning 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a15732d1c4f161ba72f1c4a7622eae383fd8f43dedf4215b6fde8d90001c5ffc
4
- data.tar.gz: 8e2ff2646f5f8789e4b4741592ae6875f67f6c41493b8fb28cfb8ca579202995
3
+ metadata.gz: a1f3c3811fd467e7d69c94314d4847e624fb962f5b32b52bc0f1e752b3fc6255
4
+ data.tar.gz: 3ef305e276491b37de4c7f7067fc8e1e5d0f6e10ce4fe36b5ad5ddc9e5d2809c
5
5
  SHA512:
6
- metadata.gz: 69b5bb7b919d5cf7f7e179e6d983ac776899696175071b1db2403564b39465e72afadc3e4ef4ebac99edb5873d2fe64d7e99e637c5c16710baa4e2e2cd629de4
7
- data.tar.gz: 9813dedfff2299f82b505f9fbe2c6dd71f067070ff97fcccc0575fd7ea0ecfb44cb02060f885d561d7b4c55e03f2905cf3c924d2a55d69e5dcb83775c01c44ec
6
+ metadata.gz: c26a7e8269c4d60aabab4d1c04323cedbd91c74df6042431275537fe1f3b6496526d66a93f317e60cd7b79d3db7c1b0c2cf9c40986b6b0dddef41f044e4f2509
7
+ data.tar.gz: fe91e4da9d9aeccb554f81bd9160bd40e41aea4414f68be97340ec26524c822af0737191d21c02d7d85c0cae922ad3088fda94f47ab352cc782f4ca64b839eb0
@@ -68,11 +68,12 @@ module Fastlane
68
68
  end
69
69
 
70
70
  def self.set_build_number_using_scheme(params, next_build_number)
71
- config = { project: params[:xcodeproj], scheme: params[:scheme], configuration: params[:build_configuration_name] }
72
- project = FastlaneCore::Project.new(config)
73
- project.select_scheme
74
-
75
- project.build_settings["CURRENT_PROJECT_VERSION"] = next_build_number
71
+ project = Xcodeproj::Project.open(params[:xcodeproj])
72
+ configs = project.objects.select { |obj| select_build_configuration_predicate(params[:build_configuration_name], obj) }
73
+ configs.each do |config|
74
+ config.build_settings["CURRENT_PROJECT_VERSION"] = next_build_number
75
+ end
76
+
76
77
  project.save
77
78
  end
78
79
 
@@ -115,7 +116,7 @@ module Fastlane
115
116
  end
116
117
 
117
118
  def self.authors
118
- ["jdouglas-nz"]
119
+ ["jdouglas-nz", "neilb01"]
119
120
  end
120
121
 
121
122
  def self.is_supported?(platform)
@@ -88,12 +88,12 @@ module Fastlane
88
88
  end
89
89
 
90
90
  def self.set_version_number_using_scheme(params, next_version_number)
91
- config = { project: params[:xcodeproj], scheme: params[:scheme], configuration: params[:build_configuration_name] }
92
- project = FastlaneCore::Project.new(config)
93
- project.select_scheme
94
-
95
- project.build_settings["MARKETING_VERSION"] = next_version_number
96
- project.save
91
+ project = Xcodeproj::Project.open(params[:xcodeproj])
92
+ configs = project.objects.select { |obj| select_build_configuration_predicate(params[:build_configuration_name], obj) }
93
+ configs.each do |config|
94
+ config.build_settings["MARKETING_VERSION"] = next_version_number
95
+ end
96
+ project.save
97
97
  end
98
98
 
99
99
  #####################################################
@@ -167,7 +167,7 @@ module Fastlane
167
167
  end
168
168
 
169
169
  def self.authors
170
- ["jdouglas-nz"]
170
+ ["jdouglas-nz", "neilb01"]
171
171
  end
172
172
 
173
173
  def self.is_supported?(platform)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Versioning
3
- VERSION = "0.4.4"
3
+ VERSION = "0.4.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siarhei Fiedartsou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-14 00:00:00.000000000 Z
12
+ date: 2021-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry