fastlane-plugin-semantic_versioning 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0d962764d77e655baf9b60aae168bcf8ad44bbaa72f086459a289fec254ccdf7
|
|
4
|
+
data.tar.gz: 3880d7197a78a347153559ace10fc8ac2d9a70964327c01a698da27928482f0f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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, <<-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
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
|
-
|
|
214
|
-
|
|
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
|
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.
|
|
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-
|
|
11
|
+
date: 2024-05-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: git
|