fastlane-plugin-semantic_versioning 2.1.0 → 2.1.1

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: 1205dbf528eadda53b7561ee36d93418c9f12fd7e5b8baa1f93f3f338411baa8
4
- data.tar.gz: e083a5c015ecd318254c853589dc9233aa3e86b3da96699ebeaeecf95c2630f7
3
+ metadata.gz: 0d962764d77e655baf9b60aae168bcf8ad44bbaa72f086459a289fec254ccdf7
4
+ data.tar.gz: 3880d7197a78a347153559ace10fc8ac2d9a70964327c01a698da27928482f0f
5
5
  SHA512:
6
- metadata.gz: 03b8bd862f3f5ef41791fd214864ac6d15c3928fe6e1fbf27acdb817619c6d3acae71b98c66b342a34d978795172e429fa7b0849e22313273fdbeac27a2fc4b5
7
- data.tar.gz: c5efd5ec4a7f1e73150f105d6f82a0c54aa52926d694224286ce64fb38f5614abb916b25fb2c2933ad099bc843bad6e01f5ead837a9cacf980a3a321c811e6c9
6
+ metadata.gz: 3c3b6f1b6adec4767c6a713cd73cca76f11e4953fcb65045773f7743abf631241b4c734b5418a0fcd483d2a8f44e88a0bec90c7e57ddbe70e181936b9774dbce
7
+ data.tar.gz: beef78408a0e60a49d8519304e58a07381afff3239f6ee3b8df65d64669d24f2872793864e34640911dc4d359488cc0bdceddf967552fcfe7f4185c5399b3616
@@ -19,15 +19,20 @@ module Fastlane
19
19
  info_plist_file = File.join(main_group.path, "Info.plist")
20
20
  info_plist_path = File.join(project.path.dirname, info_plist_file)
21
21
 
22
+ current_version = Fastlane::Actions::GetVersionNumberAction.run(xcodeproj: xcodeproj_path)
23
+ Helper::SemanticVersioningHelper.ensure_info_plist(info_plist_path)
24
+ %w[CFBundleVersion CFBundleShortVersionString].each do |key|
25
+ unless Fastlane::Actions::GetInfoPlistValueAction.run(path: info_plist_path, key: key)
26
+ Fastlane::Actions::SetInfoPlistValueAction.run(path: info_plist_path, key: key, value: current_version)
27
+ end
28
+ end
29
+
22
30
  target.build_configurations.each do |config|
23
31
  config.build_settings["VERSIONING_SYSTEM"] = "apple-generic"
24
32
  config.build_settings.delete("MARKETING_VERSION")
25
33
  config.build_settings.delete("GENERATE_INFOPLIST_FILE")
26
-
27
- config.build_settings["INFOPLIST_FILE"] = info_plist_file unless config.build_settings["INFOPLIST_FILE"]
28
-
29
- Helper::SemanticVersioningHelper.ensure_info_plist(info_plist_path)
30
34
  end
35
+
31
36
  project.save
32
37
  true
33
38
  end
@@ -196,22 +196,21 @@ module Fastlane
196
196
  def self.ensure_info_plist(path)
197
197
  return if File.exist?(path)
198
198
 
199
- File.write(path, <<-"PLIST")
200
- <?xml version="1.0" encoding="UTF-8"?>
201
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
202
- <plist version="1.0">
203
- <dict>
204
- <key>CFBundleVersion</key>
205
- <string>#{current_version}</string>
206
- <key>CFBundleShortVersionString</key>
207
- <string>#{current_version}</string>
208
- </dict>
209
- </plist>
199
+ File.write(path, <<-PLIST)
200
+ <?xml version="1.0" encoding="UTF-8"?>
201
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
202
+ <plist version="1.0">
203
+ <dict>
204
+ </dict>
205
+ </plist>
210
206
  PLIST
211
207
 
212
208
  info_plist = main_group.new_file("Info.plist")
213
- main_target.add_file_references([info_plist])
214
- Fastlane::UI.success("Successfully created the file '#{path}' for agvtool")
209
+ info_plist.include_in_index = nil
210
+ info_plist.set_last_known_file_type("text.plist")
211
+ main_target.build_configurations.each do |config|
212
+ config.build_settings["INFOPLIST_FILE"] = info_plist.full_path.to_s
213
+ end
215
214
  end
216
215
  end
217
216
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module SemanticVersioning
5
- VERSION = "2.1.0"
5
+ VERSION = "2.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-semantic_versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karsten Silkenbäumer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-20 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git