fastlane-plugin-versioning 0.4.0 → 0.4.2

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: 168e204d03dbb77518ab76a1b29af130fdeb931ca84638cbf6c714cb6e2302a6
4
- data.tar.gz: 2844377544c63bd02137e6d9fc4f878a4e0b3eae142f9fde6334fbe9eb6cc24f
3
+ metadata.gz: 9ba022aa470de1de1a48bbd2a22e0f3238239ae855f7cd9436294165934086d8
4
+ data.tar.gz: 977e017f3e0c11dbec48b268ce6c15e5065ea2b6b4edff74dcfcd93c1c931cd4
5
5
  SHA512:
6
- metadata.gz: 664ed3aaf04e09e5c36744c83f03c7a4325a077bd45f52a1606216c10c0b85948f519907340f0e8df6a6f5968dea2b220ba1758a4e70fc3b91b145ce650b3f62
7
- data.tar.gz: 4837f797b26815e6cc1565b1fa6faa6c164047c24be2ef1741d48819367d19b7bb87d31f4bea3510aabb6c8ac7697de55a883df20ba6d98931332e1432e37252
6
+ metadata.gz: 140990b21c9261fe90aa7bf1cff1f90e91463b5728a95a5da529e0f481bffc31da6428173ad5821f989f2ce07f5d226a2bdf7b268ab3b42aa29316d898c6da51
7
+ data.tar.gz: dbf59efbbee46d715225f40144ac1dbd527c70e3dc14169e0ba4bd6d8c298ccc34cf13a01d06afb68ecce663cd34e61f4deae526fe7607f5e88e0a30ac415a4e
data/README.md CHANGED
@@ -158,7 +158,7 @@ version = get_build_number_from_plist(xcodeproj: "Project.xcodeproj", # optional
158
158
 
159
159
  ### get_build_number_from_xcodeproj
160
160
 
161
- Get the build number from a xcodeproj - specific to a target. Doesn't use agvtool (unlike default `get_build_number`).
161
+ Get the build number from a xcodeproj - specific to a target. Doesn't use `agvtool` (unlike default `get_build_number`).
162
162
 
163
163
  ```ruby
164
164
  version = get_build_number_from_xcodeproj(xcodeproj: "Project.xcodeproj", # optional
@@ -168,7 +168,7 @@ version = get_build_number_from_xcodeproj(xcodeproj: "Project.xcodeproj", # opti
168
168
 
169
169
  ### get_version_number_from_xcodeproj
170
170
 
171
- Get the version number from a xcodeproj - specific to a target. Doesn't use agvtool (unlike default `get_build_number`).
171
+ Get the version number from a xcodeproj - specific to a target. Doesn't use `agvtool` (unlike default `get_build_number`).
172
172
 
173
173
  ```ruby
174
174
  version = get_version_number_from_xcodeproj(xcodeproj: 'Project.xcodeproj', # optional
@@ -27,7 +27,7 @@ module Fastlane
27
27
  end
28
28
 
29
29
  if ENV.key?('GITLAB_CI')
30
- return ENV['CI_JOB_ID']
30
+ return ENV['CI_PIPELINE_IID'] || ENV['CI_JOB_ID']
31
31
  end
32
32
 
33
33
  if ENV.key?('XCS')
@@ -50,7 +50,7 @@ module Fastlane
50
50
  return ENV['APPVEYOR_BUILD_NUMBER']
51
51
  end
52
52
 
53
- UI.error("Cannot detect current CI build number. Use 1 by default.")
53
+ UI.error("Cannot detect current CI build number. Defaulting to \"1\".")
54
54
  "1"
55
55
  end
56
56
 
@@ -63,7 +63,7 @@ module Fastlane
63
63
  end
64
64
 
65
65
  def self.authors
66
- ["Siarhei Fedartsou"]
66
+ ["Siarhei Fedartsou", "John Douglas"]
67
67
  end
68
68
 
69
69
  def self.example_code
@@ -59,7 +59,11 @@ module Fastlane
59
59
  target = project.targets[0] if target.nil?
60
60
  end
61
61
 
62
- project.build_settings["CURRENT_PROJECT_VERSION"] = next_build_number
62
+ target.build_configurations.each do |config|
63
+ UI.message "updating #{config.name} to build #{next_build_number}"
64
+ config.build_settings["CURRENT_PROJECT_VERSION"] = next_build_number
65
+ end unless target.nil?
66
+
63
67
  project.save
64
68
  end
65
69
 
@@ -66,7 +66,7 @@ module Fastlane
66
66
  return is_build_valid_configuration
67
67
  end
68
68
 
69
- def self.set_build_version_using_target(params, next_version_number)
69
+ def self.set_version_number_using_target(params, next_version_number)
70
70
  project = Xcodeproj::Project.open(params[:xcodeproj])
71
71
  if params[:target]
72
72
  target = project.targets.detect { |t| t.name == params[:target] }
@@ -79,7 +79,11 @@ module Fastlane
79
79
  target = project.targets[0] if target.nil?
80
80
  end
81
81
 
82
- project.build_settings["MARKETING_VERSION"] = next_version_number
82
+ target.build_configurations.each do |config|
83
+ UI.message "updating #{config.name} to version #{next_version_number}"
84
+ config.build_settings["MARKETING_VERSION"] = next_version_number
85
+ end unless target.nil?
86
+
83
87
  project.save
84
88
  end
85
89
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Versioning
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siarhei Fiedartsou
8
+ - John Douglas
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2019-10-30 00:00:00.000000000 Z
12
+ date: 2019-11-19 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: pry
@@ -67,7 +68,9 @@ dependencies:
67
68
  - !ruby/object:Gem::Version
68
69
  version: 1.93.1
69
70
  description:
70
- email: siarhei.fedartsou@gmail.com
71
+ email:
72
+ - siarhei.fedartsou@gmail.com
73
+ - john.douglas.nz@gmail.com
71
74
  executables: []
72
75
  extensions: []
73
76
  extra_rdoc_files: []